Viewing: obdfilter.failure_domain.4
.TH OBDFILTER...FAILURE_DOMAIN 4 2026-10-07 Lustre "Lustre Kernel Interfaces"
.SH NAME
obdfilter.failure_domain, mdt.failure_domain \- control the failure_domain for OSTs and MDTs
.SH SYNOPSIS
.SY
.BI "lctl get_param obdfilter." FSNAME "-OST*.failure_domain"
.SY
.BI "lctl set_param obdfilter." FSNAME "-OST*.failure_domain=" DOMAIN_NUMBER
.SY
.BI "lctl get_param mdt." FSNAME "-MDT*.failure_domain"
.SY
.BI "lctl set_param mdt." FSNAME "-MDT*.failure_domain=" DOMAIN_NUMBER
.YS
.SS PROPERTIES
.TP
.B Access Permissions
.br
.BR 644 " | " -rw-r--r--
.TP
.B Scope
.br
Per-OST or per-MDT device.
.TP
.B Config
.br
Always present on OST and MDT devices.
.TP
.B Default
.br
.RB "obdfilter." FSNAME "-OST*.failure_domain="
.br
.RB "mdt." FSNAME "-MDT*.failure_domain="
.br
.TP
.B Valid Range
.br
.RB "obdfilter." FSNAME "-OST*.failure_domain=0"
.br
.RB "obdfilter." FSNAME "-OST*.failure_domain=4294967295"
.SH DESCRIPTION
The integer
.I DOMAIN_NUMBER
specifies the failure-domain for the OST.
OSTs that share some (external to Lustre) resources such as storage enclosures,
network switches, power supplies, or similar should have different
.I DOMAIN_NUMBER
values (within the constraints of the available storage hardware),
so that file layouts which need to store data redundantly (FLR EC or mirrors)
can allocate objects on independent failure domains.
There will typically be multiple OSTs that share a single
.IR DOMAIN_NUMBER ,
so that multiple copies of redundant file data are not stored on OSTs that
may become unavailable at the same time.
No specific meaning is attributed to the numerical value of
.I DOMAIN_NUMBER
assigned to each OST (e.g. server, rack, row, building),
other than whether they are the same or different.
Except for the value 0. This value means no failure-domain is configured and
failure-domains should be ignored for this OST.
For files using erasure coding
.RB ( "lfs setstripe --ec" ),
all data and parity stripes of each RAID set are allocated in different
failure domains.
Different RAID sets of the same component may use the same failure domain,
since each RAID set is protected individually,
so a layout needs only as many failure domains as its largest RAID set has
data and parity stripes.
If there are fewer failure domains than that, the RAID sets are made with
fewer data stripes each, down to 3/4 of the requested number, or of the
largest RAID set if that is smaller, and otherwise the file cannot be
created.
The data stripes of a component are on different OSTs unless overstriping
.RB ( "lfs setstripe -C" )
is used.
For mirrored files
.RB ( "lfs mirror create" " or " "lfs mirror extend" ),
the stripes of a component are allocated in different failure domains
unless overstriping is used,
and components of different mirrors that overlap the same file extent
are never allocated in the same failure domain,
so that the copies of the data do not depend on the same resources.
This does not apply between the data and parity components of an
erasure coded file, which follow the RAID set rules above.
The same parameter exists for MDTs as
.RB "mdt." FSNAME "-MDT*.failure_domain"
and identifies the failure-domain of each MDT, so that the MDS can take
MDT fault domains into account when placing remote directories and DNE
striped-directory shards, in the same way as for OST objects.
The MDT value is reported in
.I obd_statfs
and shown by
.RB "lfs df --output=domain,target" ,
and the numerical values share the same namespace as the OST failure-domains.
When used it is recommended that failure-domain is configured for all OSTs
and MDTs.
Failure-domain constraints are applied only by the default round-robin
and QoS allocators.
.BR lfs-setstripe (1)
.B \-i
and
.B \-o
use explicit OST placement and do not consult failure domains; domain
uniqueness is left to the caller for those paths.
.SH MODULES
This parameter is in the following modules:
.EX
.RB "obdfilter." FSNAME "-OST*.failure_domain"
.RB "mdt." FSNAME "-MDT*.failure_domain"
.EE
.SH EXAMPLES
.PP
Set the failure domain to 1 for an OST:
.EX
.RB "oss# " "lctl set_param obdfilter.lustrewt-OST0000.failure_domain=1"
.PP
Get the failure domain of an OST:
.EX
.RB "oss# " "lctl get_param obdfilter.lustrewt-OST0000.failure_domain"
1
.PP
Get the failure domain of all OSTs:
.EX
.RB "client# " "lfs df --output=source,size,domain,target"
UUID 1K-blocks Domain Mounted on
lustrewt-MDT0000_UUID 11600548 0 /mnt/l[MDT:0]
lustrewt-OST0000_UUID 19776188 1 /mnt/l[OST:0]
lustrewt-OST0001_UUID 19776188 256 /mnt/l[OST:1]
lustrewt-OST0002_UUID 19776188 257 /mnt/l[OST:2]
...
.EE
.PP
Set the failure domain to 1 for an MDT:
.EX
.RB "mds# " "lctl set_param mdt.lustrewt-MDT0000.failure_domain=1"
.PP
Get the failure domain of an MDT:
.EX
.RB "mds# " "lctl get_param mdt.lustrewt-MDT0000.failure_domain"
1
.EE
.SH AVAILABILITY
.B obdfilter.*.failure_domain
is part of the
.BR lustre (7)
filesystem package since release 2.18.0.
.\" Added in commit 2.17.51
.SH SEE ALSO
.BR lfs-df (1),
.BR lfs-mirror-create (1),
.BR lfs-mirror-extend (1),
.BR lfs-setstripe (1),
.BR lctl-get_param (8),
.BR lctl-set_param (8)