public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] Re: Root on Raid and LVM - Solved
@ 2005-10-31  7:46 Edward Middleton
  2005-10-31  8:58 ` Duncan
  2005-11-01  1:53 ` Edward Middleton
  0 siblings, 2 replies; 8+ messages in thread
From: Edward Middleton @ 2005-10-31  7:46 UTC (permalink / raw
  To: gentoo-amd64

>Only one issue now, and that is that upon shutdown, Gentoo cannot stop
>/dev/md5 because it is in use.
>Is there a fix for this? Perhaps in the order of the shutdown?

hi Chris,

Did you work out how to fix this.  I am having exactly the same
problem.  I understand why it is happening (the root partition is still
in use), but presumably there is some way of getting around this.

Edward

-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread
* [gentoo-amd64] Re: Root on Raid and LVM - Solved
@ 2005-11-02  2:46 Edward Middleton
  2005-11-08 12:43 ` Duncan
  0 siblings, 1 reply; 8+ messages in thread
From: Edward Middleton @ 2005-11-02  2:46 UTC (permalink / raw
  To: gentoo-amd64

>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



^ permalink raw reply	[flat|nested] 8+ messages in thread
* [gentoo-amd64] Re: Root on Raid and LVM - Solved
@ 2005-11-10  2:14 Edward Middleton
  2005-11-19  1:19 ` Duncan
  0 siblings, 1 reply; 8+ messages in thread
From: Edward Middleton @ 2005-11-10  2:14 UTC (permalink / raw
  To: gentoo-amd64

>Anyway... it was quite cool to realize the 2.6 kernel handles partitioned
>raid, now, and with direct boot-time kernel raid assembly, I could run
>root on raid6 without an initrd/initramfs!
That is pretty cool that you recognize a partitioned raid at boot.

>As I was dreading the
>complexity of an initrd solution, I grabbed the opportunity to avoid it
>and still have a raid-backed root, when I saw it!

The initrd part of setup is easy if you use genkernel.  The only issue I
had was using an out of kernel driver but that can be handled by the
--callback="emerge driver name" and adding the driver to
/usr/share/genkernel/x86_64/modules_load
You will also need to set lvmraid=[raid device] real_root=[lvm device]
on your kernel line in /boot/grub/menu.lst

> So, no root on LVM here!
The reason for lvm root is that you can resize the root partition.  It
is also trivial to setup a secondary rescue root partition in case you
mess up your system.

Edward
-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-11-19  1:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-31  7:46 [gentoo-amd64] Re: Root on Raid and LVM - Solved Edward Middleton
2005-10-31  8:58 ` Duncan
2005-11-01  1:53 ` Edward Middleton
2005-11-01 12:41   ` Duncan
  -- strict thread matches above, loose matches on Subject: below --
2005-11-02  2:46 Edward Middleton
2005-11-08 12:43 ` Duncan
2005-11-10  2:14 Edward Middleton
2005-11-19  1:19 ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox