|
Home > Archive > Red Hat General > March 2004 > IDE RAID array always seems to report "not cleanly unmounted"
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
IDE RAID array always seems to report "not cleanly unmounted"
|
|
| Tim Mavers 2004-03-15, 8:34 pm |
| I am running RedHat 9.0 with two IDE RAID 1 (mirror) arrays; both of which
are running on separate Promise Ultra ATA100 PCI cards (two drives per
card). I am using the standard RAID 1 software mirroring in the Kernel
(2.40.20-30.9smp).
The drives and the array seem to work fine, however it seems whenever I
reboot I get messages on boot that report the drives (not sure what specific
drives in the array) were not cleanly unmounted. I rarely have to reboot,
but it seems when I do, I get this message. When I do reboot, I usually do
it from the console with "reboot".
I am using the standard mdtools (not the other one which I am forgetting the
name of at the moment).
So when I reboot, I unmount my raid mounts (/dev/md0 and /dev/md1 are
mounted in my rc.local to /mnt/raid0 and /mnt/raid1 respectively) and
finally perform raidstop --all.
I then do an e2fsck on each of the drives in the array (e.g. /dev/hdi1,
/dev/hdk1, etc.)
Once this completes, I reboot and the drives report that they are ok. Is
there something I am doing wrong on shutdown, or something I should execute
in a "shutdown" script? (not sure where or what this would be).
I have read the various raid-howto's and nothing seems to stand out as
something I may be missing.
Any help or insight would be appreciated.
Thanks!
| |
| Tim Mavers 2004-03-15, 8:35 pm |
| I just noticed something that could be just a coincidence, but it seems it's
always the first drive in the "mirror" that needs to be e2fsck'd. In other
words, when I run e2fsck on the second drive in each array, it reports:
e2fsck 1.32 (09-Nov-2002)
/dev/hdk1: clean, 6131/14663680 files, 27718697/29304560 blocks
However, when I run e2fsck on the first drive in each array (whenever I get
the warning after reboot--I am not implying that I have to run e2fsck
everytime), I get:
e2fsck 1.32 (09-Nov-2002)
/dev/hdi1 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/hdi1: 6144/14663680 files (0.3% non-contiguous), 29025463/29304560
blocks
Once it completes, the drives are fine.
Here's my /etc/raidtab if it helps (I know chunk-size is not needed for
RAID1, but I get warnings when I don't put something in there):
########################################
#
# /dev/md0
########################################
#
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
chunk-size 8
device /dev/hdi1
raid-disk 0
device /dev/hdk1
raid-disk 1
########################################
#
# /dev/md1
########################################
#
raiddev /dev/md1
raid-level 1
nr-raid-disks 2
chunk-size 8
device /dev/hdm1
raid-disk 0
device /dev/hdo1
raid-disk 1
Thanks!
|
|
|
|
|