LVM1 Snapshot
Using LVM1, how do I create a snapshot LV on a
different physical device than the original LV
thanks,
Aman
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://platinum.yahoo.com
Quoted 4 lines · Aman Shahi
Using LVM1, how do I create a snapshot LV on a
different physical device than the original LV
Just add the PV name to the end of the command-line.
eg. if your original LV (/dev/vg/original) is on /dev/sdc1 and you want the snapshot on /dev/sdj1 do:
lvcreate -L<size> -s -n snapshot /dev/vg/original /dev/sdj1
Signature · 1 line
patrick
Quoted 3 lines · Aman Shahi
Using LVM1, how do I create a snapshot LV on a
different physical device than the original LV
Add at the end of your "lvcreate" command the name of the physical device to use :
fantastic:/usr/local/sbin# lvcreate --help Logical Volume Manager 1.0.6 Heinz Mauelshagen, Sistina Software 25/10/2002 (IOP 10)
[..]
lvcreate -s|--snapshot [-c|--chunksize ChunkSize]
{-l|--extents LogicalExtentsNumber |
-L|--size LogicalVolumeSize[kKmMgGtT]}-n|--name SnapshotLogicalVolumeName LogicalVolume[Path] [PhysicalVolumePath...]
But it does not work if the physical volume is a md device.
--
[ Xavier Montagutelli `""' ] [ INSA Toulouse 0--0 ] [ ---------oOOo---()---oOOo---------- ] [ Dpt de Math / Service Informatique Tel: +33 5 61 55 93 38 / 67 ] [ 135, Avenue de Rangueil Fax: +33 5 61 55 93 20 / 60 ] [ 31077 Toulouse Cedex 4 Mel: [email protected] ]