Restoring an Aggregate with the bak restoredisk Command

Use the bak restoredisk command to restore all of the filesets on an aggregate. The table below summarizes the options available with the command. Unless indicated as Optional in the table, each option is required.


Options Available with the bak restoredisk Command

Option Specifies Additional Information
-server The File Server machine on which the aggregate that houses the filesets to be restored resides The filesets on the aggregate are restored to this File Server machine unless the -newserver option names a different machine.
-aggregate The aggregate that houses the filesets to be restored The filesets on the aggregate are restored to an aggregate of this name unless the -newaggregate option names a different aggregate.
-newserver
(Optional)
The File Server machine to which the filesets are to be restored Use this option only to restore the filesets to a File Server machine different from the one specified with the -server option.
-newaggregate
(Optional)
The aggregate to which the filesets are to be restored Use this option only to restore the filesets to an aggregate with a name different from the one specified with the -aggregate option.
To restore all of the filesets on an aggregate, do the following:

1. If it is not already running, start the Tape Coordinator for the tape drive that you want to use with the operation. (See Starting a Tape Coordinator for information on using the butc command to start a Tape Coordinator.)

2. Verify that you are included in the appropriate administrative lists. If necessary, issue the bos lsadmin command to check.

3. Optional. At this point, you can issue the bak command at the system prompt to enter interactive mode. (See Using the Interactive Interface for the advantages of interactive mode.) The command in the following step assumes that regular command mode is used, not interactive mode.

4. Issue the bak restoredisk command with the appropriate options:

$ bak restoredisk -server machine -aggregate name [-tcid tc_number] [-newserver machine] [-newaggregate name] [-noaction]

The -server machine option names the File Server machine that houses the aggregate to be restored. Specify the File Server machine using the machine's DCE pathname, the machine's host name, or the machine's IP address.

The -aggregate name option is the device name or aggregate name of the aggregate to be restored.

The -newserver machine option names the File Server machine to which to restore the data. Use this option only if the data is to be restored to a File Server machine other than the one specified with the -server option. Specify the File Server machine using the machine's DCE pathname, the machine's host name, or the machine's IP address.

The -newaggregate name option is the device name or aggregate name of the aggregate to which to restore the data. Use this option only if the data is to be restored to an aggregate whose name is different from the name of the aggregate specified with the -aggregate option.

The -noaction option directs the command to display the list of tapes needed to restore the aggregate without performing the actual operation.