Operating System - HP-UX
1833788 Members
2643 Online
110063 Solutions
New Discussion

Migrating system from 9Gb disk to 18Gb one

 
SOLVED
Go to solution

Migrating system from 9Gb disk to 18Gb one

Hi all:

We have following stage:

HPD230 machine
HP-UX B10.20 O.S.
Mirror Disk B10.20
2 mirrored hard disks - 9Gb each
1 DDS3 Tape Drive

We are running out of space and plan to replace 9Gb disks with 18 Gb disks and don´t have free SCSI slots to attach them.

I don´t feel safe about steps to follow and best way to attack it, i.e. Can I "backup" the whole system and then restore it in a not dangerous way??? or Should I replace the disks, install again O.S. and configure all the old services, users, and so on???

Tha
14 REPLIES 14
Robert-Jan Goossens
Honored Contributor
Solution

Re: Migrating system from 9Gb disk to 18Gb one

Hi,

You can use ignite to create a bootable tape. Boot from tape and restore it on the new disk.

The ignite software is available from this link.

http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=IGNITEUX

Regards,
Robert-Jan.
Mark Grant
Honored Contributor

Re: Migrating system from 9Gb disk to 18Gb one

You can simply take an ignite backup of your system and re-build it from that which is nice and easy and safe.

Alternatively, assuming all the logical volumes on disk A are mirrored on disk B and there is no overlap, you could break the mirrors from disk B. Then replace disk B and re-create the mirrors. Make the new disk B bootable and then break the mirrors again but this time break them from disk A, replace disk A and re-mirror and make disk A bootable. Voila, can all be done online.

I prefer the first option myself though :)
Never preceed any demonstration with anything more predictive than "watch this"
G. Vrijhoeven
Honored Contributor

Re: Migrating system from 9Gb disk to 18Gb one

Hi,

You can create an ignite tape ( make)recovery -ACvd /dev/rmt/0mn ) and restore it on a bigger disk. You just need to alter the maxpv ( half it ) so you can use the entire disk. This can be done in advanced options.

Gideon
RAC_1
Honored Contributor

Re: Migrating system from 9Gb disk to 18Gb one

Ignite is the way to go.

OR

Take out mirrored disk, replace it with 18gn disk.

boot.

vgcfgrestore on replaced disk.

vgchange -a n vg00

vgsync

to complete the mirroring.

Samw way you can replace the other 9GB disk.
There is no substitute to HARDWORK
MANOJ SRIVASTAVA
Honored Contributor

Re: Migrating system from 9Gb disk to 18Gb one

Hi

There are couple of ways of doing it , depending on waht you want to achive,

1. You can do a ignite and replace the disk , restore th OS back and also the data if there are any on that root disk . Please make sure that the new disks are supported since th Box is old one.

2. The other way is to install the new disk and load fresh OS and then restore the data.

In case you want new disk to inherit the ols settings of the OS I would recommend you to do a ignite with interactive option.

Manoj Srivastava
DGH_2
Valued Contributor

Re: Migrating system from 9Gb disk to 18Gb one

Hi,
this can be done by ignite but be sure to do the step of maxpv that Vrijhoeven mentioned or your system will see only 9 GB.

Dory
Robert-Jan Goossens
Honored Contributor

Re: Migrating system from 9Gb disk to 18Gb one

Hoefnix
Honored Contributor

Re: Migrating system from 9Gb disk to 18Gb one

The mirror replace and resync action is no option because after doing you can only addres 9GB on your 18 GB disks because the PE-size.
Marco Santerre
Honored Contributor

Re: Migrating system from 9Gb disk to 18Gb one

Yeah you're best bet is definitely using Ignite/make_tape_recovery. The mirrors can be used ONLY IF you defined your Volume Group with a bigger MAX PE for your PV, but usually that is rare.

In the case of the mirrors, you won't be able to see the entire 18Gb and therefore you will lose close to 9Gb capacity just because of the way your VG is configured.

If you go using the make_tape_recovery, it'll recreate the VG for you using the right amount of MAX PE in your VG and will put back everything you had in your vg00
Cooperation is doing with a smile what you have to do anyhow.
Mark Grant
Honored Contributor

Re: Migrating system from 9Gb disk to 18Gb one

This max PE per PV is an extremely good point which I hadn't considered.

Ignite is the way to go!
Never preceed any demonstration with anything more predictive than "watch this"
RAC_1
Honored Contributor

Re: Migrating system from 9Gb disk to 18Gb one

You can also manage it without Ignite.

Break the mirror and replace it with 18GB disk. Now prepare the static copy of the root disk as follows.

Once done, use setboot and boot from 18GB disk, if successful, then replace other disk and do mirroring again.

replaced disk(18 GB) = /dev/dsk/c0t6d0
seconday disk(9Gb) = /dev/dsk/c4t6d0

mkdir /dev/vgbroot
mknod /dev/vgbroot group c 64 0x020000
Note: make sure minor node is unique - your choice.

pvcreate -fB /dev/rdsk/c4t6d0
mkboot /dev/rdsk/c4t6d0
mkboot -a "hpux -lq" /dev/rdsk/c4t6d0
lifcp /dev/rdsk/c4t6d0:AUTO -
Note: this is to confirm your AUTO file is ok.

vgcreate /dev/vgbroot /dev/dsk/c4t6d0
(Take care of max pes here, use -e option)

lvcreate -L {sizeofstand} -s y -C y -r n -n \ bstand /dev/vgbroot

lvcreate -L {sizeofswap} -s y -C y -c n -r n\ -M n -n bswap /dev/vgbroot

lvcreate -L {sizeofroot} -s y -C y -r n -n broot /dev/vgbroot

lvcreate -L {sizeofusr} -s y -n busr \ /dev/vgbroot

lvcreate -L {sizeoftmp} -s y -n btmp \ /dev/vgbroot

Continue in this manner for every lvol on your primary root disk matching the order on the disk, the size and u
sing any naming convention you want (e.g. blvol1, blvol2, etc) I like broot, bswap, etc. Likewise the volume gr
oup can be any name (vgbroot, vg02, vgaltboot, etc)

***Next steps are important or you won't boot from the new disk.
lvlnboot -b /dev/vgbroot/bstand
lvlnboot -r /dev/vgbroot/broot
lvlnboot -s /dev/vgbroot/bswap
lvlnboot -d /dev/vgbroot/bswap

lvlnboot -v
lvlnboot -R

check the output should have vg00 and vgbroot as bootable volume groups.

dd all the lvols on the primary disk to the lvols on the second disk. You can also mount and use cpio if you wi
sh.
Example:

dd if=/dev/vg00/rlvol1 of=/dev/vgbroot/rbstand bs=64k (or whatever bs you want to use)

After your dd's or cpio's are complete, then fsck your filesystems.

Need to edit the fstab on the 2d disk so that it will properly mount file systems.

mkdir /mnt
mount /dev/vgbroot/broot /mnt
cd /mnt/etc
cp fstab Ofstab
edit /mnt/etc/fstab
change the "vg00" to "vgbroot" for all the file systems you put on the second bootable device. Save the file. A
lso copy the file to /mnt/etc/Bfstab.

umount /dev/vgbroot/broot

You should now be able to boot to the second bootable device (either use setboot -p to change you boot path or
interrupt the boot and select the second disk boot path). After that the system should come up and run and incl
ude all your other mount points, applications, etc.
There is no substitute to HARDWORK

Re: Migrating system from 9Gb disk to 18Gb one

OK guys, thanks to everybody.

It definitely seems ignite way is the best, I´ll study it and write down my own steps before procceeding.

Thanks again.
DGH_2
Valued Contributor

Re: Migrating system from 9Gb disk to 18Gb one

Hello again,
Manuel, please next time be carefull when assigning points.

Good luck with your migration
Dory

Re: Migrating system from 9Gb disk to 18Gb one

Dory, I don´t use to waste my points but this time our situation is critical and every answer made us pause and reflect on how to resolve the problem.

Thank