fsck /Ctrl-D
Hi,
I have a box with several disk connected, both SCSI and IDE. (raid configurations) When I boot it from cold it holds up during the boot process for a very long time and then kicks out to give a fsck error. Pressing Ctrl-D re-boots, still with the same long delay but it goes into mandriva ok after that. Once started ok re-boots work fine, but if I shut down completely the problem starts all over aagin. let me know which files/logs that are of interest and where they can be found and I'll add them to the thread. Regards, Mårten |
At what point in the boot process does it hang?
Also, have you run fsck on all partitions? |
Sorry, I'm still learning Mandriva and Linux so forgive me if I ask silly questions, but:
Quote:
Quote:
|
Thats ok, I am fairly new to Linux too.
You can't run fsck on mounted partitions, thus you can't run fsck on /. To get around this, you want to run when the system is booting. I am only familiar with Redhat and Fedora, but to force the system to run fsck on all partitions when it is booting, type :# touch /forcefsck When you reboot it will run a file check on all partitions to see if any errors exist. as for how far it gets in the boot process, you could check /var/log/messages to see where abouts it gets before your issue. |
If it stops the boot process for a long while, please report what the last three or four messages are that you see on the screen before it 'kicks out to give an fsck error'?
|
Quote:
Just to eliminate a few problem sources I removed several HDDs from my setup. Here is what I'm left with. hda > system hdb > not used hdc > not used hdd > not used sda > Single disk with ReiserFS monuted as /mnt/quickdown sdb > not used sdc > not used sdd > Part of raid1 set sde > Part of raid1 set Raid > using disks above on md0. Mounted as /mnt/draid The important parts of the message I get at bootup is: Code:
Starting up raid devices: mdadm: No devices listed in conf file were found. |
Here are a few files:
/etc/fstab Code:
/dev/hda1 / reiserfs notail 1 1 Code:
/dev/hda1 / reiserfs rw,notail 0 0 Code:
DEVICE /dev/sdc1 /dev/sdd1 |
So when the system does boot normally, your /dev/md0 (raid) does mount and work fine?
I noticed an issue in your mdadm.conf: You have "DEVICE /dev/sdc1 /dev/sdd1" But you listed /dev/sdd and /dev/sde as being part of your raid. So sdc shouldn't be in your raid mdadm.conf file. Also, I havn't done very much at all with software raid, but when I did, I recall having to set the partition type to code FD in fdisk - raid autodetect. Not sure if that is relevant or if you have done/tried this. |
Also, take a look at the below that has a quick example guide to setting up software raid using mdadm as well as a method to test. Just to be sure.
#### copied from http://kbase.redhat.com/faq/FAQ_85_7689.shtm First, make sure that the RAID devices are active. This is to ensure that software RAID is actually working before creating the configuration file. This can be verified by checking /proc/mdstat or running: # mdadm -D <RAID device> Suppose that SCSI disks were used for the software RAID, /etc/mdadm.conf can now be configured as follows: # echo 'DEVICE /dev/sd*[0-9]' > /etc/mdadm.conf # mdadm -Ds >> /etc/mdadm.conf where * can be [a-z] and the partition is [0-9] depending on the designated device. Below is a sample /etc/mdadm.conf generated from the commands above: DEVICE /dev/sd*[0-9] ARRAY /dev/md0 level=raid1 num-devices=2 UUID=ff56f9a2:4ed49bb4:605d5c9f:276116e0 devices=/dev/sda1,/dev/sdb1 To verify that the correct configuration file has been created, execute the following commands: # mdadm -S /dev/md0 # mdadm -As This should stop and start the /dev/md0 device. |
Quote:
Quote:
Quote:
As to your second post. I've tried that and things and up correctly. The only thing not happening is that the "devices" argument doesn't get set. I've made som emodifications so here is my final mdadm.conf Code:
DEVICE /dev/sdc1 /dev/sdd1 Since everything seems to be working the way it should except from a complete reboot I am leaning towards it being due to some kind of SCSI startup issue. |
An additional note. If I use shutdown -f -h now it boots up ok but the disks are not added as desired. #mdadm -D /dev/md0 gives No such file or directory. And neither md0 nor sda1 are mounted.
But if mount sda1 it shows up ok and is accesible. The same thing goes for #mdadm -As followed by #mount -t /dev/md0 /mnt/draid. It wouldn't be solving the issue, but perhaps an acceptable workaround would be to always force the -f switch on shutdown and then have the mdadm and mount commands executed at the end of the bootup process? How would I go about doing this in that case? (I would of course prefer solving the problem!) |
Setting the fsck check to 0 in /etc/fstab and adding the mount commands to rc.local did the trick. I havn't solved the problem but atleast I have a workaround in place. Tomorrow I'll try this with my LVM consisting of both IDE and SCSI disk, that might proove interesting. Will probably add the noauto in fstab as well...
|
I wasn't able to get the LVM working correctly at all. But I finally "solved" the problem. I changed to linear raid instead of LVM and then did as with the other raid volume above. Everything seems to be working fine.
|
All times are GMT -5. The time now is 08:25 AM. |