Creates multi-volume DVDs from a mksysb, savevg, or savewpar backup image.
mkdvd -r directory | -d dvddevice | -S [ -m mksysbimage | -M mksysbtarget | -s savevgimage | -v savevgvolumegroup | -w savewpar_image | -W wparname ] [ -C cdfsdir ] [ -I cdimagedir ] [ -V dvdfsvolumegroup ] [ -B ] [ -p pkgsourcedir ] [ -R | -S ] [ -i image.data ] [ -u bosinst.data ] [ -f wparspecificationfile ] [ -e ] [ -P ] [ -l packagelist ] [ -b bundlefile ] [ -z customfile ] [ -D ] [ -U ] [ -Y ] [ -n ] [ -a ] [ -A ] [ -c ] [-Z] [ -G | -N ] [-x file ]
For DVD media, system backups made with the mkdvd command have a limitation in that they expect the media to be 4.7 GB or larger per side. The mkdvd command does not process the next volume until it writes over 4 GB on the current volume, thus the use of smaller media would result in corruption when going beyond the media capacity.
When a bootable backup of a root volume group is created, the boot image reflects the currently running kernel. If the current kernel is the 64-bit kernel, the backup boot image is also 64 bit, and it only boots 64-bit systems. If the current kernel is a 32-bit kernel, the backup boot image is 32 bit, and it can boot both 32-bit and 64-bit systems.
Some sample shell scripts are included for different vendor-specific routines. You can find these scripts in /usr/samples/oem_cdwriters.
If you need to create multi-volume DVDs because the volume group image does not fit on one DVD, the mkdvd command provides instructions for DVD replacement and removal until all the volumes have been created.
Item | Description |
---|---|
-a | Does not back up extended attributes or NFS4 ACLs. |
-A | Backs up DMAPI file system files. |
-b bundlefile | Gives the full path name of the file containing a list of filesets to be installed after the mksysb is restored. This file is copied to ./usr/sys/inst.data/user_bundles/bundle_file in the DVD file system and also copied to RAM in case the DVD is unmounted. The file would be listed as BUNDLES=/../usr/sys/inst.data/user_bundles/bundlefile in the bosinst.data file. |
-B | Prevents mkdvd from adding boot images (non-bootable DVD) to the DVD. Use this flag if creating a mksysb DVD that you will not boot. Before installing the non-bootable mksysb DVD, you must boot a same level (V.R.M.) product media. The mkdvd command defaults to creating a bootable DVD for the machine type of the source system. See the Notes below. |
-c | Does not compress or pack files as they are backed up. |
-C cdfsdir | Specifies the file system used to create the DVD file system
structure, which must have up to 4.38 GB for DVD sized images. The
DVD image only consumes as much room as necessary to contain all the
data on the DVD. If you do not specify the -C flag and
the /mkcd/cd_fs directory exists, the mkdvd command
uses that directory. If you do not specify the -C flag and
the /mkcd/cd_fs directory does not exist, the mkdvd command
creates the file system /mkcd/cd_fs and removes it when the
command finishes executing. The command creates the file system in
the volume group indicated with the -V flag, or rootvg if
that flag is not used. Each time you invoke the mkdvd command,
a unique subdirectory (using the process id) is created under the /mkcd/cd_fs directory,
or in the directory specified with the -C flag.
Note: If performing
DVD sized backups, the file systems need to be large file enabled.
This also requires setting the file ulimit size to unlimited.
|
-d dvddevice | Indicates the DVD-R or DVD-RAM device (/dev/cd1, for instance). This flag is required unless you use the -S flag. |
-D | Turns on the debug output information feature. The default is no debug output. |
-e | Excludes the files and directories from the backup image listed in the /etc/exclude.volume_group file. You cannot use this flag with the -m or -s flags. |
-f wparspecificationfile | Specifies the user-supplied WPAR specification file. This specification file of workload partition takes precedence over the wpar.spec file in the savewpar image. If you do not use the -f flag, the mkdvd command restores the wpar.spec from the given savewpar image, or generates a new wpar.spec file during the creation of savewpar. |
-i image.data | Specifies the user-supplied image.data file. This data
file takes precedence over the image.data file in the mksysb image.
If you do not specify the -i flag, then the mkdvd command
restores the image.data from the given mksysb image,
or generates a new image.data file during the creation of mksysb.
Note: The -i flag cannot be used to specify a user-supplied vgname.data file
for use with a savevg image.
|
-I cdimagesdir | Specifies the directory or file system where the final DVD
images are stored before writing to the DVD-R or DVD-RAM device. If
this flag is not used, the mkdvd command uses the /mkcd/cd_images directory
if it already exists. If not, the command creates the /mkcd/cd_images file
system in the volume group given with the -V flag, or in rootvg if
that flag is not used. If the mkdvd command creates the
file system, it is removed upon command completion, unless either
the -R or -S flag is used. If the -R or -S flag
is used, consideration must be made for adequate file system, directory,
or disk space, especially when creating multi-volume DVDs. The DVD
image only s as much room as necessary to contain all the data on
the DVD.
Note: If performing DVD sized backups, the file systems need
to be large file enabled. This also requires setting the file ulimit size
to unlimited.
|
-l packagelist | Specifies the file containing a list of additional packages you want copied to the ./usr/lpp/inst.images directory of the DVD file system. The images are copied from the location named with the -p flag. If you use the -l flag you must also use the -p flag. |
-m mksysbimage | Specifies a previously created mksysb image. If you do not specify the -m flag, the mkdvd command calls mksysb. (See the -M flag for more information about where the mksysb image is placed.) |
-M mksysbtarget | States the directory or file system where the mksysb or savevg image
is stored if a previously created backup is not given with the -m or -s flags.
If the -M flag is not used and a mksysb or savevg
image is not provided, the mkdvd comand verifies that /mkcd/mksysbimage exists.
If the directory does not exist, then the mkdvd command creates
a separate file system, /mkcd/mksysbimage, where the mksysb or savevg images
are temporarily stored. The command creates the file system in the
volume group given with the -V flag, or in rootvg if
that flag is not used. Note: If performing DVD sized backups, the
file systems need to be large file enabled. This also requires
setting the file ulimit size to unlimited.
|
-n | Backs up user volume group information and administration data files. This backs up files such as /tmp/vgdata/vgname/vgname.data and map files, if any exist. This does not back up user data files. This backup can be used to create a user volume group without restoring user data files. This cannot be done to rootvg. |
-N | Includes file systems that belong to a workload partition (WPAR) in the defined state
in the system backup. Note: To be included in the backup, all file
systems that belong to a WPAR in
the defined state need to be in the rootvg volume group.
|
-p pkgsourcedir | Names the directory or device that contains device and kernel package images. The device can only be a CD or DVD device (for example, /dev/cd0). If you use the same DVD-R or DVD-RAM device that you gave with the -d flag, the product media must be inserted into the drive first. The mkdvd command then prompts you to insert the writable DVD before the actual DVD creation. |
-P | Creates physical partition mapping during the mksysb or savevg creation. You cannot use this flag with the -m or -s flags. |
-r directory | Indicates existing directory structure to burn onto a DVD. This makes a DVD image that is a copy of the given directory structure. |
-R | Prevents the mkdvd command from removing the final DVD images. The mkdvd command defaults by removing everything that it creates when it finishes executing. The -R flag allows multiple DVD image sets to be stored, or for DVD creation (burn) to occur on another system. If multiple volumes are needed, the final images are uniquely named using the process ID and volume suffixes. |
-s savevgimage | Indicates a previously created savevg image. See Notes for details. |
-S | Stops the mkdvd command before writing to the DVD-R or DVD-RAM without removing the final DVD images. The -S flag allows multiple DVD sets to be created, or for DVDs to be created on another system. The images remain in the directory marked by the -I flag, or in the /mkcd/cd_images directory if the -I flag is not used. If multiple volumes are required, the final images are uniquely named using the process ID and volume suffixes. |
-u bosinst.data | Specifies the user-supplied bosinst.data file. This data file takes precedence over the bosinst.data file in the mksysb image. If you do not specify the -u flag, then the mkdvd command restores bosinst.data from the given mksysb image, or generates a new bosinst.data file during the creation of mksysb. |
-U | Creates a UDF (Universal Disk Format) file system on DVD-RAM media. It does not require the amount of free space needed to create Rock Ridge format backups. It does not need the /mkcd/cd_fs and /mkcd/cd_images file systems. Therefore, the only temporary disk space it needs is to create the backup image that will be copied to the media. This means that the -I and -C flags do not apply to the -U flag. Because the backup is copied to the media, images cannot be created and burned later or on another system. So, the -R flag and -S flag do not apply when using the -U flag. You need to specify a device to write to with the -d flag. The -U flag does not use the /usr/sbin/mkrr_fs or /usr/sbin/burn_cd file systems. |
-v savevgvolumegroup | Denotes the volume group to be backed up using the savevg command. See Notes for detials. (See the -M flag for more information about where the savevg image is placed.) |
-V dvdfsvolumegroup | Indicates the volume group used when creating the file systems needed for the mkdvd command. If the -V flag is not given and a file system is needed but not there (because it was not supplied with other flags), then rootvg is the default volume group for creating the file systems. If the mkdvd command creates the file systems in the backup volume group, those file systems are not included as part of the backup image. The mkdvd-created file systems are removed upon the command's completion. |
-w savewparimage | Indicates a previously created savewpar image. |
-W wparname | Denotes the workload partition to be backed up using the savewpar command. |
-Y | Accepts licenses. |
-z customsfile | States the full path name of the file to be copied to the root
directory of the DVD file system. This file could be a customization
script specified in the bosinst.data file, such as CUSTOMIZATION_FILE=filename.
For example: If the file my_script is in /tmp on the machine where mkdvd is running, then enter -z/tmp/my_script and specify CUSTOMIZATION_FILE=my_script. The code copies the script to the root directory of the RAM file system before it executes. |
-Z | Specifies that the Encrypted file system (EFS) information for all the files, directories, and file systems is not backed up. |
-G | Excludes WPAR file systems from the system backup. This flag is not valid with -N flag. |
-x file | Excludes the file systems that are listed in the file from the system backup. File system mount points must be listed one per line. |
mkdvd -d /dev/cd1
mkdvd -d /dev/cd1
mkdvd -d /dev/cd1 -v myvg
mkdvd -d /dev/cd1 -W mywpar
mkdvd -d /dev/cd1 -w /wparbackups/mywpar.bff
/mycd/a
/mycd/b/d
/mycd/c/f/g
mkdvd -r /mycd -d /dev/cd1
./a
./b
./b/d
./c
./c/f
./c/f/g
Item | Description |
---|---|
/usr/bin/mkdvd | Contains the mkdvd command. |