Operating System - HP-UX
1849102 Members
7886 Online
104041 Solutions
New Discussion

Move HPUX10.20 for another HD

 
SOLVED
Go to solution
irbaboon
Advisor

Move HPUX10.20 for another HD

Hi,
My HD (boot) has bad blocks, how to move the HPUX10.20 for another HD (including boot) without install the system again??

P.S. I??m not using LVM
7 REPLIES 7
Michael Steele_2
Honored Contributor

Re: Move HPUX10.20 for another HD

This is what the ignite automatic recovery process is for, it takes ~45 minutes and needs minimal intervention.

It does have one important key ingredient however, a fairly recent make_recovery tape from the same platform. Say, less than 6 months old, but, this depends upon the changing state of your server.

Added any new patches since you last make_recovery tape? Plan on re-adding them if so.

If you don't have a make_recovery tape then you can use one from a similar class server, but you won't be able to use the automatic restore process. You'll have to use the 'Advanced' process which takes a couple of hours.

In any case, prepare for the worst with a lot of documentation:

lvlnboot -v
bdf
netstat -rn
ioscan -fnk
ioscan -fnkC disk
ioscan -fnkC tape
vgdisplay -v (* all vgs *)
strings /etc/lvmtab
cat /etc/fstab
etc.

For the advanced recovery you'll need the file system sizes of the core o/s file systems. Refer to the bdf report for this. You'll also need the hostname, ip, default gateway, nis ip, ntp ip, etc.

Do you have a make_recovery tape for either this server or a similar server?

If not, can you make one?
Support Fatherhood - Stop Family Law
irbaboon
Advisor

Re: Move HPUX10.20 for another HD

Hi Steele, I dont have a make_recovery.....
The DDS unit in the my HPBOX doesnt work.

Denver Osborn
Honored Contributor
Solution

Re: Move HPUX10.20 for another HD

If you have access to support docs, have a look at Tech doc id A5464241. It explains the steps you can take to duplicate your root disk that is using whole-disk partition. We can't cut/paste the info here, but this is a quick rundown on what you'd be doing...

-install the new disk

-newfs the new disk (see man newfs_hfs for details)
newfs -F hfs -BLv -R swap_size /dev/rdsk/cXtXdX

-mount the disk to a temp mount_pt

-copy all the data over to the mounted disk
(find / -print -xdev | cpio -dpmlvx /tmp_mnt)

-make it bootable, use mkboot /dev/rdsk/cXtXdX

-modify the /tmp_mnt/etc/fstab file to point to the new disk

-shutdown, boot the new disk to test.

**you wouldn't be able to dd to make a copy if there are bad blocks. Too bad the dds drive isn't working either!

Hope this helps,
denver
Michael Steele_2
Honored Contributor

Re: Move HPUX10.20 for another HD

What about over the network to an ignite server?

sea ipl lan (* from BCH *)

else, reinstall.
Support Fatherhood - Stop Family Law
irbaboon
Advisor

Re: Move HPUX10.20 for another HD

Denver..... after these steps I??ll able to disconnect the older disk???

The system will boot from new HD??


Thanks
Decio Miname
Frequent Advisor

Re: Move HPUX10.20 for another HD

Do you have mirrordisk? If so, you can mirror the boot disk to the new one, change the boot configuration, then split the old disk in order to remove it. The whole process will be on-line if the disk is hot-swappable.
Mirroring the boot disk requires some additional steps to make it bootable. Check for it or reply again to the forum.
Denver Osborn
Honored Contributor

Re: Move HPUX10.20 for another HD

Yes,

After the steps are complete you should be able to boot from the new disk, if everything was done right. If you take out the old disk and keep the new one in there and give it the same scsi id as the old one, then there shouldn't be a need to change the /etc/fstab.

It's best to boot off it and make sure all is well before you do away with the old disk.

If there are any problems with the steps, feel free to post a message so we can help!

-denver