LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 08-01-2012, 08:05 PM   #1
x3nn3x
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Rep: Reputation: 0
Question LVM and disk alignment questions.


Hi All,

So, I'm running RHEL 5.x (physical) and I have a few questions that I hope you can help me with.

Is it true that if I set /etc/lvm/lvm.conf : data_alignment_detection to '1', the LVM partition will automagically align itself on my pv even if the pv is misaligned?
As I have a number of servers that are using LVM for all partitions.
(RHEL 6, I believe, aligns all partitions to a number divisible by 8, is this correct?)

Another thing... Is it possible that anyone knows of, if I can realign the root partition on the fly? Or is the only way to boot into a live disc and realign from there? (physical and, or, virtual)

Thanks for your assistance, and I appreciate it a LOT.

X3N.
 
Old 08-15-2012, 08:28 PM   #2
ferricoxide
LQ Newbie
 
Registered: Nov 2010
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by x3nn3x View Post
Hi All,

So, I'm running RHEL 5.x (physical) and I have a few questions that I hope you can help me with.

Is it true that if I set /etc/lvm/lvm.conf : data_alignment_detection to '1', the LVM partition will automagically align itself on my pv even if the pv is misaligned?
As I have a number of servers that are using LVM for all partitions.
(RHEL 6, I believe, aligns all partitions to a number divisible by 8, is this correct?)
Going through RedHat's documentation, you probably need to be running RHEL 5.8 (in which case, the is the default behavior is similar/identical to RHEL 6's).
Quote:
Originally Posted by x3nn3x View Post
Another thing... Is it possible that anyone knows of, if I can realign the root partition on the fly? Or is the only way to boot into a live disc and realign from there? (physical and, or, virtual)
I'm pretty sure you'd crash the machine for much the same reason that if you do a mbralign (or similar) after building on an unaligned disk you have to do a rescue-boot: you're making all of the currently mapped pointers and indexes invalid. Bout the only "on the fly" method I can think of would be to add an already-aligned PV to the root volume group, mirror your volumes onto the new PV and detach the original PV from the root volume group. You'd need to also make sure that GRUB knew where to find the boot-info post-reboot.
 
  


Reply

Tags
lvm, partioning, red hat, redhat, rhel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] there is a disk alignment in my Dell Utility partition nerdinator Linux - Newbie 3 07-06-2012 02:46 AM
SSD Partitions alignment on not-empty disk mira.mikes Linux - Hardware 2 01-21-2011 09:57 PM
Adding an LVM hard disk to a system already running/using LVM firewiz87 Linux - Hardware 5 08-15-2010 12:59 AM
Mounting LVM Disk to non-LVM disk gak_92 Linux - Hardware 1 08-07-2009 03:34 AM
lvm disk fail and upgrade questions fbenites Linux - General 0 08-04-2006 10:48 AM


All times are GMT -5. The time now is 04:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration