- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- same minor number for 2 VGs beloging to diff packa...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2007 02:34 AM
03-02-2007 02:34 AM
Now my node2 already has a shared VG (vgPAT) that has this minor number 0x280000. In this situation, I am unable to create vgWB8 on node2 and vgPAT on node1 due to each taking same minor number. vgWEB8 belongs to pkg1 on node1 and vgPAT belongs to pkg2 on node2.
This is a prod cluster. Is it possible to change the minor number while the VGs are active. Since the minor number is same, I have to choose a different unused minor number for one of these and keep the other as is.
Do I have bring down the pkg to do this minor number change.
Thank you all for your suggestions.
Rajos
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2007 02:47 AM
03-02-2007 02:47 AM
Solution1. bring down whatever is using vgPAT.
2. unmount anything on vgPAT.
3. vgchange -a n vgPAT
4. vgexport -m /tmp/vgPat.map vgPAT
5. mkdir /dev/vgPAT
6. mknod /dev/vgPAT/group c 64 0xNN0000
The NN will need to be some other unused minor number and also not 28.
6. vgimport -m /tmp/vgPAT vgPAT
This will essentially recreate the volume group using the new minor number. You will not loose any of the volume group info off the disks. Then you can mount the vgPAT filesystems again and do your vgimport/vgexport of your shared SG filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2007 02:48 AM
03-02-2007 02:48 AM
Re: same minor number for 2 VGs beloging to diff packages
I don't think any one can document/predict the behavior or the problems you will run in to if you change the minor number online.
ButI believe the minor number is read in the memory and used in various diagnostics messages (like for example POWERFAIL uses the minor number of the VG).
You may not be able to activate the new VG even if you manage to create one. The kernel might identify this as a conflict.
So, I would strongly recommend against it.
On the other hand, different minor numbers will work just fine except in rare cases. Like for example, if you use NFS on the LVs of the VGs then you are in for trouble when the package fails over. NFS uses locking mechanism that includes the device ID.
I am not sure if this has changed in the recent NFS versions.
Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2007 02:51 AM
03-02-2007 02:51 AM
Re: same minor number for 2 VGs beloging to diff packages
These are the questions that you should ask yourself when you are planning the package --- not after you have started.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2007 03:02 AM
03-02-2007 03:02 AM
Re: same minor number for 2 VGs beloging to diff packages
As far as standards go - stick with vgXX
where XX is a unique number (IE vg21)
Then, your minor number can be the HEX of XX
So, for vg21, your minor number would be 0x150000
That way, you will never ever have this issue (2 minor numbers the same) again.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2007 03:06 AM
03-02-2007 03:06 AM
Re: same minor number for 2 VGs beloging to diff packages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 06:26 PM
11-26-2007 06:26 PM
Re: same minor number for 2 VGs beloging to diff packages
and Mr. Rajos, if you fixed the problem, would you please share it to us?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 10:51 AM
11-27-2007 10:51 AM
Re: same minor number for 2 VGs beloging to diff packages
Forever, Period.
Under penalty of wedgie !
(ok, not true on that part)