LVM Logical Volume Geometry Size Problem: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
These messages appear in dmesg after an unsuccessful activation of a volume groups logical volumes. | These 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>'''kernel: EXT4-fs (dm-9): bad geometry: block count <number> exceeds size of device (<number> blocks)'''</tt> | ||
# Deactivate the volume group's logical volumes. | # Deactivate the volume group's logical volumes. |
Revision as of 13:40, 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)
- Deactivate the volume group's logical volumes.
- # vgchange -an <volume group>
- Rescan all SCSI block devices associated with the volume group.
- # echo 1 > /sys/block/<block device>/device/rescan
- Resize all physical volumes associated with the volume group.
- # pvscan
- # pvresize /dev/<block device>
- Activate the volume group's logical volumes.
- # vgchange -ay <volume group>