LVM Logical Volume Geometry Size Problem: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Error Messages Observed== | |||
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>'''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> | |||
# Rescan all SCSI block devices associated with the volume group | ==Fix Procedure== | ||
# | # Deactivate the volume group's logical volumes | ||
#: <tt>'''# vgchange -an <volume_group>'''</tt> | |||
# Rescan all SCSI Host Adapters. | |||
#: <tt>'''# echo '- - -' > /sys/class/scsi_host/host<#>/scan'''</tt> | |||
# Rescan all SCSI block devices associated with the volume group | |||
#: <tt>'''# echo 1 > /sys/block/<device>/device/rescan'''</tt> | |||
# Resize all physical volumes associated with the volume group | |||
#: <tt>'''# pvscan'''</tt> | |||
#: <tt>'''# pvresize /dev/<device>'''</tt> | |||
# Activate the volume group's logical volumes | |||
#: <tt>'''# vgchange -ay <volume_group>'''</tt> | |||
== Further Reading == | |||
[[Category:Linux]] | |||
Latest revision as of 03:01, 28 January 2022
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
- Deactivate the volume group's logical volumes
- # vgchange -an <volume_group>
- Rescan all SCSI Host Adapters.
- # echo '- - -' > /sys/class/scsi_host/host<#>/scan
- Rescan all SCSI block devices associated with the volume group
- # echo 1 > /sys/block/<device>/device/rescan
- Resize all physical volumes associated with the volume group
- # pvscan
- # pvresize /dev/<device>
- Activate the volume group's logical volumes
- # vgchange -ay <volume_group>