Thursday, February 01, 2007

Problems Recovering Hard Drive with FSCK

After a hard crash today, a colleague of mine tried repeatedly (several hours) to recover a newly installed Sun v490 server (w/Solaris 8) and its Sun RAID with FSCK. However, each time he ran the FSCK command, the system returned UFS block read errors. The problem seemed somewhat familiar to me, and I asked him if he had logging configured. He said yes. I recommended temporarily removing the logging option from the /etc/vfstab file.

Here's what was done:

#cp –p /etc/vfstab /etc/vfstab.020107
OR
#cp -p /etc/vfstab /etc/vfstab.`date '+%m%d%y'`
#vi /etc/vfstab
change "logging" option to "-" where applicable
: wq! (quits and saves)

#init 0
boot

The system booted up and FSCK automatically invoked and was able to fix whatever UFS block errors that were present. Then the original /etc/vfstab file was manually restored.

No comments: