Scenario:
Create physical volume, then create volume group.
Now I decide not to continue to create logical volume.
I want to delete the volume group.
Quote:
[root@localhost dev]# vgcreate vgdata /dev/vda3
root@localhost dev]# pvs
PV VG Fmt Attr PSize PFree
/dev/vda2 centos lvm2 a-- 7.52g 0
/dev/vda3 vgdata lvm2 a-- 96.00m 96.00m
[root@localhost dev]# vgs
VG #PV #LV #SN Attr VSize VFree
centos 1 2 0 wz--n- 7.52g 0
vgdata 1 0 0 wz--n- 96.00m 96.00m
[root@localhost dev]# updatedb
[root@localhost dev]# locate vgdata
/etc/lvm/archive/vgdata_00000-338846304.vg
/etc/lvm/backup/vgdata
|
I would expect to see volume group folder in /dev.
But it is not there.
# E.g. no find result
find /dev -iname vgdata
To remove the physical volume from volume group:
vgreduce path/to/vg path/to/pv/in/vg
vgremove /path/to/vg
I have to remove physical volume (/dev/vda3) from the volume group before I can delete the volume group, vgdata.
But I am not able to find vgdata's path!
NOTE: At this point a logical volume has not been created yet!
Thank you.