1833770 Members
2345 Online
110063 Solutions
New Discussion

Replacing Bootable disk

 
Alianto
Advisor

Replacing Bootable disk

Hi All,

Does anyone know : What is the best procedure to replace boot disk : 2 GB to be 18 GB ? and after replacing, the 18 GB disk become a bootable disk same as 2 GB disk.

My operating system, which is currently running on HPUX 11 64-bit, is using 2 GB disk, then we are planning to replace the disk to use 18 GB disk.


Regards,
Alianto
6 REPLIES 6
Animesh Chakraborty
Honored Contributor

Re: Replacing Bootable disk

Hi,
See this link for detail informations.
http://us-support.external.hp.com/cki/bin/doc.pl/sid=17d1012a1b10434ee3/screen=ckiSearchResults

Best of luck
Animesh
Did you take a backup?
Michael Tully
Honored Contributor

Re: Replacing Bootable disk

Hi Alanto,

What I would consider 'safe' in doing would be
creating a bootable tape that you can boot
from to create your system on the secondary drive. You can do this with the method below.

# make_tape_recovery -x inc_entire=vg00 -I -a /dev/rmt/0mn

I would also create vgexport files so that you
import your existing logical volume structure
off the remaining disks. e.g.

# vgexport -m vg01.mapfile -p -s -v /dev/vg01

You would then boot off this tape and create the
system on the second disk. You would need to
interrupt the boot and specify to boot off the
tape. You will then be able to choose the
disk and start your installation. Have a look
the Ignite Manual particularly chapter 11.

http://www.docs.hp.com/hpux/onlinedocs/B2355-90704/B2355-90704.html

this should be enough to get you started.
HTH
-Michael
Anyone for a Mutiny ?
Sridhar Bhaskarla
Honored Contributor

Re: Replacing Bootable disk

Alianto,

The best way is to use make_recovery tape. Prepare a make_recovery tape. Replace the disk and boot from the make_recovery tape and go through interactive procedure.

There are otherways also like making the 18G disk bootable, create lvs, do dd of allthe logical volumes, bring in lv maintenance mode and rename the volume group and update the auto and LIF and then increase the LV sizes.But cumbersome.

make_recovery procedure is proven and easy way.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Alianto
Advisor

Re: Replacing Bootable disk

Thank for anybody.

Yes, actually, I know about make_recovery command. And I ever recovered the current system from crash using this method and it worked well. I am salute with this command.

But my question is,
If I replace the 2 GB disk with 18 GB disk, and reboot from make_recovery tape and following the instructions. Does it guarantee that make_recovery tape can create all partitions on 18 GB disk, copying all files from tape to disk, creating bootable part on new disk ? Because at the first time before make_recovery tape do it, it will detect the harddisk paramter and find it that the parameters are totally different ( means that harddisk parameters for 2 GB and 18 GB are totally different ). Does make_recovery tape still continue to recover system which is a blank disk ?

Cheers,
Alianto
Michael Tully
Honored Contributor

Re: Replacing Bootable disk

Hi,

This procedure has been done many times and
I do not see any problems. Once the tape writes
to your second disk and the system boots okay
you will find that all filesystems will just
magically appear. Your backout (if for some
reason something does go wrong is to boot off
the original drive. It will still be there
and usable. Recovering a tape to a new disk is
basically what the 'make_tape_recovery' tool is
used for. This will work on a new disk or on
creating an image onto another system.

-Michael
Anyone for a Mutiny ?
Santosh Nair_1
Honored Contributor

Re: Replacing Bootable disk

The make_recovery tool basically recreates the filesystem layout that you had on your original disk, i.e. all your LVs, etc. and then restores the file from that were on these filesystems, essentially re-creating your boot disk. It really doesn't care whether you have a 2GB disk or a 18GB disk...just as long as you have enough space to recreate all the LVs, you should be okay.

-Santosh
Life is what's happening while you're busy making other plans