Difference between revisions of "Vgremove"
Jump to navigation
Jump to search
↑ https://medium.com/@ernstae/removing-a-volume-group-with-thin-provisioned-logical-volumes-8c9b9864a68b
Tags: Mobile web edit, Mobile edit |
|||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
+ | <code>vgremove</code> command removes a [[volume group]] https://linux.die.net/man/8/vgremove | ||
+ | |||
<pre> | <pre> | ||
vgremove VG_TO_DELETE | vgremove VG_TO_DELETE | ||
Line 14: | Line 17: | ||
</pre> | </pre> | ||
− | <code>vgremove</code> with errors | + | == <code>vgremove</code> with errors == |
<pre> | <pre> | ||
vgremove VG_TO_DELETE | 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 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]: | 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 | Incorrect metadata area header checksum on /dev/mapper/3600a09803831417a5a244f5665797a48 at offset 4096 | ||
WARNING: Failed to write an MDA of VG VG_TO_DELETE. | WARNING: Failed to write an MDA of VG VG_TO_DELETE. | ||
Line 28: | Line 29: | ||
Incorrect metadata area header checksum on /dev/mapper/3600a09803831417a5a244f5665797a49 at offset 4096 | Incorrect metadata area header checksum on /dev/mapper/3600a09803831417a5a244f5665797a49 at offset 4096 | ||
Incorrect metadata area header checksum on /dev/mapper/3600a09803831417a5a244f5665797a48 at offset 4096 | Incorrect metadata area header checksum on /dev/mapper/3600a09803831417a5a244f5665797a48 at offset 4096 | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | 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. | ||
</pre> | </pre> | ||
− | + | 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. | ||
+ | |||
+ | |||
+ | <code>[[apt-get install thin-provisioning-tools]]</code><ref>https://medium.com/@ernstae/removing-a-volume-group-with-thin-provisioned-logical-volumes-8c9b9864a68b</ref> | ||
+ | <pre> | ||
+ | vgremove rhvh | ||
+ | ... | ||
+ | Logical volume "pool00" successfully removed | ||
+ | Volume group "rhvh" successfully removed | ||
+ | </pre> | ||
+ | == Related commands == | ||
+ | * <code>[[rescan-scsi-bus.sh]]</code> | ||
+ | * <code>[[vgremove]]</code> | ||
+ | * <code>[[lvremove]]</code> | ||
+ | * <code>[[pvremove]]</code> | ||
+ | * [[rm]] | ||
== See also == | == See also == | ||
+ | * {{VG}} | ||
* {{lvm commands}} | * {{lvm commands}} | ||
− | * {{Fibre Channel | + | * {{Linux Fibre Channel}} |
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 03:35, 29 October 2021
vgremove
command removes a volume group 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[edit]
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[edit]
See also[edit]
- VG:
vgdisplay
,vgcreate
,vgremove
,vgextend
,vgreduce
,vgscan
,vgchange
,vgrename
,vgcfgbackup
,vgcfgrestore
,vgimportclone
,vgck
- LVM: LVM errors LVM scan commands
lkvmetad
, Add a new disk
- 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
- Fibre Channel: HBA,
multipath-tools
,multipath
,multipath -ll
,/etc/multipath.conf
multipathd
rescan-scsi-bus.sh
powermt
Device mapper
dmsetup ls
,
Advertising: