[Tfug] root on lvm on raid shutdown problem
Glenn Shannon
warlockgcs at cox.net
Fri Jun 4 07:15:29 MST 2004
What I would suggest doing (for debug purposes) is putting in a line in the
halt script, right before root is mounted read-only, that reads:
lsof >/lsof.txt
Then doing a halt.
This will let you know exactly what is open on the partitions when you are
trying to remount them read-only/unmount them.
I am not sure in whatever flavor of linux you're using where to put this
line (I converted over to gentoo a while back) but I can get it installed on
one of my test machines and figure it out if you like.
Just let me know which version of what distribution. I like solving puzzles
:)
-----Original Message-----
From: tfug-bounces at tfug.org [mailto:tfug-bounces at tfug.org] On Behalf Of John
Gruenenfelder
Sent: Friday, June 04, 2004 12:55 AM
To: Tucson Free UNIX Group
Subject: [Tfug] root on lvm on raid shutdown problem
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
_______________________________________________
tfug mailing list
tfug at tfug.org
https://www.tfug.org/mailman/listinfo/tfug
More information about the tfug
mailing list