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: Tue, 01 Nov 2005 10:53:23 +0900
Duncan wrote

>>Well, normally the root partition /will/ still be in use, so can't be
>>unmounted.  However, it's then mounted read-only, instead, forcing out all
>>cached writes to bring the fs into a consistent state and then allowing no
>>more writes to it after it's mounted read-only.  Thus, the system can
>>still shut down even with it mounted.
>  
>

I gather you mean in this situation the raid doesn't need to be deactivated.


>>The problem here is that for some reason the system apparently isn't
>>recognizing that partition as root, so it's still warning when it can't be
>>unmounted.  As mentioned, it could be an order thing, or it could be that
>>particular raid or lvm config isn't setup correctly in the initscripts, so
>>it's not recognizing them as devices containing filesystems, at all.
>  
>

Going on what you said before the /etc/conf.d/rc variable should be set to RC_VOLUME_ORDER="lvm" if you are using raidlvm.  There is a bug in the /lib/rcscripts/addons/lvm-stop.sh which assumes that mount returns the symbolic link /dev/[volume group]/[logical partition] but it actually returns the actual device /dev/mapper/[volume group]-[logical partition].  The following path patch fixes this.

--- /lib/rcscripts/addons/lvm-stop.sh.orig    2005-11-01 19:07:25.000000000 +0900
+++ /lib/rcscripts/addons/lvm-stop.sh    2005-11-01 19:48:38.000000000 +0900
@@ -46,6 +46,8 @@
         then
            
             ROOT_DEVICE=`mount|grep " / "|awk '{print $1}'`
+            [ -L ${ROOT_DEVICE} ] && ROOT_DEVICE="`readlink ${ROOT_DEVICE}`"
+            [ -L ${x} ] && x="`readlink ${x}`"
             if [ ! ${ROOT_DEVICE} = ${x} ]
             then
                 ewarn "  Unable to shutdown: ${x} "


Edward

-- 
gentoo-amd64@g.o mailing list


Replies:
Re: Root on Raid and LVM - Solved
-- Duncan
References:
Re: Root on Raid and LVM - Solved
-- Edward Middleton
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: MSI Neo2 Platinum woes follow up
Next by date:
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.