1752805 Members
5737 Online
108789 Solutions
New Discussion юеВ

lvcreate question

 
SOLVED
Go to solution
dictum9
Super Advisor

lvcreate question


I am trying to add another logical volume to the vg00 volume group and when I run the command, it gives me this error, why is that?
Do I need to explicitly name the new LV?

# lvcreate -L 12500 /dev/vg00
lvcreate: Logical volume "/dev/vg00/lvol10" already exists.
#
5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: lvcreate question

Yes, it would help to use the '-n' option to name the LV. For some reason, once you get 10 LV's, then lvcreate command has problems automatically generating new names.

# lvcreate -L 12500 -n lvol11 /dev/vg00

should work for you.
dictum9
Super Advisor

Re: lvcreate question

Thanks, that worked -I was aware of the -n option, but was surprised about the 10 lvolvs limit.

The other strange thing is, the man page does not give an example using -n option. Cryptic as usual.



Doug O'Leary
Honored Contributor

Re: lvcreate question

Hey;

No explanation, but 10 is also the default limit of the maxvgs kernel parm... I think I detect a pattern here....

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Patrick Wallek
Honored Contributor

Re: lvcreate question

You may need to see about installing the latest LVM cumulative patch.

I just tried on a 11.0, 11.11 and 11.23 machine and I was able to create lvols above lvol10 without any problem.

I *DO* recall seeing this issue previously, but I got around it with the '-n'. It may be that the problem was fixed in one of the recent patches.
rariasn
Honored Contributor

Re: lvcreate question

# vgdisplay -v vg00|more

Seek for "lvol10" and if exist, create another lvol. Sample,

# lvcreate -n lvoletc vg00
# lvextend -L 12500 /dev/vg00/lvoletc
# lvextend -m 1 /dev/vg00/lvoletc
# newfs /dev/vg00/rlvoletc

rgs