- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Do I need to do any disk alignment when not us...
Operating System - Linux
1819621
Members
3357
Online
109604
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2011 10:59 AM
тАО04-18-2011 10:59 AM
Assuming that we don't partition disks before presenting them to LVM for use (essentially just using pvcreate on them and then vgcreating or vgextending onto them) is there any additional disk "aligning" I should be doing?
Assumptions:
SuSE 11
EMC VMAX disk with proper director flags set
PowerPath
It is my understanding that the requirement for partition alignment is from leftover legacy BIOS parameters. If we're not using fdisk or partitions on the disks is there still a need to do any disk alignment? Does the pvcreate process and LVM remove the need for this?
If there is I guess my next question would be what steps should be taken to perform this alignment? I see plenty of information on the web about aligning partitions but I haven't found anything about disk alignment when not using partitions and using whole disks.
Thanks in advance!
Tim
Assumptions:
SuSE 11
EMC VMAX disk with proper director flags set
PowerPath
It is my understanding that the requirement for partition alignment is from leftover legacy BIOS parameters. If we're not using fdisk or partitions on the disks is there still a need to do any disk alignment? Does the pvcreate process and LVM remove the need for this?
If there is I guess my next question would be what steps should be taken to perform this alignment? I see plenty of information on the web about aligning partitions but I haven't found anything about disk alignment when not using partitions and using whole disks.
Thanks in advance!
Tim
Hey! Who turned out the lights!
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2011 11:19 PM
тАО04-18-2011 11:19 PM
Solution
If your storage requires alignment to 64k or less, LVM provides it to you by default: the first physical extent will be placed at 192 kiB (= 3*64) from the beginning of the PV. But if you need to align to multiples of 128 or larger, you'll need to add an option to pvcreate.
(This information is included in at least two or three latest releases of EMC Connectivity Guide for Linux.)
To view the alignment used by LVM, run "pvs -o +pe_start". The "1st PE" column will specify the location of the first physical extent relative to the beginning of the PE, and thus your alignment.
Newer versions of the LVM tools include the --dataalignment option for pvcreate, which allows you to solve this easily.
For example:
pvcreate --dataalignment 256k /dev/sdXX
If the pvcreate command of your distribution does not have the --dataalignment option, you can achieve the same effect using the --metadatasize option, but you may need a bit of trial and error: for example, to get the first extent to 256k alignment, you should use "--metadatasize 192k".
MK
(This information is included in at least two or three latest releases of EMC Connectivity Guide for Linux.)
To view the alignment used by LVM, run "pvs -o +pe_start". The "1st PE" column will specify the location of the first physical extent relative to the beginning of the PE, and thus your alignment.
Newer versions of the LVM tools include the --dataalignment option for pvcreate, which allows you to solve this easily.
For example:
pvcreate --dataalignment 256k /dev/sdXX
If the pvcreate command of your distribution does not have the --dataalignment option, you can achieve the same effect using the --metadatasize option, but you may need a bit of trial and error: for example, to get the first extent to 256k alignment, you should use "--metadatasize 192k".
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2011 05:40 AM
тАО04-19-2011 05:40 AM
Re: Do I need to do any disk alignment when not using partitions
Matti,
Your answer is a perfect example of why these forums are so awesome.
Thanks!
Tim
Your answer is a perfect example of why these forums are so awesome.
Thanks!
Tim
Hey! Who turned out the lights!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP