From: Edward Middleton <edward@nikon-sys.co.jp>
To: gentoo-amd64@lists.gentoo.org
Subject: [gentoo-amd64] Re: Root on Raid and LVM - Solved
Date: Wed, 02 Nov 2005 11:46:05 +0900 [thread overview]
Message-ID: <4368286D.90909@nikon-sys.co.jp> (raw)
>You didn't mention what package that belonged to, or what version you have
>merged. However, I checked here and it looks as the patch says the
>original does, and here's what I have:
The latest stable lvm2-2.01.09 but as you said latter they all use the
same script.
>It appears most aren't running into this bug,
>yet the number of bugs suggests there's a fair number of users.
This bug will only effect users of root on lvm2 users
>However, this appears to depend on which /dev entry is listed in fstab to
>be mounted.
Thats what I thought but it doesn't. lvdisplay which is used to get the
list of drives allways seems to get the symbolic link(using
sys-fs/lvm2-2.01.09). mount allways seems to get the actual device
(using sys-apps/util-linux-2.12r).
>Anyway, I'd certainly recommend filing the bug.
I added it to the end of this bug which seemed relivant.
http://bugs.gentoo.org/show_bug.cgi?id=57229
I also updated the patch so it should work with /usr folders on lvm2 and
error message will show link no actual device name
--- /lib/rcscripts/addons/lvm-stop.sh.orig 2005-11-01 19:07:25.000000000 +0900
+++ /lib/rcscripts/addons/lvm-stop.sh 2005-11-02 20:35:05.000000000 +0900
@@ -46,7 +46,10 @@
then
ROOT_DEVICE=`mount|grep " / "|awk '{print $1}'`
- if [ ! ${ROOT_DEVICE} = ${x} ]
+ MOUNTED_DEVICE=${x}
+ [ -L ${ROOT_DEVICE} ] && ROOT_DEVICE="`/bin/readlink ${ROOT_DEVICE}`"
+ [ -L ${x} ] && MOUNTED_DEVICE="`/bin/readlink ${x}`"
+ if [ ! ${ROOT_DEVICE} = ${MOUNTED_DEVICE} ]
then
ewarn " Unable to shutdown: ${x} "
fi
--
gentoo-amd64@gentoo.org mailing list
next reply other threads:[~2005-11-02 2:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-02 2:46 Edward Middleton [this message]
2005-11-08 12:43 ` [gentoo-amd64] Re: Root on Raid and LVM - Solved Duncan
-- strict thread matches above, loose matches on Subject: below --
2005-11-10 2:14 Edward Middleton
2005-11-19 1:19 ` Duncan
2005-10-31 7:46 Edward Middleton
2005-10-31 8:58 ` Duncan
2005-11-01 1:53 ` Edward Middleton
2005-11-01 12:41 ` Duncan
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=4368286D.90909@nikon-sys.co.jp \
--to=edward@nikon-sys.co.jp \
--cc=gentoo-amd64@lists.gentoo.org \
/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