From: "Sébastien Roy" <sroy.tcs@gmail.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] How do I properly backup and restore / on LVM2
Date: Tue, 13 Apr 2010 12:30:35 +0200 [thread overview]
Message-ID: <m2hbf00f8301004130330k798bf501j468ede0e76a00807@mail.gmail.com> (raw)
In-Reply-To: <OF6877E65C.1B864A37-ON48257704.0036E072-48257704.003741D9@db.com>
[-- Attachment #1: Type: text/plain, Size: 4447 bytes --]
Hello,
Maybe you can try
lvcreate -L 2.5g -s -n rsnap /dev/rootvg/rootlv
Already faced this kind of situation on previous RH releases (4.3 ?) where
/dev/mapper could not (yet) be used with some LVM commands.
2010/4/13 Alan Pek <alan.pek@db.com>
>
> Hi Folks,
>
> Read through the doc and tried to create a snapshot lv for rootlv by doing,
> but failed.
>
> singmrecfp1001:~ # lvcreate -L 2.5g -s -n rsnap rootvg
> Path required for Logical Volume "rootvg"
> The origin name should include the volume group.
> lvcreate: Create a logical volume
> lvcreate
> [-A|--autobackup {y|n}]
> [--addtag Tag]
> [--alloc AllocationPolicy]
> [-C|--contiguous {y|n}]
> [-d|--debug]
> [-h|-?|--help]
> [-i|--stripes Stripes [-I|--stripesize StripeSize]]
> {-l|--extents LogicalExtentsNumber |
> -L|--size LogicalVolumeSize[kKmMgGtT]}
> [-M|--persistent {y|n}] [--major major] [--minor minor]
> [-m|--mirrors Mirrors]
> [-n|--name LogicalVolumeName]
> [-p|--permission {r|rw}]
> [-r|--readahead ReadAheadSectors]
> [-R|--regionsize MirrorLogRegionSize]
> [-t|--test]
> [--type VolumeType]
> [-v|--verbose]
> [-Z|--zero {y|n}]
> [--version]
> VolumeGroupName [PhysicalVolumePath...]
>
> lvcreate -s|--snapshot
> [-c|--chunksize]
> [-A|--autobackup {y|n}]
> [--addtag Tag]
> [--alloc AllocationPolicy]
> [-C|--contiguous {y|n}]
> [-d|--debug]
> [-h|-?|--help]
> [-i|--stripes Stripes [-I|--stripesize StripeSize]]
> {-l|--extents LogicalExtentsNumber |
> -L|--size LogicalVolumeSize[kKmMgGtT]}
> [-M|--persistent {y|n}] [--major major] [--minor minor]
> [-n|--name LogicalVolumeName]
> [-p|--permission {r|rw}]
> [-r|--readahead ReadAheadSectors]
> [-t|--test]
> [-v|--verbose]
> [--version]
> OriginalLogicalVolume[Path] [PhysicalVolumePath...]
>
>
> singmrecfp1001:~ # lvcreate -L 2.5g -s -n rsnap /dev/mapper/rootvg-rootlv
> Volume group "mapper" doesn't exist
>
> singmrecfp1001:~ # lvcreate -L 2.5g -s -n rsnap /dev/md1
> "/dev/md1": Invalid path for Logical Volume
> The origin name should include the volume group.
> lvcreate: Create a logical volume
>
> lvcreate
> [-A|--autobackup {y|n}]
> [--addtag Tag]
> [--alloc AllocationPolicy]
> [-C|--contiguous {y|n}]
> [-d|--debug]
> [-h|-?|--help]
> [-i|--stripes Stripes [-I|--stripesize StripeSize]]
> {-l|--extents LogicalExtentsNumber |
> -L|--size LogicalVolumeSize[kKmMgGtT]}
> [-M|--persistent {y|n}] [--major major] [--minor minor]
> [-m|--mirrors Mirrors]
> [-n|--name LogicalVolumeName]
> [-p|--permission {r|rw}]
> [-r|--readahead ReadAheadSectors]
> [-R|--regionsize MirrorLogRegionSize]
> [-t|--test]
> [--type VolumeType]
> [-v|--verbose]
> [-Z|--zero {y|n}]
> [--version]
> VolumeGroupName [PhysicalVolumePath...]
>
> lvcreate -s|--snapshot
> [-c|--chunksize]
> [-A|--autobackup {y|n}]
> [--addtag Tag]
> [--alloc AllocationPolicy]
> [-C|--contiguous {y|n}]
> [-d|--debug]
> [-h|-?|--help]
> [-i|--stripes Stripes [-I|--stripesize StripeSize]]
> {-l|--extents LogicalExtentsNumber |
> -L|--size LogicalVolumeSize[kKmMgGtT]}
> [-M|--persistent {y|n}] [--major major] [--minor minor]
> [-n|--name LogicalVolumeName]
> [-p|--permission {r|rw}]
> [-r|--readahead ReadAheadSectors]
> [-t|--test]
> [-v|--verbose]
> [--version]
> OriginalLogicalVolume[Path] [PhysicalVolumePath...]
>
>
> singmrecfp1001:~ #
>
>
> ---
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
> _______________________________________________
> 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/
>
[-- Attachment #2: Type: text/html, Size: 9401 bytes --]
next prev parent reply other threads:[~2010-04-13 10:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-12 16:14 [linux-lvm] How do I properly backup and restore / on LVM2 Alan Pek
2010-04-12 16:51 ` Phillip Susi
2010-04-12 18:50 ` Robert Mortimer
2010-04-13 4:11 ` Alan Pek
2010-04-13 17:54 ` Allen, Jack
2010-04-13 10:03 ` Alan Pek
2010-04-13 10:30 ` Sébastien Roy [this message]
2010-04-13 11:47 ` Alan Pek
2010-04-13 14:32 ` Phillip Susi
2010-04-13 19:08 ` Stuart D. Gathman
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=m2hbf00f8301004130330k798bf501j468ede0e76a00807@mail.gmail.com \
--to=sroy.tcs@gmail.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).