LVM Logical Volume Geometry Size Problem
Jump to navigation
Jump to search
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>