Operating System - HP-UX
1753427 Members
4844 Online
108793 Solutions
New Discussion юеВ

Server to external hard drive copy?

 
SOLVED
Go to solution
Craig E.
Occasional Contributor

Server to external hard drive copy?

Is it possible to take a SCSI hard drive and plug that into the SCSI chain of a HP-UX server and copy HP-UX 10.2 to that hard drive? For example have 10.2 in some storage area on a folder on the server (or copy them from a hard drive runnning 10.2) and copy it or install it the the external hard drive so that it can then be hooked back up to a 744 card and operate.
or
Maybe just make a Golden image using ignite then copy that to the server then copy that from the server to the SCSI hard drive?

I am looking for ideas to get an operating system and some apps to a hard drive. I ve looked into ignite but i would then be limited to 1MB/sec over ethernet and our ignite version is really old and cant be changed. But if i could hook the Hard Drive up to another machine then i would only be limited by the SCSI connection. Any ideas?
4 REPLIES 4
Leif Halvarsson_2
Honored Contributor
Solution

Re: Server to external hard drive copy?

Hi,
Yes, it is possible. If the disks is of the same model you can use dd. If not, you can create filesystems and swap on the disk manualy, make the disk bootable and copy the cata with cpio. The necessary steps depends on if your boot disk has LVM or "whole disk" layout.
Sridhar Bhaskarla
Honored Contributor

Re: Server to external hard drive copy?

Hi,

Yes you can. If you do 'dd', you will need to pay attention while booting the disk as it will copy the entire LVM and boot structure of the original disk onto the destination drive. When you boot the system off of that drive, you will need to either

1. Put the disk in exactly the same place as the original disk was
or
2. Interact with LVM maintenance mode and export /import vg00 with BDRA update using lvlnboot.

You can use ignite tape. Use make_tape_recovery to backup the image onto a tape and use it to build the new system. This way a lot of heacaches will be out of your way.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
G. Vrijhoeven
Honored Contributor

Re: Server to external hard drive copy?

Hi,

Like the other two have mentioned you can use the dd command ( dd if=/dev/rdsk/c?t?d? of=/dev/rdsk/c?t?d? bs=1024) . but keep in mind that the two servers must have identical hardware and that they will be the identical afterwards ( double ipadress ( set_parms initial to fix), same users and passwords hostname in databases? etc. This will take time to correct. Ignite could be faster with just 1 MB/sec.

Just a thought.

Gideon
Steven E. Protter
Exalted Contributor

Re: Server to external hard drive copy?

If the drive is recognized and big enough you might try this:

lvextend -m 1 /dev/vg00/lvol# /dev/dsk/c#t#d#

You could mirror everything to it, connect it to a new system and possibly even boot off the darn thing and mirror back to the internal drives on the next server.

Might work.

I'm posting in my complete system mirroring procedure.

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com