From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.14]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3DAV5HJ002969 for ; Tue, 13 Apr 2010 06:31:05 -0400 Received: from mail-wy0-f174.google.com (mail-wy0-f174.google.com [74.125.82.174]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3DAUtp2008283 for ; Tue, 13 Apr 2010 06:30:56 -0400 Received: by wyf19 with SMTP id 19so97503wyf.33 for ; Tue, 13 Apr 2010 03:30:55 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <4BC34F78.8040301@cfl.rr.com> From: =?ISO-8859-1?Q?S=E9bastien_Roy?= Date: Tue, 13 Apr 2010 12:30:35 +0200 Message-ID: Content-Type: multipart/alternative; boundary=0016e6d56693ae1f5304841bc1e4 Subject: Re: [linux-lvm] How do I properly backup and restore / on LVM2 Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: linux-lvm@redhat.com --0016e6d56693ae1f5304841bc1e4 Content-Type: text/plain; charset=ISO-8859-1 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 > > 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/ > --0016e6d56693ae1f5304841bc1e4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 wit= h=20 some LVM commands.

2010/4/13 Alan = Pek <alan.pek@db.co= m>

Hi Folks,

Read through the doc and tried to = create a snapshot lv for rootlv by doing, but failed.

singmrecfp1001:~ # lvcreate -L 2.5= g -s -n rsnap rootvg
=A0 Path required for Logical Volu= me "rootvg"
=A0 The origin name should include the volume group.
=A0 lvcreate: Create a logical vol= ume
lvcreate
=A0 =A0 =A0 =A0 [-A|--autobackup {y|n}]
=A0 =A0 =A0 =A0 [--addtag Tag]
=A0 =A0 =A0 =A0 [--alloc AllocationPolicy]
=A0 =A0 =A0 =A0 [-C|--contiguous {y|n}]
=A0 =A0 =A0 =A0 [-d|--debug]
=A0 =A0 =A0 =A0 [-h|-?|--help]
=A0 =A0 =A0 =A0 [-i|--stripes Stripes [-I|--stripesize StripeSize]]
=A0 =A0 =A0 =A0 {-l|--extents LogicalExtentsNumber |
=A0 =A0 =A0 =A0 =A0-L|--size LogicalVolumeSize[kKmMgGtT]}
=A0 =A0 =A0 =A0 [-M|--persistent {y|n}] [--major major] [--minor minor]
=A0 =A0 =A0 =A0 [-m|--mirrors Mirrors]
=A0 =A0 =A0 =A0 [-n|--name LogicalVolumeName]
=A0 =A0 =A0 =A0 [-p|--permission {r|rw}]
=A0 =A0 =A0 =A0 [-r|--readahead ReadAheadSectors]
=A0 =A0 =A0 =A0 [-R|--regionsize MirrorLogRegionSize]
=A0 =A0 =A0 =A0 [-t|--test]
=A0 =A0 =A0 =A0 [--type VolumeType]
=A0 =A0 =A0 =A0 [-v|--verbose]
=A0 =A0 =A0 =A0 [-Z|--zero {y|n}]
=A0 =A0 =A0 =A0 [--version]
=A0 =A0 =A0 =A0 VolumeGroupName [PhysicalVolumePath...]

lvcreate -s|--snapshot
=A0 =A0 =A0 =A0 [-c|--chunksize]
=A0 =A0 =A0 =A0 [-A|--autobackup {y|n}]
=A0 =A0 =A0 =A0 [--addtag Tag]
=A0 =A0 =A0 =A0 [--alloc AllocationPolicy]
=A0 =A0 =A0 =A0 [-C|--contiguous {y|n}]
=A0 =A0 =A0 =A0 [-d|--debug]
=A0 =A0 =A0 =A0 [-h|-?|--help]
=A0 =A0 =A0 =A0 [-i|--stripes Stripes [-I|--stripesize StripeSize]]
=A0 =A0 =A0 =A0 {-l|--extents LogicalExtentsNumber |
=A0 =A0 =A0 =A0 =A0-L|--size LogicalVolumeSize[kKmMgGtT]}
=A0 =A0 =A0 =A0 [-M|--persistent {y|n}] [--major major] [--minor minor]
=A0 =A0 =A0 =A0 [-n|--name LogicalVolumeName]
=A0 =A0 =A0 =A0 [-p|--permission {r|rw}]
=A0 =A0 =A0 =A0 [-r|--readahead ReadAheadSectors]
=A0 =A0 =A0 =A0 [-t|--test]
=A0 =A0 =A0 =A0 [-v|--verbose]
=A0 =A0 =A0 =A0 [--version]
=A0 =A0 =A0 =A0 OriginalLogicalVol= ume[Path] [PhysicalVolumePath...]


singmrecfp1001:~ # lvcreate -L 2.5g -s -n rsnap /dev/mapper/rootvg-rootlv
=A0 Volume group "mapper"= ; doesn't exist

singmrecfp1001:~ # =A0lvcreate -L 2.5g -s -n rsnap /dev/md1
=A0 "/dev/md1": Invalid path for Logical Volume
=A0 The origin name should include the volume group.
=A0 lvcreate: Create a logical vol= ume

lvcreate
=A0 =A0 =A0 =A0 [-A|--autobackup {y|n}]
=A0 =A0 =A0 =A0 [--addtag Tag]
=A0 =A0 =A0 =A0 [--alloc AllocationPolicy]
=A0 =A0 =A0 =A0 [-C|--contiguous {y|n}]
=A0 =A0 =A0 =A0 [-d|--debug]
=A0 =A0 =A0 =A0 [-h|-?|--help]
=A0 =A0 =A0 =A0 [-i|--stripes Stripes [-I|--stripesize StripeSize]]
=A0 =A0 =A0 =A0 {-l|--extents LogicalExtentsNumber |
=A0 =A0 =A0 =A0 =A0-L|--size LogicalVolumeSize[kKmMgGtT]}
=A0 =A0 =A0 =A0 [-M|--persistent {y|n}] [--major major] [--minor minor]
=A0 =A0 =A0 =A0 [-m|--mirrors Mirrors]
=A0 =A0 =A0 =A0 [-n|--name LogicalVolumeName]
=A0 =A0 =A0 =A0 [-p|--permission {r|rw}]
=A0 =A0 =A0 =A0 [-r|--readahead ReadAheadSectors]
=A0 =A0 =A0 =A0 [-R|--regionsize MirrorLogRegionSize]
=A0 =A0 =A0 =A0 [-t|--test]
=A0 =A0 =A0 =A0 [--type VolumeType]
=A0 =A0 =A0 =A0 [-v|--verbose]
=A0 =A0 =A0 =A0 [-Z|--zero {y|n}]
=A0 =A0 =A0 =A0 [--version]
=A0 =A0 =A0 =A0 VolumeGroupName [PhysicalVolumePath...]

lvcreate -s|--snapshot
=A0 =A0 =A0 =A0 [-c|--chunksize]
=A0 =A0 =A0 =A0 [-A|--autobackup {y|n}]
=A0 =A0 =A0 =A0 [--addtag Tag]
=A0 =A0 =A0 =A0 [--alloc AllocationPolicy]
=A0 =A0 =A0 =A0 [-C|--contiguous {y|n}]
=A0 =A0 =A0 =A0 [-d|--debug]
=A0 =A0 =A0 =A0 [-h|-?|--help]
=A0 =A0 =A0 =A0 [-i|--stripes Stripes [-I|--stripesize StripeSize]]
=A0 =A0 =A0 =A0 {-l|--extents LogicalExtentsNumber |
=A0 =A0 =A0 =A0 =A0-L|--size LogicalVolumeSize[kKmMgGtT]}
=A0 =A0 =A0 =A0 [-M|--persistent {y|n}] [--major major] [--minor minor]
=A0 =A0 =A0 =A0 [-n|--name LogicalVolumeName]
=A0 =A0 =A0 =A0 [-p|--permission {r|rw}]
=A0 =A0 =A0 =A0 [-r|--readahead ReadAheadSectors]
=A0 =A0 =A0 =A0 [-t|--test]
=A0 =A0 =A0 =A0 [-v|--verbose]
=A0 =A0 =A0 =A0 [--version]
=A0 =A0 =A0 =A0 OriginalLogicalVol= ume[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/

--0016e6d56693ae1f5304841bc1e4--