LVM / Storage

Antonino89

Member
Jul 13, 2017
76
1
6
35
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?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!