Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Now, let’s create a volume group, name it cinder-volumes, and make sure that it persists after a reboot:
- dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=2G
- losetup /dev/loop2 cinder-volumes
- fdisk /dev/loop2
- And at the fdisk prompt, enter the following commands:
- n
- p
- 1
- ENTER
- ENTER
- t
- 8e
- w
- Proceed to create the physical volume and then the volume group itself:
- pvcreate /dev/loop2
- vgcreate cinder-volumes /dev/loop2
- Now, let’s add this to the rc.local to make sure that we don’t lose this volume on a server reboot
- Add the following to the file before the exit 0 line:
- #the path is wherever you ran the previous two steps + "cinder-volumes"
- losetup /dev/loop2 <PATH_TO_VG>
Advertisement
Add Comment
Please, Sign In to add comment