From: Torben Viets <Viets@web.de>
To: linux-lvm@redhat.com
Subject: [linux-lvm] LVM-Snapshot + dm_crypt
Date: Sun, 13 Feb 2005 17:43:55 +0100 [thread overview]
Message-ID: <420F83CB.5040008@web.de> (raw)
Hello,
I've got 3 harddisks with 3* 60GB partitions in a software raid 5
(/dev/md0), on this device I have installed a volume group (/dev/data/)
and a logical volume mp3-crypt (the -crypt means that it is encrypt with
dm_crypt). Now I decrypt the mp3 lv with:
cryptsetup create mp3 /dev/data/mp3-crypt
and then mount it with
mount /dev/mapper/mp3 /mnt/mp3
until now everything works fine, but now I want to create a snapshot of
/dev/mapper/mp3.
My idea was that I make a volume group backup and then say: save the
snapshot on the volume group, but I have no idea how I can say lvcreate
on which volume group it has to save the snapshot.
If I make a
lvcreate -s -nsnap -L1G /dev/data/mp3-crypt
then I have a snapshot but it is encryptet and I can't mount it, even if
I make a new cryptsetup for this device, every times mount says: "You
must specifes a file system"
if I make a
lvcreate -s -nsnap -L1G /dev/mapper/mp3 (which ist my unencrypted device)
then I get a: "Volume group "mapper" doesn't exist"
How can I make a snapshot of a dm_crypt device?
Distribution is Debian sarge with kernel-2.6.10
Thanks for your help.
greetings
Viets
next reply other threads:[~2005-02-13 16:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-13 16:43 Torben Viets [this message]
2005-02-13 16:51 ` [linux-lvm] LVM-Snapshot + dm_crypt Alasdair G Kergon
2005-02-13 17:46 ` Torben Viets
2005-02-16 17:32 ` [linux-lvm] Suggestion for LVM Torben Viets
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=420F83CB.5040008@web.de \
--to=viets@web.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox