LVM Logical Volume Geometry Size Problem: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
# Resize all physical volumes associated with the volume group.
# Resize all physical volumes associated with the volume group.
## <tt>'''# pvscan'''</tt>
## <tt>'''# pvscan'''</tt>
## <tt>'''# pvresize /dev/<block device>
## <tt>'''# pvresize /dev/<block device>'''</tt>
# Activate the volume group's logical volumes.
# Activate the volume group's logical volumes.
## <tt>'''# vgchange -ay <volume group>'''</tt>
## <tt>'''# vgchange -ay <volume group>'''</tt>

Revision as of 13:42, 11 December 2015

These messages appear in dmesg after an unsuccessful activation of a volume groups logical volumes.

device-mapper: table: <major>:<minor>: <block device> too small for target: start=<sector>, len=<sector>, dev_size=<size>
kernel: EXT4-fs (dm-9): bad geometry: block count <number> exceeds size of device (<number> blocks)
  1. Deactivate the volume group's logical volumes.
    1. # vgchange -an <volume group>
  2. Rescan all SCSI block devices associated with the volume group.
    1. # echo 1 > /sys/block/<block device>/device/rescan
  3. Resize all physical volumes associated with the volume group.
    1. # pvscan
    2. # pvresize /dev/<block device>
  4. Activate the volume group's logical volumes.
    1. # vgchange -ay <volume group>

Further Reading