Fsck operations
The following is a collection of examples using fsck command. It is important to unmount VXFS before running fsck on Veritas filesystem.
to fsck a Veritas FS:
fsck -F vxfs /dev/dsk/c2t2d0s0
to do a full fsck of Veritas FS:
fsck -F vxfs -o full /dev/dsk/c2t2d0s0
to assume “yes” response to prompts”
fsck -F vxfs -y /dev/dsk/c2t2d0s0
to scan and automatically correct all local non-Veritas mounted filesystems:
df -k | fgrep "/dev/dsk" | awk '{print $6}' | while read line do fsck -y "$line" done
to scan and automatically correct all local
non-Veritas unmounted filesystems:
cat /etc/vfstab | fgrep "/dev/dsk" | awk '{print $1}' | while read line do fsck -y "$line" done
Popularity: 5% [?]



