From: Michael Tokarev <mjt@tls.msk.ru>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Can't pvcreate second partition...
Date: Mon, 07 May 2001 13:40:37 +0400 [thread overview]
Message-ID: <3AF66D95.9440B97E@tls.msk.ru> (raw)
In-Reply-To: 20010506173613.78224.qmail@web10805.mail.yahoo.com
Darren Young wrote:
>
> Funny, I had the same issue at the same time. I
> created /dev/hdb7 with fdisk and then a pvcreate just
> after. pvcreate stated that the dev didn't exist.
> Reboot fixed the problem. This could be a problem for
> machines already up in production with small windows
> for restarts. Why is this necessary and will it become
> a "non-issue" in future releases? If this will be
> necessary forever, then some simple planning would
> solve the problem, at least on new installations. Any
> way around this?
Linux kernel NOT rereads partition table of a BUSY disk.
If you mount at least one filesystem from it, or used
a swap space on it, or opened /dev/[hs]d* device etc etc,
disk will be marked as busy. Well, linux kernel never
*rereads* disk partition, it reads them on a first disk
usage, when usage count increases from 0 to 1 (this is
shown on console when you first access a disk -- kernel
reports disk's geometry etc). And "forgots" about a disk
(but still showing it in /proc/partitions) when it's usage
becomes zero again. This is a long-standing issue that
will not be fixed in a near future. Probably IBM's LVMS
will have some infrastructure to address this, but I'm
not shure. To "fix" this, *significant* block layer
changes should be made, and all filesystems should be
prepared to handle partition table change at run time.
And there is nothing LVM or any other component can do
here.
[]
> An off topic question, but I think this is the best
> place to start. How could one build "network logical
> volumes"? Let's say I have 5 machines running LVM and
[...]
You can look to various nbd (Network Block Device)
implementations, and build a softraid on top of them.
For NBDs, look to links at linux-ha.org site.
Regards,
Michael.
next prev parent reply other threads:[~2001-05-07 9:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-06 17:36 [linux-lvm] Can't pvcreate second partition Darren Young
2001-05-07 4:11 ` AJ Lewis
2001-05-07 9:40 ` Michael Tokarev [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-05-07 23:14 Diehl, Jeffrey
2001-05-08 3:23 ` Darren Young
2001-05-07 22:13 Diehl, Jeffrey
2001-05-07 23:08 ` AJ Lewis
2001-05-07 23:16 ` Glenn Shannon
2001-05-07 22:12 Diehl, Jeffrey
2001-05-04 21:48 Diehl, Jeffrey
2001-05-04 23:13 ` Glenn Shannon
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=3AF66D95.9440B97E@tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=linux-lvm@sistina.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.