All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael Schmarck" <michael.schmarck@habmalnefrage.de>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Create Snapshot volume, with sized based on size of original lv
Date: Sat, 04 Oct 2008 11:05:34 +0200	[thread overview]
Message-ID: <20081004090534.227400@gmx.net> (raw)

Hi.

I'd like to create a snapshot volume of eg. /dev/sys/Bilder and
call it /dev/sys/Bilder_snap. Bilder_snap should be 25% the size
of Bilder.

How would I do that?

In lvcreate --help, I find:

$ lvm lvcreate --help
[...]
lvcreate -s|--snapshot
[...]
	{-l|--extents LogicalExtentsNumber[%{VG|LV|PVS|FREE}] |
	 -L|--size LogicalVolumeSize[kKmMgGtTpPeE]}
[...]

$ lvm version
  WARNING: Running as a non-root user. Functionality may be unavailable.
  LVM version:     2.02.36 (2008-04-29)
  Library version: 1.02.24 (2007-12-20)
  /dev/mapper/control: open failed: Keine Berechtigung
  Failure to communicate with kernel device-mapper driver.

Based on the --help output, I tried:

$ sudo lvm lvcreate -s -l 25%LV -n Bilder_snap /dev/sys/Bilder
  Please express size as %VG, %PVS, or %FREE.

Did I do something wrong, or is the output "--help"
just wrong?

Thanks a lot,
Michael
-- 
Psssst! Schon vom neuen GMX MultiMessenger geh�rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

             reply	other threads:[~2008-10-04  9:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-04  9:05 Michael Schmarck [this message]
2008-10-06 13:11 ` [linux-lvm] Create Snapshot volume, with sized based on size of original lv Alasdair G Kergon
2008-10-06 17:15   ` Michael Schmarck

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=20081004090534.227400@gmx.net \
    --to=michael.schmarck@habmalnefrage.de \
    --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.