|
|
HP-UX Reference > Ddrd(1M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEdrd — manage an inactive system image SYNOPSISdrd [-?] [-x -?] Command Modesdrd activate [-?] [-p] [-v] [-x option=value] [-x -?] [-X option_file] drd clone [-?] [-p] [-v] -t target_device_file [-x option=value] [-x -?] [-X option_file] drd deactivate [-?] [-p] [-v] [-x option=value] [-x -?] [-X option_file] drd mount [-?] [-p] [-v] [-x option=value] [-x -?] [-X option_file] drd runcmd [-?] [-v] [-x option=value] [-x -?] [-X option_file] cmd [args] drd umount [-?] [-p] [-v] [-x option=value] [-x -?] [-X option_file] DESCRIPTIONThe drd command provides a command line interface to Dynamic Root Disk (DRD) tools. The drd command has five major modes of operation:
Optionsdrd without a command mode recognizes the following options:
In command mode, the -X option_file can be used to get the extended options from a file. See the EXAMPLES section for an example option_file. The option_file can have one or more lines as follows:
EXAMPLESTo display drd usage information: drd -? To display drd extended option usage: drd -x -? To display usage for the drd clone command: drd clone -? To clone the root LVM volume group or VxVM disk group to a physical device:
To preview the clone of the root LVM volume group or VxVM disk group to a physical device:
To display all drd clone extended options: drd clone -x -? To mount the inactive system image: drd mount If the system image mounted was created by the most recent drd clone command, the root file system will be mounted at /var/opt/drd/mnts/sysimage_001. If the system image was booted when the most recent drd clone command was run, the root file system will be mounted at /var/opt/drd/mnts/sysimage_000. To display all drd mount extended options: drd mount -x -? To unmount the inactive system image: drd umount To display all drd umount extended options: drd umount -x -? To see the software that is installed on the inactive system image (without any need to mount the image first): drd runcmd swlist To install PHCO_0001 from the depot /var/opt/patches, located on the system patchsvr: drd runcmd swinstall -s patchsvr:/var/opt/patches PHCO_0001 To run a preview installation of PHCO_0001 from the depot /var/opt/patches, located on the system patchsvr: drd runcmd swinstall -p -s patchsvr:/var/opt/patches PHCO_0001 To verify all software on the inactive system image: drd runcmd swverify \* To remove PHKL_9999 from the inactive system image: drd runcmd swremove PHKL_9999 \* To view the swagent log on the inactive system image: drd runcmd view /var/adm/sw/swagent.log To display all drd runcmd extended options: drd runcmd -x -? To set the inactive system image as the primary boot disk: drd activate To set the inactive system image as the primary boot disk and a different disk as the alternate boot disk:
To boot to the inactive system image immediately: drd activate -x reboot=true To display all drd activate extended options: drd activate -x -? To restore the active (booted) system image as the primary boot disk: drd deactivate To restore the active (booted) system image as the primary boot disk and set a different disk as the alternate boot disk:
To display all drd deactivate extended options: drd deactivate -x -? To define the log_verbosity extended option for all drd command modes, and the verbosity extended option for the clone, mount, and runcmd modes in an option file named /tmp/drd_defaults: # more /tmp/drd_defaults log_verbosity=3 clone.verbosity=5 mount.verbosity=4 runcmd.verbosity=4 To run the drd clone command using the /tmp/drd_defaults option file: # drd clone -p -t /dev/dsk/c1t3d0 -x overwrite=true -X /tmp/drd_defaults SEE ALSOdrd-activate(1M), drd-clone(1M), drd-deactivate(1M), drd-mount(1M), drd-runcmd(1M), drd-umount(1M) Dynamic Root Disk Administrator's Guide, available on the HP Technical Documentation web site at http://docs/hp.com/en/DRD. |
|