Creating Linux Partitions for CLARiiON
Creating a properly offset slab of disk for Linux systems on your CLARiiON is not just a matter of creating a partition using the default fdisk values. The reason for this is that disk management utilities for Intel based systems generally write 63 sectors of metadata directly at the beginning of the LUN. The addressable space begins immediately after these initial sectors causing the CLARiiON to cross disks, especially when writing larger IO because it doesn’t match up with the stripe element size (usually 64k).
To get around this, you have to align the partition in such a way that it will start writing data on a sector that will mesh up nicely with the stripe element size. In this case, 128. Below is an example of how I create partitions on our CLARiiON for Linux systems. Check out the EMC Best Practices for Fibre Chanel storage white paper for more detail.
/sbin/fdisk /dev/emcpowera
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 39162.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-39162, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-39162, default 39162):
Using default value 39162
Command (m for help): x
Expert command (m for help): b
Partition number (1-4): 1
New beginning of data (63-629137529, default 63): 128
Expert command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Discuss This Article
Post Tags (user submitted): t (10) - linux clariion alignment offset (4) - EMC disk fdisk best practices (3) - emc linux offset (3) - partition alignment linux (3) - Linux, lun, multiple partitions (3) - esx emc element size recommendation (2) - linux disk allignment clariion (2) - clariion linux adding disk (2) - emcpowera extend (2) - linux clariion disk alignment (2) - how to check linux partitions (2) - EMC Clarion (2) - adding disk linux clariion (2) - Boot record location on EMC LUN (2) - linux add space emc disc (1) - Disk /dev/emcpowera doesn't contain a valid partition table (1) - /dev/emcpowera doesn't contain a valid partition table? (1) - maximum lun size clariion (1) - linux clarriion commands (1) - disk best practices for clariion (1) - solaris fdisk partition alignment (1) - manage disk and creating partitions with command linux rhel (1) - solaris OS showing incorrect emc disk size (1) - fdisk expert command for Linux to align data (1) - extend lun linux (1) - Linux EMC CLARiiON best practice (1) - creating partitions on SAN (1) - Linux fdisk offset (1) - aligning linux partitions (1) - disk alignment emc solaris (1) - sector alignment linux (1) - aligning solaris fdisk partitions (1) - linux disk allignment (1) - solaris fdisk to align partitions (1) - Clariion Change LUN Size (1) - linux emc fdisk sector align (1) - How do I make two partitions in Solaris on an EMC drive? (1) - create a valid partition table (1) - linux commands for emc luns (1) - mounting emc lun in linux (1) - how to create stripe luns on linux (1) - emc align extended partitions (1) - fdisk partition alignment (1) - emc alignment offset command for linux (1) - invalid flag 0x0000 of partition table rhel (1) - create partitions with a script linux (1) - linux partition table emc SAN (1) - linux emc fdisk partition alignment (1) - RHEL EMC alignment offset (1) - linux fdisk reports wrong size of SAN disk (1) - linux reread size of disk SAN extend (1) - fdisk linux to add a SAN (1) - emc lun size white paper (1) - linux partitions alignement stipe 64k (1) - creating linux partitions (1) - nor partition size alignment (1) - clariion element size (1) - Linux Clariion (1) - offset alignment lun unix (1) - fdisk command in RHEL 4.0 (1) - align partition sector 128 command (1) - fdisk (1) - CLARiiON adding space on lun linux check extended lun (1) - disk alignment linux (1) - EMC Creating paritions (1) - how to create 2 partitions in linux (1) - Disk /dev/emcpowera doesnt contain a valid partition ta (1) - clariion best practice (1) - linux partitions (1) - linux align only the first partition (1) - partition alignment on emc clariion (1) - emcpowera create (1) - partition alling emc linux (1) - emc clariion creating aligned disk partition (1) - fdisk -lu linux disk alignment (1) - mounting CLARiiON Example (1) - mss (1) - http://www google com/ig (1) - partition alignment (1) - disk partition for EMC (1) - Partition alignment SAN (1) - partition alignment linux fdisk (1) - clariion offset create partition primary align (1) - Warning: invalid flag 0x0000 of partition table 4 will (1) - disk alignment solaris (1) - CLARiiON stripe size (1) - Clariion with linux (1) - disk alignment in LINUX (1) - linux offset fdisk emc (1) - emc clariion linux best practices (1) - clariion partions (1) - EMC stripe element size (1) - offset linux fdisk emc (1) - How to check the Luns size in Linux (1) - booting from EMC Clarion (1) - write sun disk label emc disk (1) - EMC disk Linux (1) - emc lun align linux (1) - emcpowera partitions (1) - create partition primary align linux (1) - emc clariion adding luns linux (1) - solaris fdisk align partition (1) - check align fdisk (1) - creating partitions in a script - linux (1) - linux fdisk clariion (1) - linux stripe element size (1) - rhel disk alignment clariion (1) - extended linux lun (1) - linux not able to read clariion storage partition (1) - emc clariion linux (1) - emc solaris partition alignment (1) - clariion partition alignment (1) - Recommendations for Aligning Linux Partitions in SAN (1) - clariion linux alignment (1) - disks linux emc commands (1) - emc lun offset linux (1) -