1832924 Members
2708 Online
110048 Solutions
New Discussion

vgexport - vgimport

 
SOLVED
Go to solution
A.G.M. Velthof
Valued Contributor

vgexport - vgimport

Hello all,

I want to change the location of my 2 fiber cards. (change the slot)
Is it enough to do the following:

make a backup
vgexport -p -s -m "mapfile" /dev/vgoracle
change the fiber cards
vgimport -s -m "mapfile" /dev/vgoracle

Regards, Alfons
8 REPLIES 8
Chan 007
Honored Contributor

Re: vgexport - vgimport

HI,

Yes you are safe by doing a mapfile.

If have more disk you can also have a txt file, change it accordinglt to the new device names.

Also you MAY need to do a ioscan & insf -e

Chan


freddy_21
Respected Contributor

Re: vgexport - vgimport

yes. your step is right.


or you can do:

# mv /etc/lvmtab /tmp/lvmtab.ori
# vgscan -a
vgscan will build new lvmtab with your current disk


thanks
freddy
RAC_1
Honored Contributor
Solution

Re: vgexport - vgimport

This is enough. The exact steps should be as follows.

1 backup the data - in case required.
2 vgexport -pv -s -m /tmp/vgxx.map /dev/vgxx
(If all ok here,then next step)
3 vgexport -vs -m /tmp/vgxx.map /dev/vgxx
4 Change firbre cards.
5 mkdir /dev/vgxx
6 mknod /dev/vgxx/group c 64 0x000000 (uniq minor number)
7 vgimport -pvs -m /tmp/vgxx /dev/vgxx
(If allok, then)
8 vgimport -vs -m /tmp/vgxx /dev/vgxx
9 vgchange -a y /dev/vgxx
10 mount all lvols under it and check.
There is no substitute to HARDWORK
A.G.M. Velthof
Valued Contributor

Re: vgexport - vgimport

Why do I have to recreate /dev/vgoracle?
Is it gone after the vgexport?
RAC_1
Honored Contributor

Re: vgexport - vgimport

Yes. man vgexport and man vgimport.
There is no substitute to HARDWORK
Chan 007
Honored Contributor

Re: vgexport - vgimport

Hi,

the number 3 of RAC's 1st tread will destroy all your vginformation, so you need mkdir /dev/ & mknod & then vgimport.

Chan
freddy_21
Respected Contributor

Re: vgexport - vgimport

from RAC step,after step number 2, please do
1.umount all file system
2. vgchange -a n vgoracle

after that you can continue to step number 3 from RAC


thanks
freddy
A.G.M. Velthof
Valued Contributor

Re: vgexport - vgimport

Thanks