From: Paul Raines <raines@nmr.mgh.harvard.edu>
To: Sander Steffann <s.steffann@computel.nl>
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] LVM2, NFS and random device (major:minor) numbers
Date: Fri, 14 Apr 2006 17:36:52 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.62.0604141722240.4454@gate.nmr.mgh.harvard.edu> (raw)
In-Reply-To: <000801c66005$979d28c0$64c8a8c0@balefirehome>
On Fri, 14 Apr 2006, Sander Steffann wrote:
>> NFS depends on what the server says the underlying device id is of the
>> exported volume and if that changes, then NFS mounts are going to change
>> out from under themselves. And everytime I add a volume and reboot the
>> device ids change.
>
> Unfortunate, but true. One of the side-effects of having dynamic volumes.
> Also note that you would get similar trouble if, for example, you added a
> SCSI device with a lower SCSI-id than an existing SCSI device. /dev/sdb1
> would become /dev/sdc1, etc.
True, but that is a lot more obvious to an admin when it happens because
the ARE adding a new device to the system. Also, ironically, lvm1 actually
protected a user from having the device id change on them due to just
adding a new disk. In fact making such physical device issues not a factor
seems to be a feature of LVM the way PVs have unique UUIDs
>> I finally come upon this old post to this list:
>> http://www.redhat.com/archives/linux-lvm/2005-May/msg00029.html
>
> The part that can solve everything for you is:
>>> These days, that's configurable.
>>> See 'man exports' fsid=num.
>
> With an explicit fsid=n for every export, you tell the NFS server to ignore
> the device-id, and use the specified fsid instead. That way you get
> consistent NFS exports, without being dependent on the underlying
> device-ids.
>
I have reasons besides NFS I need the device id to be persistant.
So I want to use the -My option and would like to know if it is safe
to do on volumes in use.
> I have had the same trouble as you have, and this solution works great.
I think this speaks poorly of LVM2 that this issue which is such a big
change from LVM1 (which was explictly patched at one point to "fix" this
changing device ID issue) is not more well documented. Sure, docs about
LVM2 do say the big change is the use of the device-mapper. But the final
implications of this difference such as this NFS fsid issue are by no means
obvious.
One thing I don't understand about not being able to set the major number
in the 2.6 kernel is that since 253 will be the major number for all
volumes, then is 256 the maximum number of LVM volumes one can have on a
single system? Or will the major number increment to 254 randomly
and there is no way to control it?
next prev parent reply other threads:[~2006-04-14 21:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-14 14:08 [linux-lvm] LVM2, NFS and random device (major:minor) numbers Paul Raines
2006-04-14 14:50 ` Alasdair G Kergon
2006-04-14 21:22 ` Paul Raines
2006-04-14 21:32 ` Alasdair G Kergon
2006-04-14 20:54 ` Sander Steffann
2006-04-14 21:36 ` Paul Raines [this message]
2006-04-19 15:44 ` [linux-lvm] " Paul Raines
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.62.0604141722240.4454@gate.nmr.mgh.harvard.edu \
--to=raines@nmr.mgh.harvard.edu \
--cc=linux-lvm@redhat.com \
--cc=s.steffann@computel.nl \
/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).