Sie sind auf Seite 1von 3

RESTRICTED

Document Title Procedure to create a DRD image of hp-ux servers


Applicable Company/Group/Division Document Number Revision Issue Date
Billing Administration Support 1 14/03/2011
APPROVAL Name Job Title/ Role Signature Date
Document Owner Fernando Retagi 14/03/2011
Approved by

Approved by

1. OBJECTIVE

The objective of this document is to describe all steps to create a DRD image (backup) of
the root diskks.

2. DEFINITIONS/Abbreviations

3. PROCEDURE

Ask the storage admin to assign to the server LUN/disk to be used as DRD image
Step1 Identify your disks:
# /opt/NetApp/santools/bin/sanlun lun show | grep dbnode
Example:
dbnode0 ~ # /opt/NetApp/santools/bin/sanlun lun show | grep dbnode
Mcel-NetApp2: /vol/dbnode1_imagem/qdbnode1_imagem/dbnode1_imagemLun /dev/rdsk/c14t2d0 fcd0
FCP 74.0g (79461089280) GOOD

If Using HP-UX 11.31 convert between DSF and Leagacy format use the “-m dsf” option:

Example:
# ioscan -m dsf /dev/rdsk/c12t2d1
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk107 /dev/rdsk/c12t2d1

Step 2. Now run DRD

Document No.: Revision 1


Title: Create a DRD image of server
Owner:Fernando Retagi Page 1 of 3
RESTRICTED

dbnode1 ~ # drd clone -t /dev/disk/disk103

======= 02/28/11 18:50:39 SASTT BEGIN Clone System Image (user=root)


(jobid=dbnode1)

* Reading Current System Information


* Selecting System Image To Clone
* Converting legacy DSF "/dev/dsk/c0t6d0" to "/dev/disk/disk6"
* Converting legacy DSF "/dev/dsk/c4t6d0" to "/dev/disk/disk11"
* 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
* Making New System Image Bootable
* Unmounting New System Image Clone

======= 02/28/11 19:09:58 SASTT END Clone System Image succeeded with 7
warnings. (user=root) (jobid=dbnode1)

Step 3. Check your current bootpath:

dbnode1 ~ # setboot
Primary bootpath : 0/0/0/3/0.0x6.0x0 (/dev/rdisk/disk6)
HA Alternate bootpath : 1/0/0/3/0.0x6.0x0 (/dev/rdisk/disk11)
Alternate bootpath : 1/0/0/3/0.0x6.0x0 (/dev/rdisk/disk11)

Autoboot is ON (enabled)
Hyperthreading : OFF
: OFF (next boot)

Step 4. Check status of DRD

dbnode1 ~ # drd status

======= 02/28/11 19:10:51 SASTT BEGIN Displaying DRD Clone Image Information
(user=root) (jobid=dbnode1)

* Clone Disk: /dev/disk/disk103


* Clone EFI Partition: AUTO file present, Boot loader present
* Clone Rehost Status: SYSINFO.TXT not present
* Clone Creation Date: 02/28/11 18:50:50 SAST
* Clone Mirror Disk: None
* Mirror EFI Partition: None
* Original Disk: /dev/disk/disk6
* Original EFI Partition: AUTO file present, Boot loader present
* Original Rehost Status: SYSINFO.TXT present
* Booted Disk: Original Disk (/dev/disk/disk6)

Document No.: Revision 1


Title: Create a DRD image of server
Owner:Fernando Retagi Page 2 of 3
RESTRICTED
* Activated Disk: Original Disk (/dev/disk/disk6)

======= 02/28/11 19:11:00 SASTT END Displaying DRD Clone Image Information
succeeded. (user=root) (jobid=dbnode1)

Step 5. To boot from clone you need to activate it:

dbnode1 ~ # drd activate

======= 02/28/11 19:11:18 SASTT BEGIN Activate Inactive System Image


(user=root) (jobid=dbnode1)

* Checking for Valid Inactive System Image


* Reading Current System Information
* Locating Inactive System Image
* Determining Bootpath Status
* Primary bootpath : 0/0/0/3/0.0x6.0x0 before activate.
* Primary bootpath : 0/0/12/1/0.0x500a098297a9630d.0x4010000000000000
after activate.
* Alternate bootpath : 1/0/0/3/0.0x6.0x0 before activate.
* Alternate bootpath : 1/0/0/3/0.0x6.0x0 after activate.
* HA Alternate bootpath : 1/0/0/3/0.0x6.0x0 before activate.
* HA Alternate bootpath : 1/0/0/3/0.0x6.0x0 after activate.
* Activating Inactive System Image

======= 02/28/11 19:11:30 SASTT END Activate Inactive System Image


succeeded. (user=root) (jobid=dbnode1)

Step 6. View new bootpath:

dbnode1 ~ # setboot
Primary bootpath : 0/0/12/1/0.0x500a098297a9630d.0x4010000000000000
(/dev/rdisk/disk103)
HA Alternate bootpath : 1/0/0/3/0.0x6.0x0 (/dev/rdisk/disk11)
Alternate bootpath : 1/0/0/3/0.0x6.0x0 (/dev/rdisk/disk11)

Autoboot is ON (enabled)
Hyperthreading : OFF
: OFF (next boot)

Step 7. Because we are only going to use as a backup, we must set the bootpath to
the original one.

dbnode1 ~ # setboot –p 0/0/0/3/0.0x6.0x0 –b on

Document No.: Revision 1


Title: Create a DRD image of server
Owner:Fernando Retagi Page 3 of 3

Das könnte Ihnen auch gefallen