1 .TH LFS-MIRROR-SPLIT 1 2017-07-25 "Lustre" "Lustre Utilities"
3 lfs mirror split \- split a specified mirror from an existing mirrored file
6 {\fB\-\-mirror\-id\fR <\fImirror_id\fR> | \fB\-\-component\-id\fR|\
7 \fB\-\-comp\-id\fR|\fB\-I\fR
8 <\fIcomp_id\fR> | \fB\-\-pool\fR <\fIpool\fR>}
9 [\fB\-\-destroy\fR|\fB\-d\fR]
10 [\fB\-f\fR <\fInew_file\fR>]
13 This command splits a mirror with mirror ID <\fImirror_id\fR> or containing
14 a component with <\fIcomp_id\fR> or containing a component on <\fIpool\fR>
15 out of a mirrored file specified by the path name \fImirrored_file\fR.
16 By default, the layout of the split mirror will be stored into a new file named
17 <\fImirrored_file\fR>.mirror~<\fImirror_id\fR>. If \fB\-\-destroy\fR|\fB\-d\fR
18 option is specified, and the split mirror is not the last non-stale mirror,
19 then it will be destroyed.
20 If \fB\-f\fR <\fInew_file\fR> option is specified, then the layout of the split
21 mirror will be stored into the named file.
23 If \fImirrored_file\fR has only one mirror existing after split, it will be
24 converted to a regular non-mirrored file.
26 If the original \fImirrored_file\fR is not a mirrored file, then the command
30 .BR \-\-mirror\-id\fR\ <\fImirror_id\fR>
31 The numerical unique identifier for a mirror. The mirror ID is unique within a
32 mirrored file and is automatically assigned at file creation or extension time.
33 It can be fetched by \fBlfs getstripe\fR command (see \fBlfs(1)\fR).
35 .BR \-\-comp\-id\fR\ <\fIcomp_id\fR>
36 The numerical unique identifier for a component contained within a mirror.
38 .BR \-\-pool\fR\ <\fIpool\fR>
39 The pool storing a component contained within a mirror.
41 .BR \-\-destroy\fR|\fB\-d\fR
42 This option indicates the split mirror will be destroyed.
44 .BR \-f\fR\ <\fInew_file\fR>
45 This option indicates the layout of the split mirror will be stored into
49 .B lfs mirror split --mirror-id 1 /mnt/lustre/file1
50 Split a mirror with ID 1 out of /mnt/lustre/file1 and store it into
51 /mnt/lustre/file1.mirror~1.
53 .B lfs mirror split --mirror-id 2 -d /mnt/lustre/file1
54 Split a mirror with ID 2 out of /mnt/lustre/file1 and destroy it.
56 .B lfs mirror split --mirror-id 3 -f /mnt/lustre/file2 /mnt/lustre/file1
57 Split a mirror with ID 3 out of /mnt/lustre/file1 and store it into
60 .B lfs mirror split --comp-id 65537 -d /mnt/lustre/file1
61 Split a mirror containing the component with ID 65537 out of /mnt/lustre/file1
64 .B lfs mirror split --pool lustre-nvme -d /mnt/lustre/file1
65 Split a mirror on pool lustre-nvme out of /mnt/lustre/file1 and destroy it.
67 The \fBlfs mirror split\fR command is part of the Lustre filesystem.
70 .BR lfs-setstripe (1),
71 .BR lfs-mirror-create (1),
72 .BR lfs-mirror-delete (1),
73 .BR lfs-mirror-extend (1),
74 .BR lfs-mirror-resync (1),
75 .BR lfs-mirror-verify (1)