- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Creating new VG need HEX help
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
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
01-06-2003 12:16 PM
01-06-2003 12:16 PM
I know the command goes something like this..
mkdir /dev/vgxx
mknod /dev/vgxx/groupc c 64 0xNN0000
then a vgcreate..
How do I figure out the minor number for the group in hex?
Jeremy
Sunadmin@jslracing.com
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 12:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 12:21 PM
01-06-2003 12:21 PM
Re: Creating new VG need HEX help
# ll /dev/*/group
To list the the group files and start where the las one left off, so if the last one was, for example, 0x090000, then your next ones would be 0x0a0000, 0x0b0000, 0x0c0000, 0x0d0000 ..., 0x0f0000, 0x100000, and so on.
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 12:22 PM
01-06-2003 12:22 PM
Re: Creating new VG need HEX help
find /dev -name group -exec ls -l {} \;
I typically use the same as the VG number (if it is in fact a number). Otherwise, I pick the next one up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 12:29 PM
01-06-2003 12:29 PM
Re: Creating new VG need HEX help
You don't need to figure out the minor number. Make it unique and it should be less than the kernel parameter maxvgs.
To see if your minor number is unique, do
ll /dev/*/group
Note down the minor numbers of all the group files you found and pick a new minor number. Since only two fields are used you cannot go beyond "ff" which is 255 and that is the limit of max. no. of volume groups you can have on the system. However, the actual limit on your system is dependent on the kernel parameter maxvgs.
kmtune -l -q maxvgs
As said by Pete, good practice is to match vgyy with the minor number 0xyy0000
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 01:07 PM
01-06-2003 01:07 PM
Re: Creating new VG need HEX help
# ------------------ Decimal to Hex Converter
while [ $# -ge 1 ]
do
INPUT=$1
shift
echo "obase=16;ibase=10;${INPUT};quit" | bc
done
# --------------------------------------------
e.g.
# dec_hex.sh 12
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 01:12 PM
01-06-2003 01:12 PM
Re: Creating new VG need HEX help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 07:05 AM
01-07-2003 07:05 AM
Re: Creating new VG need HEX help
For example, on all of my systems vg00 is the operating system. On my production system all of my Oracle and SAP executables go in vg10. Then for the Oracle database I began with vg11, then vg12 and so on, adding them as I needed them.
On my QA system the executables are in vg20 with the database beginning in vg21 and so on.
My Development system uses vg30 and then vg31 and so on.
Other applications like OmniBack and Network Node Manager have their own unique volume group number.
The reason I do this is for portability between systems. Most of this is on an XP256 array. If I want to, or need to move an application to another host, either temporarily or for good, it's just easier if they already have a unique volume group number.
It doesn't happen often. I've used this approach when working on upgrades or some major tests. It also helps in a disaster recovery situation. I can bring my production environment up on my QA system in a matter of minutes without disturbing the QA enveironment.
Maybe a little over the top but, is has helped.