What Are The Drone Anti-jamming Systems Technology?
Hp ux-11iv3-multiple-clones-with-dynamic-root-disks-dusan-baljevic-mar2014
1. HP-UX 11iv3 Method to
Set Up Multiple Clones
with Dynamic Root Disk
Dusan Baljevic 2014
2. 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
3. 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!
4. 4
HP-UX DRD Multiple Copies of Targets
# ioscan -funNC disk
Class 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
5. 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)
6. 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)
7. 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)
8. 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)
12. 12
HP-UX DRD Multiple Copies of Targets
fs2:EFIHPUX> 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
13. 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)
14. 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)
15. Thank You! Come back for other presentations at:
http://www.circlingcycle.com.au/Unix-and-Linux-Presen
/
or
http://www.slideshare.net/search/slideshow?searchfrom
Hinweis der Redaktion
Scenario with four disks:
disk 7 (current boot disk)
disk 5
disk6
Disk9
Initial clone is disk 5.
Then, we create another clone on disk6.
The question is: can we use disk 5?