Operating System - HP-UX
1829598 Members
1661 Online
109992 Solutions
New Discussion

How to change minor number in one vg without stop

 
SOLVED
Go to solution
Carme Torca
Super Advisor

How to change minor number in one vg without stop

Hi,

I would like to change the minor number of the group and lvols in one vg. Is it possible do that without dismount lvoles??

I want to change 0x03000x by 0x06000x

Thanks!,
Carmen.


crw-r--r-- 1 root users 64 0x030000 Jan 30 15:35 group
brw-r----- 1 root users 64 0x030001 Jan 30 15:39 lvol1
brw-r----- 1 root users 64 0x030002 Jan 30 15:39 lvol2
brw-r----- 1 root users 64 0x030004 Jan 30 15:39 lvol4
brw-r----- 1 root users 64 0x030005 Jan 30 15:39 lvol5
brw-r----- 1 root users 64 0x030006 Jan 30 15:39 lvol6
-rw-r--r-- 1 root users 40 Jan 30 15:37 mapfile
crw-r----- 1 root users 64 0x030001 Jan 30 15:39 rlvol1
crw-r----- 1 root users 64 0x030002 Jan 30 15:39 rlvol2
crw-r----- 1 root users 64 0x030004 Jan 30 15:39 rlvol4
crw-r----- 1 root users 64 0x030005 Jan 30 15:39 rlvol5
crw-r----- 1 root users 64 0x030006 Jan 30 15:39 rlvol6
Users are not too bad ;-)
2 REPLIES 2
John Poff
Honored Contributor
Solution

Re: How to change minor number in one vg without stop

Hi Carmen,

No, you'll have to unmount the filesystems associated with the lvols to change the minor number. Any process using one of those filesystems will have the lvol open.

You'll have to do a vgexport (and create a map file), and then recreate the volume group directory, the group file with the new minor number, and do a vgimport.

JP
Steven E. Protter
Exalted Contributor

Re: How to change minor number in one vg without stop

If it can be done, it probably requires OnlineJFS.

I would not even try it though. If these logical volumes are important enough that you want to keep them up most of the time, then why mess with them.

It is probably a better idea to back up, rebuild, restore during a maintenance window.

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