*RESOLVIDO* #pvdisplay --- Physical volume --- PV Name /dev/dm-0 VG Name ubuntu PV Size 148.79 GiB / not usable 1.29 MiB [b] Allocatable NO[/b] PE Size 4.00 MiB Total PE 38091 Free PE 14836 Allocated PE 23255 PV UUID 23qr9T-q9Zc-IfWU-61Bw-l6dm-5xPC-MYCQAq
Solucao: #pvchange -x y /dev/dm-0 O problema era o allocatable q estava NO #lvcreate --size 57G --name novolv ubuntu 2011/4/1 Rafael Moraes <[email protected]> > Bom dia amigos! > > Tenho um disco em LVM encriptado. > > Esta da seguinte maneira: > > > *#pvdisplay* > --- Physical volume --- > PV Name /dev/dm-0 > VG Name vg01 > PV Size 148.79 GiB / not usable 1.29 MiB > Allocatable NO > PE Size 4.00 MiB > Total PE 38091 > Free PE 14836 > Allocated PE 23255 > PV UUID > > *#vgdisplay * > --- Volume group --- > VG Name vg01 > System ID > Format lvm2 > Metadata Areas 1 > Metadata Sequence No 9 > VG Access read/write > VG Status resizable > MAX LV 0 > Cur LV 3 > Open LV 0 > Max PV 0 > Cur PV 1 > Act PV 1 > VG Size 148.79 GiB > PE Size 4.00 MiB > Total PE 38091 > Alloc PE / Size 23255 / 90.84 GiB > Free PE / Size 14836 / 57.95 GiB > VG UUID > > > > *# lvdisplay * > --- Logical volume --- > LV Name /dev/vg01/swap > VG Name vg01 > LV UUID rX3sdV-C949-uXzv-cZrU-xxzl-fskbI-ngJK22 > LV Write Access read/write > LV Status available > # open 0 > LV Size 2.54 GiB > Current LE 650 > Segments 1 > Allocation inherit > Read ahead sectors auto > - currently set to 256 > Block device 252:1 > > --- Logical volume --- > LV Name /dev/vg01/root > VG Name vg01 > LV UUID VmFLr3-hiul-qwgy-igDc-6gfC-dfek-Xwfdsf > LV Write Access read/write > LV Status available > # open 0 > LV Size 38.30 GiB > Current LE 9805 > Segments 2 > Allocation inherit > Read ahead sectors auto > - currently set to 256 > Block device 252:2 > > --- Logical volume --- > LV Name /dev/vg01/home > VG Name vg01 > LV UUID ewrm9-khytr-kjkhj-dasd-LLUI-5CDok-pddsA > LV Write Access read/write > LV Status available > # open 0 > LV Size 50.00 GiB > Current LE 12800 > Segments 1 > Allocation inherit > Read ahead sectors auto > - currently set to 256 > Block device 252:3 > > > > Sobram ai 57G para criar novos volumes...Pois bem...ai que entra o > problema. Ao inserir o comando > > > *#lvcreate --size 57G --name novolv vg01 * > * Insufficient free space: 14592 extents needed, but only 0 available* > > > Repare que a mensagem alega que faltam extents, temos 14836 livres. Por > desencargo tentei com menos e tambem nao deu. > > Como ja disse esta encriptado. Portanto fiz a liberacao do disco: > > > *#cryptsetup luksOpen /dev/sda2 crypt1 > > #vgscan --mknodes > > #vgchange-ay* > * > * > *#vgchange -ay* > > > E deu o mesmo problema. > > Procurei pelo google por casos semelhantes....mas o que encontro sao casos > que o problema realmentese explica, ou seja, faltam PEs. > > > Alguma dica? > > Abracos > > -- > Att, > Rafael Moraes > Linux Professional Institute Certified - LPI 2 > Cisco CCNA - CCDA > Novell Certified Linux Administrator - CLA > Data Center Technical Specialist - DCTS > ITIL Foundations Certified > > > -- Att, Rafael Moraes Linux Professional Institute Certified - LPI 2 Cisco CCNA - CCDA Novell Certified Linux Administrator - CLA Data Center Technical Specialist - DCTS ITIL Foundations Certified

