Clearing the infsck flag on a file system, Troubleshooting file systems, Ibrix_pv -a discovers too many or too few devices – HP StoreAll Storage User Manual

Page 41

Advertising
background image

The command runs in four phases and has two running modes: analytical and corrective. You must
run the phases in order and you must run all of them:

Phase 0 checks host connectivity and the consistency of segment byte blocks and repairs them
in corrective mode.

Phase 1 checks segments and repairs them in corrective mode. Results are stored locally.

Phase 2 checks the file system and repairs it in corrective mode. Results are stored locally.

Phase 3 moves files from lost+found on each segment to the global lost+found directory
on the root segment for the file system.

If a file system shows evidence of corruption, contact HP Support. A representative will ask you to
run ibrix_fsck in analytical mode and, based on the output, will recommend a course of action
and assist in running the command in corrective mode. HP strongly recommends that you use
corrective mode only with the direct guidance of HP Support. Corrective mode is complex and
difficult to run safely. Using it improperly can damage both data and the file system. Analytical
mode is completely safe, by contrast.

NOTE:

During an ibrix_fsck job, an INFSCK flag is set on the file system to protect it. If an

error occurs during the job, you must explicitly clear the INFSCK flag (see

“Clearing the INFSCK

flag on a file system” (page 41)

), or you will be unable to mount the file system.

Analyzing the integrity of a file system on all segments

Use the following procedure to analyze file system integrity:
1.

Turn off automated failover (see “Turning automated failover on and off” in the administration
guide for your system), unmount all NFS clients and stop NFS, and then unmount the file
system.

2.

Execute the following commands one time each:

ibrix_fsck -f FSNAME -p 0 [-s LVNAME]

ibrix_fsck -f FSNAME -p 1 [-s LVNAME] [-B BLOCKSIZE] [-b ALTSUPERBLOCK]

ibrix_fsck -f FSNAME -p 2 -m MOUNTPOINT

ibrix_fsck -f FSNAME -p 3 -m MOUNTPOINT

Clearing the INFSCK flag on a file system

To clear the INFSCK flag, use the following command:

ibrix_fsck -f FSNAME -C

Troubleshooting file systems

ibrix_pv -a discovers too many or too few devices

This situation occurs when file serving nodes see devices multiple times. To prevent this, modify
the LVM2 filter in /etc/lvm/lvm.conf to filter only on devices used by X9000 Software. This
will change the output of lvmdiskscan.

By default, the following filter finds all devices:

filter = [ "a/.*/" ]

The following filter finds all sd devices:

filter = [ "a|^/dev/sd.*|", "r|^.*|" ]

Contact HP Support if you need assistance.

Troubleshooting file systems

41

Advertising