- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: WHile importing volume groups it gave error "c...
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
02-27-2002 11:04 AM
02-27-2002 11:04 AM
I am migrating system disks from HP-UX 10.20 (K220) to HP-ux 11.0 (K360)
I have done following things on two volume groups in 10.20
vgexport -m /tmp/lvmconf_vg10.map -p -s -v /dev/vg10
and similarly for another vg vg20.
Then I disconnected disks and connected to new system loaded with HP-UX 11.0
I have created group file for required vgs.
NOw, when importing the volume groups I gave following command.
vgimport -m /tmp/lvmconf_vg10.map -p -v -s /dev/vg10
Then it gave following error.
vgimport : can not open the control file "/dev/vg10/group"
No such file.
I have checked the file , it is there in the /dev/vg10 directory. I have deleted the file and created again....but no luck.
Can you please let me know how do I import the volume groups now.?
Appreciated your help in advance.
Thanks,
-Piyush.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 11:07 AM
02-27-2002 11:07 AM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
Have you done this?
mkdir /dev/vg??
mknod c 64 0x0?0000 /dev/vg??/group
vgimport -s -m mapfile.name /dev/vg??
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 11:08 AM
02-27-2002 11:08 AM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 11:09 AM
02-27-2002 11:09 AM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
On first node
vgexport -pvs -m
rcp to mapfile to second node
On second node
vgexport /dev/vg
mkdir /dev/vg
mknod /dev/vg/group c 64 0x0_0000
vgimport -vs -m
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 11:11 AM
02-27-2002 11:11 AM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
Did you create the node:
#mknod /dev/vg10 c 64 (always for VGs) 0x00000X (must be unique)
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 11:14 AM
02-27-2002 11:14 AM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
#mknod c 64 0x000001 /dev/vg10/group.
I keep telling myself "It's the syntax, stupid!" ;~)
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 11:15 AM
02-27-2002 11:15 AM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
The permissions on the group file shoud be crw------- at a minimum and it should be owned by root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 11:44 AM
02-27-2002 11:44 AM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
Right now I have a vg10 directory and group file with 666 permission.
Still I am getting the same error.
Is it important to to vgexport using the -p option? or I should have done without -p option?
I did following while exporting vg.
vgexport -m /tmp/lvmconf_vg10.map -p -s -v /dev/vg10.
Then I copied the map file to new machine.
On new machine I have created
mkdir /dev/vg10
mknod /dev/vg10/group c 64 0x100000 /dev/vg10
now importing the volume group, I am getting the above error.
I have came across such error first time....
Thanks for your responses , though I am yet to solve my problem.
Thanks,
-Piyush.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 11:52 AM
02-27-2002 11:52 AM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
You don't need to mention '/dev/vg10' two times while doing mknod. Try this:
# mknod /dev/vg10/group c 64 0x100000
After this check the file's major and minor numbers with ls -al command. Also make sure that the minor number is not used by any other VGs. Can you post the output of strings /etc/lvmtab ?
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 11:56 AM
02-27-2002 11:56 AM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
Still no luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 12:01 PM
02-27-2002 12:01 PM
SolutionThe minor number you used for /dev/vg10/group 0x100000) may be too high for what you have configured as the max number of VGs on the system.
The configurable kernel parameter is maxvgs. Use sysdef to see what the max value is. You can change it with SAM or you can recreate group with a lower minor number (remember, it's in hex so the next after 0x090000 would be 0x0a0000).
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 12:04 PM
02-27-2002 12:04 PM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 12:09 PM
02-27-2002 12:09 PM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
Darell's point is a good one. Check the maxvg (default 10) parameter with 'sysdef' command. Then try with a hexadecimal minor number.
# mknod /dev/vg10/group c 64 0x0a0000
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 12:10 PM
02-27-2002 12:10 PM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
It doesn't take as 10 , it takes as a.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 12:14 PM
02-27-2002 12:14 PM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
If your minor number is
0x100000
then you are setting it at a value higher than your maxvgs can handle...remember 0 is a valid number..so 0-9 accounts for 10vg. Thus 0x100000 is too high.
Increase maxvgs !!
Rita
...0x0d0000 0d=13
...0x0f0000 0f=15
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 12:44 PM
02-27-2002 12:44 PM
Re: WHile importing volume groups it gave error "can not open the control file "dev/vg10/group"
Thanks a lot for your response.
I solved the problem. The culprit was MAx vg parameter and the minor number.....:)..
Thanks,.