Resize failed: New geometry makes partition unaligned for a lun with 65K cylinders

book

Article ID: 100007583

calendar_today

Updated On:

Description

Error Message

VxVM vxdisk ERROR V-5-1-8643 Device disk_s2: resize failed: New geometry makes partition unaligned

Cause

This is a know issue that only happens when trying to resize a lun and the cylinder counts goes over 65K, with is the maximum amount allowed for the VTOC in Solaris.

For VxVM CDS disk, when a disk resize is attempted, VXVM tries to retain the *old* cylinder_size (sectors_per_track * tracks_per_cylinder) to keep the partition size aligned with cylinder size. In case the number of cylinders are exceeding the Solaris VTOC limit based on the new disk geometry and to keep the old cylinder_size intact, VxVM is not able to adjust the cylinder size and using the new cylinder size.

With the new cylinder size, the old partition (partition 7) is not aligned and hence vxdisk resize is failing with error “New geometry makes partition unaligned”.

--> Excerpt of vxconfigd debug:

09/29 18:40:30: VxVM vxconfigd DEBUG V-5-1-6340 disk_size=775843110, use_size=775843110
09/29 18:40:30: VxVM vxconfigd DEBUG V-5-1-23538 disk_s2: Partition 0, start = 0, size = 0, cyl_size = 0
09/29 18:40:30: VxVM vxconfigd DEBUG V-5-1-23538 disk_s2: Partition 1, start = 0, size = 0, cyl_size = 0
09/29 18:40:30: VxVM vxconfigd DEBUG V-5-1-23538 disk_s2: Partition 2, start = 0, size = 0, cyl_size = 670402590
09/29 18:40:30: VxVM vxconfigd DEBUG V-5-1-23538 disk_s2: Partition 3, start = 0, size = 0, cyl_size = 0
09/29 18:40:30: VxVM vxconfigd DEBUG V-5-1-23538 disk_s2: Partition 4, start = 0, size = 0, cyl_size = 0
09/29 18:40:30: VxVM vxconfigd DEBUG V-5-1-23538 disk_s2: Partition 5, start = 0, size = 0, cyl_size = 0
09/29 18:40:30: VxVM vxconfigd DEBUG V-5-1-23538 disk_s2: Partition 6, start = 0, size = 0, cyl_size = 0
09/29 18:40:30: VxVM vxconfigd DEBUG V-5-1-23538 disk_s2: Partition 7, start = 0, size = 0, cyl_size = 670402590
09/29 18:40:30: VxVM vxconfigd DEBUG V-5-1-23537 disk_s2: Partition 7 is now unaligned;start = 0, size = 0, cyl_size = 670402590 <-------------------------

Resolution

As per etrack 2525333, this issue is solved in 5.1 SP1 RP2 P1


Issue/Introduction

Resizing a lun that shows 65K cylinders in the vtoc fails as it makes partition unaligned.

bash-2.05$ cat prtvtoc_disk_s2
* /dev/rdsk/disk_s2 partition map
*
* Dimensions:
* 512 bytes/sector
* 682 sectors/track
* 15 tracks/cylinder
* 10230 sectors/cylinder
* 65535 cylinders <<<<<----------------------------------
* 65533 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
2 5 01 0 670402590 670402589
7 15 01 0 670402590 670402589