From: Zdenek Kabelac <zkabelac@redhat.com>
To: linux-lvm@redhat.com, syed1.mushtaq@gmail.com
Subject: Re: [linux-lvm] LVM Performance issues when creating many Volume groups
Date: Mon, 4 Apr 2016 10:10:34 +0200 [thread overview]
Message-ID: <5702217A.9090206@redhat.com> (raw)
In-Reply-To: <CADMzvUosd-YX99qpabH7UUZARNvJiBJXR6k7kVUjVSniYLty1Q@mail.gmail.com>
Dne 1.4.2016 v 19:30 Syed Mushtaq napsal(a):
> Hi linux-lvm,
>
> In my setup I am trying to map a backend ISCSI storage volume to a volume
> group. I am using that volume group as a Disk for VMs in Xen. However, If I
> create many volume groups, future volume group creates are slowing down. In my
> test I have about 600 VGs. Each VG has a single LV. Here are the commands that
> are taking a lot of time
>
> create volume group ( 4.8s ): /usr/sbin/vgcreate VG_XenStorage-1fe15110-61f6-
> 856f-8ae2-8e42e45a4316 /dev/disk/by-id/scsi-36f47acc1000000007931637600000523
>
> list lvs inside volume group ( 2.4s ): /usr/sbin/lvs --noheadings --units b -o
> +lv_tags /dev/VG_XenStorage-1fe15110-61f6-856f-8ae2-8e42e45a4316
>
> check if LVM volume group exisits (2.5s) : /usr/sbin/vgs
> VG_XenStorage-1fe15110-61f6-856f-8ae2-8e42e45a4316
>
> I am using LVM 2.0.88. Is this a known issue? Any workarounds?
>
> Thanks for you help.
> -Syed
Hi
Lvm2 upstream is now working on release 2.02.150.
Your version 2.02.88 is from Aug 2011.
If you want to get some fixes for your version I'm afraid you will
need to bother your distro maintainer.
You may use '-vvvv' debug to see where it is delayed.
Also 'strace -ttt' is helpful.
Common problems are:
- Users do not set 'correct' lvm.conf filters, so lvm2 with each command has
to unnecessarily scan all devices in your system and some might be pretty slow
to read...
- Very long set of files stored in /etc/lvm/archives (or wherever your distro
has this directory).
- Of course using 5 years old software is out-of-radar of upstream developers...
Regards
Zdenek
prev parent reply other threads:[~2016-04-04 8:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-01 17:30 [linux-lvm] LVM Performance issues when creating many Volume groups Syed Mushtaq
2016-04-04 8:10 ` Zdenek Kabelac [this message]
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=5702217A.9090206@redhat.com \
--to=zkabelac@redhat.com \
--cc=linux-lvm@redhat.com \
--cc=syed1.mushtaq@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.