Filesystem Corruption on a Veritas Disk
I had filesystem corruption on a veritas disk. In order to fix it I had to do this:
You will need to:
1) boot from an alternate disk from the ok prompt boot otherlocation -s
2) stop the Veritas volumes vxvol -g rootdg stopall
run a vxprint -htrg rootdg and make sure the volumes are disabled
3) fsck -o f -y /dev/rdsk/c#t#d#s0 where c#t#d# it the rootdisk from a vxdisk list
reitterate until it gives no errors, or until it only gives the “FILE SYSTEM STATE IN SUPERBLOCK IS WRONG” error.
root@hostname: vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 sliced appldg01 appldg online
c1t1d0s2 sliced appldg02 appldg online
c1t2d0s2 sliced - - error
c2t0d0s2 sliced rootdisk rootdg online
c2t1d0s2 sliced hotspare rootdg online nohotuse
c3t0d0s2 sliced rootmirror rootdg online
c3t1d0s2 sliced appldg03 appldg online
c3t2d0s2 sliced appldg04 appldg online
- then re-enable the rootvol:
vxvol -g rootdg start rootvol
Then check it again, now it checks the mirors too:
fsck -o f -y /dev/vx/rdsk/rootdg/rootvol
4) make sure you can mount the root disk by slices mount /dev/dsk/c#t#d#s0 /mnt
5) umount /mnt
6) reboot off of rootdisk

It seems a bit disconcerting that the error “FILE SYSTEM STATE IN SUPERBLOCK IS WRONG” is just ignored.
I have that problem know, where the partition is clean, but I get that error every time I fsck. Otherwise, I can mount the fs, and use it normally save for one thing:
I CAN’T BACK IT UP.
I’m trying to use ufsdump to dump the file system to a file, so I can just reformat the partition and try again, but ufsdump creates a bad dump file:
ufsdump 0fv dump.ufs /dev/rdsk/c0t0d0s6
…
DUMP: Verification error 0 blocks into volume 1
Yuck.
Comment by Christopher Calzonetti — April 27, 2007 @ 11:43 am