LVM / Storage

Antonino89

Member
Jul 13, 2017
76
1
6
36
Hi guys,

there is a way to permanently delete LVM creation and Shared storage configuration, from the CLI?

If i do it from the WEB GUI, the volume group still exist. I need to flush everything and to the things from the beginning again...

Some advices?

Thanks
 
Code:
man 8 vgremove
should tell you what you need to know. In case you're talking about LVM Thin you need to remove the Thin pool, which is a logical volume manually, first.
 
Code:
man 8 vgremove
should tell you what you need to know. In case you're talking about LVM Thin you need to remove the Thin pool, which is a logical volume manually, first.


Thanks, but it doesn't work. My LVM1 was pointing to a shared storage which doesn't exists any more.

root@Server3:/var/lib/lxc# vgremove lvm1

/dev/sdc: open failed: No such device or address

Do you really want to remove volume group "lvm1" containing 1 logical volumes? [y/n]: yes

Do you really want to remove and DISCARD logical volume lvm1/vm-101-disk-1? [y/n]: yes

/dev/sdc: open failed: No such device or address

WARNING: Failed to write an MDA of VG lvm1.

Failed to write VG lvm1.

/dev/sdc: open failed: No such device or address

Attempt to close device '/dev/sdc' which is not open.


root@Server3:/var/lib/lxc# pvesm lvmscan

/dev/sdc: open failed: No such device or address

lvm1

pve
 
Can you remove sdc from the storage config?