Hello Friends,
Am in requirement to clone a Live HP-UX server here's details
OS: HpUX B-11.11 with mirrored LVM disks .
S/ws: Remedy, XML engine, Annoysystem, Oracle
All Oracle, XMl and Remedy data is on SAM LUN which is used for clustering .
My requirement to create a clone server and replace SAN to local disk on new server.
I have 3 options to achieve this ..
1> DRD : NO as my OS and H/w is not supporting this DRD cloning is only available in HPUX 11.23 or 11.31 .
2> Ignite Backup : I require to create exact clone with all s/w configuration resides on OS partition(LV)s . But with Ignite I can create a OS clone it will exclude other configuration of s/w who's all files are distributed over SAN LUNS .
- So I can't go with this.
3> LVM mirroring: Have mirrored the VG, but when I connected that to another server it wont restarted got error as not find boot info ...
Here's the steps that had used
Active disk: c0t2d0 and c1t2d0
New Disk : c2t0do
# pvcreate -B /dev/rdsk/c2t0d0
# vgextend -f /dev/vg00 /dev/dsk/c2t0d0
# mkboot /dev/rdsk/c2t0d0
# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t0d0
## Mirror Process
# lvextend -m 2 /dev/vg00/lvol1 /dev/dsk/c2t0d0
## Write Script
# cat lvmirr.sh
for i in 2 3 4 5 6 7 8 9
do
lvextend -m 2 /dev/vg00/lvol${i} /dev/dsk/c2t0d0
--> Why -m 2 :> Because current mirror number is 1 i.e 2 disks are already active mode state
done
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
/dev/dsk/c2t0d0 (0/0/2/0.0.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
/dev/dsk/c2t0d0
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
/dev/dsk/c2t0d0
Swap: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
/dev/dsk/c2t0d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0
# NOW HAVE REMOVED THIS [b]c2t0d0 and inserted on new server on active boot slot . But no Luck ..
Any HP-UX guru .. Sir please advice me where am wrong ..
4> Clone the entire disk using dd
### Format the disk
# mediainit /dev/rdisk/c2t0d0
### DD copy entire disk
dd if=/dev/rdisk/c1t2d0 of=/dev/rdisk/c2t0d0 bs=8192
[COLOR=black]It's working fine ... But according to HP- this is not recommended way .. by HP ... So my PM doesn't allow me to go with this way ... as this require a more background downtime for my platform also ... if something happen in tune time ..
Am preferring to go with [b]WAY-3 (DISK MIRRORING) ... Please help ...
Thanks,
[FONT=Courier New]shrirish Shukla
---------- Post updated at 09:32 AM ---------- Previous update was at 12:23 AM ----------
[b]Hi Friends,
Please let me know if have any probs in understanding my thread ...
Any HP-UX gurus need help !! Please reply ...if have any .
-Shirish Shukla