mkwpardata Command

Purpose

Creates a file containing information about a workload partition for use by the savewpar and restwpar commands.

Syntax

mkwpardata [ -X] [ -m] WparName

Description

The mkwpardata command creates a file containing information about a workload partition (WPAR) for use by the savewpar and restwpar commands. The information includes the list of logical volumes, file systems and their sizes, the list of volume groups, and the WPAR name. The following files are created:You can edit the information in the file before issuing the savewpar command.

Flags

Item Description
-m Creates map files that specify the mapping of the logical-to-physical partitions for each logical volume in the WPAR. This mapping can be used to allocate the same logical-to-physical mapping when the image is restored. The map file locations are stored in the MAPFILE field in the image.data file for each logical volume.

For example, for the hd7 logical volume, the location of the map file is /tmp/wpardata/WparName/hd7.map. The MAPFILE field in the image.data file for the hd7 logical volume is under the entry MAPFILE=/tmp/wpardata/WparName/hd7.map.

The map files in the backup image are copied after the image.data file.

-X Expands the /tmp file system if needed.

Parameters

Item Description
WparName Specifies the name of workload partition to back up.

Files

Item Description
/tmp/wpardata/WparName/image.data Created for general and storage information about a WPAR. The WparName variable reflects the name of the WPAR. The savewpar command uses this file to create a backup image that can be used by the restwpar command to reinstall the WPAR. The mkwpardata command overwrites this file if it already exists. The image.data file is located in the /tmp/wpardata/WparName directory, where WparName is the workload partition name.