1833838 Members
2667 Online
110063 Solutions
New Discussion

Re: migration SO

 
SOLVED
Go to solution
castro_2
Regular Advisor

migration SO

I have two vg's the vg00 with one disk the 4 GB and vg01 with one disk the 8 GB. The last disk is free and the vg00 is almost full. I want to use to create a SO because the other disk (4GB) I need to another system this is the reason that I don`t do a vgextend.
What is the best way to do it?
Thanks
17 REPLIES 17
Pete Randall
Outstanding Contributor

Re: migration SO

What's an SO?


Pete

Pete
Pete Randall
Outstanding Contributor

Re: migration SO

If I'm understanding this correctly, you want to take the 4GB vg00 disk out of the first system and use it in another? Use Ignite-UX to take a backup of your existing vg00, then restore it onto your 8GB disk, which will become your new vg00.


Pete

Pete
Geoff Wild
Honored Contributor
Solution

Re: migration SO

What about adding the 8GB as another mirror? Then reboot - using the 8gb disk, remove the 4GB from the mirror set, shutdown system, then pull the 4GB disk out.

You need to do something like this to mirror the root:

Mirrored the root lvols:

pvcreate -B /dev/rdsk/c3t6d0
vgextend /dev/vg00 /dev/dsk/c3t6d0
mkboot -l /dev/rdsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t6d0
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -r /dev/vg00/lvol3
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol10 /dev/dsk/c3t6d0

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ravi_8
Honored Contributor

Re: migration SO

Hi,

Apart from pete's suggestion, you can also use Mirror.
(if you have mirror unix software)
remove the vg01 (vgremove /dev/vg01)

#vgscan -a -v
#lvextend -m 1 /dev/vg00/lvolx /dev/dsk/cxtxdx
(where cxtxdx is the 8Gb disk)

repeat the above for all lvol's in vg00

set the boot path to 8GB disk, after booting you can remove the 4GB disk
never give up
castro_2
Regular Advisor

Re: migration SO

The SO is hp-ux 10.20
Tnaks
castro_2
Regular Advisor

Re: migration SO

I want to mirror the 4 GB whith 8 GB and then break a mirror.
I can do that
Max PE per PV 2000
Thans
Ravi_8
Honored Contributor

Re: migration SO

Hi,

yes, break the mirror and set the boot path to 8gb disk
never give up
castro_2
Regular Advisor

Re: migration SO

How can unmirror the disk the 4 GB?
lvreduce -m /dev/vg00/lvXX
and the Boot Data.
Thans
Ravi_8
Honored Contributor

Re: migration SO

Hi,

For example, if /dev/vg00/lvolx is on /dev/dsk/cxtxdx and you want to move it to /dev/dsk/cytydy,
you can do:

lvextend -m 1 /dev/vg00/lvolx /dev/dsk/cytydy

and then

lvreduce -m 0 /dev/vg00/lvolx /dev/dsk/cxtxdx
never give up
castro_2
Regular Advisor

Re: migration SO

and the lvlndisk -v only show one disk?
Thanks
Ravi_8
Honored Contributor

Re: migration SO


#lvlnboot -v
never give up
castro_2
Regular Advisor

Re: migration SO

yes, sorry lvlnboot -v only show me one disk o 2 disks
Ravi_8
Honored Contributor

Re: migration SO


Could you set the primary boot path to 8GB disk and boot?
never give up
castro_2
Regular Advisor

Re: migration SO

When I do the mirror the command lvlnboot -v show me 2 disks 4 GB and 8 GB, When I unmirror
Only want to show me the 8 GB, I do the command lvlnboot -v only show me 1 disk 8 GB .
Thanks
Pete Randall
Outstanding Contributor

Re: migration SO

Ready to try the Ignite approach yet?

Pete

Pete
castro_2
Regular Advisor

Re: migration SO

How you set the primary boot path to 8GB disk and boot?
Thanks
James R. Ferguson
Acclaimed Contributor

Re: migration SO

Hi:

In answer to your question of how to set the primary boot path:

# setboot -p 10/0.6.0

...Use 'ioscan -kfnC disk' to relate the above path to the proper disk on you system.

See the man pages for 'setboot' for more information.

Regards!

...JRF...