[Hampshire] LVM problems

Top Page
Author: Chris Smith
Date:  
To: hampshire
Subject: [Hampshire] LVM problems

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x57c04100.hantslug.org.uk.31798': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Tue Oct 26 10:28:41 2010 BST
gpg: using DSA key 11BEF6408586B4B2
gpg: Can't check signature: No public key
Hi all,

Apologies for the length of this email, there's a fair bit of output.

I'm having a problem with LVM that I'm hoping someone here can help
solve. My machine is a Thinkpad T400, about six months old, on which I
installed Ubuntu Lucid 32-bit using LVM. I noticed the problem just
before I upgraded to Maverick on Sunday and the problem still exists
post-upgrade.

Basically, LVM complains when I try to create a new logical volume
greater than 8GB. Creating a test partition of 9GB (lvcreate -L9GB -n
test pooky_vg) gives this output:

device-mapper: resume ioctl failed: Invalid argument
Unable to resume pooky_vg-test (252:6)
/dev/pooky_vg/test: write failed after 0 of 4096 at 0: No space left
on device
Logical volume "test" created

with this message in the logs:

Oct 26 09:44:21 pooky kernel: [ 2623.089006] device-mapper: table:
252:6: sda5 too small for target: start=226451840, len=18874368,
dev_size=244137984

I know there is plenty of space left so the message appears bogus, and
the new logical volume does appear to be created. Does anyone know what
could be causing the problem, and if the created volume is actually safe
to use?

The following output is from fdisk, pvdisplay, vgdisplay and lvdisplay
prior to the lvcreate command and also the lvdisplay snippet for the
test volume after lvcreate.

fdisk:
/dev/sda5              32       15229   122068992   8e  Linux LVM
/dev/sda6           15229       19458    33969152   8e  Linux LVM


pvdisplay:
  --- Physical volume ---
  PV Name               /dev/sda5
  VG Name               pooky_vg
  PV Size               148.81 GiB / not usable 2.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              38095
  Free PE               10452
  Allocated PE          27643
  PV UUID               6vjc8d-5N80-0HrF-JzFb-l8o7-NcBD-bOn76g


  --- Physical volume ---
  PV Name               /dev/sda6
  VG Name               pooky_vg
  PV Size               32.40 GiB / not usable 1.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              8293
  Free PE               8293
  Allocated PE          0
  PV UUID               PPeCKq-JExD-K3FP-dnt5-4dmh-D31a-MqdHKT


vgdisplay:
  --- Volume group ---
  VG Name               pooky_vg
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  35
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                4
  Open LV               4
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               181.20 GiB
  PE Size               4.00 MiB
  Total PE              46388
  Alloc PE / Size       27643 / 107.98 GiB
  Free  PE / Size       18745 / 73.22 GiB
  VG UUID               ma3sWm-XqOT-4nHg-grGI-6Mcj-kw15-R1iFQg


lvdisplay:
  --- Logical volume ---
  LV Name                /dev/pooky_vg/lucid_system_lv
  VG Name                pooky_vg
  LV UUID                2i7yKx-5cWZ-AEZo-MSMc-1jJa-9Qsi-ga303e
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                18.62 GiB
  Current LE             4768
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0


  --- Logical volume ---
  LV Name                /dev/pooky_vg/swap_lv
  VG Name                pooky_vg
  LV UUID                cnJMQl-n6kX-oH4U-DfFz-biTO-HbG0-0bXKIl
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.79 GiB
  Current LE             715
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:1


  --- Logical volume ---
  LV Name                /dev/pooky_vg/home_lv
  VG Name                pooky_vg
  LV UUID                mRmDlc-gWsQ-0FuR-LJDn-CjoJ-LHNw-AdUeav
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                66.56 GiB
  Current LE             17040
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:2


  --- Logical volume ---
  LV Name                /dev/pooky_vg/media_lv
  VG Name                pooky_vg
  LV UUID                0u3d1s-RV33-hmSp-8ARO-t6Un-6H7f-NB98vA
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:3


lvdisplay for test volume:
  --- Logical volume ---
  LV Name                /dev/pooky_vg/test
  VG Name                pooky_vg
  LV UUID                S8WCvJ-HZyt-RLKg-NxfD-CnJn-uX3h-MCwaWi
  LV Write Access        read/write
  LV Status              suspended
  # open                 0
  LV Size                9.00 GiB
  Current LE             2304
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:6


Thanks,
Chris
--
Chris Smith <cjs94@???>