Re: lvcreate fails



ok another update

pvs shows [root@susedb2 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a- 9.97G 9.97G
/dev/sda5 VolGroup00 lvm2 a- 249.97G 180.47G

I am unable to create a partition larger than 9.97GB. why is that?


i tried to create 9gb with

lvcreate -v -L 9G VolGroup00

and no error

any additional partitons and i get error. what is wrong ??

"Steve Sentoff" <steve30401@xxxxxxxxxxx> wrote in message
news:pe6dncRep_Tb_LPanZ2dnUVZ_j-dnZ2d@xxxxxxxxxxxxxx
nobody wrote:
in syslog i am getting this

device-mapper: table: device 8:5 too small for target
device-mapper: table: 253:6: linear: dm-linear: Device lookup failed
device-mapper: ioctl: error adding target to table
device-mapper: table: device 8:5 too small for target
device-mapper: table: 253:6: linear: dm-linear: Device lookup failed
device-mapper: ioctl: error adding target to table
"nobody" <nobody@xxxxxxxxxx> wrote in message
news:fgl489$app$2@xxxxxxxxxxxxxxxxxxxx
I am trying to create a logical partition within my logical volume group

first

pvs shows

[root@susedb2 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a- 9.97G 9.97G
/dev/sda5 VolGroup00 lvm2 a- 249.97G 180.47G

I wqant to create a logical parititon using all of the remainder
/dev/sda5

so I do this

[root@susedb2 ~]# lvcreate -v -L 180.47G VolGroup00
Finding volume group "VolGroup00"
Rounding up size to full physical extent 180.50 GB
Archiving volume group "VolGroup00" metadata (seqno 49).
Creating logical volume lvol0
Creating volume group backup "/etc/lvm/backup/VolGroup00" (seqno 50).
Found volume group "VolGroup00"
Creating VolGroup00-lvol0
Loading VolGroup00-lvol0 table
device-mapper: reload ioctl failed: Invalid argument
Failed to activate new LV.


any idea?



This is only a guess, but it seems that the rounding up has put you over
the available size. Have you tried just a bit smaller?

--
Steve


.



Relevant Pages

  • lvcreate fails
    ... pvs shows ... Archiving volume group "VolGroup00" metadata. ... device-mapper: reload ioctl failed: Invalid argument ...
    (comp.unix.admin)
  • Re: can anyone please help me with this lvcreate problem??
    ... pvs shows ... Archiving volume group "VolGroup00" metadata. ... device-mapper: reload ioctl failed: Invalid argument ...
    (linux.redhat)
  • can anyone please help me with this lvcreate problem??
    ... pvs shows ... device-mapper: reload ioctl failed: Invalid argument ... I can create any partition without errors up to 9.97gb. ...
    (linux.redhat)
  • Re: number of hard disks to an LPAR
    ... The limitation specs I don't know, but surely you can use the 20 ... When creating the default VG type (with a maximum of 32 PVs) or the big ... physical partitions per PV. ... When specifying the physical partition size ...
    (comp.unix.aix)
  • Re: lvcreate fails
    ... pvs shows ... I wqant to create a logical parititon using all of the remainder /dev/sda5 ... device-mapper: reload ioctl failed: Invalid argument ...
    (comp.unix.admin)