Which command is used to make an exact copy, at a single point in time, of a logical volume while still allowing the original logical volume to be updated?
LVM Snapshots
Snapshots One of the nicest features of LVM is the possibility of taking snapshots of volumes. A snapshot is a virtual copy of the volume to enable easy backups. LVM snapshots use a strategy called "copy on write". This means that the snapshot logical volume only saves data blocks from the original logical volume that are changed in the original logical volume. To do so the logical volume manager first reads the (unchanged) data block on the original and than writes the data block to the snapshot. On filesystems with many changes (e.g. databases) this can lead to performance issues.
The -s option in the lvcreate command specifies that the newly created logical volume is a snapshot.
# lvcreate -L 50M -s -n snapshot0 /dev/volume01/lvol0
I'm a bit confused about this, because to do a full clone of a LV you can use:
lvcreate --snapshot --name <the-name-of-the-snapshot> --size <the size> /dev/<volume-group>/<logical-volume>
This will create a Snapshot but to clone it on another LV would need the "dd" command additionally.... So to create a snapshot (if this is meant by "Clone") you might use lvcreate. Anyone here with knowhow in GV/ LV/ PV?
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
debloid
8 months agochiaseed
1 year, 6 months agocastor
1 year, 10 months agoserlan
2 years, 4 months agoRSV4
3 years, 9 months agomira_
3 years, 4 months agomilan92stankovic
4 years, 1 month ago