SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


Sidebar

Sponsor:

Would you like to sponsor this site?
Or buy me a beer?:


Recently Changed Pages:

View All Pages
View All Q Pages


View All Tags


Sign up for Q to post comments.





WIKI Disclaimer: As with most other things on the Internet, the content on this wiki is not supported. It was contributed by me and is published “as is”. It has worked for me, and might work for you.
Also note that any view or statement expressed anywhere on this site are strictly mine and not the opinions or views of my employer.


Terms And Conditions for Q users


Pages with comments

PageDateDiscussionTags
2019/03/15 16:02 1 Comment
2019/03/15 16:02 1 Comment
2019/03/15 16:02 3 Comments
2017/04/20 16:35 1 Comment
2017/04/20 15:28 1 Comment
2017/04/20 15:23 1 Comment
2017/04/19 14:44 1 Comment
2017/04/17 20:10 1 Comment
2017/04/17 20:07 1 Comment
2017/04/17 19:58 1 Comment
2017/04/17 19:52 1 Comment

View All Comments

redhatalignment

Red Hat LUN Alignment

Red Hat Enterprise Linux 6 should align it's disk correctly to the underlying LUNs but to make sure you should always check:

First, check which partitions are seen by the kernel:

[root@redhatbox ~]# cat /proc/partitions
major minor  #blocks  name

   8        0   20971520 sda
   8        1     204800 sda1
   8        2   20765696 sda2
 253        0    2097152 dm-0
 253        1    5242880 dm-1
 253        2    5242880 dm-2
 253        3    5242880 dm-3
 253        4    2097152 dm-4

Then, check whether the partitions are aligned or not:

[root@redhatbox ~]# fdisk -lu /dev/sda

Disk /dev/sda: 21.5 GB, 21474836480 bytes
64 heads, 32 sectors/track, 20480 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c0750

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      411647      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2          411648    41943039    20765696   8e  Linux LVM
Partition 2 does not end on cylinder boundary.

The start sector should be cleanly divisible by 8, if so they are aligned. This counts for all partitions, not just the first one. Both starting sectors are, do the VM is aligned.

You could leave a comment if you were logged in.
redhatalignment.txt · Last modified: 2013/04/20 13:21 by sjoerd