- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvcreate error
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-12-2002 05:22 PM
02-12-2002 05:22 PM
lvcreate error
I tried to create a new LV in /dev/vg00 with the command:
# lvcreate -L 8000 -m 1 /dev/vg00
I get the following error:
"lvcreate: Logical Vol /dev/vg00/lvol8 already exists."
This is true as lvol8 is /var but why doesn't lvcreate just choose the next avail lvol number.
If I use the -n option & specify the next lvol number everything works fine. Im just curious why this happens.
Any help appreciated.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 05:35 PM
02-12-2002 05:35 PM
Re: lvcreate error
Can you post these two outputs.
ll /dev/vg00
vgdisplay -v /dev/vg00
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 05:47 PM
02-12-2002 05:47 PM
Re: lvcreate error
I suspect it may have something
to do with the mirroring option.
As suggested, post the vgdisplay
output.
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 05:58 PM
02-12-2002 05:58 PM
Re: lvcreate error
As sanjay suggested please let us know those two outputs.I think this is related to minor number of the lvols.
If you specify the -n lv_name option, a new logical volume is created
with that name. Otherwise, a system-generated name of the form lvolN
is created, where N is the decimal equivalent of the two least
significant bytes of the minor number of the new logical volume, in
the range 1 to 255 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 05:59 PM
02-12-2002 05:59 PM
Re: lvcreate error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 06:26 PM
02-12-2002 06:26 PM
Re: lvcreate error
I don't see any reason why the system should be trying to create lvol8 when it alredy exists. The lvol11 is missing, but that could very well be deleted. This could be a patch issue. Do you have lvm command / cumulative patches on this box that has warning issued against them. You can check if there are any warning for those patches.
Animesh and Michael, can you think of any reason why this problem should be occuring.
Regards
Sanjay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 06:49 PM
02-12-2002 06:49 PM
Re: lvcreate error
have a vg with 10 lvols, lvol1 - lvol10.
# lvcreate -n lvol12 /dev/vgtmp
--> good
# lvcreate /dev/vgtmp
--> no good "lvol12 exists"
If I create lvol -n 11 (next in order, remove lvol12 1st) then follow it up w/ lvcreate (no -n) it created lvol12, no error. from the output of your vgdisplay and ll I think it might be something like this; since it appears lvols have been removed recreated, etc... I think the 1st place I'd look is at patches and their descriptions on what symptoms are.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 08:33 PM
02-12-2002 08:33 PM
Re: lvcreate error
There has been a fair amount of adding/removing lv's etc from /dev/vg00 so maybe this accounts for it like Denver suggested. If I find anything more I'll let you know.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 08:47 PM
02-12-2002 08:47 PM
Re: lvcreate error
This is part of the 'lvcreate' man page which tends to indicate what has been written by Denver.
If you specify the -n lv_name option, a new logical volume is created with that name. Otherwise, a system-generated name of the form lvolN is created, where N is the decimal equivalent of the two least significant bytes of the minor number of the new logical volume, in the range 1 to 255 (see lvm(7)). Two device files are created in vg_name: a block device file named lv_name or lvolN, and a character (raw) device file named rlv_name or rlvolN.
Because of the autogeneration of the numbering and what you have written, I would guess that the automatic numbering has got itself screwed up.
-Michael