[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



Hello,
> 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.

I converted my meta data to LVM2 :

#vgdisplay
  --- Volume group ---
  VG Name               main
  System ID             PV_IMPTuX1061637595
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  1
  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

#pvdisplay
  Physical volume "/dev/hda5" of volume group "main" is exported
  --- Physical volume ---
  PV Name               /dev/hda5
  VG Name               main (exported)
  PV Size               31.25 GB / not usable 0
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              1000
  Free PE               0
  Allocated PE          1000
  PV UUID               Kyk15O-llcC-IVcO-VnhM-gDbZ-DlPd-UXABpn

  Physical volume "/dev/hdb5" of volume group "main" is exported
  --- Physical volume ---
  PV Name               /dev/hdb5
  VG Name               main (exported)
  PV Size               18.16 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              581
  Free PE               325
  Allocated PE          256
  PV UUID               ELffaP-gavW-bMJA-Nx6K-qFqi-eDsk-Pwq3jL

But is still not work :

#lvcreate -i2 -I4 -L1G -n main/lv_usr
  Insufficient allocatable extents suitable for striping for logical
volume lv_usr: 32 required

How can I move one logical volume from /dev/hda5 to /dev/hdb5 ?

Thanks a lot.

-- 
Meuuuhh elle fait la vache :))                       _(__)_
Nowicki Christophe                                  '-e e -'__,--.__)
17, rue Saint Exupery                                (o_o)        )
77500 Chelles                                          \. /___.  |
Etudiant EPITECH Promo 2006                             ||| _)/_)/
http://etud.epita.fr/~nowick_c/nowick_c.asc             //_(/_(/_(




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