Guest User

Untitled

a guest
Jan 22nd, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. Now, let’s create a volume group, name it cinder-volumes, and make sure that it persists after a reboot:
  2.  
  3. dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=2G
  4. losetup /dev/loop2 cinder-volumes
  5. fdisk /dev/loop2
  6.  
  7. And at the fdisk prompt, enter the following commands:
  8.  
  9. n
  10. p
  11. 1
  12. ENTER
  13. ENTER
  14. t
  15. 8e
  16. w
  17.  
  18. Proceed to create the physical volume and then the volume group itself:
  19.  
  20. pvcreate /dev/loop2
  21. vgcreate cinder-volumes /dev/loop2
  22.  
  23. Now, let’s add this to the rc.local to make sure that we don’t lose this volume on a server reboot
  24.  
  25. Add the following to the file before the exit 0 line:
  26.  
  27. #the path is wherever you ran the previous two steps + "cinder-volumes"
  28. losetup /dev/loop2 <PATH_TO_VG>
Advertisement
Add Comment
Please, Sign In to add comment