1833772 Members
2364 Online
110063 Solutions
New Discussion

Re: transferring of vg00

 
nibble
Super Advisor

transferring of vg00

hi,
currently, my vg00 is from my disk array and i want to transfer vg00 to my internal scsi disk. besides from creating a make recovery tape, any further steps on this please? im planning to boot the make recovery tape to the unused tape..
tns..
9 REPLIES 9
Suresh Patoria
Super Advisor

Re: transferring of vg00

Hi,

you pls take the holl vg00 back up by specifying option follows:

/opt/ignite/bin/make_recovery -A -v -d << You Device name>>
Michael Tully
Honored Contributor

Re: transferring of vg00


It is possible to do this with mirrorDisk/UX and remove the existing volume from your LVM later, after you have booted. This will work, but if your internal LUN size is larger than the one on the disk array, you may as well forget it and use the make recovery tape.

e.g.

# pvcreate ???Bf /dev/rdsk/cXtYdZ
# vgextend /dev/vg00 /dev/dsk/cXtYdZ
# mkboot /dev/rdsk/cXtYdZ
# mkboot ???a "hpux ???lq" /dev/rdsk/cXtYdZ
# for LVOL in /dev/vg00/lv*
> do
> echo $LVOL
> lvextend -m 1 $LVOL
> done
# lvlnboot ???v

# mkboot ???a "hpux ???lq" /dev/rdsk/cXtYdZ
# setboot ???a lifcp /dev/rdsk/xCtYdZ:AUTO - (to verify)

To do this from the make recovery tape it will provide you with a valid copy from your tape and give you the opportunity to make any necessary adjustments to your filesystem sizes, /stand, /, primary swap.

# make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/0mn
Anyone for a Mutiny ?
nibble
Super Advisor

Re: transferring of vg00

tnx..

my internal scsi is 2Gb while my disk array is about 6Gig. again, my target is to make the 2G internal disk as my VG00 thus, freeing the disk array for data...
Rajeev  Shukla
Honored Contributor

Re: transferring of vg00

There is other way if you have Mirror/UX
Create a second boot disk on internal disk where you want to transfer your vg00 to and then mirror everything.
There you have now 2 disk one internal and other in array now next step is you remove the disk which is in array from vg00

Rajeev
Michael Tully
Honored Contributor

Re: transferring of vg00

If the sizes of your current OS on your external disk are greater than 2Gb, you could add a second internal disk or use the make_recovery tape alternative and make adjustments to the filesystem sizes after booting from the tape. See the procedure I posted earlier on how to create a bootable tape.
Anyone for a Mutiny ?
Martin Robinson
Frequent Advisor

Re: transferring of vg00

It may be possible to do this:

Add your internal disk to vg00 using vgextend.

Move logical volumes off external disk to internal disk using pvmove.

Then remove the external disk using vgreduce.

I don't know if this will work for root and swap partitions.

Remember to pvcreate the internal disk using -B to make it bootable.

If you can test this first ... it would obviously be safer!
Manuel_5
Advisor

Re: transferring of vg00

Hi,
The /opt/ignite/bin/make_tape_recovery -x inc_entire=vg00 is your solution.
Use -x exclude =/file_system to exclude file system that be not of operating system.


Manuel
Manuel Parra
Pelephone System
Frequent Advisor

Re: transferring of vg00

Hi

u also Can Do dd to your system disk and boot from the new disk .

this is the steps u have to do ( the 2 disks mast be the same size ) .

How2 boot from the dd root disk on
------------------------------------------

Check HW path for master and DD disk's

1. stop boot sequence - press

2. sea (search)

2a.change the PRImary path to HW path DD disk

3. boot < DD disk> isl

4. hpux -lm

5. vgexport -v /dev/vg00

6. mkdir /dev/vg00

7. mknod /dev/vg00/group c 64 0x000000

8. vgimport -v /dev/vg00 /dev/dsk/c0t4d0

9. vgchange -a y /dev/vg00

10. lvlnboot -b /dev/vg00/lvol1

11. lvlnboot -r /dev/vg00/lvol3

12. lvlnboot -s /dev/vg00/lvol2

13. lvlnboot -d /dev/vg00/lvol2

14. lvlnboot -v

15. rm /etc/mnttab

16. reboot the system from the 2nd disk.



HPUX sysadmin
Pelephone System
Frequent Advisor

Re: transferring of vg00

please forgive me

this is the dd command

dd if=/dev/rdsk/olddisk of=/dev/rdsk/newdisk bs=4096k

enjoy
HPUX sysadmin