- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgcreate issue
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
05-31-2006 09:35 PM
05-31-2006 09:35 PM
I removed vg01 by "vgreduce","vgremove" and then I want to recreate it by following the normal procedure. But encountered the following problem, pls help on this.
# vgcreate /dev/vg01 /dev/dsk/c2t1d0
Increased the number of physical extents per physical volume to 8683.
vgcreate: Volume group "/dev/vg01" could not be created:
A volume group is already using this major and minor number.
Please check the minor number of the "group" device file.
Did I miss some step when remove the vg01, which cause the minor number is occupied?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 09:58 PM
05-31-2006 09:58 PM
Re: vgcreate issue
Yes you missed a step.
check the group files in /dev/vg## for all volume groups. Make sure they are consistent for the volume groups
vgexport vg01
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
There must not be any other volume groups with in their group files.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 10:09 PM
05-31-2006 10:09 PM
Re: vgcreate issue
# vgexport vg01
vgexport: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file.
vgexport: Couldn't export volume group "vg01".
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgcreate /dev/vg01 /dev/dsk/c2t1d0
Increased the number of physical extents per physical volume to 8683.
vgcreate: Volume group "/dev/vg01" could not be created:
A volume group is already using this major and minor number.
Please check the minor number of the "group" device file.
# echo $?
1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 10:22 PM
05-31-2006 10:22 PM
Re: vgcreate issue
could you post
# ll /dev/*/group
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 10:24 PM
05-31-2006 10:24 PM
Re: vgcreate issue
check the minor number used with the command:
ll /dev/*/group
Perhaps you used a minor number for vg01 (with the command mknod) that is already in use.
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2006 10:33 PM
05-31-2006 10:33 PM
Re: vgcreate issue
vgremove doesn't remove the vgXX directory as well where vgexport does that. So if you use vgremove then should delete manually /dev/vgXX directory.
That should be the reason now the system is finding another group file with the same major/minor number.
Check as other people said by ll /dev/*/group and if any just delete it.
Please don't forget to give the final statement here about the conclusion of the problem and if you think people here helped you then don't forget to assign points.
Thanks for your collaboration!
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 01:15 PM
06-01-2006 01:15 PM
Re: vgcreate issue
# ll /dev/*/group
crw-r----- 1 root sys 64 0x000000 Jun 1 08:20 /dev/vg00/group
crw-rw-rw- 1 root sys 64 0x010000 Jun 1 11:54 /dev/vg01/group
It looks like both vgreduce and vgremove, couldn't be able to clean remove it. So is there any command to clean remove one VG?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 01:23 PM
06-01-2006 01:23 PM
Re: vgcreate issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 01:33 PM
06-01-2006 01:33 PM
Re: vgcreate issue
# ll /dev/vg01
/dev/vg01 not found
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# chmod 640 /dev/vg01/group
# ll /dev/vg01
total 0
crw-r----- 1 root sys 64 0x010000 Jun 2 03:13 group
# vgcreate /dev/vg01 /dev/dsk/c2t1d0
Increased the number of physical extents per physical volume to 8683.
vgcreate: Volume group "/dev/vg01" could not be created:
A volume group is already using this major and minor number.
Please check the minor number of the "group" device file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 02:49 PM
06-01-2006 02:49 PM
Re: vgcreate issue
Is there an /dev/slvmvg file?
# rm /dev/slvmvg
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -a -p -Âv
-p for prep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 03:16 PM
06-01-2006 03:16 PM
Re: vgcreate issue
there is no /dev/slvmvg, just did:
# vgscan -a -p
# vgcreate /dev/vg01 /dev/dsk/c2t1d0
But still the same failure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 03:36 PM
06-01-2006 03:36 PM
Re: vgcreate issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 03:39 PM
06-01-2006 03:39 PM
Re: vgcreate issue
find / -type c -exec ls -l {} \; | grep 64 | grep 0x01
Let's just see what that turns up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 04:49 PM
06-01-2006 04:49 PM
Re: vgcreate issue
After did the find, there is only one result, which is /dev/vg01/group. Actually there is no other files.!
My system is ia64 (11.23), is there any special feature?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 07:30 PM
06-01-2006 07:30 PM
Re: vgcreate issue
Please try
#vgexport vg01
#pvcreate -f /dev/rdsk/c2t1d0
After that repeat known procedure of creating vg's:
#mkdir /dev/vg01
#mknod /dev/vg01/group c 64 0x010000
#vgcreate /dev/vg01 /dev/dsk/c2t1d0
Kind regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 08:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 08:34 PM
06-01-2006 08:34 PM
Re: vgcreate issue
ll /dev/* |grep [new numbre]
if it is not free just pick the next numbre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 08:48 PM
06-01-2006 08:48 PM
Re: vgcreate issue
Can you check if the disk is oke?
- diskinfo -v /dev/rdsk/c2t1d0
Did the "find command" resulted in any Character devices found with the same minor number?
- pvcreate /dev/rdsk/c2t1d0
- mkdir /dev/
Try to use a differnt minor number
- mknod /dev/
GoodLuck
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 09:13 PM
06-01-2006 09:13 PM
Re: vgcreate issue
vgcreate is successfully created by change the minor number. But still don't know why 0x010000 is occupied, since didn't found any other by "find" command. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 09:27 PM
06-01-2006 09:27 PM
Re: vgcreate issue
What's the result of:
find / -type c -exec ls -l {} \; | grep 64 | grep 0x01
To check which Char. device is using this minor number.
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 09:37 PM
06-01-2006 09:37 PM
Re: vgcreate issue
So, a workaround is to use a different minor number. Or, if you want to use the same minor number,
#vgexport vg01
check:
#ll /dev/*/group
Reboot the system.
After reboot:
#pvcreate -f /dev/rdsk/c2t1d0
Create vg01:
#mkdir /dev/vg01
#mknod /dev/vg01/group c 64 0x010000
#vgcreate /dev/vg01 /dev/dsk/c2t1d0
Also, check if the latest LVM cumulative patch was installed (according with your OE version).
BTW, what is your OE version? :)
Best Regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 10:06 PM
06-01-2006 10:06 PM
Re: vgcreate issue
My OE is B.11.23.0505, don't know what's the lvm patch for this.
Now I am trying, i reboot the system first, and then re-create,after remove the VG01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 10:23 PM
06-01-2006 10:23 PM
Re: vgcreate issue
the problem is solved by add reboot before re-create vg01. Thanks everyone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2006 11:25 PM
06-01-2006 11:25 PM
Re: vgcreate issue
Bye,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2006 01:00 AM
06-02-2006 01:00 AM