| CLONETAB(5) | clonetab | CLONETAB(5) |
.SH "NAME" clonetab - Configuration for dm-clone block devices
.SH "SYNOPSIS"
.PP /etc/clonetab
.SH "DESCRIPTION"
.PP The /etc/clonetab file describes dm-clone block devices that are set up
during system boot.
.PP Empty lines and lines starting with the # character are ignored. Each of
the remaining lines describes one dm-clone device. Fields are delimited by
white space.
.PP Each line is in the form
name source-device destination-device metadata-device [options]
The first four fields are mandatory, the fifth is optional.
.PP The five fields of /etc/clonetab are defined as follows:
.PP region-size=BYTES
Controls the granularity of background hydration copying — how much
data is copied at a time. Region size is specified in bytes (standard
suffixes like K, M, G are supported), and must correspond to a power of two
between 4 KiB and 1 GiB. For example, region-size=4K or region-size=4096
sets a 4 KiB region size.
One region is the atomic unit dm-clone tracks: it is either fully hydrated
(copied to the destination) or not, never partially. If a copy is
interrupted mid-region, that whole region is retried from scratch on next
boot. Smaller regions mean finer progress tracking; larger regions reduce
metadata overhead. Defaults to 4K. For background, see dm-clone kernel
documentation[1].
Added in version 262.
.RE
.sp
If no options are needed, the field may be omitted entirely or - may be used
as a placeholder.
.RE
.PP At early boot and when the system manager configuration is reloaded, this
file is translated into native systemd units by
systemd-clonesetup-generator(8).
.SH "EXAMPLES"
.PP Example 1. Simple clone without options
.PP Clone a source device to a destination, using a separate metadata
device:
mydevice /dev/sdb /dev/sdc /dev/sdd
.PP Example 2. Clone with custom region size
.PP Clone a source device to a destination with a custom region size of 8
KiB:
mydevice /dev/sdb /dev/sdc /dev/sdd region-size=8K
.SH "SEE ALSO"
NOTES
- 1.
- dm-clone kernel documentation
| systemd 262.2 |