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): CLARiiON (10) - t (10) - clariion maximum LUN size (8) - fdisk partition alignment (7) - linux clariion alignment offset (6) - partitions are offset by 128 sectors (4) - steps to understand creating the partition in linux (4) - Clariion linux (3) - emc lun linux (3) - invalid flag 0x0000 (3) - disk alignment linux (3) - partition alignment linux (3) - Linux, lun, multiple partitions (3) - EMC disk fdisk best practices (3) - linux offset alignment (3) - clariion element size (3) - fdisk alignment offset (3) - creating solaris partitions for clariion (3) - alignment offset linux (3) - emc linux offset (3) - linux offset (3) - Linux Clariion alignment (3) - Warning: invalid flag 0x0000 of partition table will be corrected by w(rite) (3) - Disk /dev/emcpowera doesn't contain a valid partition table (3) - offset alignment linux (3) - command to check status of LUN in linux (2) - invalid flag 0x0000 of partition table 4 will be corrected by (2) - emc linux fdisk (2) - linux disk offset (2) - sun disk partition best pratic (2) - fdisk -l /dev/emcpowera (2) - fdisk align (2) - warning invalid flag 0x0000 of partition table (2) - creating emc clarion partition in linux (2) - linux emc disk offset (2) - how to check linux partitions (2) - linux disk allignment clariion (2) - create partition offset (2) - linux fdisk label (2) - san stripe offset (2) - script to remove partition in linux (2) - emcpowera extend (2) - linux SAN partition LUN fdisk (2) - linux clariion disk alignment (2) - problem creating partition on lun (2) - emc max lun size clarion (2) - esx emc element size recommendation (2) - Boot record location on EMC LUN (2) - fdisk invalid flag 0x0000 of partition table 4 (2) - linux create partition (2) - EMC best practices disk alignment (2) - offset alignment linux disk (2) - emc clariion linux drivers (2) - best size of linux partitions (2) - emc linux reread partition (2) - howto clarion storage linux (2) - EMC alignment problems with Linux (2) - invalid flag fdisk (2) - present san storage to linux emc (2) - Linux Clariion (2) - fdisk linux on SAN partition (2) - emc san new partition linux (2) - align partition linux (2) - disk align linux (2) - CLARiiON stripe size (2) - disk alignment in LINUX (2) - fdisk invalid flag partition table will be corrected by w(rite) (2) - clariion linux adding disk (2) - creating filesystems on rhel4 for emc san (2) - clariion create lun (2) - emc solaris disk off set (2) - emc clariion linux (2) - linux command to check partitions (2) - offset linux emc (2) - EMC Clarion (2) - RHEL maximum LUN size (2) - adding disk linux clariion (2) - linux remove clariion lun (2) - partition offset linux (2) - linux check availability emc san (2) - how to create partition in linux (1) - emc alignment disk (1) - calriion disk (1) - offset esx clariion alignment (1) - script to determine LUN size (1) - emc create linux partition (1) - create partition primary offset (1) - emc create partition (1) - check linux disk offset (1) - max lun size in vmware esx (1) - emc linux clariion (1) - linux adding san storage fdisk (1) - clarion san howto (1) - checking LUN number linux (1) - EMC partition ALIGNMent (1) - partition alignment stripe (1) - /sbin/fdisk /dev/emcpowera (1) - rhel4 maximum partition size (1) - san maximum lun size (1) - lun partition (1) - emc boot off san linux (1) - creating an ESX partition using fdisk (1) - rhel disk metadata (1) - emc clariion boot from san best practices (1) - fdisk invalid flag 0x0000 of partition 4 (1) - check san size linux (1) - how to make 3 partitions linux (1) - warning invalid flag partition corrected (1) - offset linux (1) - fdisk emc linux (1) - san disk alignment (1) - san disk alignment clariion (1) - linux invalid flag of partition table 4 (1) - linux emc commands (1) - Disk emcpowera doesn't contain a valid partition table (1) - Aligning a Linux partition (1) - Clariion max lun size (1) - linux disk alignment clariion (1) - EMC Linux alignment partitions (1) - how to set offset to align a disk partition (1) - lilo 128k alignment (1) - vmware esx create partition linux (1) - linux fdisk new beginning of data 63 default (1) - linux boot record disk alignment (1) - emc fdisk (1) - san alignment offset (1) - fdisk offset 128 (1) - Linux fibre 64k (1) - Partition Offset (1) - linux fdisk remove sun disc label (1) - linux emc partition alignment (1) - align partition with fdisk (1) - solaris disk alignment offset emc (1) - fdisk align partition (1) - linux EMC howto (1) - check partitions linux (1) - linux how to create partition (1) - recommended primary size linux (1) - RHEL4 fdisk LUN (1) - EMC Clarion align (1) - invalid flag 0x0000 of partition table 4 will be corrected by w(rite) (1) - partition alignment stripe size (1) - invalid flag 0x0000 of partition (1) - adding emc lun to linux (1) - linux fdisk script create partitions (1) - partition offset check (1) - EMC clariion stripe size (1) - linux offset alignement (1) - partition of luns in linux (1) - fdisk Disk /dev/emcpowera doesn't contain a valid partition table (1) -