[CentOS] ext4, 4k sector alignment

Mon Jul 25 21:44:31 UTC 2011
Les Mikesell <lesmikesell at gmail.com>

On 7/25/2011 4:26 PM, John R Pierce wrote:
> On 07/25/11 2:17 PM, Les Mikesell wrote:
>> The disk I want to add is the same size as the existing disks if
>> expressed in 512 byte sectors - and they have one partition taking all
>> of the disk space.  If I add a leading offset to get the 4k alignment,
>> there won't be enough room for the existing partition size.
>
> you sure its that tight?    different brand and model 1TB (or whatever)
> drives vary all over the place in actual size.   generally newer ones
> are a hair bigger than older ones.  you need at most 7 sectors to
> achieve 4 kilobyte alignment.

The full sized disks are Seagates:

Host: scsi7 Channel: 00 Id: 00 Lun: 00
   Vendor: ATA      Model: ST3750640NS      Rev: 3.AE
and fdisk sees this:
Disk /dev/sdh: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes


The 2.5" ones are WD's:
Host: scsi9 Channel: 00 Id: 00 Lun: 00
   Vendor: ATA      Model: WDC WD7500BPVT-0 Rev: 01.0
   Type:   Direct-Access                    ANSI SCSI revision: 05
fdisk:
Disk /dev/sdi: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Don't see any extra space there unless you can shift the partition start 
forwards.


There's a very new 1 TB drive that might fit in the swappable bays (a 
cute little thing that fits 2 in a floppy drive space), but when I got 
these 750Gb was as large as you could go without adding extra height.

-- 
   Les Mikesell
    lesmikesell at gmail.com