HowTo create VolumeGroup

Create VG for nova-volume

1.dd if=/dev/zero of=<you named a loopback device as your will> bs=<size ex.1G> count=<bs counts>

2.losetup -f --show <your loopback device file name>
  >/dev/loopX
3. apt-get -y install lvm2
4. vgcreate nova-volumes /dev/loopX

5.vgs
(if VG just using for nova-volume, you'r already finish it)

Reference 

======additional======
6. vgdisplay
(to make sure how many PE do I have)
7. lvcreate -L 1G -n test nova-volumes
8. ls /dev/nova*
(if there is a floder named nova-volumes , success!)





Remove the exist VolumeGroup


1.vgremove <VG_name>
2.vgs 
(to verify it)

Comments

Popular posts from this blog