Theinformation containedhereinis subject tochange without notice
Agenda
•DRD overview
•DRD use models
– Recovery
– Maintenance
– Provisioning/Rehosting
– Update
•DRD status & sync
•Real-life examples
•Wrap-up
DRD overview
Mission/benefits
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
DRD is supported on 11i v2
and v3; the orange lightning
bolt on future slides indicates
areas of increased feature
support on 11i v3
hours, or whenever convenient
Provision systems quickly and efficiently
Simplify testing
3
DRD use models
DRD use case
Recovery
1.Original system image is active
2.Create a clone of the original system
image (drd clone)
3.When clone completes, two copies
of system image exist (drd status)
4.If a problem is encountered with
original image, boot clone
(drd activate)
clone
Active
5
DRD use case
Maintenance (slide 1 of 3)
1.Original system image is active
2.Create a clone of the original system image
(drd clone)
3.When complete, two copies of system image
exist (drd status)
clone
Active
6
DRD use case
Maintenance (slide 2 of 3)
1.Original system image is active
2.Create a clone of the original system image
(drd clone)
3.When complete, two copies of system image
exist (drd status)
4.Modify inactive image to reach desired state
– install patches & products (drd runcmd
swinstall)
Apply patches
& products
5.When modification completes, have an
unmodified original image and a modified
clone
6.Synchronize files from the active image to the
clone – password files, log files, etc. (drd sync)
sync
Active
The orange lightning bolt identifies increased feature support for 11i v3;
in this case, product installation on a clone is supported only on 11i v3,
with patch installation supported on 11i v3 and 11i v2
7
Modified clone
DRD use case
Maintenance (slide 3 of 3)
1.Original system image is active
2.Create a clone of the original system image
(drd clone)
3.When complete, two copies of system image
exist (drd status)
4.Modify inactive image to reach desired state
– install patches & products (drd runcmd
swinstall)
Apply patches
& products
5.When modification completes, have an
unmodified original image and a modified
clone
6.Synchronize files from the active image to the
clone – password files, log files, etc. (drd sync)
7.Boot the clone when ready (drd activate)
8.If original system preferred, boot the
unmodified original image to return to
Modified clone
Active
8
original state (drd activate)
DRD use case
High Availability with DRD and MirrorDisk/UX (slide 1 of 3)
1.Original mirrored system image is active
2.Create mirrored clone of the original system
image (drd clone)
3.When complete, four copies of system image
exist (drd status)
clone
Active
9
DRD use case
High Availability with DRD and MirrorDisk/UX (slide 2 of 3)
1.Original mirrored system image is active
2.Create mirrored clone of the original system
image (drd clone)
3.When complete, four copies of system image
exist (drd status)
4.Patch inactive image (drd runcmd swinstall)
5.When modification completes, have an
unmodified original image and a modified
clone
10
Active
sync
Apply patches
& products
Modified clone w/patches
6.Synchronize files from the active image to the
clone – password files, log files, etc. (drd sync)
DRD use case
High Availability with DRD and MirrorDisk/UX (slide 3 of 3)
1.Original mirrored system image is active
2.Create mirrored clone of the original system
image (drd clone)
3.When complete, four copies of system image
exist (drd status)
4.Patch inactive image (drd runcmd swinstall)
5.When modification completes, have an
unmodified original image and a modified
clone
6.Synchronize files from the active image to the
clone – password files, log files, etc. (drd sync)
11
7.Boot the clone when ready (drd activate)
8.In event of a sw problem, boot the unmodified
original image to return to original state
(drd activate)
9.In the event of a hw problem, run from mirror
Modified clone w/patches
Active
DRD Customer use models
High Availability with DRD and MirrorDisk/UX
Requires 4 LUNs
Requires a MirrorDisk/UX license
Enables fast mirrored recovery
Easy to implement
12
drd clone –t/dev/dsk/c3t15d0 –x
mirror_disk=/dev/dsk/c4t15d0
Provides protection against both
hardware and software failures
DRD use case
Updating from HP-UX 11i v3 0903 to HP-UX 11i v3 1103 (slide 1 of 3)
1.Original system image is active
2.Create a clone of the original system image
(drd clone)
3.When complete, two copies of system image
exist (drd status)
HP-UX 11i v3 0903
Active
13
HP-UX 11i v3 0903
clone
DRD use case
Updating from HP-UX 11i v3 0903 to HP-UX 11i v3 1103 (slide 2 of 3)
1.Original system image is active
2.Create a clone of the original system image
(drd clone)
3.When complete, two copies of system image
HP-UX 11i v3 1103
exist (drd status)
4.Update the inactive image to HP-UX 11i v3
March 2009 or later (1103 or March 2011 in
this case) (drd runcmd update-ux)
5.When modification completes, have an
original image with HP-UX 11i v3 0903,
HP-UX 11i v3 0903
Active
14
update
HP-UX 11i v3 1103
Modified clone
and a modified clone with HP-UX 11i v3 1103
DRD use case
Updating from HP-UX 11i v3 0903 to HP-UX 11i v3 1103 (slide 3 of 3)
1.Original system image is active
2.Create a clone of the original system image
(drd clone)
3.When complete, two copies of system image
exist (drd status)
4.Update the inactive image to HP-UX 11i v3
March 2009 or later (1103 or March 2011 in
this case) (drd runcmd update-ux)
HP-UX 11i v3 0903
15
Patches
SWA
Report
HP-UX 11i v3 1103
Modified clone
Active
5.When modification completes, have an
original image with HP-UX 11i v3 0903,
and a modified clone with HP-UX 11i v3 1103
6.Use SWA to identify patches & fixes to security
issues (drd mount, swa report, drd umount)
7.Install required patches (swa get, drd runcmd
swinstall)
8.Boot the clone when ready (drd activate)
9.If original system preferred, boot the
unmodified original image to return to
original state (drd activate)
DRD use case
Updating from HP-UX 11i v2 to HP-UX 11i v3 1103 (slide 1 of 4)
1.Create a clone of the original system image
(drd clone)
2.Run update-ux in preview mode on the active disk
(update-ux -p)
3.Adjust file system sizes on the clone as needed
(www.hp.com/go/drd-docs)
HP-UX 11i v2
Active
16
HP-UX 11i v2
clone
Modified clone
DRD use case
Updating from HP-UX 11i v2 to HP-UX 11i v3 1103 (slide 2 of 4)
1.Create a clone of the original system image
(drd clone)
2.Run update-ux in preview mode on the active disk
(update-ux -p)
HP-UX 11i v2 0712
HP-UX 11i v3 1103
update
HP-UX 11i v3 1103
Modified clone
Active
3.Adjust file system sizes on the clone as needed
(www.hp.com/go/drd-docs)
4.Activate the clone & boot when ready (drd activate)
5.Update the active image to HP-UX 11i v3 1103
(update-ux)
6.When update completes, have an active image with
11i v3 1103, and a clone with 11i v2 (drd status)
Could stop here, OR…
17
DRD use case
Updating from HP-UX 11i v2 to HP-UX 11i v3 1103 (slide 3 of 4)
1.Create a clone of the original system image
(drd clone)
2.Run update-ux in preview mode on the active disk
(update-ux -p)
3.Adjust file system sizes on the clone as needed
(www.hp.com/go/drd-docs)
4.Activate the clone & boot when ready (drd activate)
5.Update the active image to HP-UX 11i v3 1103
(update-ux)
SWA
Report
6.When update completes, have an active image with
11i v3 1103, and a clone with 11i v2 (drd status)
Could stop here, OR…
1.Create a clone of the active image
(drd clone –x overwrite=true)
HP-UX 11i v3 1103
18
clone
HP-UX 11i v3 1103
Active
2.Use SWA to identify patches & fixes to security
issues (drd mount, swa report, drd unmount)
DRD use case
Updating from HP-UX 11i v2 to HP-UX 11i v3 1103 (slide 4 of 4)
1.Create a clone of the original system image
(drd clone)
2.Run update-ux in preview mode on the active disk
(update-ux -p)
3.Adjust file system sizes on the clone as needed
(www.hp.com/go/drd-docs)
4.Activate the clone & boot when ready (drd activate)
5.Update the active image to HP-UX 11i v3 1103
(update-ux)
HP-UX 11i v3 1103
Active
19
Patches
HP-UX 11i v3 1103
6.When update completes, have an active image with
11i v3 1103, and a clone with 11i v2 (drd status)
Could stop here, OR…
1.Create a clone of the active image
(drd clone –x overwrite=true)
2.Use SWA to identify patches & fixes to security
issues (drd mount, swa report, drd unmount)
3.Install required patches
(swa get, drd runcmd swinstall)
4.Boot the clone when ready (drd activate)
DRD use case
Rehosting – Provisioning (blade example, slide 1 of 2)
1.Original system image is the
BL2
BL6
active image
2.Create clone of the original system
image (drd clone)
3.When clone completes, two copies
of system image exist (drd status)
4.Rehost the clone to be BL6:
a. Create a system information file
b. Copy the system info file to the EFI partition
of the clone (drd rehost)
sys_info_BL6 SYSINFO.TXT
clone
Active
20
DRD use case
Rehosting – Provisioning (blade example, slide 2 of 2)
1.Original system image is the
BL2
BL6
active image
2.Create clone of the original system
image (drd clone)
3.When clone completes, two copies
of system image exist (drd status)
4.Rehost the clone to be BL6:
a. Create a system information file
b. Copy the system info file to the EFI partition
of the clone (drd rehost)
sys_info_BL6
Active Active
21
SYSINFO.TXT
5.Optional: Create a Virtual Connect
Profile for BL6
6.Unpresent the LUN from BL2 and
present it to BL6
7.Choose the new LUN from the EFI
Boot Menu, and boot the BL6 blade
Rehosting: Is
• Provided by sysinfo file management:
−Ability to change hostname, IP @, network cfg
• Provided by 11i v3 storage agility:
−Persistence of agile device files
• E.g./dev/disk/disk10 linked to WWN in kernel
registry
22
• Provided by 11i v3 LVM
−Ability to boot from different disk from boot disk
recorded in/etc/lvmtab
Rehosting: Is not
• Additional software is not installed by “drd
rehost”:
−Use “drd runcmd swinstall“ for all drivers needed
for target before rehost
−Use “drd runcmd mk_kernel to configure all drivers
needed for target into kernel
• For 11iv2, do not get
23
−Storage agility
−LVM Boot resiliency
23
Rehosting: Additional information
• Rehosting can be done between VMs, blades
and even different systems on 11i v3 – similar
systems will be more straightforward, and
different systems will require more manual work
• You may need to do kernel work on the target
system for different systems, including different
24
types of blades. The “Migrating an Integrity HP-
UX 11i v3 Instance to New Hardware”
whitepaper has additional information
DRD use case
Maintaining a mixed 11i v2/v3 VM environment (slide 1 of 2)
1.Install VM Host, VM1 and VM2 via Ignite
2.VM3 needs to be added
3.On host, setup resources:
a. Add disk to VM2
VM Host
VM1
VM2
VM3
11i v3
11i v2
11i v3
sys_info_vm3
clone
11i v3
SYSINFO.TXT
b. Create VM3 with just a network interface
4.On VM2, create and rehost the new
boot disk:
a. Create clone of the VM‟s system image (drd
clone)
b. When clone completes, two copies of system
image exist (drd status)
c. Create the system info file with VM3‟s personality
d. Copy the system info file to the EFI partition of the
clone (drd rehost)
25
DRD use case
Maintaining a mixed 11i v2/v3 VM environment (slide 2 of 2)
1.Install VM Host, VM1 and VM2 via Ignite
2.VM3 needs to be added
3.On host, setup resources:
a. Add disk to VM2
VM Host
VM1
VM2
VM3
11i v3
11i v2
11i v3
sys_info_vm3
11i v3
SYSINFO.TXT
Active
b. Create VM3 with just a network interface
4.On VM2, create and rehost the new
boot disk:
a. Create clone of the VM‟s system image (drd
clone)
b. When clone completes, two copies of system
image exist (drd status)
c. Create the system info file with VM3‟s personality
d. Copy the system info file to the EFI partition of the
clone (drd rehost)
5.On the host, activate VM3:
a. Move the clone disk from VM2 to VM3
b. Boot VM3, choosing clone from
EFI menu
26
DRD Status & DRD Sync
DRD status
======= 9/23/11 22:09:00 MDT BEGIN Displaying DRD Clone Image
Information (user=root) (jobid=drdtest10)
* Clone Disk: /dev/disk/disk8
* Clone EFI Partition: AUTO file present, Boot loader present
* Clone Rehost Status: SYSINFO.TXT not present
* Clone Creation Date: 10/24/10 16:41:56 MDT
* Last Sync Date: 10/25/10 14:26:16 MDT
* Clone Mirror Disk: /dev/disk/disk10
* Mirror EFI Partition: AUTO file present, Boot loader present
* Mirror Rehost Status: SYSINFO.TXT not present
* Original Disk: /dev/disk/disk7
* Original EFI Partition: AUTO file present, Boot loader present
* Original Rehost Status: SYSINFO.TXT not present
* Booted Disk: Clone Disk (/dev/disk/disk8)
* Activated Disk: /dev/disk/disk13
======= 9/23/11 22:09:13 MDT END Displaying DRD Clone Image
Information succeeded. (user=root) (jobid=drdtest10)
#
28
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
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
29
after the clone was created – for
example,/etc/passwd
DRD sync
File 1
File 2File 2File 2
File 3 File 3
File 4 File 4
File 1
File 1.1 File 1.1
File 2
File 3.1 File 3.1
File 4
File 4 File 4 File 4
File 1.1 File 1.1
File 2File 2
File 3.2 ♥ File 3.2 ♥
Active Image
File 5File 5File 5File 5File 5File 5
File 1
File 2
File 3
File 4 File 4 File 4 File 4
Inactive Image
File 5File 5File 5File 5
File 1.2 ♠
File 3
File 1.2 ♠
File 2File 2File 2
File 3.1
File 1.2 ♠
File 3.2 ♥
30
Time
drd clone
drd sync 1
drd sync 2
DRD sync – algorithm
•The list of files on the active system in the root group is 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/, /var/tmp/,