• 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.
    
    This entry was posted on Monday, June 9th, 2008 at 4:50 pm and is filed under Data and Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 0 Comments

    Take a look at some of the responses we've had to this article.

  • Leave a Reply

    Let us know what you thought.

  • Name (required):

    Email (required):

    Website:

    Message:

Visitors have tagged this post: linux disk alignment (61) - disk alignment linux (61) - CLARiiON (34) - Clariion linux (33) - linux partition alignment (29) - linux align partition (28) - partition alignment linux (27) - Linux Clariion (26) - Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) (25) - linux partition offset (22) - emc clariion linux (21) - linux fdisk alignment (21) - invalid flag 0x0000 of partition table (20) - fdisk partition alignment (19) - clariion lun (18) - linux disk offset (17) - align partition linux (17) - clariion maximum LUN size (17) - invalid flag 0x0000 of partition table 4 will be corrected by w(rite) (17) - fdisk offset (17) - fdisk align (14) - alignment offset linux (13) - Disk /dev/emcpowera doesn't contain a valid partition table (12) - fdisk align partition (12) - invalid flag 0x0000 of partition table 4 (12) - fdisk Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) (12) - clariion partition alignment (11) - t (10) - linux offset (10) - disk /dev/emcpower doesn\'t contain a valid partition table (10) - Clariion max lun size (9) - clarion linux (9) - linux fdisk align (9) - Warning: invalid flag 0x0000 of partition table 5 will be corrected by w(rite) (9) - disk alignment in LINUX (8) - maximum lun size clariion (8) - clariion element size (8) - fdisk alignment (8) - EMC partition ALIGNMent (8) - linux on emc clariion (8) - invalid flag 0x0000 (7) - Warning: invalid flag 0x0000 of partition table will be corrected by w(rite) (7) - linux offset alignment (7) - fdisk emcpowera (7) - linux emc clariion (7) - Disk /dev/emcpowera doesn\'t contain a valid partition table (7) - linux clariion alignment offset (6) - clariion scripts (6) - fdisk invalid flag 0x0000 of partition table 4 (6) - partition offset linux (6) - fdisk align linux (6) - linux alignment offset (6) - Warning: invalid flag 0x0000 of partition table (6) - alignment linux (6) - maximum lun size linux (6) - fdisk partition align (6) - LUN in Linux (5) - CLARiiON stripe size (5) - solaris partition alignment (5) - Linux fdisk offset (5) - sector alignment linux (5) - aligning linux partitions (5) - emc linux offset (5) - linux fdisk SAN (5) - max LUN size clariion (5) - clariion create lun (5) - invalid flag 0x0000 of partition (5) - fdisk alignment offset (5) - invalid flag 0x0000 of partition table 4 will be corrected by (5) - invalid flag 0x0000 of partition table 5 will be corrected by w(rite) (5) - linux max lun size (5) - Linux Clariion alignment (5) - align linux partition (5) - linux partition align (5) - Warning: invalid flag 0x0000 of partition table 4 will be corrected by (5) - emc disk on linux (5) - Partition alignment fdisk (5) - solaris disk alignment (5) - linux emc lun offset (5) - RHEL5 max LUN size (5) - redhat emc clariion alignment (5) - partition alignment (4) - partition alignment linux fdisk (4) - creating linux partitions (4) - invalid flag 0x0000 of partition table 4 will be corrected (4) - linux partition alignment fdisk (4) - creating solaris partitions for clariion (4) - steps to understand creating the partition in linux (4) - emc linux fdisk (4) - emc linux clariion (4) - emc lun linux (4) - linux partition flags (4) - partitions are offset by 128 sectors (4) - linux sector alignment (4) - linux clariion offset (4) - linux align partition emc (4) - align partition (4) - RHEL 5 MAX LUN SIZE (4) - stripe element size clariion (4) - linux fdisk align partitions (4) - linux fdisk lun (4) - fdisk linux alignment (4) - linux disk alignment emc (4) - Clariion lun offset linux (4) - align linux partitions (4) - emc alignment offset (4) - align linux disk (4) - ELEMENT size clariion (4) - LUN Alignment ESX Linux RHEL (4) - Clariion linux offset (4) - linux fdisk partition align (4) - LINUX on clariion (4) - linux align disk (4) - solaris align partitions EMC (4) - clariion 63 sectors (4) - linux alignment fdisk (4) - linux filesystem alignment (4) - linux alignment clariion (4) - EMC disk fdisk best practices (3) - Linux, lun, multiple partitions (3) - alignment linux disk (3) - fdisk offset linux (3) - linux emc disk offset (3) - warning invalid flag 0x0000 of partition table (3) - linux create partition (3) - clariion on linux (3) - disk align linux (3) - fdisk offset 128 (3) - fdisk emc linux (3) - RHEL maximum LUN size (3) - linux emc commands (3) - offset alignment linux (3) - Warning: invalid flag 0x0000 of partition table 4 will be corrected (3) - create partitions in linux (3) - linux emc disk (3) - disk offset linux (3) - linux /dev/emcpowera (3) - linux partition best practices (3) - create an off set with fdisk (3) - linux disk alignment Offset (3) - linux emc lun (3) - fdisk linux offset (3) - clariion linux howto (3) - invalid flag 0x0000 of partition table 4 will be corrected by w (3) - linux clariion lun offsets (3) - fdisk invalid flag 0x0000 of partition table (3) - disk alignment linux fdisk (3) - Clariion linux commands (3) - create linux partitions (3) - EMC clariion commands (3) -