1838678 Members
3900 Online
110128 Solutions
New Discussion

Re: 2 questions on LVM .

 
SOLVED
Go to solution
Chapaya
Frequent Advisor

2 questions on LVM .

Hello all ,
i have 2 questions related to LVM issues :
1. i have hpux system 11.0 and i want to
upgrade the os to 11i .
i'm doing it by taking ignite from other
system ( 11i ) .

i have a vg01 with 2 disks c5t2d0 &
c5t13d0 mounted to /app ,
i want have this vg01 on my new system .
how do i do it ? pls give me all the
commands ...

2. On the new system 11i , i want to move sc10
from other system .
This sc10 have 2 vgs : vg09 with disk
c5t11d0 mounted on /kuku1
and vg10 c5t1d0 mounted on /kuku2 .
i know that the disks address will changes
on the new system .
how do i do it ? pls give me all the
commands ...

Bye ,
Eran .
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor
Solution

Re: 2 questions on LVM .

Hi Eran:

The answer, in both cases, is to 'vgexport' your non-vg00 volume groups; Ignite (install the OS); and then 'vgimport' the volume groups.

Have a look at the 'man' pages for 'vgexport' and 'vgimport' for details. You will want to use the '-p' (preview) option to 'vgexport'. Generate a mapfile during the process and copy it to a place where you can copy it back to the server following installation.

The '-s' option is most useful. It places the VGID from the physical disk into the mapfile during 'vgexport'. During 'vgimport' physical disk are sought not by pv_path but by matching this VGID.

Here's an example of the whole process:

# for V in vg01 vg02 vg03
> do
> vgexport ???p ???v ???s ???m /tmp/coldvault/${V}.mapfile /dev/${V} 2>&1 | tee /tmp/coldvault/${V}.log
> done

...now install OS which erase all knowledge of server's volume groups...

# mkdir /dev/vgXY
# mknod /dev/vgXY/group c 64 0xXY0000
# vgimport ???s ???m /tmp/coldvault/vgXY.mapfile vgXY
# vgchange ???a y vgXY
# vgcfgbackup vgXY

Regards!

...JRF...
GK_5
Regular Advisor

Re: 2 questions on LVM .

Eran,

You need to export the configuration, move the file and import it on new system.

Here are the commands.
1. # vgchange -a n /dev/vg01
# vgexport -p -m mapfile vg01
# vgexport -m mapfile vg01
On new system
# cd /
# mkdir /dev/vg01
# cd /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
Install disks on new system and find the driver using
# ioscan -funC disk
# vgimport -p -v -m mapfile /dev/dsk/cxtydz /dev/dsk/cxtydz
Use actual disk path.
Run the same command without -p ( preview )

Same thing for question 2.
You can get more help on page 360 of admin guide.

Hope this helps.
IT is great!
Chapaya
Frequent Advisor

Re: 2 questions on LVM .

Hello James ,

I thought that -s option is used just for cluster issues - mean shareable mode .

The disks on the new system will have other address ,and will not see by the original
system , so i think that this solution is good for this case .

Eran .
Michael Tully
Honored Contributor

Re: 2 questions on LVM .

The -s is quite useful as James has quite rightly mentioned. WHat happens is that the VGID (volume group identifer) is included in the map file. What happens when you start to vgimport, the -s is used to scan the mapfile. The VGID is then found and scans each LUN on the new system. Once it has a match it includes these LUN's in the new volume group. The hardware address won't matter as it scans all volumes.
Anyone for a Mutiny ?
Chapaya
Frequent Advisor

Re: 2 questions on LVM .

Hello All ,

James your answer help me.
I think that using with -s option is the best solution .

Bye ,
Eran .
Dave Wherry
Esteemed Contributor

Re: 2 questions on LVM .

Is the other system that you are going to Ignite from identical to the system you are upgrading? Device files may be different and other things need to be taken care of. Look at this thread for more information.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xee2d4e7a25b7fa4ba4321876cef6567b,00.html