Difference between revisions of "Vgremove"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(8 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 36: Line 39:
 
</pre>
 
</pre>
  
<pre>
+
 
vgremove rhvh
+
vgremove [[rhvh]]
Do you really want to remove volume group "rhvh" containing 9 logical volumes? [y/n]: y
+
Do you really want to remove volume group "rhvh"  
Removing pool "pool00" will remove 8 dependent volume(s). Proceed? [y/n]: y
+
containing 9 logical volumes? [y/n]: y
Do you really want to remove and DISCARD logical volume rhvh/var_log_audit? [y/n]: y
+
Removing pool "pool00" will remove 8 dependent  
  /etc/lvm/profile/imgbased-pool.profile: stat failed: No such file or directory
+
volume(s). Proceed? [y/n]: y
  Internal error: trying to load profile imgbased-pool in critical section.
+
Do you really want to remove and DISCARD logical  
  /usr/sbin/thin_check: execvp failed: No such file or directory
+
volume rhvh/var_log_audit? [y/n]: y
  Check of pool rhvh/pool00 failed (status:2). Manual repair required!
+
  /etc/lvm/profile/imgbased-pool.profile: stat failed:  
  Failed to update pool rhvh/pool00.
+
No such file or directory
</pre>
+
  Internal error: trying to load profile imgbased-pool in  
<code>apt-get install thin-provisioning-tools</code><ref>https://medium.com/@ernstae/removing-a-volume-group-with-thin-provisioned-logical-volumes-8c9b9864a68b</ref>
+
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>
 
<pre>
 
vgremove rhvh
 
vgremove rhvh
Line 55: Line 66:
 
</pre>
 
</pre>
  
Related commands: <code>[[rescan-scsi-bus.sh]]</code> <code>[[vgremove]]</code> <code>[[lvremove]]</code> <code>[[pvremove]]</code>
+
== 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}}
 
* {{Linux 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]

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: