Sponsored Content
Full Discussion: HP-UX server cloning
Operating Systems HP-UX HP-UX server cloning Post 302596215 by Shirishlnx on Tuesday 7th of February 2012 09:32:37 AM
Old 02-07-2012
HP-UX server cloning

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
Code:
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 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
Code:
### Format the disk

Code:
# mediainit /dev/rdisk/c2t0d0 
### DD copy entire disk
dd if=/dev/rdisk/c1t2d0  of=/dev/rdisk/c2t0d0 bs=8192

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 WAY-3 (DISK MIRRORING) ... Please help ...


Thanks,
[B][FONT=Courier New]shrirish Shukla

---------- Post updated at 09:32 AM ---------- Previous update was at 12:23 AM ----------

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

Last edited by vbe; 02-09-2012 at 09:43 AM.. Reason: rm emails...
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Aix Cloning

Is there anyone out there who knows anything about aix cloning? I would be very grateful for any information at all. Thanking you in advance :) (4 Replies)
Discussion started by: annette
4 Replies

2. Filesystems, Disks and Memory

Unix Cloning

I'm looking for software that can clone Unix Partitions. (2 Replies)
Discussion started by: jimv2502893
2 Replies

3. SCO

Disk cloning

Hello everybody, :confused: I have to change the system disk on an old PC running SCO 5.0.5. The disk is up and running, this is a preventive action. My experience on UNIX is very limited and I look for the easyest solution to clone this unit. Is it possible with commands or through a clone... (2 Replies)
Discussion started by: mhachez
2 Replies

4. UNIX for Dummies Questions & Answers

HP10.20 Cloning

Good day all. So, here's the situation. I have (7x) B180L VISUALIZE WORKSTATION's with Transtec 5100 RAID (RAID 5, 9.1 GB HDD's) towers running of UNIX HP10.20. It's time to replace the RAID's with new ones, them being Fibrenetix FX606 5 bay SATA RAID, 5 bay SATA-SCSI desktop RAID including 80Gb... (1 Reply)
Discussion started by: Tony_dw
1 Replies

5. Red Hat

cloning a server

I wish to clone a RedHat EL5 server. What's the easiest way to do this? Thanks :) (4 Replies)
Discussion started by: wazzu62
4 Replies

6. Shell Programming and Scripting

Cloning

Hi, Is there disadvantages if we do AIX Serevr cloning to the new AIX server. Thanks in advance (0 Replies)
Discussion started by: kmsekhar
0 Replies

7. AIX

AIX Server Cloning

Hi, Is there disadvantages if we do AIX Serevr cloning to the new AIX server. Thanks in advance (2 Replies)
Discussion started by: kmsekhar
2 Replies

8. Ubuntu

dd cloning of whole disk

I am using 'dd' to clone an entire hard drive which only has Ubuntu 11.10 and some data with no special options. The disks are both 1Tb, However, I did re-partition the target disk with gparted successfully. The new partions are not the same size as the source disk. When starting 'dd' no partitions... (24 Replies)
Discussion started by: Royalist
24 Replies

9. Linux

Disk cloning ?

Dear All I needed to clone my disk to another hard drive . I did it as the following : #dd if=/dev/sdb of=/dev/sdc But after a while, the procedure ended with the "writing to /dev/sdc input/output error" message. Can you please let me know how can I overcome this as the fdisk now returns as "... (1 Reply)
Discussion started by: hadimotamedi
1 Replies
All times are GMT -4. The time now is 08:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy