Operating System - HP-UX
1827414 Members
4738 Online
109965 Solutions
New Discussion

Re: vgimport with a different minor number

 
SOLVED
Go to solution
raiden
Regular Advisor

vgimport with a different minor number

guys,

I have recently created a cluster aware VG in a hurry. But later I realised that the minor number which I have used on the primary node is already in use on the secondary node..

Now I want to know than can i vgexport the current vg configuration on a map file, and then vgimport it using a different minor number..

4 REPLIES 4
Ganesan R
Honored Contributor
Solution

Re: vgimport with a different minor number

Hi,

You can. Just export the VG on primary node with map file. Create new minor file and import it.

#vgexport -v -s -m /tmp/vg.map /dev/vgname
#mkdir /dev/vgname
#mknode /dev/vgname/group c 64 0x__0000
#vgimport -v -m /tmp/vg.map /dev/vgname

Best wishes,

Ganesh.
Steven E. Protter
Exalted Contributor

Re: vgimport with a different minor number

Shalom,

Minor number does not effect the ability to do a vgimport.

You have to use mknod to establish this so that you can do the import.

export/import is commonly used to correct errors made in volume group setup, including minor number issues.

http://unix.derkeiler.com/Newsgroups/comp.sys.hp.hpux/2003-10/0365.html

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ganesan R
Honored Contributor

Re: vgimport with a different minor number

Hi Raiden,

Typo error in my previous post.

#mknode /dev/vgname/group c 64 0x__0000

should be

#mknod /dev/vgname/group c 64 0x__0000

My sincere apologize for the mistake...
Best wishes,

Ganesh.
raiden
Regular Advisor

Re: vgimport with a different minor number

thanks Ganesan and Steven...This clears my doubt