1833458 Members
3142 Online
110052 Solutions
New Discussion

lvcreate problem

 
SOLVED
Go to solution
Dario_4
Frequent Advisor

lvcreate problem

Hello,

here's my script:

for i in 191 192 193 194 195 196 197 198 199 200
do
lvcreate -n lv_ict_2048_raw_$i -L 2048 -i 4 -I 64 /dev/vg_ict_raw
done

I see:

lvcreate: Unable to generate a name for the logical volume.
Invalid argument
lvcreate: Unable to generate a name for the logical volume.
Invalid argument
lvcreate: Unable to generate a name for the logical volume.
Invalid argument
lvcreate: Unable to generate a name for the logical volume.
Invalid argument
lvcreate: Unable to generate a name for the logical volume.
Invalid argument
lvcreate: Unable to generate a name for the logical volume.
Invalid argument
lvcreate: Unable to generate a name for the logical volume.
Invalid argument
lvcreate: Unable to generate a name for the logical volume.
Invalid argument
lvcreate: Unable to generate a name for the logical volume.
Invalid argument
lvcreate: Unable to generate a name for the logical volume.
Invalid argument


Any idea ?

Thanks a lot
11 REPLIES 11
James R. Ferguson
Acclaimed Contributor

Re: lvcreate problem

Hi Dario:

Try a shorter string for your logical volume names.

Regards!

...JRF...
Ted Ellis_2
Honored Contributor

Re: lvcreate problem

I ran a short test and I could create a basic lvol with your arguments:

1. confirm you have 4 disks with space in the volume group
2. change the sequence a bit:

lvcreate -L xxxx -i x -I xx -n /dev/vgxx
Dario_4
Frequent Advisor

Re: lvcreate problem

I can't ...

But it's strange, because till lv_ict_2048_raw_191 it works fine...
S.K. Chan
Honored Contributor

Re: lvcreate problem

The lvcreate syntax is correct. The only thing that I suspect is the LV name that your using. Though I do not know if it has a limit to it but it's very usual to name your LV like that .. "lv_ict_2048_raw_191" and so on. Try to just create the LV with a much simpler name or shorter name, like .. "lvraw191" for example.
Ted Ellis_2
Honored Contributor

Re: lvcreate problem

if you still get trouble.. test on a simpler string.. create the lvol without any striping using your script... for just one lvol so you don't have to back too many. If you can create the lvol as described with no striping... you at least have something to now look at... there are some comments about using lvcreate if volume group is in shared mode (man pages)
IT Response
Esteemed Contributor
Solution

Re: lvcreate problem

Hi,

I'm curious. When you do a 'vgdisplay /dev/vg_ict_raw', what are the Max LV and Cur LV values?

JP
Dario_4
Frequent Advisor

Re: lvcreate problem

I try with your syntax:

lvcreate -L 2048 -i 4 -I 64 -n lv_ict_2048_raw_191 /dev/vg_ict_raw

but same result...
Ted Ellis_2
Honored Contributor

Re: lvcreate problem

I have many.. many lvol names with strings much longer than yours... of course we are running 11.0 and 11i...

try and enclose {} around the i... ${i}.. assuming that you are still trying to make this work and you need the lvols named the way you specified at the top
Dario_4
Frequent Advisor

Re: lvcreate problem

Max LV 255
Cur LV 255

Argh!! may be the problem is that.. how to solve it ?
John Poff
Honored Contributor

Re: lvcreate problem

Oops. You can't have more than 255 LVs in a VG. Time to create another VG.

By the way, that post from the RC ENGINEER was really me. Something really freaky happened when I logged in and posted a response on this thread. I got logged in as myself now, but that was scary.

JP
James R. Ferguson
Acclaimed Contributor

Re: lvcreate problem

Hi:

John P (a.k.a. "the engineer") nailed it. If you have 255 logical volumes in a volume group you are at a limit. You simply cannot create anymore within the volume group!

Regards!

...JRF...