From: "Peter M. Petrakis" <peter.petrakis@canonical.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] lvcreate fails
Date: Tue, 10 Jan 2012 11:36:34 -0500 [thread overview]
Message-ID: <4F0C6912.6040606@canonical.com> (raw)
In-Reply-To: <H000006700be1aa4.1326143338.titan.midoco.de@MHS>
Hi,
On 01/09/2012 04:08 PM, Marcus Haarmann wrote:
> Hi experts,
>
> I have configured an external disk array on Ubuntu (amd64, 2.6.32 kernel) with lvm2 (2.02.54)
> The setup is as follows:
>
> --- Physical volume ---
> PV Name /dev/fc_keep1a_1 (this is a symbolic link to a fibre channel device)
> VG Name vg_uni
> PV Size 555,23 GiB / not usable 2,20 MiB
> Allocatable NO
> PE Size 4,00 MiB
> Total PE 142139
> Free PE 65339
> Allocated PE 76800
> PV UUID SmOTSP-wPEd-ZruJ-XP8n-WpoL-anDN-ccG7dM
>
> vgdisplay vg_uni
> --- Volume group ---
> VG Name vg_uni
> System ID
> Format lvm2
> Metadata Areas 1
> Metadata Sequence No 20
> VG Access read/write
> VG Status resizable
> MAX LV 0
> Cur LV 4
> Open LV 0
> Max PV 0
> Cur PV 1
> Act PV 1
> VG Size 555,23 GiB
> PE Size 4,00 MiB
> Total PE 142139
> Alloc PE / Size 76800 / 300,00 GiB
> Free PE / Size 65339 / 255,23 GiB
> VG UUID 0VNl5W-W22T-HEow-LvNx-gopm-nS0z-FpjZvi
> This is for a database working with raw devices (without filesystem), I allocated multiple partitions:
> 100 GB root
> 50 GB blob1
> 50 GB blob2
> 100 GB data1
>
> When I try to allocate another area with 10 GB for a temporary space, I get an error:
> lvcreate -L 10G -n dbs_uni_tmp vg_uni
> Insufficient free space: 2560 extents needed, but only 0 available
>
> I did -vvv so the layout is printed (note there have been other lvm partitions which have been dropped):
> Using cached label for /dev/fc_keep1a_1
> Using cached label for /dev/fc_keep1a_1
> Read vg_unister metadata (20) from /dev/fc_keep1a_1 at 47104 size 1723
> /dev/fc_keep1a_1 0: 0 25600: dbs_uni_root(0:0)
> /dev/fc_keep1a_1 1: 25600 25600: dbs_uni_data1(0:0)
> /dev/fc_keep1a_1 2: 51200 64000: NULL(0:0)
> /dev/fc_keep1a_1 3: 115200 12800: dbs_uni_blob1(0:0)
> /dev/fc_keep1a_1 4: 128000 12800: dbs_uni_blob2(0:0)
> /dev/fc_keep1a_1 5: 140800 1339: NULL(0:0)
> Archiving volume group "vg_unister" metadata (seqno 20).
> Creating logical volume dbs_unister_tmp
> Insufficient free space: 1338 extents needed, but only 0 available
> Unlocking /var/lock/lvm/V_vg_unister
> _undo_flock /var/lock/lvm/V_vg_unister
> Closed /dev/fc_keep1a_1
> What can I do to be able to use the space ?
Did you notice that the backing store was state where Allocatable is NO?
Try, # pvchange -x y /dev/fc_keep1a_1
I question the use of that symlink, is it being maintained by UDEV or multipath
friendly names? Could you please elaborate more concerning the events leading to
this point? It doesn't make much sense that LVM would flip the Allocatable bit
without some good external reason. Thanks.
Peter
> Thank you all for your thoughts !
>
> Marcus Haarmann
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
next prev parent reply other threads:[~2012-01-10 16:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-09 21:08 [linux-lvm] lvcreate fails Marcus Haarmann
2012-01-10 16:36 ` Peter M. Petrakis [this message]
2012-01-17 8:50 ` Marcus Haarmann
2012-01-17 18:34 ` Peter M. Petrakis
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=4F0C6912.6040606@canonical.com \
--to=peter.petrakis@canonical.com \
--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).