linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Demi Marie Obenour <demi@invisiblethingslab.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: [linux-lvm] Running multiple LVM commands in a batch
Date: Fri, 8 Apr 2022 07:34:38 -0400	[thread overview]
Message-ID: <YlAd0RlWERgOqP9Z@itl-email> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1107 bytes --]

Would it be possible for LVM to support multi-operation transactions
within a volume group?  Qubes OS often needs to perform 3 LVM commands
at once and doesn’t care about the order of the operations.  It would
also be nice to get the result of the system afterwards, to avoid
needing a separate “lvm lvs” call.

The purpose of this is to improve performance, by allowing device
scanning, metadata access, and synchronizing with udev to happen once
per batch instead of once per operation.  I’m willing to promise that
there are no dependencies between operations and that the operations can
safely be performed concurrently.  I also don’t need the overall
operation to be atomic, so long as the system is always in a consistent
state and any problems result in a non-zero exit code.  Getting the
result of the individual operations would be nice but is not required.

I’m not sure what the best syntax for this would be.  For the
interactive shell, “begin” and “end” commands might be an option.
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

                 reply	other threads:[~2022-04-08 11:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=YlAd0RlWERgOqP9Z@itl-email \
    --to=demi@invisiblethingslab.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).