HPUX Dynamic Root Disk Boot Disk Cloning Benefits

  • Slides: 77
Download presentation
HP-UX Dynamic Root Disk Boot Disk Cloning Benefits and Use Cases Dusan Baljevic 2013

HP-UX Dynamic Root Disk Boot Disk Cloning Benefits and Use Cases Dusan Baljevic 2013

Acknowledgements • These slides have been used in various presentations in Australia over the

Acknowledgements • These slides have been used in various presentations in Australia over the last four years. This is a work-in-progress. • I bear full responsibility for any error, even though it is purely unintentional. • I cannot claim credits solely, nor can I claim that I know everything about Unix. I consider myself to be a Unix Apprentice. For that reason I need to give special credits to our colleagues Nobuyuki Hirota (TCE&Q BCS ERT), Daniel Bambou (TC&Q BCS ERT), and Leon Strauss (GSE) for their continuous support, advice, comments, and guidance. • Wisdom of many helped in creation of the presentation (seminars at HP, HPWorld, ITRC/HPSC forums, HP Ambassadors and Unix Profession forums, HP Education courses, individual contributions on the Net). 2

What Kind of Use Cases? • This presentation is not displaying formulated textual, structural

What Kind of Use Cases? • This presentation is not displaying formulated textual, structural and visual modeling techniques for specifying use cases with the HP-UX DRD. • In software and systems engineering, a use case is a list of steps, typically defining interactions between a role (known in UML as an "actor") and a system, to achieve a goal. The actor can be a human or an external system. • In systems engineering, use cases are used at a higher level than within software engineering, often representing missions or stakeholder goals. The detailed requirements may then be captured in Sys. ML or as contractual statements. • Rather, in our context, use cases are practical examples of HP-UX DRD usage. 3

Bootable System Images in Unix/Linux Many tools available. For the sake of brevity, to

Bootable System Images in Unix/Linux Many tools available. For the sake of brevity, to mention a few: AIX mksysb, Network Installation Manager (NIM) HP-UX make_tape_recovery/make_net_recovery, Dynamic Root Disk (DRD)*, VM mirroring Linux Mondo Rescue, Clonezilla Solaris ufsdump, fssnap+ufsdump, flash/Jump. Start Tru 64 btcreate 4

Why Boot Disk Cloning is Critical Today? • Creates a "point-in-time“ O/S image, •

Why Boot Disk Cloning is Critical Today? • Creates a "point-in-time“ O/S image, • On-line patching and configuration changes of the inactive O/S, • Easier change management approvals because the active O/S is not affected (risk is eliminated), • Some tasks make dynamic changes of the O/S during the cloning, without affecting the active O/S, • Boot disk mirroring does not prevent disasters caused by human error, • If boot disks are on the same controller, mirroring is not a perfect protection. 5

Dynamic Root Disk Mission * Significantly reduce the downtime needed to perform HP-UX software

Dynamic Root Disk Mission * Significantly reduce the downtime needed to perform HP-UX software maintenance Reduce the downtime required for recovery from administrative errors Perform software update work during normal business hours, or whenever convenient Provision systems quickly and efficiently Simplify testing 6

Dynamic Root Disk Cycles Provision - [Re-]Ignite - Recover - Clone Bare Metal -

Dynamic Root Disk Cycles Provision - [Re-]Ignite - Recover - Clone Bare Metal - unused HW Software Management - Identify - Acquire - Organize - Deploy Maintain - Monitor - Patches - Applications - Recovery Upgrade or Recycle - update-ux - re-ignite 7

HP-UX Dynamic Root Disk Features 1 of 4 • Dynamic Root Disk (DRD) provides

HP-UX Dynamic Root Disk Features 1 of 4 • Dynamic Root Disk (DRD) provides the ability to clone an HP-UX system image to an inactive disk. • Supported on HP PA-RISC and Itanium-based systems. • Supported on hard partitions (n. Pars), virtual partitions (v. Pars), and Integrity Virtual Machines (Integrity VMs), running the following operating systems with roots managed by the following Volume Managers (except as specifically noted for rehosting): o HP-UX 11 i V 2 (11. 23) September 2004 or later o HP-UX 11 i V 3 (11. 31) o LVM (all O/S releases supported by DRD) o Vx. VM 4. 1 o Vx. VM 5. x 8

HP-UX Dynamic Root Disk Features 2 of 4 • Product : Dyn. Root. Disk

HP-UX Dynamic Root Disk Features 2 of 4 • Product : Dyn. Root. Disk Version: A. 3. 12. 316 (DRD_1131_WEB 1301. depot) (DRD_1123_WEB 1301. depot) • The target disk must be a single physical disk, or SAN LUN. • The target disk must be large enough to hold all of the root volume file systems. DRD allows the cloning of the root volume group even if the master O/S is spread across multiple disks (it is a one-way, many-to-one operation). • On Itanium servers, all partitions are created; EFI and HP-UX partitions are copied. This release of DRD does not copy the HPSP partition. • Copy of lvmtab on the cloned image is modified by the clone operation to contain information that will reflect the desired volume groups when the clone is booted. 9

HP-UX Dynamic Root Disk Features 3 of 4 • Only the contents of vg

HP-UX Dynamic Root Disk Features 3 of 4 • Only the contents of vg 00 are copied. • Due to system calls DRD depends on, DRD expects legacy Device Special Files (DSFs) to be present and the legacy naming model to be enabled on HP-UX 11 i v 3 servers. HP recommends only partial migration to persistent DSFs be performed. • If the disk is currently in use by another volume group that is visible on the system, the disk will not be used. • If the disk contains LVM, Vx. VM, or boot records but is not in use, one must use the “-x overwrite” option to tell DRD to overwrite the disk. Already-created clones will contain boot records; the drd status command will show the disk that is currently in use as an inactive system image. 10

HP-UX Dynamic Root Disk Features 4 of 4 • All DRD processes, including “drd

HP-UX Dynamic Root Disk Features 4 of 4 • All DRD processes, including “drd clone” and “drd runcmd”, can be safely interrupted issuing Control-C (SIGINT) from the controlling terminal or by issuing kill –HUP <pid> (SIGHUP). This action causes DRD to abort processing. Do not interrupt DRD using the kill -9 <pid> command (SIGKILL), which fails to abort safely and does not perform cleanup. Refer to the “Known Issues” list on the DRD web page (http: //www. hp. com/go/DRD) for cleanup instructions after drd runcmd is interrupted. • The Ignite server will only be aware of the clone if it is mounted during a make_*_recovery operation. • DRD Revision A. 3. 12 DRD supports Soft. Reboot feature if a machine is installed with Soft. Reboot on a supported platform. 11

HP-UX Dynamic Root Disk versus Ignite. UX • DRD has several advantages over Ignite-UX

HP-UX Dynamic Root Disk versus Ignite. UX • DRD has several advantages over Ignite-UX net and tape images: * No tape drive is needed, * No impact on network performance will occur, * No security issues of transferring data across the network. • Mirror Disk/UX keeps an "always up-to-date" image of the booted system. DRD provides a "point-in-time“ image. The booted system and the clone may then diverge due to changes to either one. Keeping the clone unchanged is the Recovery scenario. DRD is not available for HP-UX 11. 11, which limits options on those systems. 12

DRD and update-ux Practices

DRD and update-ux Practices

HP-UX Patching Versus Update-UX 1 of 2 • The update-ux method is not only

HP-UX Patching Versus Update-UX 1 of 2 • The update-ux method is not only used to update from a lower to a higher version (for example, 11 i v 2 to v 3), but also to update from an older to a newer release within the same version. • For many reasons, we encourage usage of update-ux with Dynamic Root Disk (DRD). • If O/S is upgraded through update-ux process, the best practice recommends cold installs; incremental upgrades might create possibility that some obsolete software and libraries exist afterwards. 14

HP-UX Patching Versus Update-UX 2 of 2 We recommend customers develop a release “cycle”

HP-UX Patching Versus Update-UX 2 of 2 We recommend customers develop a release “cycle” through DRD implementation: Run update-ux every year (18 months or maximum two years is acceptable in some circumstances). Only break this cycle if they must have some new functionality in a bi-annual release. Unless specifically requested differently, the patch/update level should be at latest release, if practicable, or LATEST-1. 15

DRD is Minimizing Downtime

DRD is Minimizing Downtime

HP-UX DRD: Minimizing Planned Downtime • DRD enables the administrator to create a point-in-time

HP-UX DRD: Minimizing Planned Downtime • DRD enables the administrator to create a point-in-time clone of the vg 00 volume group: • Original vg 00 image remains active; • Cloned vg 00 image remains inactive until needed; • Unlike boot disk mirrors, DRD clones are unaffected by vg 00 changes. • DRD is an optional, free product on the 11 i v 2 and v 3 application media. Install patches on the clone; applications remain running lvol 1 lvol 2 lvol 3 boot disk boot mirror vg 00 (active) Activate the clone to make changes take effect lvol 1 lvol 2 lvol 3 boot disk boot mirror vg 00 (inactive) 17 lvol 1 lvol 2 lvol 3 clone disk clone mirror cloned vg 00 (inactive/patched) lvol 1 lvol 2 lvol 3 clone disk clone mirror cloned vg 00 (active/patched)

DRD Clones Minimize Unplanned Downtime • Without DRD: In case of O/S mis-configuration, it

DRD Clones Minimize Unplanned Downtime • Without DRD: In case of O/S mis-configuration, it may be necessary to restore from tape. • With DRD: In case of O/S mis-configuration, simply activate and boot the clone. Original boot VG is corrupted lvol 1 lvol 2 lvol 3 boot disk boot mirror original vg 00 (unusable) Activate the clone! lvol 1 lvol 2 lvol 3 boot disk boot mirror original vg 00 (unusable) 18 lvol 1 lvol 2 lvol 3 clone mirror disk cloned vg 00 (inactive) lvol 1 lvol 2 lvol 3 clone mirror disk cloned vg 00 (active)

DRD Clones Minimize Planned Downtime • Without DRD: Software and kernel management may require

DRD Clones Minimize Planned Downtime • Without DRD: Software and kernel management may require extended downtime. • With DRD: Install/remove software on the clone while applications continue running. Install patches & tune the kernel on the clone; applications remain running Activate the clone to make changes take effect lvol 1 lvol 2 lvol 3 boot disk boot mirror vg 00 (active) lvol 1 lvol 2 lvol 3 boot disk boot mirror vg 00 (inactive) 19 lvol 1 lvol 2 lvol 3 clone mirror disk cloned vg 00 (inactive/patched) lvol 1 lvol 2 lvol 3 clone mirror disk cloned vg 00 (active/patched)

DRD – Pros and Cons

DRD – Pros and Cons

HP-UX DRD Pros 1 of 2 • Fully supported by HP. • Full clone.

HP-UX DRD Pros 1 of 2 • Fully supported by HP. • Full clone. • Complements other HP solutions by reducing system downtime required to install and update patches and software. Copy operation is currently done by fbackup and frecover. • kctune command can be used to modify kernel parameters in the clone. • • The ioconfig file and the entire /dev directory are copied by the DRD clone operation, so instance numbers will not change when the clone is booted. * • Supports n. Pars, v. Pars, and Integrity VMs. 21

HP-UX DRD Pros 2 of 2 • No tape drive is needed. • No

HP-UX DRD Pros 2 of 2 • No tape drive is needed. • No impact on network performance. • No security issues of transferring data across the network. • All DRD processes, including drd clone and drd runcmd, can be safely interrupted issuing Control-C (SIGINT) from the controlling terminal or by issuing kill -HUP<pid> (SIGHUP). This action causes DRD to abort processing and perform any necessary clean up. Do not interrupt DRD using the kill -9 <pid> command (SIGKILL), which fails to abort safely and does not perform cleanup. 22

HP-UX DRD Cons 1 of 4 • Target disk must be a single disk

HP-UX DRD Cons 1 of 4 • Target disk must be a single disk or mirror group only. • Not easy to list all differences between Active and Inactive image (drd sync * is the simplistic option). • Cloning should be done when the server’s activity is at a minimum. • DRD can clone root volume group that is spread across multiple disks. The target must be a single disk or mirrored pair. 23

HP-UX DRD Cons 2 of 4 • Contents of root volume group are copied.

HP-UX DRD Cons 2 of 4 • Contents of root volume group are copied. A system that has /opt (or any file system that is patched) not in root volume group is not suitable for use with DRD. • Does not provide a mechanism for resizing file systems during a DRD clone operation. However, after the clone is created, you can manually change file system sizes on the inactive system without needing an immediate reboot. The whitepaper, Using the Dynamic Root Disk Toolset describes resizing file systems other than /stand. The whitepaper Using the DRD toolset to extend the /stand file system in an LVM environment describes resizing the boot (/stand) file system on an inactive system image. • Current release of DRD does not copy the Itanium Service Partition (s 3 or _p 3). 24

HP-UX DRD Cons 3 of 4 • Command /opt/drd/lbin/drd_scan_hw_host hangs occasionally. This is a

HP-UX DRD Cons 3 of 4 • Command /opt/drd/lbin/drd_scan_hw_host hangs occasionally. This is a hardware issue as it is trying to scan all connected hardware. Check it before using DRD and maybe even remove stale devices with rmsf –x if necessary: # ioscan -s # lssf -s • Too many tiny files on root disks can cause significant performance problem when DRD is used. When there are large number of files in the root VG (for example, two millions), drd clone / drd sync might fail with error "Out of memory". It is suggested to increase maxdsiz kernel parameter, or use "-x exclude_list" option, or remove unnecessary user files. 25

HP-UX DRD Cons 4 of 4 • We might see the following error message

HP-UX DRD Cons 4 of 4 • We might see the following error message during the execution of drd runcmd if the nsswitch. conf file contains the "hosts: nis" entry: Error: Could not contact host "myserver". Make sure the hostname is correct and an absolute pathname is specified (beginning with "/"). • We might see the following error message during the execution of drd runcmd if the nsswitch. conf file contains the "passwd: compat" or "group: compat" entries: Error: Permission is denied for the current operation. There is no entry for user id 0 in the user database. Check /etc/passwd and/or the NIS user database. 26

Supported Versions of DRD • Versions of DRD are supported for at least two

Supported Versions of DRD • Versions of DRD are supported for at least two years. • Versions not listed in the "Supported DRD Releases" section of the latest Release Notes are no longer supported. • We always recommend to have the latest DRD installed. 27

DRD – Installation and Commands

DRD – Installation and Commands

Installing DRD • DRD is included in current 11 i v 2 and v

Installing DRD • DRD is included in current 11 i v 2 and v 3 operating environments or. . . • Download and install DRD from http: //software. hp. com Install DRD with swinstall (no reboot required) # swinstall –s /tmp/Dyn. Root. Disk*. depot Dyn. Root. Disk 29

DRD Commands Most DRD tasks require a single command, drd, which supports multiple “modes”.

DRD Commands Most DRD tasks require a single command, drd, which supports multiple “modes”. Example # drd clone –t /dev/disk. Y –x overwrite=true Other available modes # drd clone. . . # drd mount. . . # drd umount. . . # drd runcmd. . . # drd activate. . . # drd deactivate # drd status view available modes and options create a DRD clone mount the DRD clone’s file systems unmount the DRD clone’s file systems execute a command on the clone’s file systems make the DRD clone the default boot disk after next reboot retain the current active image as the default boot disk display information about active/inactive DRD images DRD offers several common options that are supported in all modes # drd mode -? view available options # drd mode –x ? view available extended options # drd mode [-x verbosity=3]. . . specify stdout/stderr verbosity, 0 -5 # drd mode [-x log_verbosity=4]. . . specify log file verbosity, 0 -5 # drd mode [-qqq|qq|q|v|vv|vvv]. . . alternative to –x verbosity=n # drd mode [–p]. . . preview but don’t execute the operation 30

DRD – Some Restrictions

DRD – Some Restrictions

HP-UX DRD Restrictions on update-ux and sw* Commands Invoked by drd runcmd • Options

HP-UX DRD Restrictions on update-ux and sw* Commands Invoked by drd runcmd • Options on the Software Distributor commands that can be used with drd runcmd need to ensure that operations are DRD-safe: • The -F and -x fix=true options are not supported for drd runcmd swverify operations. Use of these options could result in changes to the booted system. • The use of double quotation marks and wild card symbols (*, ? ) in the command line must be escaped with a backslash character (), as in the following example: # drd runcmd swinstall –s depot_server: /var/opt/patches * • Files referenced in the command line must both: o Reside in the inactive system image o Be referenced in the DRD-safe command by the path relative to the mount point of the inactive system image • This applies to files referenced as arguments for the -C, -f, -S, -X, and -x logfile options for an sw command run by drd runcmd and update-ux command -f option. 32

HP-UX Issue when DRD versions different in booted and cloned environment 1 of 2

HP-UX Issue when DRD versions different in booted and cloned environment 1 of 2 # drd runcmd swinstall -s /tmp/ignite/Ignite-UX-11 ALL_C. 7. 7. 98. depot • ======= 11/28/12 00: 42: 22 IST BEGIN Executing Command On • … /opt/drd/wrappers/start_fsdaemon[22]: start_fsdaemon: not found. * Stopping swagentd for drd runcmd /opt/drd/wrappers/stop_fsdaemon[22]: stop_fsdaemon: not found. ERROR: Command executed on inactive system image returned an error - One or more postcommands for /usr/sbin/swinstall failed. - One or more precommands for /usr/sbin/swinstall failed. /usr/sbin/swinstall will not be executed. - The precommand "/opt/drd/wrappers/start_fsdaemon" fails with the return code "1". - The postcommand "/opt/drd/wrappers/stop_fsdaemon" fails with the return code "1". Executing Command On Inactive System Image failed with 1 error. * Cleaning Up After Command Execution On Inactive System Image 33

HP-UX Issue when DRD versions different in booted and cloned environment 2 of 2

HP-UX Issue when DRD versions different in booted and cloned environment 2 of 2 This problem is triggered by having one version of DRD installed on the booted system, and a previous release on the inactive image. If the clone is not very new, just re-run drd clone. If you do not want to re-create the clone, the following workaround will help: # drd mount # cp /var/opt/drd/mnts/sysimage_001/opt/drd/wrappers/common_utils. orig # cp /opt/drd/wrappers/common_utils /var/opt/drd/mnts/sysimage_001/opt/drd/wrappers/common_utils (If you are booted on the clone, replace "sysimage_001" with "sysimage_000". ) The steps above will enable drd runcmd to succeed. However, the file change would cause a swverify error on the version of DRD in the clone. To repair this, install the new version of DRD to the inactive image: # drd runcmd swinstall -s <depot> Dyn. Root. Disk 34

HP-UX DRD Updates from multiple-DVD media DRD updates directly from media require the September

HP-UX DRD Updates from multiple-DVD media DRD updates directly from media require the September 2010 OE (or later) versions of DRD, SWM and SW-DIST products. In order to use a media depot to do a DRD update, first install September 2010 or later versions of DRD, SWM, and SW-DIST products from the media. This must be done before the clone is created, so the new DRD, SWM, and SW-DIST are on the active system and on the clone. 35

DRD – Usage Scenarios

DRD – Usage Scenarios

Creating and Updating DRD Clone Use the drd clone command to create a DRD

Creating and Updating DRD Clone Use the drd clone command to create a DRD clone of the active boot disk: • DRD identifies the current active boot disk • DRD builds a similarly structured clone disk • DRD copies the current disk’s file system contents to the clone • DRD builds a mirror of the clone, too, if requested • DRD records log messages in /var/opt/drd. log Identify available disk(s) # ioscan –fun. C disk list all disks on the system # lvmadm –l or strings /etc/lvmtab* which disks are LVM disks? # vxdisk list which disks are Vx. VM disks? # diskinfo /dev/rdisk/disk 3 verify the disk size Clone the current active boot disk # drd clone –t /dev/disk 3 specify a target disk (required!) [–x overwrite=true] overwrite data on target [-x mirror_disk=/dev/disk 4] create a mirror of the DRD Update an existing clone (overwrite=true required!) # drd clone –t /dev/disk 3 –x overwrite=true [-x mirror_disk=/dev/disk 4] 37 specify a target disk (required!) overwrite data on target create a mirror of the DRD

Verifying DRD Clone Status # drd status ======= 07/23/08 12: 13: 57 EDT BEGIN

Verifying DRD Clone Status # drd status ======= 07/23/08 12: 13: 57 EDT BEGIN Displaying DRD Clone Image Information (user=root) (jobid=myhost) * Clone Disk: /dev/disk 3 * Clone EFI Partition: Boot loader and AUTO file present * Clone Creation Date: 07/18/08 21: 07: 29 EDT * Clone Mirror Disk: None * Mirror EFI Partition: None * Original Disk: /dev/disk 1 * Original EFI Partition: Boot loader and AUTO file present * Booted Disk: Original Disk (/dev/disk 1) * Activated Disk: Original Disk (/dev/disk 1) ======= 07/23/08 12: 14: 04 EDT END Displaying DRD Clone Image Information succeeded. (user=root) (jobid=myhost) 38

DRD-Safe Commands • Files in the inactive system image are not accessible, by default,

DRD-Safe Commands • Files in the inactive system image are not accessible, by default, to HP-UX commands. • “DRD-Safe” commands can be executed on the inactive image via drd runcmd – Temporarily imports and mounts the inactive image’s volume group and file systems, – Executes the specified command using executables & files on the inactive image, – Ensures that the active image remains untouched, – Unmounts and exports the inactive image’s file systems and volume group. • DRD-safe commands currently include: swinstall swremove swlist swmodify swverify swjob kctune update-ux view 39

Managing Patches with DRD-Safe Commands • • Installing patches and software sometimes requires a

Managing Patches with DRD-Safe Commands • • Installing patches and software sometimes requires a reboot and downtime. Minimize downtime by installing software/patches/updates on an inactive image. Changes take effect when you activate and boot the inactive image. Only DRD-Safe patches/products can be installed via DRD. List software installed on the inactive image using the DRD-Safe swlist command # drd runcmd swlist Check if product or patch is DRD-Safe # swlist –l fileset –a is_drd_safe product_name|patch Install software on the inactive image using the DRD-Safe swinstall command # drd runcmd swinstall –s server: /mydepot PHSS_NNNNN Remove software from the inactive image using the DRD-Safe swremove command # drd runcmd swremove PHSS_NNNNN View the inactive image SDUX log file using the DRD-Safe view command # drd runcmd view /var/adm/sw/swagent. log Update to a more recent 11 i v 3 media kit # drd runcmd swinstall –s server: /mydepot Update-UX # drd runcmd update-ux –s server: /mydepot # drd runcmd view /var/adm/sw/update-ux. log # drd runcmd view /var/opt/swm/sw. log 40

Accessing DRD Inactive Images • The drd runcmd utility only executes DRD-safe executables on

Accessing DRD Inactive Images • The drd runcmd utility only executes DRD-safe executables on an inactive image. • To access other files on the inactive image, mount the image via drd mount – Imports the inactive image volume group, typically as drd 00, – Mounts the image file systems under /var/opt/drd/mnts/sysimage_001 • Warnings: – Be careful not to unintentionally modify the active system image! – Only use read-only commands like view and diff to access inactive images. Mount the inactive image file systems # drd mount # mount -v Access the inactive image file systems, being careful not to modify the active image! # diff /etc/passwd /var/opt/drd/mnts/sysimage_001/etc/passwd Unmount the inactive image file systems # drd umount 41

Activating and Deactivating Inactive DRD Image Use drd activate to make the inactive image

Activating and Deactivating Inactive DRD Image Use drd activate to make the inactive image the primary boot disk • DRD updates the boot menu • DRD can optionally reboot the system immediately Promote the inactive system image to become primary boot disk (with preview) # drd activate [-x reboot=false] -p Check the bootpath # setboot -v If –x reboot=true wasn’t specified, manually reboot # shutdown –ry 0 If you change your mind before rebooting, use drd deactivate to undo the activation # drd deactivate Use drd status to determine which disk is the currently active boot disk # drd status 42

DRD Inactive Image Synchronization • The drd sync command was introduced in release B.

DRD Inactive Image Synchronization • The drd sync command was introduced in release B. 11. xx. A. 3. 5 of Dynamic Root Disk (DRD) to propagate root volume group file system changes from the booted original system to the inactive clone image. Running drd sync command updates/creates the files on Inactive Image (Clone Disk) which were modified on Active Image (Boot Disk) after last successful execution of drd clone command. pax archive is used for drd sync while fbackup/frestore is used for clone. • To preview differences between the Active Image and the DRD Inactive Image # drd sync –p • It creates file /var/opt/drd/sync/files_to_be_copied_by_drd_sync • Once the preview is checked, a resync of the cloned image can be initiated # drd sync 43

drd sync Without DRD Sync 1. A system administrator creates a DRD clone on

drd sync Without DRD Sync 1. A system administrator creates a DRD clone on a Thursday. 2. The administrator applies a collection of software changes to the clone on Friday using the drd runcmd command. 3. On Friday, several log files are updated on the booted system. 4. On Saturday, the clone is booted, however the log files are not up to date, so the administrator must copy over the log files and any other files from the original system that changed after the clone was created – for example, /etc/passwd With DRD Sync 1. A system administrator creates a DRD clone on a Thursday. 2. The administrator applies a collection of software changes to the clone on Friday using the drd runcmd command. 3. On Friday, several log files are updated on the booted system. 4. On Saturday, the clone is synced then booted – log files and other files that have changed on the original system have automatically been copied to the clone. 44

drd sync • The list of files on the active system whose modification date

drd sync • The list of files on the active system whose modification date is newer than or equal to the clone creation time provides the initial list of files to be synchronized Trimming the list of files to be synchronized The following locations are not synchronized: /var/adm/sw, /tmp, /var/opt/drd/tmp, /stand, /dev/<clone_group>, Files that have changed on the clone are not synchronized Nonvolatile files in the Software Distributor Installed Products Database (IPD) are not synchronized Volatile files in the Software Distributor Installed Products Database (IPD) are not synchronized 45

HP-UX DRD Examples for Different O/S Releases HP-UX 11 iv 2: # drd clone

HP-UX DRD Examples for Different O/S Releases HP-UX 11 iv 2: # drd clone -t /dev/dsk/c 2 t 1 d 0 -x overwrite=true [-x mirror_disk=/dev/dsk/c 3 t 0 d 1] HP-UX 11 iv 3, use agile views: # drd clone -t /dev/disk 32 -x overwrite=true [-x mirror_disk=/dev/disk 4] Note that all partitions on Itanium disk are created, and s 1 and s 2 (_p 1 and _p 2) are copied. 46

HP-UX 11 i v 2 To v 3 Upgrade with DRD 1 of 3

HP-UX 11 i v 2 To v 3 Upgrade with DRD 1 of 3 Original image: /dev/dsk/c 0 t 0 d 0 (HP-UX 11 i v 2) Clone disk: /dev/dsk/c 1 t 0 d 0 What to apply: HP-UX 11 i v 3 Update 9, Virtual Server OE Depot with patches depsvr: /var/depots/1131_VSE-OE Version of DRD: B. 11. 31. A. 3. 3 or later Objective: Utilize DRD to help adjust file systems sizes when performing an HP-UX 11 i v 2 to v 3 update Create the clone: # drd clone –t /dev/dsk/c 1 t 0 d 0 • Use drd status to view the clone: # drd status • 47

HP-UX 11 i v 2 To v 3 Upgrade with DRD 2 of 3

HP-UX 11 i v 2 To v 3 Upgrade with DRD 2 of 3 Run update-UX in preview mode on the active disk: # update-ux -p -s depsvr: /var/depots/1131 HPUX 11 i. VSE-OE • • Adjust file system sizes on the clone as needed Activate and boot the clone, setting the alternate bootpath to the HP-UX 11 i v 2 disk: # drd activate -x alternate_bootdisk=/dev/dsk/c 0 t 0 d 0 -x reboot=true • Update the active image to HP-UX 11 i v 3, Virtual Server OE: # update-ux -s depsvr: /var/depots/1131_VSE-OE HPUX 11 i-VSE-OE • There will be a reboot executed at this time. 48

HP-UX 11 i v 2 To v 3 Upgrade with DRD 3 of 3

HP-UX 11 i v 2 To v 3 Upgrade with DRD 3 of 3 Ensure that the software is installed properly: # swverify * • Verify all software has been updated to the HP-UX 11 i v 3: # swlist • • Ensure the integrity of your updated system by checking the following log files /var/adm/sw/update-ux. log and /var/opt/swm. log 49

HP-UX How to Interrupt DRD processes All DRD processes, including “drd clone” and “drd

HP-UX How to Interrupt DRD processes All DRD processes, including “drd clone” and “drd runcmd”, can be safely interrupted issuing Control-C (SIGINT) from the controlling terminal or by issuing kill –HUP <pid> (SIGHUP). This action causes DRD to abort processing. Do not interrupt DRD using the kill -9 <pid> command (SIGKILL), which fails to abort safely and does not perform cleanup. Refer to the “Known Issues” list on the DRD web page (http: //www. hp. com/go/DRD) for cleanup instructions after drd runcmd is interrupted. 50

HP-UX DRD Examples How to Select Software • To exclude single product T 1458

HP-UX DRD Examples How to Select Software • To exclude single product T 1458 AA # drd runcmd update-ux -p –s svr: /var/opt/HPUX_1131_0903_DCOE HPUX 11 i-DC-OE !T 1458 AA • Use -f software_file * to read the list of sw_selections from software_file instead of (or in addition to) the command line # drd runcmd update-ux -s source_location -f software_file 51

HP-UX DRD Rehost Cookbook 1 of 2 Clone the host 1 system to a

HP-UX DRD Rehost Cookbook 1 of 2 Clone the host 1 system to a shared LUN # drd clone -t /dev/disk. X • Create a system information file for host 2 # vi /tmp/sysinfo_host 2 • SYSINFO_HOSTNAME=host 2 SYSINFO_DHCP_ENABLE[0]=0 SYSINFO_MAC_ADDRESS[0]=0 x 1 edb 3 adea 7 ab SYSINFO_IP_ADDRESS[0]=172. 16. 19. 184 SYSINFO_SUBNET_MASK[0]=255. 0 SYSINFO_ROUTE_GATEWAY[0]=172. 16. 19. 1 SYSINFO_ROUTE_DESTINATION[0]=default SYSINFO_ROUTE_COUNT[0]=1 52

HP-UX DRD Rehost Cookbook 2 of 2 Execute the drd rehost command, specifying the

HP-UX DRD Rehost Cookbook 2 of 2 Execute the drd rehost command, specifying the system information file created in the previous step. # drd rehost -f /tmp/sysinfo_host 2 • • Unpresent the LUN from the host 1, and present it to the host 2. • Choose the new LUN from the boot screens and boot the host 2. On both hosts reinitialize the DRD configuration by deleting the registry # rm -f /var/opt/drd/registry. xml • Remove the Device Special File of the boot device of the host 2 # rmsf -H 64000/0 xfa 00/0 x 6 • 53

HP-UX Expand Root File System with DRD 1 of 3 For this example, we

HP-UX Expand Root File System with DRD 1 of 3 For this example, we assume vg 00 has only one disk (disk 0) in LVM L 1 and the DRD will hold on disk 5. Note, however, that support procedure for extending the root filesystem is using Ignite-UX! • Create a clone of the root filesystem # drd clone -v -x overwrite=true -t /dev/disk 5 • Mount the DRD filesystem as vgdrd # mkdir /dev/vgdrd # mknod /dev/vgdrd/group c 64 0 x 0 a 0000 # vgimport /dev/vgdrd /dev/disk 5 # vgchange -a y vgdrd NOTE: The minor number must be unique on the server. 54

HP-UX Expand Root File System with DRD 2 of 3 • Create a new

HP-UX Expand Root File System with DRD 2 of 3 • Create a new lvol to hold lvol 4 # lvcreate -l <lvol 4_size> -n lvtmp /dev/vgdrd • Copy the data from lvol 4 to lvtmp # dd if=/dev/vgdrd/lvol 4 of=/dev/vgdrd/lvtmp bs=1024 • Remove lvol 4 # lvremove /dev/vgdrd/lvol 4 • Assume that there is a need to get to 450 PE on root # lvextend -l 450 /dev/vgdrd/lvol 3 • Recreate lvol 4 and move the data back: # lvcreate -l <lvol 4_size> -n lvol 4 /dev/vgdrd # dd if=/dev/vgdrd/lvtmp of=/dev/vgdrd/lvol 4 bs=1024 55

HP-UX Expand Root File System with DRD 3 of 3 • Check the size

HP-UX Expand Root File System with DRD 3 of 3 • Check the size change # vgdisplay -v vgdrd • Remove the DRD volume group # vgexport vgdrd • Boot from the DRD volume # /opt/drd/bin/drd activate -x reboot=true 56

HP-UX DRD Update-ux with Single Reboot Create a clone disk: # drd clone -x

HP-UX DRD Update-ux with Single Reboot Create a clone disk: # drd clone -x overwrite=true -t <block_DSF_target_disk> • Install OE update-ux on the clone: # drd runcmd update-ux -v -s /hp/raj. depot/ HPUX 11 i-VSE-OE • !Ignite-UX-11 -23 !Ignite-UX-11 -31 !T 1335 DC !IGNITE !Ignite-UX-11 -11 Install required patches from a depot. Install Patches, HP Products, non-HP Products from single depot: # drd runcmd swinstall -x patch_match_target=true -x • -s /hp/non-oe. depot * Boot the clone when ready # drd activate -x • alternate_bootdisk=<block_DSF_current_ boot_disk> -x reboot=true 57

HP-UX DRD Debug Session * Clean /var/opt/drd directory # cd /var/opt/drd # rm -rf

HP-UX DRD Debug Session * Clean /var/opt/drd directory # cd /var/opt/drd # rm -rf tmp/* mapfiles/* drd. log inventory mnts registry sync Run DRD session with following environment set and duplicate the issue # export INST_DEBUG=5 # export SMDDEBUG_SMDINIT=9 # drd … -x overwrite=true -x verbosity=D -x log_verbosity=D Collect the archive of /var/opt/drd # cd /var/opt # tar cvf /var/tmp/drd. tar drd # gzip /var/tmp/drd. tar Make sure to collect the debug log when the problem can be duplicated and obtain the archive of /var/opt/drd when opening an L 3 case 58

HP-UX DRD Serial Patch Installation # swlist –l fileset –a is_drd_safe  <product_name|patch> #

HP-UX DRD Serial Patch Installation # swlist –l fileset –a is_drd_safe <product_name|patch> # swcopy -s /tmp/PHCO_38159. depot * @ /var/opt/mx/depot 11/PHCO_38159. dir # drd runcmd swinstall -s /var/opt/mx/depot 11/PHCO_38159. dir PHCO_38159 59

HP-UX DRD with SWA 1 of 3 Use drd status to view the clone:

HP-UX DRD with SWA 1 of 3 Use drd status to view the clone: # drd status • • Determine what patches are needed: a. Mount the clone: # drd mount • b. Create an SWA report: # swa report -s /var/opt/drd/mnts/sysimage 001 • 60

HP-UX DRD with SWA 2 of 3 Download the patches identified by SWA into

HP-UX DRD with SWA 2 of 3 Download the patches identified by SWA into a depot: # swa get -t /var/depots/myswa • Patch installation might require special attention. Review any special installation instructions documented in /var/depots/myswa/read. Before. Install. txt. 61

HP-UX DRD with SWA 3 of 3 Install everything in the 1131 swa depot:

HP-UX DRD with SWA 3 of 3 Install everything in the 1131 swa depot: # drd runcmd swinstall • -s /var/depots/1131 swa -x patch_match_target=true Ensure the patches are installed: # drd runcmd view /var/adm/sw/swagent. log • Unmount the clone: # drd umount • Activate and boot the clone: # drd activate -x reboot=true • 62

HP-UX 11 i V 2 to V 3 Upgrade via DRD • DRD can

HP-UX 11 i V 2 to V 3 Upgrade via DRD • DRD can be used to update from 11 iv 2 to 11 iv 3. Whether that is the best option is another question. Note that there is a difference between solutions working and vendors supporting them. There are many examples in IT field when vendors refuse to “certify” solutions although they are known to work reasonably well. • There were some issues with clone activations in certain releases of DRD though. • I have done this upgrade via DRD many times. • You must ensure that the newer version (11 i v 3) DVDs (or ISO images) are not from a revision date earlier than what the 11 i v 2 was created with. • The best practice recommends cold installs as incremental upgrades might leave possibility that some obsolete software and libraries exist afterwards. • I enclose herewith another HP document that confirms it (I am sure there are many other documents around). • Or, a customer’s experience: http: //www. hpuxtips. es/? q=node/229 63

HP-UX Using DRD to Change Volume Manager • Create clone via DRD • Boot

HP-UX Using DRD to Change Volume Manager • Create clone via DRD • Boot the clone • Migrate the LVM disk to Vx. VM using vxcp_lvmroot command: # /etc/vx/bin/vxcp_lvmroot -v disk 1 64

HP-UX DRD Multiple Copies of Targets 1 of 11 * # ioscan -fun. NC

HP-UX DRD Multiple Copies of Targets 1 of 11 * # ioscan -fun. NC disk Class I H/W Path Driver S/W State H/W Type Description ================================== disk 5 64000/0 xfa 00/0 x 0 esdisk CLAIMED DEVICE HP 73. 4 GMAU 3073 NC /dev/disk 5 /dev/rdisk/disk 5 disk 6 64000/0 xfa 00/0 x 1 esdisk CLAIMED DEVICE HP 146 GST 3146707 LC /dev/disk 6 /dev/rdisk/disk 6 disk 7 64000/0 xfa 00/0 x 2 73. 4 GMAU 3073 NC esdisk CLAIMED DEVICE /dev/disk 7 /dev/rdisk/disk 7 /dev/disk 7_p 1 /dev/rdisk/disk 7_p 1 /dev/disk 7_p 2 /dev/rdisk/disk 7_p 2 /dev/disk 7_p 3 /dev/rdisk/disk 7_p 3 HP disk 8 64000/0 xfa 00/0 x 3 esdisk CLAIMED DEVICE TEAC DV-28 EN /dev/disk 8 /dev/rdisk/disk 8 disk 9 64000/0 xfa 00/0 x 6 esdisk CLAIMED DEVICE HP MSA VOLUME /dev/disk 9 /dev/rdisk/disk 9 65

HP-UX DRD Multiple Copies of Targets 2 of 11 # drd clone -t /dev/disk

HP-UX DRD Multiple Copies of Targets 2 of 11 # drd clone -t /dev/disk 5 ======= 03/04/13 11: 04: 31 EDT BEGIN Clone System Image (user=root) (jobid=ia 643) * Reading Current System Information * Selecting System Image To Clone * Selecting Target Disk * Selecting Volume Manager For New System Image * Analyzing For System Image Cloning * Creating New File Systems * Copying File Systems To New System Image WARNING: The following files could not be copied to the clone. WARNING: This may be caused by updating files during the copy. WARNING: Uncopied file: /var/opt/hpvm/common/command. log * Copying File Systems To New System Image succeeded with 3 warnings. * Making New System Image Bootable * Unmounting New System Image Clone ======= 03/04/13 11: 44: 49 EDT END Clone System Image succeeded with 3 warnings. (user=root) (jobid=ia 643) 66

HP-UX DRD Multiple Copies of Targets 3 of 11 # drd status ======= 03/04/13

HP-UX DRD Multiple Copies of Targets 3 of 11 # drd status ======= 03/04/13 11: 45: 09 EDT BEGIN Displaying DRD Clone Image Information (user=root) (jobid=ia 643) * Clone Disk: /dev/disk 5 * Clone EFI Partition: AUTO file present, Boot loader present * Clone Rehost Status: SYSINFO. TXT not present * Clone Creation Date: 03/04/13 11: 04: 52 EDT * Last Sync Date: None * Clone Mirror Disk: None * Mirror EFI Partition: None * Original Disk: /dev/disk 7 * Original EFI Partition: AUTO file present, Boot loader present * Original Rehost Status: SYSINFO. TXT not present * Booted Disk: Original Disk (/dev/disk 7) * Activated Disk: Original Disk (/dev/disk 7) ======= 03/04/13 11: 45: 28 EDT END Displaying DRD Clone Image Information succeeded. (user=root) (jobid=ia 643) 67

HP-UX DRD Multiple Copies of Targets 4 of 11 # drd clone -t /dev/disk

HP-UX DRD Multiple Copies of Targets 4 of 11 # drd clone -t /dev/disk 6 ======= 03/04/13 11: 46: 17 EDT BEGIN Clone System Image (user=root) (jobid=ia 643) * Reading Current System Information * Selecting System Image To Clone * Selecting Target Disk * Selecting Volume Manager For New System Image * Analyzing For System Image Cloning * Creating New File Systems * Copying File Systems To New System Image WARNING: The following files could not be copied to the clone. WARNING: This may be caused by updating files during the copy. WARNING: Uncopied file: /var/opt/hpvm/common/command. log WARNING: Uncopied file: /var/opt/perf/datafiles/logdev * Copying File Systems To New System Image succeeded with 4 warnings. * Making New System Image Bootable * Unmounting New System Image Clone ======= 03/04/13 12: 34: 52 EDT END Clone System Image succeeded with 4 warnings. (user=root) (jobid=ia 643) 68

HP-UX DRD Multiple Copies of Targets 5 of 11 # drd status ======= 03/04/13

HP-UX DRD Multiple Copies of Targets 5 of 11 # drd status ======= 03/04/13 12: 35: 37 EDT BEGIN Displaying DRD Clone Image Information (user=root) (jobid=ia 643) * Clone Disk: /dev/disk 6 * Clone EFI Partition: AUTO file present, Boot loader present * Clone Rehost Status: SYSINFO. TXT not present * Clone Creation Date: 03/04/13 11: 46: 37 EDT * Last Sync Date: None * Clone Mirror Disk: None * Mirror EFI Partition: None * Original Disk: /dev/disk 7 * Original EFI Partition: AUTO file present, Boot loader present * Original Rehost Status: SYSINFO. TXT not present * Booted Disk: Original Disk (/dev/disk 7) * Activated Disk: Original Disk (/dev/disk 7) ======= 03/04/13 12: 35: 56 EDT END Displaying DRD Clone Image Information succeeded. (user=root) (jobid=ia 643) 69

HP-UX DRD Multiple Copies of Targets 6 of 11 # ioscan -m dsf Persistent

HP-UX DRD Multiple Copies of Targets 6 of 11 # ioscan -m dsf Persistent DSF Legacy DSF(s) ==================== /dev/pt/pt 3 /dev/rscsi/c 5 t 0 d 0 /dev/rscsi/c 4 t 0 d 0 /dev/pt/pt 4 /dev/rscsi/c 6 t 0 d 0 /dev/rdisk/disk 5 /dev/rdsk/c 2 t 1 d 0 /dev/rdisk/disk 5_p 1 /dev/rdsk/c 2 t 1 d 0 s 1 /dev/rdisk/disk 5_p 3 /dev/rdsk/c 2 t 1 d 0 s 3 /dev/rdisk/disk 5_p 2 /dev/rdsk/c 2 t 1 d 0 s 2 /dev/rdisk/disk 6 /dev/rdsk/c 2 t 0 d 0 /dev/rdisk/disk 6_p 1 /dev/rdsk/c 2 t 0 d 0 s 1 /dev/rdisk/disk 6_p 2 /dev/rdsk/c 2 t 0 d 0 s 2 /dev/rdisk/disk 6_p 3 /dev/rdsk/c 2 t 0 d 0 s 3 /dev/rdisk/disk 7 /dev/rdsk/c 3 t 2 d 0 /dev/rdisk/disk 7_p 1 /dev/rdsk/c 3 t 2 d 0 s 1 /dev/rdisk/disk 7_p 2 /dev/rdsk/c 3 t 2 d 0 s 2 /dev/rdisk/disk 7_p 3 /dev/rdsk/c 3 t 2 d 0 s 3 /dev/rdisk/disk 8 /dev/rdsk/c 0 t 0 d 0 /dev/rdisk/disk 9 /dev/rdsk/c 7 t 0 d 2 70

HP-UX DRD Multiple Copies of Targets 7 of 11 # ioscan -funne. C disk

HP-UX DRD Multiple Copies of Targets 7 of 11 # ioscan -funne. C disk Class I H/W Path Driver S/W State H/W Type Description ==================================== disk 3 0/0/2/0. 0 sdisk CLAIMED DEVICE TEAC DV-28 E-N /dev/dsk/c 0 t 0 d 0 /dev/rdsk/c 0 t 0 d 0 Acpi(HWP 0002, 0)/Pci(2|0)/Ata(Primary, Master) disk 1 0/1/1/0. 0. 0 sdisk CLAIMED DEVICE HP 146 GST 3146707 LC /dev/dsk/c 2 t 0 d 0 /dev/rdsk/c 2 t 0 d 0 /dev/dsk/c 2 t 0 d 0 s 1 /dev/rdsk/c 2 t 0 d 0 s 1 /dev/dsk/c 2 t 0 d 0 s 2 /dev/rdsk/c 2 t 0 d 0 s 2 /dev/dsk/c 2 t 0 d 0 s 3 /dev/rdsk/c 2 t 0 d 0 s 3 Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 0, Lun 0)/HD(Part 1, Sig. FB 4 D 90 C 2 -8464 -11 E 2 -8000 D 6217 B 60 E 588)/EFIHPUX. EFI disk 0 0/1/1/0. 1. 0 sdisk CLAIMED DEVICE HP 73. 4 GMAU 3073 NC /dev/dsk/c 2 t 1 d 0 /dev/rdsk/c 2 t 1 d 0 /dev/dsk/c 2 t 1 d 0 s 1 /dev/rdsk/c 2 t 1 d 0 s 1 /dev/dsk/c 2 t 1 d 0 s 2 /dev/rdsk/c 2 t 1 d 0 s 2 /dev/dsk/c 2 t 1 d 0 s 3 /dev/rdsk/c 2 t 1 d 0 s 3 Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 1, Lun 0)/HD(Part 1, Sig 25 DEF 318 -845 F-11 E 2 -8000 D 6217 B 60 E 588)/EFIHPUX. EFI disk 2 0/1/1/1. 2. 0 sdisk CLAIMED DEVICE HP 73. 4 GMAU 3073 NC /dev/dsk/c 3 t 2 d 0 /dev/rdsk/c 3 t 2 d 0 /dev/dsk/c 3 t 2 d 0 s 1 /dev/rdsk/c 3 t 2 d 0 s 1 /dev/dsk/c 3 t 2 d 0 s 2 /dev/rdsk/c 3 t 2 d 0 s 2 /dev/dsk/c 3 t 2 d 0 s 3 /dev/rdsk/c 3 t 2 d 0 s 3 Acpi(HWP 0002, 100)/Pci(1|1)/Scsi(Pun 2, Lun 0)/HD(Part 1, Sig. B 9 B 8 E 4 CC-0 CE 1 -11 E 2 -8000 D 6217 B 60 E 588)/EFIHPUX. EFI disk 4 0/4/1/1. 4. 0. 0. 2 sdisk CLAIMED DEVICE HP MSA VOLUME /dev/dsk/c 7 t 0 d 2 /dev/rdsk/c 7 t 0 d 2 Acpi(HWP 0002, 400)/Pci(1|1)/Fibre(WWN 500805 F 300061081, Lun 4002000000 71

HP-UX DRD Multiple Copies of Targets 8 of 11 EFI Shell version 1. 10

HP-UX DRD Multiple Copies of Targets 8 of 11 EFI Shell version 1. 10 [14. 62] Device mapping table fs 0 : Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 0, Lun 0)/HD(Part 1, Sig. FB 4 D 90 C 2 -8464 -11 E 2 -8000 -D 6217 B 60 E 588) fs 1 : Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 0, Lun 0)/HD(Part 3, Sig. FB 4 D 90 EA-8464 -11 E 2 -8000 -D 6217 B 60 E 588) fs 2 : Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 1, Lun 0)/HD(Part 1, Sig 25 DEF 318 -845 F-11 E 2 -8000 -D 6217 B 60 E 588 ) fs 3 : Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 1, Lun 0)/HD(Part 3, Sig 25 DEF 340 -845 F-11 E 2 -8000 -D 6217 B 60 E 588) fs 4 : Acpi(HWP 0002, 100)/Pci(1|1)/Scsi(Pun 2, Lun 0)/HD(Part 1, Sig. B 9 B 8 E 4 CC-0 CE 1 -11 E 2 -8000 -D 6217 B 60 E 588) fs 5 : Acpi(HWP 0002, 100)/Pci(1|1)/Scsi(Pun 2, Lun 0)/HD(Part 3, Sig. B 9 B 8 E 526 -0 CE 1 -11 E 2 -8000 -D 6217 B 60 E 588) blk 0 : Acpi(HWP 0002, 0)/Pci(2|0)/Ata(Primary, Master) blk 1 : Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 0, Lun 0) blk 2 : Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 0, Lun 0)/HD(Part 1, Sig. FB 4 D 90 C 2 -8464 -11 E 2 -8000 -D 6217 B 60 E 588) blk 3 : Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 0, Lun 0)/HD(Part 2, Sig. FB 4 D 90 D 6 -8464 -11 E 2 -8000 -D 6217 B 60 E 588) blk 4 : Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 0, Lun 0)/HD(Part 3, Sig. FB 4 D 90 EA-8464 -11 E 2 -8000 -D 6217 B 60 E 588) blk 5 : Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 1, Lun 0) blk 6 : Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 1, Lun 0)/HD(Part 1, Sig 25 DEF 318 -845 F-11 E 2 -8000 -D 6217 B 60 E 588) blk 7 : Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 1, Lun 0)/HD(Part 2, Sig 25 DEF 32 C-845 F-11 E 2 -8000 -D 6217 B 60 E 588) blk 8 : Acpi(HWP 0002, 100)/Pci(1|0)/Scsi(Pun 1, Lun 0)/HD(Part 3, Sig 25 DEF 340 -845 F-11 E 2 -8000 -D 6217 B 60 E 588) blk 9 : Acpi(HWP 0002, 100)/Pci(1|1)/Scsi(Pun 2, Lun 0) blk. A : Acpi(HWP 0002, 100)/Pci(1|1)/Scsi(Pun 2, Lun 0)/HD(Part 1, Sig. B 9 B 8 E 4 CC-0 CE 1 -11 E 2 -8000 -D 6217 B 60 E 588) blk. B : Acpi(HWP 0002, 100)/Pci(1|1)/Scsi(Pun 2, Lun 0)/HD(Part 2, Sig. B 9 B 8 E 512 -0 CE 1 -11 E 2 -8000 -D 6217 B 60 E 588) blk. C : Acpi(HWP 0002, 100)/Pci(1|1)/Scsi(Pun 2, Lun 0)/HD(Part 3, Sig. B 9 B 8 E 526 -0 CE 1 -11 E 2 -8000 -D 6217 B 60 E 588) blk. D : Acpi(HWP 0002, 400)/Pci(1|1)/Fibre(WWN 500805 F 300061081, Lun 4002000000) startup. nsh> echo -off 72

HP-UX DRD Multiple Copies of Targets 9 of 11 fs 2: EFIHPUX> hpux. efi

HP-UX DRD Multiple Copies of Targets 9 of 11 fs 2: EFIHPUX> hpux. efi After the reboot: # /usr/lbin/bootpath /dev/disk 5 # setboot -v Primary bootpath : 0/1/1/1. 0 x 2. 0 x 0 (/dev/rdisk/disk 7) HA Alternate bootpath : 0/0/2/0. 0. 0 x 0 (/dev/rdisk/disk 8) Alternate bootpath : 0/1/1/0. 0 x 1. 0 x 0 (/dev/rdisk/disk 5 ) Autoboot is ON (enabled) TEST CURRENT DEFAULT ------all on SELFTESTS on early_cpu on late_cpu on FASTBOOT on Platform on Full_memory on Memory_init on IO_HW on Chipset on 73

HP-UX DRD Multiple Copies of Targets 10 of 11 # lvlnboot -v Boot Definitions

HP-UX DRD Multiple Copies of Targets 10 of 11 # lvlnboot -v Boot Definitions for Volume Group /dev/vg 00: Physical Volumes belonging in Root Volume Group: /dev/disk 5_p 2 -- Boot Disk Boot: lvol 1 on: /dev/disk 5_p 2 Root: lvol 3 on: /dev/disk 5_p 2 Swap: lvol 2 on: /dev/disk 5_p 2 Dump: lvol 2 on: /dev/disk 5_p 2, 0 # drd status ======= 03/04/13 15: 03: 21 EDT BEGIN Displaying DRD Clone Image Information (user=root) (jobid=ia 643) * Clone Disk: /dev/disk 5 * Clone EFI Partition: AUTO file present, Boot loader present * Clone Rehost Status: SYSINFO. TXT not present * Clone Creation Date: 03/04/13 11: 04: 52 EDT * Last Sync Date: None * Clone Mirror Disk: None * Mirror EFI Partition: None * Original Disk: /dev/disk 7 * Original EFI Partition: AUTO file present, Boot loader present * Original Rehost Status: SYSINFO. TXT not present * Booted Disk: Clone Disk (/dev/disk 5) * Activated Disk: Original Disk (/dev/disk 7 ) ======= 03/04/13 15: 03: 40 EDT END Displaying DRD Clone Image Information succeeded. (user=root) (jobid=ia 643 ) 74

HP-UX DRD Multiple Copies of Targets 11 of 11 Final reboot to go back

HP-UX DRD Multiple Copies of Targets 11 of 11 Final reboot to go back to the original disk: # /usr/lbin/bootpath /dev/disk 7 # drd status ======= 03/11/13 16: 41: 35 EDT BEGIN Displaying DRD Clone Image Information (user=root) (jobid=ia 643 ) * Clone Disk: /dev/disk 6 * Clone EFI Partition: AUTO file present, Boot loader present * Clone Rehost Status: SYSINFO. TXT not present * Clone Creation Date: 03/04/13 11: 46: 37 EDT * Last Sync Date: None * Clone Mirror Disk: None * Mirror EFI Partition: None * Original Disk: /dev/disk 7 * Original EFI Partition: AUTO file present, Boot loader present * Original Rehost Status: SYSINFO. TXT not present * Booted Disk: Original Disk (/dev/disk 7) * Activated Disk: Original Disk (/dev/disk 7 ) ======= 03/11/13 16: 41: 54 EDT END Displaying DRD Clone Image Information succeeded. (user=root) (jobid=ia 643) 75

HP-UX DRD Wishlist • Here are some other DRD features I would like to

HP-UX DRD Wishlist • Here are some other DRD features I would like to see in the future: • Command to cancel DRD cloning process (like Solaris lucancel). • More comprehensive comparison of files (like Solaris lucompare). Yes, we have "drd sync –p" but it is not as good. • Command to delete DRD clone (like Solaris ludelete). • Command to set or display useful description for clones and boot environments (like Solaris ludesc). • Terminal user interface (like Solaris lu). • Multiple target disks for cloning (currently DRD supports one target and its mirror only). 76

Thank You!

Thank You!