Operating System - HP-UX
1829115 Members
14964 Online
109986 Solutions
New Discussion

changing the minor number of an existing volume group

 
Anthony Nichols
Occasional Contributor

changing the minor number of an existing volume group

I am about to implement MC/SG on two servers and it is a requirement that the minor numbers of the shared volume be the same.

Unfortunately, I have already created volumes on the failover system which have conflicting node minor numbers with the primary system. Is there a slick way to reassign the minor number of the existing groups on the failover system?
2 REPLIES 2
Andy Monks
Honored Contributor

Re: changing the minor number of an existing volume group

The safest (and supported) would be :-

vgchange -a n
vgexport -m /tmp/mapfile
mkdir ...
mknod ...
vgimport -m /tmp/mapfile
vgchange -a y

depending on the number of disks, you may want to use the -s option too on the vgimport.
Andreas Voss
Honored Contributor

Re: changing the minor number of an existing volume group

Hi,

i think you have to vgexport/vgimport:


List the devices for the volume group:
vgdisplay -v | grep 'PV Name'
record these devices

Export the vg:
(umount all dirs that belongs to the vg.)
vgchange -a n
vgexport -v -m /tmp/vg_mapfile

Create new group device:
mkdir /dev/
mknod /dev//group c 64 0x##0000
where ## is the new minor number

Import the vg:
vgimport -v -m /tmp/vg_mapfile

where the devices are the ones you have recorded before.
vgchange -a y
(mount all dirs)

Greetings

Andrew