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
12-27-2003 10:34 PM
12-27-2003 10:34 PM
When I create a logical volume on vg01, I get the following error:
#lvcreate -L 100 vg01
lvcreate: Logical volume "/dev/vg01/lvol48" already exists.
So I looked at /dev/vg01 directory and I noticed that there is a difference between the device file names and their minor numbers. lvols 1-34 are ok: their minor numbers are 0x010001-0x010022.
lvol 35 does not exist. lvol 36 has minor number 0x010023 instead of 0x010024. The mess continues until lvol 49, which has minor number 0x01002f (47 in decimal). So, when I run lvcreate, it looks for the first free minor number, which is 0x010030 (48 in decimal), but it fails because lvol48 already exists.
Does anyone knows how to fix this problem? I don't want to use lvcreate -n every time I want to create a logical volume.
Thanx.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2003 12:54 AM
12-28-2003 12:54 AM
Re: lvcreate
If the minor number does not belong removal is in order.
doing a -n with proper automated names will still leave you with a volume group you can export and import.
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
12-28-2003 02:51 AM
12-28-2003 02:51 AM
Re: lvcreate
can you list vgdisplay vg01 ? check Cur PV & Act PV & open LV ... all that good stuff.
I would try vgxport/vgimport, but you have to deactivate vg b4 vgexporting, that means unmounting filesystems first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2003 08:29 PM
12-28-2003 08:29 PM
Re: lvcreate
What do you mean in "cleaning up the minor numbers"?
10x.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2003 01:23 AM
12-29-2003 01:23 AM
SolutionIf the file system is not part of the "boot sequence", you can just
umount /fs
cd /dev/vgXX
mv block_old block_new
mv raw_old raw_new
vi /etc/fstab
change old to new
mount /fs
You can change /dev/vgXX/lvolNN to /dev/vgXX/lvolYY.
But, I think you should get used to creating new lvols with the "-n lvolNN" option. what's the problem there?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2003 01:32 AM
12-29-2003 01:32 AM
Re: lvcreate
It will take a lot of mounting, unmounting and (don't forget !!) editing fstab, but it will be ok when you rename 36 to 35, 37 to 36 and so on.
It's a dirty job, but..
greets
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2003 01:41 AM
12-29-2003 01:41 AM
Re: lvcreate
crw-r----- 1 root sys 64 0x000004 Aug 21 08:58 /dev/vg00/rlvol4
here is an example :
# mknod /dev/vg00/rlvol4 c 64 0x00000a
# mknod /dev/vg00/lvol4 b 64 0x00000a
# ll /dev/vg00/*lvol4
brw-rw-rw- 1 root sys 64 0x00000a Dec 27 14:08 /dev/vg00/lvol4
crw-rw-rw- 1 root sys 64 0x00000a Dec 27 14:06 /dev/vg00/rlvol4
Happy 200.4 all