У zpool есть одна из опций – failmode. Это поведение на внезапное исчезновение диска пула. Стандартное значение – это wait:
# zpool get failmode dpool NAME PROPERTY VALUE SOURCE rpool failmode continue local
Бывают моменты, когда это значение нужно изменить: например, в зеркальном рейде лучше поставить значение continue:
# zpool set failmode=continue dpool # zpool get failmode dpool NAME PROPERTY VALUE SOURCE rpool failmode continue local
Доступные значения ниже:
failmode=wait | continue | panic
Controls the system behavior in the event of catas-
trophic pool failure. This condition is typically a
result of a loss of connectivity to the underlying
storage device(s) or a failure of all devices within the
pool. The behavior of such an event is determined as
follows:
wait Blocks all I/O access until the device con-
nectivity is recovered and the errors are
cleared. This is the default behavior.
continue Returns EIO to any new write I/O requests
but allows reads to any of the remaining
healthy devices. Any write requests that
have yet to be committed to disk would be
blocked.
panic Prints out a message to the console and gen-
erates a system crash dump.