From: "Stuart D. Gathman" <stuart@bmsi.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] does alignment work out of the box now
Date: Thu, 1 Jul 2010 13:34:28 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.64.1007011327340.6231@bmsred.bmsi.com> (raw)
In-Reply-To: <442999.79921.qm@web120412.mail.ne1.yahoo.com>
On Wed, 30 Jun 2010, Philippe Cerfon wrote:
> g) There are some howtos which say one should create PVs on partitions
> rather than whole devices, while other say it's fully ok to have them
> directly on the device.
> But I think this must also have an impact on all the alignment as I
> have 63 more 512 sectors, right? So how should I best do this?
>
> I read $ cat /sys/block/sda/sda1/alignment_offset
> 0
> which I don't understand. I thought having the 63 sectors partition
> table in the beginning should destroy the alignment?
I can answer this one. Using no partition table makes alignment
slightly easier, but is dangerous if the disk is ever seen by another
OS - which may think it is unformatted and do something nasty. On
the other hand, the partition types LVM and RAID simplify reliable
booting (especially for software RAID).
When using a parition table, it must be created with a size that doesn't
destroy alignment - e.g. 128 or 256 sectors. This is a lot of wasted space
for the useful byte (the partition type), but is trivial compared to
disk sizes these days, and lets other Wintel OSes know there is data
on the disk.
My rule of thumb is that I skip the partition table for permanent local
LVM drives unless the drive also contains software RAID or a /boot partition.
--
Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
next prev parent reply other threads:[~2010-07-01 17:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-30 20:41 [linux-lvm] does alignment work out of the box now Philippe Cerfon
2010-07-01 17:34 ` Stuart D. Gathman [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-06-22 12:38 Philippe Cerfon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.1007011327340.6231@bmsred.bmsi.com \
--to=stuart@bmsi.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).