Vgremove

From wikieduonline
Revision as of 05:42, 28 April 2020 by Welcome (talk | contribs)
Jump to navigation Jump to search

https://linux.die.net/man/8/vgremove

vgremove VG_TO_DELETE
Do you really want to remove volume group "VG_TO_DELETE" containing 1 logical volumes? [y/n]: y
  Logical volume "LV_TO_DELETE" successfully removed
  Volume group "VG_TO_DELETE" successfully removed
vgremove VG_TO_DELETE
Do you really want to remove volume group "VG_TO_DELETE" containing 1 logical volumes? [y/n]: y
Do you really want to remove and DISCARD active logical volume VG_TO_DELETE/LV_TO_DELETE? [y/n]:
  Logical volume "LV_TO_DELETE" successfully removed
  Volume group "VG_TO_DELETE" successfully removed

vgremove with errors

vgremove VG_TO_DELETE
Do you really want to remove volume group "VG_TO_DELETE" containing 1 logical volumes? [y/n]: y
Do you really want to remove and DISCARD active logical volume VG_TO_DELETE/LV_TO_DELETE? [y/n]:
  Incorrect metadata area header checksum on /dev/mapper/3600a09803831417a5a244f5665797a48 at offset 4096
  WARNING: Failed to write an MDA of VG VG_TO_DELETE.
  Incorrect metadata area header checksum on /dev/mapper/3600a09803831417a5a244f5665797a49 at offset 4096
  WARNING: Failed to write an MDA of VG VG_TO_DELETE.
  Failed to write VG VG_TO_DELETE.
  Incorrect metadata area header checksum on /dev/mapper/3600a09803831417a5a244f5665797a49 at offset 4096
  Incorrect metadata area header checksum on /dev/mapper/3600a09803831417a5a244f5665797a48 at offset 4096
vgremove VG_TO_DELETE
Do you really want to remove volume group "VG_TO_DELETE" containing 1 logical volumes? [y/n]: y
Do you really want to remove and DISCARD active logical volume VG_TO_DELETE/LV_TO_DELETE? [y/n]:
  WARNING: Failed to write an MDA of VG VG_TO_DELETE.
  Failed to write VG VG_TO_DELETE.
vgremove rhvh
Do you really want to remove volume group "rhvh" containing 9 logical volumes? [y/n]: y
Removing pool "pool00" will remove 8 dependent volume(s). Proceed? [y/n]: y
Do you really want to remove and DISCARD logical volume rhvh/var_log_audit? [y/n]: y
  /etc/lvm/profile/imgbased-pool.profile: stat failed: No such file or directory
  Internal error: trying to load profile imgbased-pool in critical section.
  /usr/sbin/thin_check: execvp failed: No such file or directory
  Check of pool rhvh/pool00 failed (status:2). Manual repair required!
  Failed to update pool rhvh/pool00.

apt-get install thin-provisioning-tools[1]

vgremove rhvh
...
  Logical volume "pool00" successfully removed
  Volume group "rhvh" successfully removed

Related commands: rescan-scsi-bus.sh vgremove lvremove pvremove

See also

scan: pvscan vgscan
LVM: lvs lvmscan lvm fullreport lvmreport lvmconfig lvmdump lvmcheck lvm dumpconfig
Scan: pvs vgs lvs pvscan vgscan
PV: pvcreate pvremove pvscan pvremove pvscan pvs pvchange pvck pvdisplay pvresize
LV: lvdisplay lvcreate lvremove, lvresize, lvextend, lvreduce, lvrename
VG: vgdisplay,vgcreate,vgremove, vgextend, vgreduce, vgscan, vgchange, vgrename, vgcfgbackup, vgcfgrestore, vgimportclone, vgck
Check commands: pvck vgck
  • https://medium.com/@ernstae/removing-a-volume-group-with-thin-provisioned-logical-volumes-8c9b9864a68b
  • Advertising: