Error extending a striped LVM volume
This document (7018278) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 11 Service Pack 4 (SLES 11 SP4)
Logical Volume Management (LVM)
Situation
However, the logical volume was not extended as expected. Errors observed:
On SLE11
sles11sp4:~ # lvextend --extents +100%FREE /dev/data/vol1 Using stripesize of last segment 64.00 KiB Rounding size (3323 extents) down to stripe boundary size for segment (3321 extents) Extending logical volume vol1 to 12.97 GiB Insufficient suitable allocatable extents for logical volume vol1: 1020 more required
On SLE12
sles12sp1:~ # lvextend --extents +100%FREE /dev/data/vol1 Using stripesize of last segment 64.00 KiB Size of logical volume data/vol1 unchanged from 7.45 GiB (1908 extents). Logical volume vol1 successfully resizedNOTE: The SLE12 message suggests the volume has been resized, but the message also says the volume was "unchanged". A closer look shows the volume was not changed.
From the SLE11 example, the following shows available space in the volume group "data".
sles11sp4:~ # vgextend data /dev/sd[b-c]2 Volume group "data" successfully extended sles11sp4:~ # vgs VG #PV #LV #SN Attr VSize VFree data 5 1 0 wz--n- 12.98g 3.99g
After the error, both SLE11 and SLE12 show similar output shown below. No additional segments are added as expected and the size of the logical volume is unchanged.
sles11sp4:~ # lvs --segments LV VG Attr #Str Type SSize vol1 data -wi-ao--- 3 striped 8.99g
Resolution
The following commands resolve the issue:
sles11sp4:~ # vgextend data /dev/sdd2 Volume group "data" successfully extended sles11sp4:~ # lvextend --extents +100%FREE /dev/data/vol1 Using stripesize of last segment 64.00 KiB Extending logical volume vol1 to 14.98 GiB Logical volume vol1 successfully resized sles11sp4:~ # lvs --segments LV VG Attr #Str Type SSize vol1 data -wi-ao--- 3 striped 8.99g vol1 data -wi-ao--- 3 striped 5.99g
Cause
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7018278
- Creation Date: 16-Nov-2016
- Modified Date:08-Mar-2022
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com