readlvcopy Command

Purpose

Reads a specific mirror copy of a logical volume.

Syntax

readlvcopy -d device [ -c copy | -C copy | -b | -p mirrorpool ] [ -n number_of_blocks ] [ -o outfile ] [ -s skip] [ -S seek ]

Description

Flags

Item Description
-d device Logical volume special device file to be read from
-c copy Requested mirror copy to read from. Valid values are 1, 2, or 3 for the first, second, or third copy of the data. Data is read even if the logical partition has been marked stale. The default is the first copy of the data.
-C copy Requested mirror copy to read from. Valid values are 1, 2, or 3 for the first, second, or third copy of the data. Stale logical partitions are not read.
-b Read mirror copy marked as online backup.
-n number_of_blocks Number of 128K blocks to read
-o outfile Destination file. The default is stdout
-p mirrorpool

Read from the copy of the data that is associated to the specified mirror pool. Data is read even if the logical partition has been marked stale. The default is the first copy of the data. If the specified mirror pool does not exist in the volume group, the readlvcopy command fails.

-s skip Number of 128K blocks to skip into device.
-S seek Number of 128K blocks to seek into outfile

Example

To read the first 128 KB block of data from the copy, which is associated with the mp1 mirror pool, of the device /dev/rlv00, run the following command:
readlvcopy -d /dev/rlv00  -p mp1 -n 1