linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Brian J. Murrell" <brian@interlinx.bc.ca>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Insufficient free space: 1 extents needed, but only 0 available with 32.83g available
Date: Mon, 01 Apr 2013 08:23:14 -0400	[thread overview]
Message-ID: <kjbu7f$5pd$1@ger.gmane.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1717 bytes --]

I have a VG:

  VG          #PV #LV #SN Attr   VSize   VFree 
  rootvol_tmp   1  26   0 wz--n-  74.40g 32.83g

Which has an LV in it which has a bad disk block on it.  Per previous
discussions here I have an LV into which I can remap PEs with bad blocks on them:

# lvdisplay --maps /dev/rootvol_tmp/badblocks
  --- Logical volume ---
  LV Name                /dev/rootvol_tmp/badblocks
  VG Name                rootvol_tmp
  LV UUID                oRCTFY-XNxh-3FA5-8lUG-FsOG-GjaO-giAcIu
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                4.00 MiB
  Current LE             1
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:2
   
  --- Segments ---
  Logical extent 0 to 0:
    Type		linear
    Physical volume	/dev/sda2
    Physical extents	2805 to 2805

As you can see, it has a PE in it already.  I am trying to map another
PE into it but getting an error:

# lvextend --alloc anywhere /dev/rootvol_tmp/badblocks -l +1 /dev/sda2:2812
  Extending logical volume badblocks to 8.00 MiB
  Insufficient free space: 1 extents needed, but only 0 available

Clearly there is something wrong with my syntax but I'm not quite sure
what it is.  Any ideas?

Much thanks!

b.

P.S. Please, no lectures about replacing the disk.  I understand the risks
of operating on a disk that is starting to show signs of wear.  All of
the data on this disk is backed up twice daily and anything lost
between those backups will not be missed.  It's just not feasible for me
to replace this disk at this time.  Thanks.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

             reply	other threads:[~2013-04-01 12:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-01 12:23 Brian J. Murrell [this message]
2013-04-02 11:51 ` [linux-lvm] Insufficient free space: 1 extents needed, but only 0 available with 32.83g available Marian Csontos
2013-04-02 13:17   ` Brian J. Murrell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='kjbu7f$5pd$1@ger.gmane.org' \
    --to=brian@interlinx.bc.ca \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).