1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 10:25:13 +03:00

Continue with lvcreate man page update

Already in WHATS_NEW.
This commit is contained in:
Zdenek Kabelac 2011-10-28 20:36:05 +00:00
parent 5cc2f9a257
commit 070f717131

View File

@ -304,44 +304,46 @@ Snapshot volumes are zeroed always.
Warning: trying to mount an unzeroed logical volume can cause the system to
hang.
.SH Examples
"lvcreate -i 3 -I 8 -L 100M vg00" tries to create a striped logical
volume with 3 stripes, a stripesize of 8KB and a size of 100MB in the volume
group named vg00. The logical volume name will be chosen by lvcreate.
Creates a striped logical volume with 3 stripes, a stripesize of 8KB
and a size of 100MB in the volume group named vg00.
The logical volume name will be chosen by lvcreate:
.sp
.B lvcreate -i 3 -I 8 -L 100M vg00
"lvcreate -m1 -L 500M vg00" tries to create a mirror logical volume
with 2 sides with a useable size of 500 MiB. This operation would
require 3 devices - two for the mirror devices and one for the disk
log.
Creates a mirror logical volume with 2 sides with a useable size of 500 MiB.
This operation would require 3 devices (or option --alloc anywhere) - two
for the mirror devices and one for the disk log.
.sp
.B lvcreate -m1 -L 500M vg00
"lvcreate -m1 --mirrorlog core -L 500M vg00" tries to create a mirror logical volume
with 2 sides with a useable size of 500 MiB. This operation would
require 2 devices - the log is "in-memory".
Creates a mirror logical volume with 2 sides with a useable size of 500 MiB.
This operation would require 2 devices - the log is "in-memory".
.sp
.B lvcreate -m1 --mirrorlog core -L 500M vg00
"lvcreate --size 100m --snapshot --name snap /dev/vg00/lvol1"
.br
creates a snapshot logical volume named /dev/vg00/snap which has access to the
Creates a snapshot logical volume named /dev/vg00/snap which has access to the
contents of the original logical volume named /dev/vg00/lvol1
at snapshot logical volume creation time. If the original logical volume
contains a file system, you can mount the snapshot logical volume on an
arbitrary directory in order to access the contents of the filesystem to run
a backup while the original filesystem continues to get updated.
.sp
.B lvcreate --size 100m --snapshot --name snap /dev/vg00/lvol1
"lvcreate --virtualsize 1T --size 100M --snapshot --name sparse vg1"
.br
creates a sparse device named /dev/vg1/sparse of size 1TB with space for just
Creates a sparse device named /dev/vg1/sparse of size 1TB with space for just
under 100MB of actual data on it.
.br
.sp
.B lvcreate --virtualsize 1T --size 100M --snapshot --name sparse vg1
"lvcreate -L 64M -n lvol1 vg00 /dev/sda:0-7 /dev/sdb:0-7"
.br
creates a linear logical volume "vg00/lvol1" using physical extents
Creates a linear logical volume "vg00/lvol1" using physical extents
/dev/sda:0-7 and /dev/sdb:0-7 for allocation of extents.
.br
.sp
.B lvcreate -L 64M -n lvol1 vg00 /dev/sda:0-7 /dev/sdb:0-7
"lvcreate --type raid5 -L 5G -i 3 -I 64 -n my_lv vg00"
.br
creates a 5GiB RAID5 logical volume "vg00/my_lv", with 3 stripes (plus
Creates a 5GiB RAID5 logical volume "vg00/my_lv", with 3 stripes (plus
a parity drive for a total of 4 devices) and a stripesize of 64kiB.
.sp
.B lvcreate --type raid5 -L 5G -i 3 -I 64 -n my_lv vg00
.SH SEE ALSO
.BR lvm (8),