Greetings!
A rather newbie question there, but can't find help in the manual...
The situation:
1) FreeBSd 7.2 installed on remote server
2) gmirror configured with two components, ad4 and ad6, status COMPLETE, actually working; two WD Raptor drivers
3) file system errors on the disk (hardware is ok)
Obviously, I can't get them easily fixed because I need to unmount the file system first.
The problem:
1) I can only access server remotely via SSH, so no single user mode.
2) The said gmirror is root, bootable partition.
I've tried adding fsck_y_enable="YES" (+disabling background fsck) to /etc/rc.conf to get disk checked before mounting, it did not help.
Tried unmounting the gmirror using umount, either get Unknown file system or Device busy errors.
Perhaps I'm just doing something wrong.
So I'm asking for help; can someone please explain how to fsck -y the gmirror described above? Any method would do, as long as it would get the errors fixed. It's also ok to turn off gmirror, if necessary. Please, if possible, give me example with exact commands so it will be easier to. And, is there a way to automatically fix gmirror errors on reboot?
Thanks in advance.
A rather newbie question there, but can't find help in the manual...
The situation:
1) FreeBSd 7.2 installed on remote server
2) gmirror configured with two components, ad4 and ad6, status COMPLETE, actually working; two WD Raptor drivers
Code:
Name Status Components
mirror/gm0 COMPLETE ad4
ad6
Code:
veng# fsck -y
** /dev/mirror/gm0s1a (NO WRITE)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=1837101 OWNER=root MODE=100600
SIZE=0 MTIME=Nov 15 00:13 2009
CLEAR? no
UNREF FILE I=1837208 OWNER=mysql MODE=140777
SIZE=0 MTIME=Nov 15 00:26 2009
RECONNECT? no
CLEAR? no
UNREF FILE I=3297364 OWNER=root MODE=140666
SIZE=0 MTIME=Nov 15 00:13 2009
CLEAR? no
UNREF FILE I=3297562 OWNER=root MODE=100644
SIZE=0 MTIME=Nov 15 00:13 2009
CLEAR? no
UNREF FILE I=3298280 OWNER=mysql MODE=100660
SIZE=0 MTIME=Nov 15 00:26 2009
RECONNECT? no
CLEAR? no
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no
SUMMARY INFORMATION BAD
SALVAGE? no
BLK(S) MISSING IN BIT MAPS
SALVAGE? no
258436 files, 12785597 used, 1097483 free (63147 frags, 129292 blocks, 0.5% fragmentation)
Obviously, I can't get them easily fixed because I need to unmount the file system first.
The problem:
1) I can only access server remotely via SSH, so no single user mode.
2) The said gmirror is root, bootable partition.
I've tried adding fsck_y_enable="YES" (+disabling background fsck) to /etc/rc.conf to get disk checked before mounting, it did not help.
Tried unmounting the gmirror using umount, either get Unknown file system or Device busy errors.
Perhaps I'm just doing something wrong.
So I'm asking for help; can someone please explain how to fsck -y the gmirror described above? Any method would do, as long as it would get the errors fixed. It's also ok to turn off gmirror, if necessary. Please, if possible, give me example with exact commands so it will be easier to. And, is there a way to automatically fix gmirror errors on reboot?
Thanks in advance.