VxVM vxdisk ERROR V-5-1-8643 Device disk_s2: resize failed: New geometry makes partition unaligned
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 <-------------------------
As per etrack 2525333, this issue is solved in 5.1 SP1 RP2 P1