[Tfug] root on lvm on raid shutdown problem

John Gruenenfelder johng at bach.as.arizona.edu
Fri Jun 4 00:54:58 MST 2004


I know this isn't the most common configuration, but that's how I setup my
fileserver.  By following the HOWTO it wasn't TOO difficult, save for creating
a proper initial ramdisk.

My problem is that when I shutdown/reboot the machine the RAID array is always
uncleanly stopped and has to be rebuilt on boot.  This occurs because the
logical volume group is not stopping properly.  It doesn't completely stop
because one of the volumes is still in use, presumably the root volume.
Because LVM doesn't stop properly, the RAID device can't stop properly,
leading to the problem.

I suppose that it makes sense that the VG can't be stopped when root is still
mounted, even if only read-only.  How do I overcome this?  The HOWTO doesn't
have anything about this and I haven't been able to find any help so far on
the web.

The best idea I can think of would be to use the same boot time initial
ramdisk to halt the machine.  That would involve using "pivot_root" to make
root the initrd, then unmounting the real root, stopping the LVM, stopping the
RAID, then rebooting.  I think...  If this is indeed the way to go, I'm still
surprised that I can't find any info on this with Google.


-- 
--John Gruenenfelder    Research Assistant, Steward Observatory, U of Arizona
                        johng at as.arizona.edu
Try Weasel Reader for PalmOS  --  http://gutenpalm.sf.net
"This is the most fun I've had without being drenched in the blood
of my enemies!"
        --Sam of Sam & Max


More information about the tfug mailing list