lvcreate | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
NAME | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
SYNOPSIS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
lvcreate
{-l/--extents LogicalExtentsNumber[%{VG|FREE}] |
-L/--size LogicalVolumeSize[kKmMgGtT]}
[-c/--chunksize ChunkSize]
-s/--snapshot -n/--name SnapshotLogicalVolumeName OriginalLogicalVolumePath
DESCRIPTION | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
OPTIONS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Specifying the optional argument --nosync will cause the creation of the mirror to skip the initial resynchronization. Any data written afterwards will be mirrored, but the original contents will not be copied. This is useful for skipping a potentially long and resource intensive initial sync of an empty device.
The optional argument --mirrorlog specifies the type of log to be used. The default is disk, which is persistent and requires a small amount of storage space, usually on a separate device from the data being mirrored. Using core means the mirror is regenerated by copying the data from the first device again each time the device is activated, for example, after every reboot.
The optional argument --corelog is equivalent to --mirrorlog core.
Warning: trying to mount an unzeroed logical volume can cause the system to
hang.
Examples | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
"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.
"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".
"lvcreate --size 100m --snapshot --name snap /dev/vg00/lvol1"
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.
SEE ALSO | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Sommaire | Début | Suivant | Sommaire | Préc.page.lue | Accueil |