Vgchange

From wikieduonline
Jump to navigation Jump to search

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]

Advertising: