Recovering, Verifying, or Salvaging a File System

To recover, verify, or salvage a file system, do the following:

1. If the specified aggregate is to be recovered or salvaged, log in as root on the local machine or verify that you have both the r (read) and w (write) permissions for the aggregate. If the specified aggregate is to be verified, log in as root on the local machine or verify that you have the r (read) permission for the aggregate.

2. Ensure that the DCE LFS aggregate to be specified with the command is not exported and contains no locally mounted filesets.

3. Enter the salvage command to run recovery on the aggregate, verify the consistency of the aggregate, or attempt to repair the consistency of the aggregate:

# salvage -aggregate name [-recoveronly] [{-verifyonly | -salvageonly}] [-force] [-verbose]

The -aggregate name option is the device name or aggregate name of the DCE LFS aggregate that is to be recovered, verified, or salvaged. Note that the aggregate ID of the aggregate is not an acceptable value.

The -recoveronly option directs the Salvager to recover the specified aggregate. The Salvager replays the log of metadata changes that resides on the aggregate.

The -verifyonly option directs the Salvager to verify the specified aggregate. The Salvager examines the structure of the aggregate to determine if it contains any inconsistencies, reporting any that it finds.

The -salvageonly option directs the Salvager to salvage the specified aggregate. The Salvager attempts to repair any inconsistencies it finds on the aggregate.

The -force option executes the Salvager in noninteractive mode. By default, the Salvager prompts for confirmation before proceeding in certain situations. Use this option to direct the Salvager to proceed with all operations without asking whether it should continue.

The -verbose option directs the Salvager to produce detailed information about the aggregate as it executes. The information is useful primarily for debugging purposes. Use this option alone or with any other combination of options.