Error: command 'sbin/vgchange -aln pve' failed with exit code 5

  • Thread starter Thread starter jswann
  • Start date Start date
J

jswann

Guest
I receive the error below when attempting to delete (via the web GUI v1.9) an LVM I recently created that I don't want anymore. Any idea how to remedy this?

Message from webpage
Error: command 'sbin/vgchange -aln pve' failed with exit code 5
 
Message from webpage
Error: command 'sbin/vgchange -aln pve' failed with exit code 5

Volume group 'pve' is the system group used by the default installion. Your root filesystem is there, so its a bad idea to delete that.

But you can manually remove it from /etc/pve/storage.cfg
 
Volume group 'pve' is the system group used by the default installion. Your root filesystem is there, so its a bad idea to delete that.

But you can manually remove it from /etc/pve/storage.cfg


Okay, so do I simply delete the bold text below from the config and save it? I just want to delete the SWANNF LVM because when I created it I obviously didn't set it up correctly.

pretender:/etc/pve# vi storage.cfg
dir: local
path /var/lib/vz
content images,iso,vztmpl,rootdir

dir: windows_iso
path /iso/win/
shared
content iso

dir: linux_iso
path /iso/nix
shared
content iso

lvm: SWANNF
disable
vgname pve
content images