hp-ux 11iv3 method to set up multiple clones with dynamic root disk dusan baljevic 2014

15
HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

Upload: axelle

Post on 30-Jan-2016

42 views

Category:

Documents


0 download

DESCRIPTION

HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014. Acknowledgements. These slides have been used in various presentations in Australia over the last four years. This is a work-in-progress. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk

Dusan Baljevic 2014

Page 2: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

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

Page 3: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

3

HP-UX DRD Multiple Copies of Targets Initial scenario - HP-UX 11iv3 server with four disks.

* Current boot disk is disk7:

disk5 HP 73.4GMAU3073NC

disk6 HP 146 GST3146707LC

disk7 HP 73.4GMAU3073NC

disk9 MSA/P2000 VOLUME

* Initial clone is disk5.

* Then, we create another clone via DRD on disk6.

* The question is: can we use the previous DRD clone disk5? The answer is: YES!

Page 4: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

4

HP-UX DRD Multiple Copies of Targets

# ioscan -funNC diskClass I H/W Path Driver S/W State H/W Type Description

===================================================================

disk 5 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 73.4GMAU3073NC

/dev/disk/disk5 /dev/rdisk/disk5

disk 6 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP 146 GST3146707LC

/dev/disk/disk6 /dev/rdisk/disk6

disk 7 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP 73.4GMAU3073NC

/dev/disk/disk7 /dev/rdisk/disk7

/dev/disk/disk7_p1 /dev/rdisk/disk7_p1

/dev/disk/disk7_p2 /dev/rdisk/disk7_p2

/dev/disk/disk7_p3 /dev/rdisk/disk7_p3

disk 8 64000/0xfa00/0x3 esdisk CLAIMED DEVICE TEAC DV-28E-N

/dev/disk/disk8 /dev/rdisk/disk8

disk 9 64000/0xfa00/0x6 esdisk CLAIMED DEVICE HP MSA VOLUME

/dev/disk/disk9 /dev/rdisk/disk9

Page 5: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

5

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

======= 03/04/13 11:04:31 EDT BEGIN Clone System Image (user=root)

(jobid=ia643) 

* 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=ia643)

Page 6: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

6

HP-UX DRD Multiple Copies of Targets # drd status 

======= 03/04/13 11:45:09 EDT BEGIN Displaying DRD Clone Image Information

(user=root) (jobid=ia643)

* Clone Disk: /dev/disk/disk5

* 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/disk7

* Original EFI Partition: AUTO file present, Boot loader present

* Original Rehost Status: SYSINFO.TXT not present

* Booted Disk: Original Disk (/dev/disk/disk7)

* Activated Disk: Original Disk (/dev/disk/disk7) 

======= 03/04/13 11:45:28 EDT END Displaying DRD Clone Image Information

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

Page 7: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

7

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

======= 03/04/13 11:46:17 EDT BEGIN Clone System Image (user=root)

(jobid=ia643)

* 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=ia643)

Page 8: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

8

HP-UX DRD Multiple Copies of Targets # drd status

======= 03/04/13 12:35:37 EDT BEGIN Displaying DRD Clone Image Information

(user=root) (jobid=ia643) 

* Clone Disk: /dev/disk/disk6

* 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/disk7

* Original EFI Partition: AUTO file present, Boot loader present

* Original Rehost Status: SYSINFO.TXT not present

* Booted Disk: Original Disk (/dev/disk/disk7)

* Activated Disk: Original Disk (/dev/disk/disk7)

======= 03/04/13 12:35:56 EDT END Displaying DRD Clone Image Information

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

Page 9: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

9

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

Persistent DSF Legacy DSF(s)

========================================

/dev/pt/pt3 /dev/rscsi/c5t0d0

/dev/rscsi/c4t0d0

/dev/pt/pt4 /dev/rscsi/c6t0d0

/dev/rdisk/disk5 /dev/rdsk/c2t1d0

/dev/rdisk/disk5_p1 /dev/rdsk/c2t1d0s1

/dev/rdisk/disk5_p3 /dev/rdsk/c2t1d0s3

/dev/rdisk/disk5_p2 /dev/rdsk/c2t1d0s2

/dev/rdisk/disk6 /dev/rdsk/c2t0d0

/dev/rdisk/disk6_p1 /dev/rdsk/c2t0d0s1

/dev/rdisk/disk6_p2 /dev/rdsk/c2t0d0s2

/dev/rdisk/disk6_p3 /dev/rdsk/c2t0d0s3

/dev/rdisk/disk7 /dev/rdsk/c3t2d0

/dev/rdisk/disk7_p1 /dev/rdsk/c3t2d0s1

/dev/rdisk/disk7_p2 /dev/rdsk/c3t2d0s2

/dev/rdisk/disk7_p3 /dev/rdsk/c3t2d0s3

/dev/rdisk/disk8 /dev/rdsk/c0t0d0

/dev/rdisk/disk9 /dev/rdsk/c7t0d2

Page 10: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

10

HP-UX DRD Multiple Copies of Targets

# ioscan -funneC disk

Class I H/W Path Driver S/W State H/W Type Description

=======================================================================

disk 3 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N

/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0

Acpi(HWP0002,0)/Pci(2|0)/Ata(Primary,Master)

disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146707LC

/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0

/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0s1

/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s2

/dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s3

Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun0,Lun0)/HD(Part1,SigFB4D90C2-8464-11E2-8000-D6217B60E588)/\EFI\HPUX\HPUX.EFI

disk 0 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GMAU3073NC

/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0

/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1

/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2

/dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s3

Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun1,Lun0)/HD(Part1,Sig25DEF318-845F-11E2-8000-D6217B60E588)/\EFI\HPUX\HPUX.EFI

disk 2 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 73.4GMAU3073NC

/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0

/dev/dsk/c3t2d0s1 /dev/rdsk/c3t2d0s1

/dev/dsk/c3t2d0s2 /dev/rdsk/c3t2d0s2

/dev/dsk/c3t2d0s3 /dev/rdsk/c3t2d0s3

Acpi(HWP0002,100)/Pci(1|1)/Scsi(Pun2,Lun0)/HD(Part1,SigB9B8E4CC-0CE1-11E2-8000-D6217B60E588)/\EFI\HPUX\HPUX.EFI

disk 4 0/4/1/1.4.0.0.0.0.2 sdisk CLAIMED DEVICE HP MSA VOLUME

/dev/dsk/c7t0d2 /dev/rdsk/c7t0d2

Acpi(HWP0002,400)/Pci(1|1)/Fibre(WWN500805F300061081,Lun4002000000000000

Page 11: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

11

HP-UX DRD Multiple Copies of Targets

EFI Shell version 1.10 [14.62]

Device mapping table

fs0 : Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun0,Lun0)/HD(Part1,SigFB4D90C2-8464-11E2-8000-D6217B60E588)

fs1 : Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun0,Lun0)/HD(Part3,SigFB4D90EA-8464-11E2-8000-D6217B60E588)

fs2 : Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun1,Lun0)/HD(Part1,Sig25DEF318-845F-11E2-8000-D6217B60E588)

fs3 : Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun1,Lun0)/HD(Part3,Sig25DEF340-845F-11E2-8000-D6217B60E588)

fs4 : Acpi(HWP0002,100)/Pci(1|1)/Scsi(Pun2,Lun0)/HD(Part1,SigB9B8E4CC-0CE1-11E2-8000-D6217B60E588)

fs5 : Acpi(HWP0002,100)/Pci(1|1)/Scsi(Pun2,Lun0)/HD(Part3,SigB9B8E526-0CE1-11E2-8000-D6217B60E588)

blk0 : Acpi(HWP0002,0)/Pci(2|0)/Ata(Primary,Master)

blk1 : Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun0,Lun0)

blk2 : Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun0,Lun0)/HD(Part1,SigFB4D90C2-8464-11E2-8000-D6217B60E588)

blk3 : Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun0,Lun0)/HD(Part2,SigFB4D90D6-8464-11E2-8000-D6217B60E588)

blk4 : Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun0,Lun0)/HD(Part3,SigFB4D90EA-8464-11E2-8000-D6217B60E588)

blk5 : Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun1,Lun0)

blk6 : Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun1,Lun0)/HD(Part1,Sig25DEF318-845F-11E2-8000-D6217B60E588)

blk7 : Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun1,Lun0)/HD(Part2,Sig25DEF32C-845F-11E2-8000-D6217B60E588)

blk8 : Acpi(HWP0002,100)/Pci(1|0)/Scsi(Pun1,Lun0)/HD(Part3,Sig25DEF340-845F-11E2-8000-D6217B60E588)

blk9 : Acpi(HWP0002,100)/Pci(1|1)/Scsi(Pun2,Lun0)

blkA : Acpi(HWP0002,100)/Pci(1|1)/Scsi(Pun2,Lun0)/HD(Part1,SigB9B8E4CC-0CE1-11E2-8000-D6217B60E588)

blkB : Acpi(HWP0002,100)/Pci(1|1)/Scsi(Pun2,Lun0)/HD(Part2,SigB9B8E512-0CE1-11E2-8000-D6217B60E588)

blkC : Acpi(HWP0002,100)/Pci(1|1)/Scsi(Pun2,Lun0)/HD(Part3,SigB9B8E526-0CE1-11E2-8000-D6217B60E588)

blkD : Acpi(HWP0002,400)/Pci(1|1)/Fibre(WWN500805F300061081,Lun4002000000000000)

startup.nsh> echo -off

Page 12: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

12

HP-UX DRD Multiple Copies of Targets

fs2:\EFI\HPUX> hpux.efi

After the reboot:

# /usr/lbin/bootpath

/dev/disk/disk5

  

# setboot -v

Primary bootpath : 0/1/1/1.0x2.0x0 (/dev/rdisk/disk7)

HA Alternate bootpath : 0/0/2/0.0.0x0.0x0 (/dev/rdisk/disk8)

Alternate bootpath : 0/1/1/0.0x1.0x0 (/dev/rdisk/disk5)

Autoboot is ON (enabled)

TEST CURRENT DEFAULT

---- ------- -------

all on on

SELFTESTS on on

early_cpu on on

late_cpu on on

FASTBOOT on on

Platform on on

Full_memory on on

Memory_init on on

IO_HW on on

Chipset on on

Page 13: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

13

HP-UX DRD Multiple Copies of Targets

# lvlnboot -v

Boot Definitions for Volume Group /dev/vg00:

Physical Volumes belonging in Root Volume Group:

/dev/disk/disk5_p2 -- Boot Disk

Boot: lvol1 on: /dev/disk/disk5_p2

Root: lvol3 on: /dev/disk/disk5_p2

Swap: lvol2 on: /dev/disk/disk5_p2

Dump: lvol2 on: /dev/disk/disk5_p2, 0

 

# drd status 

======= 03/04/13 15:03:21 EDT BEGIN Displaying DRD Clone Image Information

(user=root) (jobid=ia643)

* Clone Disk: /dev/disk/disk5

* 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/disk7

* Original EFI Partition: AUTO file present, Boot loader present

* Original Rehost Status: SYSINFO.TXT not present

* Booted Disk: Clone Disk (/dev/disk/disk5)

* Activated Disk: Original Disk (/dev/disk/disk7) 

======= 03/04/13 15:03:40 EDT END Displaying DRD Clone Image Information

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

Page 14: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

14

HP-UX DRD Multiple Copies of Targets

Final reboot to go back to the original disk:

# /usr/lbin/bootpath

/dev/disk/disk7

# drd status======= 03/11/13 16:41:35 EDT BEGIN Displaying DRD Clone Image Information

(user=root) (jobid=ia643)

* Clone Disk: /dev/disk/disk6

* 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/disk7

* Original EFI Partition: AUTO file present, Boot loader present

* Original Rehost Status: SYSINFO.TXT not present

* Booted Disk: Original Disk (/dev/disk/disk7)

* Activated Disk: Original Disk (/dev/disk/disk7)

======= 03/11/13 16:41:54 EDT END Displaying DRD Clone Image Information

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

Page 15: HP-UX 11iv3 Method to Set Up Multiple Clones with Dynamic Root Disk Dusan Baljevic 2014

Thank You! Come back for other presentations at:

http://www.circlingcycle.com.au/Unix-and-Linux-Presentations/

or

http://www.slideshare.net/search/slideshow?searchfrom=header&q=dusan+baljevic