On 12/27/06, kelsey hudson <[EMAIL PROTECTED]> wrote:
Carl Lowenstein wrote:
> But if I reboot the system, the USB drives are not available at the
> time that the startup process probes LVM devices, and thus not
> available for fsck and mounting. So the system comes to the error
> screen "enter root password to repair". And I can't repair it from
> there because the last part of the repair process is rebooting.
I had this problem happen a couple times when creating a box to use for
disk-to-disk backups. What I ended up doing is adding a couple wait
states into the init scripts. I think I added a 10 second wait between
the time that the /sbin/init was called from the ramdisk, and the time
that the /sbin/init script calls the lvm tools to make the volumes
available. It's not ideal, but it worked.
My current system is Fedora Core 3. The script that I find seems to
be /etc/rc.d/rc.sysinit
The problem is that the USB Storage driver has some issues waiting for
disks to acquiesce before scanning them. So, it puts the process into a
kernel thread and allows the rest of the system to continue booting.
Usually, by the time the disks are ready to be mounted, they've settled.
Unfortunately, the LVM step is before this so that doesn't quite work
out. Classic example of a race condition.
I don't find an explicit place where the USB driver is started, Maybe
I don't need to know that much at this moment.
I submitted a feature request to the usb-storage maintainer to have the
desired behaviour (wait to settle then scan in the same thread), but I
never heard anything back from him. He may have fixed it by now and
added an option to not spawn the thread.
I have just spent some time looking at the changes that occurred in
rc.sysinit between FC3 and FC6. They are medium substantial, but
nothing looks like an intentional delay between USB and LVM.
Will try putting "sleep 10" between these two lines of rc.sysinit.
The first one is a comment, but serves as a visual anchor.
# LVM2 initialization
if [ -x /sbin/lvm.static ]; then
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list