Operating System - HP-UX
1836401 Members
3134 Online
110100 Solutions
New Discussion

Re: Change of major and minor

 
yc_2
Regular Advisor

Change of major and minor

Hi,

Is there a way to change the major and minor munber of the device. If so, how to ?

Reason behind this is because I had created two logical volumes and later I wanted to perform and vgexport and vgimport to another node in a MCSG environment. I found in the other node that the major and minor number were in used in the second node.


Thanks in advance,
YC
4 REPLIES 4
Jeff Schussele
Honored Contributor

Re: Change of major and minor

Hi,

The minor number change is not much of a problem, BUT changing the major number will be. The major number normally designates the driver that the device(s) will use.

But all LVM structures are normally major #64, so I'm not sure what's happened at your site. Are these numbers used in the LV name or something?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
yc_2
Regular Advisor

Re: Change of major and minor

Hi Jeff,

Correction, it should be changing of the minor number. Can you advice.


Thanks in advance,
YC
harry d brown jr
Honored Contributor

Re: Change of major and minor


Well, being that you decide what the MINOR number is when you create the VG, then you can change it to what you want. Please read this thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd62a8ffa98a2d5118ff10090279cd0f9,00.html

btw, the search string I used was
changing minor lvm number

live free or die
harry
Live Free or Die
yc_2
Regular Advisor

Re: Change of major and minor

Hi,

After I did the vgimport with the following message:

Beginning the import process on Volume Group "/dev/vginfx_hp_test".
vgimport: Warning: Volume Group contains "1" PVs, "2" specified. Continuing.
Logical volume "/dev/vginfx_hp_test/infx_hp_test1" has been successfully created
with minor number 1.
Logical volume "/dev/vginfx_hp_test/infx_hp_test2" has been successfully created
with minor number 2.
Volume group "/dev/vginfx_hp_test" has been successfully created.
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.

There are no record of this vg in lvmtab file and the lv is not in the group file as well.



YC