Difference between revisions of "Vgchange"

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<code>vgchange</code><ref>http://man7.org/linux/man-pages/man8/vgchange.8.html</ref> Change volume group attributes
+
<code>vgchange</code><ref>http://man7.org/linux/man-pages/man8/vgchange.8.html</ref> change [[volume group]] attributes
  
  
Line 10: Line 10:
 
   Couldn't find device with uuid 'FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk'.
 
   Couldn't find device with uuid 'FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk'.
 
</pre>
 
</pre>
 +
:<code>-a|--activate y|n|ay</code>
 +
:The block device for the LV is added or removed from the system using [[device-mapper]] in the kernel. A symbolic link /dev/VGName/LVName pointing to the device node is also added/removed.
 +
 +
:-P|--partial Commands will do their best to activate LVs with missing PV extents.  Missing extents may be replaced with error or zero segments according to the lvm.conf missing_stripe_filler setting.  Metadata may not be changed with this option.
 +
 +
 +
vgchange -an VG_NAME
 +
  WARNING: Device /dev/mapper/3600a09803831417a5a244f5665797a4t has size of 8804682957 sectors which is smaller than corresponding PV size of 12884901888 sectors. Was device resized?
 +
  One or more devices used as PVs in VG  VG_NAME have changed sizes.
 +
  0 logical volume(s) in volume group "VG_NAME" now active
 +
 +
  
 
== See also ==
 
== See also ==
Line 16: Line 28:
  
 
[[Category:Linux]]
 
[[Category:Linux]]
 +
[[Category:KVM]]

Latest revision as of 11:18, 7 January 2020

vgchange[1] change volume group attributes


https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/logical_volume_manager_administration/mdatarecover

vgchange -an --partial
  Partial mode. Incomplete volume groups will be activated read-only.
  Couldn't find device with uuid 'FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk'.
  Couldn't find device with uuid 'FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk'.
-a|--activate y|n|ay
The block device for the LV is added or removed from the system using device-mapper in the kernel. A symbolic link /dev/VGName/LVName pointing to the device node is also added/removed.
-P|--partial Commands will do their best to activate LVs with missing PV extents. Missing extents may be replaced with error or zero segments according to the lvm.conf missing_stripe_filler setting. Metadata may not be changed with this option.


vgchange -an VG_NAME
 WARNING: Device /dev/mapper/3600a09803831417a5a244f5665797a4t has size of 8804682957 sectors which is smaller than corresponding PV size of 12884901888 sectors. Was device resized?
 One or more devices used as PVs in VG  VG_NAME have changed sizes.
 0 logical volume(s) in volume group "VG_NAME" now active


See also[edit]

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
  1. http://man7.org/linux/man-pages/man8/vgchange.8.html
  2. Advertising: