NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/45948: dk(4) on raid(4) panic on halt with netbsd-5
The following reply was made to PR kern/45948; it has been noted by GNATS.
From: Stephen Borrill <netbsd%precedence.co.uk@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/45948: dk(4) on raid(4) panic on halt with netbsd-5
Date: Mon, 5 Mar 2012 16:41:52 +0000 (GMT)
Work around is to ensure that filesystems on wedges are
explicitly unmounted.
So something like the following in /etc/rc.shutdown.local:
fs=`mount | awk '{if ($1 ~ "^/dev/dk[0-9]") print $3}'`
for f in $fs
do
echo "Unmounting $fs"
umount $fs
done
There may be processes with open files on the filesystem which will stop
it being unmounted. You may want to add # KEYWORD: shutdown to relevant
rc.d scripts
In my case, this is only likely to be samba and istgt,
so I stop those in the rc.shutdown.local script:
fs=`mount | awk '{if ($1 ~ "^/dev/dk[0-9]") print $3}'`
if [ -n "$fs" ]; then
for srv in smbd istgt
do
/etc/rc.d/$srv status > /dev/null
if [ $? = 0 ]; then
/etc/rc.d/$srv stop
fi
done
for f in $fs
do
echo "Unmounting $fs"
umount $fs
done
fi
Home |
Main Index |
Thread Index |
Old Index