[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Insufficient allocatable extents suitable for striping for logical volume



On Thu, Nov 27, 2003 at 01:26:09AM +0100, Nowicki Christophe wrote:
> Hello,
> 
> I'am trying to setup a striped logical volume. But I am getting this error :
> 
> #lvcreate -i2 -I4 -L1G -n main/lv_usr
>   Insufficient allocatable extents suitable for striping for logical
> volume lv_usr: 32 required
> 
> I don't understand this error. I did not find any anwser on google :(
> 
> Where is my system config :
> Distro : Debian GNU/Linux "unstable"
> System : Linux TuX 2.6.0-test9 #8 SMP Sun Nov 2 10:40:22 CET 2003 i686
> GNU/Linux
> LVM Version : 2.00.07-1
> Hardware : 2x IDE Hard Disks Seagate ST340014A
>   hda: ST340014A, ATA DISK drive
>   hdb: ST340014A, ATA DISK drive
> 
> vgdisplay
>   --- Volume group ---
>   VG Name               main
>   System ID             PV_IMPTuX1061637595
>   Format                lvm1
>   VG Access             read/write
>   VG Status             resizable
>   MAX LV                256
>   Cur LV                3
>   Open LV               3
>   Max PV                256
>   Cur PV                2
>   Act PV                2
>   VG Size               49.41 GB
>   PE Size               32.00 MB
>   Total PE              1581
>   Alloc PE / Size       1256 / 39.25 GB
>   Free  PE / Size       325 / 10.16 GB
>   VG UUID               3PL6Zl-KtFh-pOqH-ntf5-C5td-SPxt-uUFZqJ
> 
> I have 10.16 Free GB. It's enough to setup a 1GB stripped logical volume,
> isn't it?
> 
> #lvm pvscan
>   PV /dev/hda5    is in exported VG main [31.25 GB / 0    free]
>   PV /dev/hdb5    is in exported VG main [18.16 GB / 10.16 GB free]
>   Total: 2 [10.16 GB] / in use: 2 [10.16 GB] / in no VG: 0 [0   ]
> 
> May be the problem is here?
> 

Yes, one volume is full so the volume can't be extended and still remain striped
- all the new extents would have to go onto hdb5. 

This is a restriction with the LVM1 metadata format. You can convert the VG to
the lvm2 format with vgconvert and then extend the LV but be aware that the
extended part of it will not be striped like the rest.


-- 

patrick




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]