Operating System - HP-UX
1752719 Members
5620 Online
108789 Solutions
New Discussion юеВ

Re: Changing Minor number of VG

 
SOLVED
Go to solution
Shibin_2
Honored Contributor

Changing Minor number of VG

Hi,

Can we change the minor number of VG, without removing the VG ?

Scenario is, I have created a VG of 400GB size in a cluster environemnt. When try to import it on another node, the same minor number, which I used for this VG, is using by another VG in that node.

If possible to change the Minor number without removing, that would be greatful. Otherwise, I have to recreate the whole thing.

Thanks in advance
Regards
Shibin
16 REPLIES 16
Shrikant Lavhate
Esteemed Contributor

Re: Changing Minor number of VG

Hi,

Yes you can do it bu renaming VG. Whole procedure goes this way:


1) Umount file systems
2) vgchange -a n ----to deactivate vg
3) vgexport -m -s -----export configs

4) mkdir /dev/vgNEW
5) mknod /dev/vgNEW/group c 64 0x020000 ----- chk minor numbers r in (Here you can use other minor number)
use or not bu ll /dev/vg*/group
5) vgimport -m -s /dev/ ----- with new name
6) vgchange -a y
7) mount FS

-=ShRi=-
Will it remain a personal, if I broadcast it here!
Robert-Jan Goossens_1
Honored Contributor

Re: Changing Minor number of VG

Hi,

I'm not sure I understand your question. Would you like to change the minor online, while the VG is active?Then the answer in NO, you will need to vgexport/vgimport the VG.

# vgchange -a n /dev/vgxx
# vgexport -m /tmp/vgxx.map /dev/vgxx
# rm /dev/vgxx/group
# mknod /dev/vgxx/group c 64 0x0z0000
change the z
# vgimport -m /tmp/vgxx.map /dev/vgxx
# vgchange -a y /dev/vgxx

Hope this helps,
Robert-Jan
Shibin_2
Honored Contributor

Re: Changing Minor number of VG

Hi Shri,

Thanks for the quick response.

What if, I don't want to change the name of the VG ? Because, we have some standards and to keep this standard.

The pain is, I don't want to recreate, as it has total 16disks with it's PV Links.
Regards
Shibin
Shibin_2
Honored Contributor

Re: Changing Minor number of VG

Hi Robert,

I will try this option.

I just created the VG. There is no data in it. But, the FS to be in cluster, so I need to replicate the same to other node. For the replication, I need to export this VG from this node and import it to another. When the importing stage, I found, the same minor number is using by some other VG and those are not part of cluster. Only local usage.

Anyway, I will try this option and come back to you guys.
Regards
Shibin
Shrikant Lavhate
Esteemed Contributor

Re: Changing Minor number of VG

Interesting!
You are asking to bypass main thing for which whole thing meant for.....

Anyways I never tried like this as you said. But it should work I guess.

-=ShRi=-
Will it remain a personal, if I broadcast it here!
Shibin_2
Honored Contributor

Re: Changing Minor number of VG

One more question, if I use the command

#rm /dev/vgxx/group

as said by Robert, will it remove the Minor number ??

Then, the Robert's option would be successful.
Regards
Shibin
Shrikant Lavhate
Esteemed Contributor

Re: Changing Minor number of VG

yes.
Infact if you see same method is explained in both replies !!!
Will it remain a personal, if I broadcast it here!
Shibin_2
Honored Contributor

Re: Changing Minor number of VG

Sorry to ask one more question.

Can I change the Max LV parameter, if the VG is not active ?
Regards
Shibin
Shibin_2
Honored Contributor

Re: Changing Minor number of VG

Sorry to ask one more question.

Can I change the Max PV parameter, if the VG is not active ?
Regards
Shibin