From: Dave Olien <dmo@osdl.org>
To: agk@redhat.com
Cc: linux-lvm@redhat.com
Subject: Re: [linux-lvm] LVM2 scalability within volume group
Date: Tue, 30 Mar 2004 15:19:12 -0800 [thread overview]
Message-ID: <20040330231912.GA20397@osdl.org> (raw)
In-Reply-To: <20040326163403.F17377@homer.msp.redhat.com>
Thanks for the feedback. I'll be experimenting more with this over the
next few weeks. I'd love to try changes as they come available.
Dave Olien
On Fri, Mar 26, 2004 at 04:34:03PM -0600, Alasdair G Kergon wrote:
> On Mon, Mar 22, 2004 at 02:41:45PM -0800, Dave Olien wrote:
> > Can these user-level commands be made smarter in this regard?
>
> Yes.
> (a) Additional internal state can be written to the cache file.
> [The index of which PVs are in which VGs; the index of which
> UUIDs were found on which devices.]
> (b) Some disk reads are still duplicated and can be cached safely.
>
> > Is this something that using the lvm(8) shell would help?
>
> Yes, this is equivalent to point (a).
> Either pipe the commands through it, or try linking against
> the library I checked into CVS today.
> (configure --enable-cmdlib; brief docn in lvm2cmd.h)
>
> Quick example prog below.
>
>
> #include "lvm2cmd.h"
>
> /* All output gets passed to this function line-by-line */
> void test_log_fn(int level, const char *file, int line, const char *format)
> {
> /* Extract and process output here instead of printing it */
>
> if (level != 4)
> return;
>
> printf("%s\n", format);
> return;
> }
>
> int main(int argc, char **argv)
> {
> void *handle;
> int r;
>
> lvm2_log_fn(test_log_fn);
>
> handle = lvm2_init();
>
> lvm2_log_level(handle, 1);
> r = lvm2_run(handle, "vgs --noheadings vg1");
>
> /* More commands here */
>
> lvm2_exit(handle);
>
> return r;
> }
>
>
>
> _______________________________________________
> 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:[~2004-03-30 23:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-17 17:36 [linux-lvm] LVM2 scalability within volume group Dave Olien
2004-03-17 18:00 ` Alasdair G Kergon
2004-03-17 18:15 ` Dave Olien
2004-03-22 22:41 ` Dave Olien
2004-03-26 22:34 ` Alasdair G Kergon
2004-03-30 23:19 ` Dave Olien [this message]
2004-03-17 18:12 ` Alasdair G Kergon
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=20040330231912.GA20397@osdl.org \
--to=dmo@osdl.org \
--cc=agk@redhat.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 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.