- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem with vgcreate -- a touch of fear !!
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-26-2005 05:08 AM
10-26-2005 05:08 AM
Problem with vgcreate -- a touch of fear !!
I am trying to create a new volume group on my RP7400. I have a CLARiiON CX400 that is attached to this, and I am essentially setting up a new LUN. The LUN is created, and I have found my new "disk" using ioscan, created the physical volume, and made the corresponding /dev directory. The volume/disk I am using even shows up in the nodes when I do an ll /dev/emc*/group command. Mknod had no problem that I could see. The problem comes in when I try to run the vgcreate command as follows: vgcreate /dev/emc08 /dev/dsk/c5t0d7. I get the error "vgcreate: cannot open the control file /dev/emc08/group: no such device".
The last time I saw this was in the test server, which was indicating that I had reached the maxvgs limit. According to what I can tell on our live server, this isn't the case. The disk also has no entry in the /etc/lvmtab that I can see (which, again, concerns me).
Last thing of interest: when I look at the groups (ll /dev/emc*/group), I see hex values of 0x020000 - 0x0a0000 (0x0a0000 is the one for the vg I'm trying to add), with the exception that 0x030000 is not in the list.
How do I get around this problem? I would prefer not to have to recompile the kernel, as I don't have the time to really test doing that . Any other suggestions?
Thanks again--
--James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:16 AM
10-26-2005 05:16 AM
Re: Problem with vgcreate -- a touch of fear !!
I would try again..
vgexport /dev/emc08
mkdir /dev/emc08
mknod /dev/emc08/group c 64 0x0a0000
(make sure 0x0a0000 doesn't already exist already: ll /dev/*/group )
BTW - for naming standards - I suggest /dev/vgemc08
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:17 AM
10-26-2005 05:17 AM
Re: Problem with vgcreate -- a touch of fear !!
Worse comes to the worst, delete the group file under emc08 directory and recreate it. That would be the first thing i'd do as it sounds like the LVM doesn't like this entry.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:21 AM
10-26-2005 05:21 AM
Re: Problem with vgcreate -- a touch of fear !!
cd /dev
mkdir vgname
# example mkdir vg03
mknod vg03/0x0300000
Now you can create a volume group with vgcreate.
If there are extraneous grup files out there you may need to get rid of them, not not before backing up your lvm structure with vgcfgbackup
I'm thinking you didn't have a cookbook and all you need is the mknod command to proceed.
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
10-26-2005 05:22 AM
10-26-2005 05:22 AM
Re: Problem with vgcreate -- a touch of fear !!
Check for the group file.
ls -l /dev/emc08/group (It should be of unique id )
And possibly you need to recreate with mknod and go from the scratch,
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:29 AM
10-26-2005 05:29 AM
Re: Problem with vgcreate -- a touch of fear !!
So, what is the value of MAXVGS???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:31 AM
10-26-2005 05:31 AM
Re: Problem with vgcreate -- a touch of fear !!
I was a bit unclear on the group/minor numbers. There is only one number per entry, i.e., emc08 is only assigned 0x0a0000. My bad.
I can't vgexport, since the entry doesn't exist in the lvmtab. Trying to do mkdir or mknod returns errors that both already exist.
As far as the standard goes, I would agree with you...but I inherited this system, and want to keep with the existing structure.
*shrug*...am I missing something?
------------------------------
Mel:
Running a ll /dev/emc08/group returns what looks like a proper group file with correct permissions, at least as matched against the other entries. Only difference I see is that the other entries (such as emc07) have rv01 and v01 entries under the dirs, while emc08 doesn't.
Thanks, guys....I'm still trying to work this out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:36 AM
10-26-2005 05:36 AM
Re: Problem with vgcreate -- a touch of fear !!
rm -rf /dev/emc08
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:37 AM
10-26-2005 05:37 AM
Re: Problem with vgcreate -- a touch of fear !!
Good point, I did notice that. Is there a way to find out if 0x030000 is assigned to something? If not, can I delete my assigning of emc08 to 0x0a0000 and assign it to 0x030000? All of the other entries in the /dev/emc*/group have hex numbers; in the series of 0x020000 to 0x0a0000, only 0x030000 is missing. If I can use that one, safely and with some assurance that I'm not bombing something else in the system, I'll use it.
My maxvgs parameter is still set at the default of 10.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:40 AM
10-26-2005 05:40 AM
Re: Problem with vgcreate -- a touch of fear !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:46 AM
10-26-2005 05:46 AM
Re: Problem with vgcreate -- a touch of fear !!
As Alan said, whichever minor numbers you are missing in the sequence, can be used for a new volume group. They do not increase linearly as you add new groups. You can fill the holes in the lower numbers vacated by exporting or removing old vg's.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:47 AM
10-26-2005 05:47 AM
Re: Problem with vgcreate -- a touch of fear !!
Therefore, when you create a vg with say a name of vg79, it's minor number with our current standard would be 0x790000
What's wrong with that you say? well, what if the kernel parameter MAXVGS is set to 80?
79 HEX is 121 decimal - which is 42 vg's more then you can have with MAXVGS at 80 (starts with vg00).
So, the minor number for vg79 should really be: 0x4f0000
So, MAXVGS=10 - means 00 to 09 - not 0a
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 05:47 AM
10-26-2005 05:47 AM
Re: Problem with vgcreate -- a touch of fear !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 07:51 AM
10-26-2005 07:51 AM
Re: Problem with vgcreate -- a touch of fear !!
Ok, I deleted the emc08 as directed, then did the pvcreate, made a new directory, and did a mknod using 0x03. Finally, I did the vgcreate(vgcreate /dev/emc08 /dev/dsk/c5t0d7), which worked nicely. Once I did the lvcreate, it told me I needed to do an lvextend (which I expected), but looks like that worked also. However, now I'm choking on the newfs command. I run "newfs -F vxfs /dev/emc08/lvol1", and I am told that it is not a character device. Sure enough, if I go to /dev/emc08, lvol1 has permissions of brw-r-----. I have gone through this on the test server, and didn't have this problem (granted, it was a year ago, but...).
I admit, I am more of a newb at this than I want to admit, but still....I'm working on getting my head around this, so that I don't make the same mistake again later.
Thanks, and I'm now going to go back and start handing out points to everyone! (Oh, and the good news is that this *ought* to be my last hurdle....after this, I just need to create the mount point on the server and mount the new dir up, I think...)
--James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 07:58 AM
10-26-2005 07:58 AM
Re: Problem with vgcreate -- a touch of fear !!
/dev/emc08/rlvol1
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 08:08 AM
10-26-2005 08:08 AM
Re: Problem with vgcreate -- a touch of fear !!
it is always helpful to take a look at the man pages.
man newfs or man newfs_vxfs
it is telling you the options.
(use *r*lvol -> /dev/vg/rlvol/..)
It may be also a good idea to set the large file option, so you are able to create files >2GB.
newfs -F vxfs -o largefiles /dev/emc08/rlvol1
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-26-2005 08:52 AM
10-26-2005 08:52 AM
Re: Problem with vgcreate -- a touch of fear !!
You didn't say if you have powerpath; I'm going to assume that you do.
Even though the /dev/rdisk/ file is created by powerpath, you still have to do the pvcreate in HP-UX in order for the correct LVM info to be written, which is what vgcreate is looking for and couldn't find. I see later in the thread that you have since done this. You also didn't state if you ran insf -e -C disk after the ioscan. If you haven't done so, you will need to.
You are also going to want to do a pvchange on the disk using the "-t 180" option to set the default timeout to 3 minutes in order to alieveate false timeout detections by PowerPath.
Finally, don't forget to run powermt check, powermt config, and powermt save to complete the setup on the PowerPath side.
Good luck,
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2005 10:34 AM
10-28-2005 10:34 AM
Re: Problem with vgcreate -- a touch of fear !!
Thanks again to all for the great answers!
(And, btw, I *did* read the man pages. Doesn't mean that I fully understood them, though....a lot more NOW, at any rate)
Thanks!!
--James