LVM Logical Volume Geometry Size Problem: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==Error Messages Observed==
==Error Messages Observed==
These messages appear in dmesg after an unsuccessful activation of a volume groups logical volumes.
The following messages appear in dmesg after an unsuccessful activation of a volume groups logical volumes.
:<tt>'''device-mapper: table: <major>:<minor>: <block device> too small for target: start=<sector>, len=<sector>, dev_size=<size>'''</tt>
:<tt>'''device-mapper: table: <major>:<minor>: <block device> too small for target: start=<sector>, len=<sector>, dev_size=<size>'''</tt>
:<tt>'''kernel: EXT4-fs (dm-9): bad geometry: block count <number> exceeds size of device (<number> blocks)'''</tt>
:<tt>'''kernel: EXT4-fs (dm-9): bad geometry: block count <number> exceeds size of device (<number> blocks)'''</tt>
The following messages appear after a vgimport on a volume group.
:<tt>'''device-mapper: resume ioctl on  failed: Invalid argument'''</tt>
:<tt>'''Unable to resume <volume group>-<logical volume> (253:23)'''</tt>


==Fix Procedure==
==Fix Procedure==

Revision as of 03:50, 10 February 2016

Error Messages Observed

The following 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)

The following messages appear after a vgimport on a volume group.

device-mapper: resume ioctl on failed: Invalid argument
Unable to resume <volume group>-<logical volume> (253:23)

Fix Procedure

  1. Deactivate the volume group's logical volumes.
    1. # vgchange -an <volume group>
  2. Rescan all SCSI Host Adapters.
    1. # echo '- - -' > /sys/class/scsi_host/<host#>/scan
  3. Rescan all SCSI block devices associated with the volume group.
    1. # echo 1 > /sys/block/<block device>/device/rescan
  4. Resize all physical volumes associated with the volume group.
    1. # pvscan
    2. # pvresize /dev/<block device>
  5. Activate the volume group's logical volumes.
    1. # vgchange -ay <volume group>

Further Reading