Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-amd64
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-amd64@g.o
From: Edward Middleton <edward@...>
Subject: Re: Root on Raid and LVM - Solved
Date: Wed, 02 Nov 2005 11:46:05 +0900
>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@g.o mailing list


Replies:
Re: Root on Raid and LVM - Solved
-- Duncan
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Root on Raid and LVM - Solved
Next by thread:
Re: Root on Raid and LVM - Solved
Previous by date:
Re: emerge kde problems
Next by date:
Re: Re: Re: libungif and giflib conflict.


Updated Jun 17, 2009

Summary: Archive of the gentoo-amd64 mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.