6.0 HP StorageWorks X9000 File Serving Software CLI Reference (TA768-96040, October 2011)

ibrix_fsck
Analyzes inconsistencies in a file system.
Description
If a file system shows evidence of inconsistencies, contact HP technical support. You may be
instructed to run ibrix_fsck with corrective options that are not described in this guide.
CAUTION: Do not run e2fsck or any other off-the-shelf fsck program on any part of a file
system. Doing so will damage the file system.
ibrix_fsck checks segments for file-system inconsistencies and optionally repairs them. The
command runs in four phases and has two running modes, analytical and corrective. Run all the
phases in order, without skipping any.
Phase 0 checks host connectivity and the consistency of the segment byte blocks and repairs
them in corrective mode.
Phase 1 checks segments, repairs them in corrective mode, and stores the results locally.
Phase 2 checks the file system, repairs it in corrective mode, and stores the results locally.
Phase 3 moves files from lost+found on each segment to the global lost+found directory
on the file system’s root segment.
NOTE: During an ibrix_fsck run, an INFSCK flag is set on the file system to protect it. If an
error occurs during the run, you must explicitly clear the INFSCK flag with ibrix_fsck -f
FSNAME -C or you will be unable to mount the file system.
Observe the following requirements when executing ibrix_fsck:
Unmount the file system for phases 0 and 1 and mount the file system for phases 2 and 3.
Turn off automated failover by executing ibrix_host -m -U -h SERVERNAME.
Unmount all NFS clients and stop NFS on the servers.
If running X9000 Software HA, put it into administrative mode (ibrix_fmha -a) for the
duration of the analysis.
Synopsis
Clear flags for the specified file system:
ibrix_fsck -f FSNAME -C
Runs phase 0 in analytic mode:
ibrix_fsck -p 0 -f FSNAME [-s LVNAME] [-c]
The command can be run on the specified file system or optionally only on the specified segment
LVNAME.
Run phase 1 in analytic mode:
ibrix_fsck -p 1 -f FSNAME [-s LVNAME] [-c] [-B BLOCKSIZE] [-b
ALTSUPERBLOCK]
The command can be run on file system FSNAME or optionally only on segment LVNAME. This
phase can be run with a specified block size and an alternate superblock number. For example:
ibrix_fsck -p 1 -f ifs1 -B 4096 -b 12250
NOTE: If phase 1 is run in analytic mode on a mounted file system, false errors can be reported.
ibrix_fsck 57