lssavewpar Command

Purpose

Lists the contents of a workload partition backup on a specified media.

Syntax

lssavewpar [ -b blocks ] [ -f device ] [ -a ] [ -c ] [ -D ] [ -l | -L | -M | -N ] [ -V ]

Description

The lssavewpar command lists the contents of a workload partition backup from tape, file, CD, USB flash drive, or DVD.

Flags

Item Description
-a Verifies the physical block size of the tape backup, as specified by the -b flag. You might need to alter the block size if necessary to read the backup. The -a flag is valid only when a tape backup is used.
-b blocks Specifies the number of 512-byte blocks to read in a single input operation, as defined by the blocks parameter. If the blocks parameter is not specified, the number of blocks to read is 100, which is the default. The -b flag is valid only when a tape backup is used.
-c Produces colon-separated output. Specify the -c flag only with the -l , -L, -M, and -N flags.
-D Produces the output of debugging.
-f device Specifies the device that contains the backup (file, tape, CD, or other sources) as defined by the device parameter. If you do not specify the -f flag, the default device name is /dev/rmt0.
-l Displays information about a workload partition backup.

Displays information including the volume group, the date and time that the backup was made, the uname output from the backed up system, the operating system level, the maintenance or technology level, the backup size in megabytes, and the backup-shrink size in megabytes. The shrink size is the size of the data on all file systems. The full size is the total size of each file system (unused and data). The -l flag also displays the logical volume and file system information of the backed up workload partition. You must specify the -f flag when you specify the -l flag. The -l flag is mutually exclusive with the -L, -M, and -N flags.

-L Displays lpp file-set information about a workload partition backup only.

When you specify the -L flag, you must also specify the -f device flag. The -L flag is mutually exclusive with the -l, -M, and -N flags.

-M Lists information about any writable namefs-mounted file systems included in the backup. The information is displayed in the following form:
Mount_Device Blocks   Blocks_Free   Blocks_Used   Mount_Point
The Blocks and Blocks_Free fields describe the number of 512-byte blocks and the free 512-byte blocks that are present in the mounted file system. The Blocks_Used describes the number of 512-byte blocks used in the portion of the mounted file system mounted from the WPAR. The -M flag is mutually exclusive with the -l, -L, and -N flags.
-N Lists information about any NFS-mounted file systems included in the backup. The information is of the following form:
RemoteHost HostFilesystem   Blocks   Blocks_Free   Blocks_Used
The Blocks and Blocks_Free describe the number of 512-byte blocks and the free 512-byte blocks in the remote file system. The Blocks_Used describes the number of 512-byte blocks used in the portion of the remote file system mounted from the WPAR. The -N flag is mutually exclusive with the -l, -L, and -M flags.
-V Verifies a tape backup.

You must specify the -f flag with the -V flag. The flag is valid only for tape devices. The -V flag verifies the readability of the header of each file on the volume group backup and prints any errors that occur to the stderr file.

Examples

  1. To list the contents of the workload partition backup that is located on the default device /dev/rmt0, use the following command:
    lssavewpar
  2. To list the contents of the system backup that is located on device /dev/cd1, use the following command:
    lssavewpar -f /dev/cd1
  3. To display colon-separated lpp information about a workload partition backup tape that is located on /dev/rmt0, use the following command:
    lssavewpar -Lc -f /dev/rmt0
  4. To list volume group and general backup data about a backup located at /tmp/mybackup, use the following command:
    lssavewpar -l -f /tmp/mybackup
  5. To verify the readability of each header on a workload partition backup tape in /dev/rmt0, use the following command:
    lssavewpar -V -f /dev/rmt0
  6. To list the contents of the system backup located on device /dev/usbms0, use the following command:
    lssavewpar –f /dev/usbms0