LFS-MIRROR-DELETE(1)

NAME
lfs-mirror-delete - delete a specified mirror from an existing mirrored file

SYNOPSIS
lfs mirror delete {--mirror-id MIRROR_ID | --component-id|--comp-id|-I COMP_ID | --pool POOL} MIRRORED_FILE

DESCRIPTION
This command deletes a mirror with mirror ID MIRROR_ID or containing a component with COMP_ID or containing a component on POOL out of a mirrored file specified by the path name MIRRORED_FILE.

If MIRRORED_FILE has only one mirror existing after split, it will be converted to a regular non-mirrored file.

If the original MIRRORED_FILE is not a mirrored file, then the command will return an error.

OPTIONS

--mirror-id MIRROR_ID
    The numerical unique identifier for a mirror. The mirror ID is unique within a mirrored file and is automatically assigned at file creation or extension time. It can be fetched by lfs getstripe command (see lfs(1)).

-I, --comp-id COMP_ID
    The numerical unique identifier for a component contained within a mirror.

--pool POOL
    The pool storing a component contained within a mirror.

EXAMPLES
Delete the mirror with ID 2 of /mnt/lustre/file1:
        # lfs mirror delete --mirror-id 2 /mnt/lustre/file1

Delete the mirror containing the component with ID 65537 of /mnt/lustre/file1:
        # lfs mirror delete --comp-id 65537 /mnt/lustre/file1

Split a mirror on pool ssd out of /mnt/lustre/file1 and destroy it:
        # lfs mirror delete --pool ssd /mnt/lustre/file1

AVAILABILITY
The lfs mirror delete command is part of the lustre(7) filesystem package since release 2.13.0

SEE ALSO
lfs(1), lfs-mirror-create(1), lfs-mirror-extend(1), lfs-mirror-resync(1), lfs-mirror-split(1), lfs-mirror-verify(1), lfs-setstripe(1)