All of lore.kernel.org
 help / color / mirror / Atom feed
From: M.Mohan Kumar <mohan@in.ibm.com>
To: lvm-devel@redhat.com
Subject: lvm2-api usage in GlusterFS
Date: Wed, 04 Jul 2012 23:02:11 +0530	[thread overview]
Message-ID: <87txxnqvok.fsf@in.ibm.com> (raw)


Hello,

I am working on adding a GlusterFS feature to enable exporting Logical
volumes as regular files to GlusterFS client. Here is the link for the
patches:
       http://review.gluster.com/3551

GlusterFS patches use lvm2-devel library to find out list of logical
volumes for the given volume group and creating LVs etc.

When open request comes in the gluster mount path, server side code
opens the intended LV by using this logic: /dev/<vg-name>/<lv-name>.
This path is actually a symbolic link to /dev/dm-<x>. Is my assumption
about having this /dev/<vg-name>/<lv-name> is it right? Will it
always work?

Also other issues with the patch is resizing and creating a snapshot
of LV. There is no API to resize a LV and as of now I am using the
lvresize binary to resize the LV by forking and executing it. Also when
creating a snapshot of LV, I am forking and executing lvcreate binary
with appropriate parameters.

Is there any plan to add support to resize a LV and create snapshot of
LV?

Regards,
M. Mohan Kumar.



             reply	other threads:[~2012-07-04 17:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-04 17:32 M.Mohan Kumar [this message]
2012-07-04 17:41 ` lvm2-api usage in GlusterFS Alasdair G Kergon
2012-07-04 17:54   ` M. Mohan Kumar
2012-07-04 20:57 ` Alasdair G Kergon
2012-08-24  7:22   ` M. Mohan Kumar
2012-08-27 18:23     ` M. Mohan Kumar

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=87txxnqvok.fsf@in.ibm.com \
    --to=mohan@in.ibm.com \
    --cc=lvm-devel@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.