- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- could not create new volume group due to already a...
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
10-04-2007 12:53 AM
10-04-2007 12:53 AM
I have already removed a directory for a volume group vg_filesys, with rm -r /dev/vg_filesys which turns out to remove "group" the xter device file.
Initially, this VG uses 0x010000 (1 as the minor no.) but when I re-created the directoy vg_filesys and wish to use the same minor no 0x010000 the following errors came up:
mkdir /dev/vg_filesys - successfull
mknod /dev/vg_filesys/group c 64 0x010000 - sucessful
vgcreate /dev/vg_filesys /dev/dsk/c0t4d0 /dev/dsk/c1t4d0 - unsuccessful due the following errors:
vgcreate: Volume group "/dev/vg_filesys" could not be created:
A volume group is already using the major and minor number. Please check the minor number of the "group" device file.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 01:06 AM
10-04-2007 01:06 AM
Re: could not create new volume group due to already assigned minor number
Could you post the otuput of "strings /etc/lvmtab", "ll -d /dev/vg*" and "ll /etc/lvmconf"?
Regards;
J. Bravo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 01:06 AM
10-04-2007 01:06 AM
Re: could not create new volume group due to already assigned minor number
if you want to recreate the new vol_grp, I think that the steps are:
mkdir /dev/vg_filesys
mknod /dev/vg_filesys/group c 64 0x010000
N.B. obviously now you destroy all filesys presents on disks
pvcreate -f /dev/dsk/c0t4d0
pvcreate -f /dev/dsk/c1t4d0
the -f option:
Force the creation of a physical volume (thus deleting any file system present) without first requesting confirmation.
vgcreate /dev/vg_filesys /dev/dsk/c0t4d0 /dev/dsk/c1t4d0
Fat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 01:07 AM
10-04-2007 01:07 AM
Re: could not create new volume group due to already assigned minor number
# ll /dev/*/group
and see what is duplicate and remove it.
After that create new with mknod.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 01:07 AM
10-04-2007 01:07 AM
Re: could not create new volume group due to already assigned minor number
What gives
strings /etc/lvmtab
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 01:10 AM
10-04-2007 01:10 AM
Re: could not create new volume group due to already assigned minor number
ls -al /dev/vg*/group
and then when you run the following:
mknod /dev/vg_filesys/group c 64 0x010000
make sure to change the last parameter (minor number) to be an unused number.
So, lets say that 1,2,3,4,5 are in use
then make the newest one 6.
mknod /dev/vg_filesys/group c 64 0x060000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 01:15 AM
10-04-2007 01:15 AM
Re: could not create new volume group due to already assigned minor number
I used ordinary delete i.e rm -r /dev/vg_filesys, and when I ran ll /dev/*/group it displays with this group in question, ie. /dev/vg_fileysy/group with 0x010000 with minor no of 1. What baffles me is that i deleted the entire directory with rm -r as I have stated and yet it shows that the minor no has been used. how do I remove this minor no completely and re-use it for the sam VG?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 01:18 AM
10-04-2007 01:18 AM
Re: could not create new volume group due to already assigned minor number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 01:38 AM
10-04-2007 01:38 AM
Re: could not create new volume group due to already assigned minor number
if the procedure to destroy vol_grp vg_filesys was'nt correct and now it isn't possible to reacreate a vol_grp with the same minor number, I think that it's possible to recreate it, if this is what you want:
1) mkdir /dev/vg_filesys
2) mknod /dev/vg_filesys/group c 64 0x020000 if it's unsed
3) pvcreate -f /dev/dsk/c0t4d0
4) pvcreate -f /dev/dsk/c1t4d0
5) vgcreate /dev/vg_filesys /dev/dsk/c0t4d0 /dev/dsk/c1t4d0
and finally clear /etc/lvmtab with vgscan command, used, if I remember, to re-create of the /etc/lvmtab.
Is it ok for all?
Fat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 02:38 AM
10-04-2007 02:38 AM
SolutionIf you want to remove a VG, always use either vgremove or vgexport!
No move the existing /etc/lvmtab away and run
vgscan -v -p (preview)
and
vgscan -v (for create a new file)
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 02:48 AM
10-04-2007 02:48 AM
Re: could not create new volume group due to already assigned minor number
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 08:50 PM
10-04-2007 08:50 PM
Re: could not create new volume group due to already assigned minor number
Your solution of moving away the /etc/lvmtab really soleved the problem.
Thanks a lot.
Sorry I forgot to assign point but will surely do that.
Thanks everybody