LCTL-POOL_REMOVE(8)

NAME
lctl-pool_remove - remove OST from a named pool

SYNOPSIS
lctl pool_remove [--nowait|-n] FSNAME.POOLNAME OSTNAME_INDEXED_LIST

DESCRIPTION
Remove one or more OSTs from the pool named POOLNAME in the filesystem named FSNAME. There are several formats that the OSTs can be specified. Simplest is to just specify a list of OST_INDEX numbers or OST names. In this form the numbers must be proceeded by OST so that it is of the format OSTOST_INDEX. Where OST_INDEX is in hexadecimal format. It is also possible to specify an OST_RANGE expression of the form OST[START-END] or OST[START-END/STEP] that adds multiple OSTs with index numbers in the range from START to END (inclusive), optionally skipping every STEP index values.

OPTIONS

-n, --nowait
    Do not wait and check if pool is updated on a client. This is useful when calling a lot of 'lctl pool_*' commands in a row, to avoid waiting for each command to complete.

EXAMPLES
Remove OSTs numbered 8, 10, and 12 from the testfs.flash pool:
        # lctl pool_remove testfs.flash OST0008 OST000a OST000c
        OST lustre-OST0008_UUID removed from pool lustre.flash
        OST lustre-OST000a_UUID removed from pool lustre.flash
        OST lustre-OST000c_UUID removed from pool lustre.flash
        or
        # lctl pool_remove testfs.flash OST[8-c/2]
        OST lustre-OST0008_UUID removed from pool lustre.flash
        OST lustre-OST000a_UUID removed from pool lustre.flash
        OST lustre-OST000c_UUID removed from pool lustre.flash

List of OSTs can be set with comma seperated values or a combined format:
        # lctl pool_remove testfs.flash OST[8,a]
        OST lustre-OST0008_UUID removed from pool lustre.flash
        OST lustre-OST000a_UUID removed from pool lustre.flash
        or
        # lctl pool_remove testfs.flash OST[4-6,8,a]
        OST lustre-OST0004_UUID removed from pool lustre.flash
        OST lustre-OST0005_UUID removed from pool lustre.flash
        OST lustre-OST0006_UUID removed from pool lustre.flash
        OST lustre-OST0008_UUID removed from pool lustre.flash
        OST lustre-OST000a_UUID removed from pool lustre.flash

AVAILABILITY
lctl pool_remove is part of the lustre(7) filesystem package since release 1.7.0

SEE ALSO
lfs-df(1), lfs-find(1), lfs-setstripe(1), lustre(7), lctl-pool_add(8), lctl-pool_destroy(8), lctl-pool_list(8), lctl-pool_new(8)