Add --mirror-id and --component-id in "lfs mirror delete" usage
Add examples with --comp-id in lfs mirror delete and split manpages
Add --comp-id in lfs mirror delete and split manpages
Test-Parameters: trivial
Signed-off-by: Kévin Baillergeau <kevin.baillergeau.ocre@cea.fr>
Change-Id: Icdc010eec9141b2582f9d43418523643b11018e5
Reviewed-on: https://review.whamcloud.com/38394
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lfs mirror delete \- delete a specified mirror from an existing mirrored file
.SH SYNOPSIS
.B lfs mirror delete
lfs mirror delete \- delete a specified mirror from an existing mirrored file
.SH SYNOPSIS
.B lfs mirror delete
-{\fB\-\-mirror\-id\fR <\fImirror_id\fR> | \fB\-\-component\-id\fR|\fB\-I\fR
-<\fIcomp_id\fR> |\fB\-\-pool\fR <\fIpool\fR>}
-<\fImirrored_file\fR>
+{\fB\-\-mirror\-id\fR <\fImirror_id\fR> | \fB\-\-component\-id\fR|\
+\fB\-\-comp\-id\fR|\fB\-I\fR <\fIcomp_id\fR> |
+\fB\-\-pool\fR <\fIpool\fR>} <\fImirrored_file\fR>
.SH DESCRIPTION
This command deletes a mirror with mirror ID <\fImirror_id\fR> or containing
a component with <\fIcomp_id\fR> or containing a component on <\fIpool\fR>
.SH DESCRIPTION
This command deletes a mirror with mirror ID <\fImirror_id\fR> or containing
a component with <\fIcomp_id\fR> or containing a component on <\fIpool\fR>
.B lfs mirror delete --mirror-id 2 /mnt/lustre/file1
Delete the mirror with ID 2 of /mnt/lustre/file1.
.TP
.B lfs mirror delete --mirror-id 2 /mnt/lustre/file1
Delete the mirror with ID 2 of /mnt/lustre/file1.
.TP
+.B lfs mirror delete --comp-id 65537 /mnt/lustre/file1
+Delete the mirror containing the component with ID 65537 of /mnt/lustre/file1.
+.TP
.B lfs mirror delete --pool ssd /mnt/lustre/file1
Split a mirror on pool ssd out of /mnt/lustre/file1 and destroy it.
.SH AUTHOR
.B lfs mirror delete --pool ssd /mnt/lustre/file1
Split a mirror on pool ssd out of /mnt/lustre/file1 and destroy it.
.SH AUTHOR
lfs mirror split \- split a specified mirror from an existing mirrored file
.SH SYNOPSIS
.B lfs mirror split
lfs mirror split \- split a specified mirror from an existing mirrored file
.SH SYNOPSIS
.B lfs mirror split
-{\fB\-\-mirror\-id\fR <\fImirror_id\fR> | \fB\-\-component\-id\fR|\fB\-I\fR
-<\fIcomp_id\fR> |\fB\-\-pool\fR <\fIpool\fR>}
+{\fB\-\-mirror\-id\fR <\fImirror_id\fR> | \fB\-\-component\-id\fR|\
+\fB\-\-comp\-id\fR|\fB\-I\fR
+<\fIcomp_id\fR> | \fB\-\-pool\fR <\fIpool\fR>}
[\fB\-\-destroy\fR|\fB\-d\fR]
[\fB\-f\fR <\fInew_file\fR>]
<\fImirrored_file\fR>
[\fB\-\-destroy\fR|\fB\-d\fR]
[\fB\-f\fR <\fInew_file\fR>]
<\fImirrored_file\fR>
Split a mirror with ID 3 out of /mnt/lustre/file1 and store it into
/mnt/lustre/file2.
.TP
Split a mirror with ID 3 out of /mnt/lustre/file1 and store it into
/mnt/lustre/file2.
.TP
+.B lfs mirror split --comp-id 65537 -d /mnt/lustre/file1
+Split a mirror containing the component with ID 65537 out of /mnt/lustre/file1
+and destroy it.
+.TP
.B lfs mirror split --pool lustre-nvme -d /mnt/lustre/file1
Split a mirror on pool lustre-nvme out of /mnt/lustre/file1 and destroy it.
.SH AUTHOR
.B lfs mirror split --pool lustre-nvme -d /mnt/lustre/file1
Split a mirror on pool lustre-nvme out of /mnt/lustre/file1 and destroy it.
.SH AUTHOR
"[SETSTRIPE_OPTIONS] ... <filename|directory> ...\n"
MIRROR_CREATE_HELP },
{ .pc_name = "delete", .pc_func = lfs_mirror_delete,
"[SETSTRIPE_OPTIONS] ... <filename|directory> ...\n"
MIRROR_CREATE_HELP },
{ .pc_name = "delete", .pc_func = lfs_mirror_delete,
- .pc_help = "delete a mirror from a file.\n"
- "usage: lfs mirror delete {--comp-id|-I <comp_id>|-p <pool>} <mirrored_file> ...\n"
+ .pc_help = "Delete a mirror from a file.\n"
+ "usage: lfs mirror delete {--mirror-id <mirror_id> |\n"
+ "\t --component-id|--comp-id|-I <comp_id> |\n"
+ "\t -p <pool>} <mirrored_file> ...\n"
},
{ .pc_name = "extend", .pc_func = lfs_mirror_extend,
.pc_help = "Extend a mirrored file.\n"
},
{ .pc_name = "extend", .pc_func = lfs_mirror_extend,
.pc_help = "Extend a mirrored file.\n"
{ .pc_name = "split", .pc_func = lfs_mirror_split,
.pc_help = "Split a mirrored file.\n"
"usage: lfs mirror split <--mirror-id <mirror_id> |\n"
{ .pc_name = "split", .pc_func = lfs_mirror_split,
.pc_help = "Split a mirrored file.\n"
"usage: lfs mirror split <--mirror-id <mirror_id> |\n"
- "\t <--component-id|-I <comp_id>|-p <pool>> [--destroy|-d]\n"
+ "\t --component-id|-I <comp_id>|-p <pool>> [--destroy|-d]\n"
"\t [-f <new_file>] <mirrored_file> ...\n"
"\tmirror_id: The numerical unique identifier for a mirror. It\n"
"\t can be fetched by lfs getstripe command.\n"
"\t [-f <new_file>] <mirrored_file> ...\n"
"\tmirror_id: The numerical unique identifier for a mirror. It\n"
"\t can be fetched by lfs getstripe command.\n"