diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2019-04-04 13:53:47 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2019-04-04 13:53:47 +0000 |
commit | ba8d35b8e828327d042f5b28a474b63bb8bad611 (patch) | |
tree | df1260825e1794778c3428c9c39cf7dd4883ff66 /usr/src/man | |
parent | da3e6b844dd737652a3d4fd1064a6bd15b4274ad (diff) | |
parent | 251a62bcb8f02bf0421d03de4ad180a37416657d (diff) | |
download | illumos-joyent-ba8d35b8e828327d042f5b28a474b63bb8bad611.tar.gz |
[illumos-gate merge]
commit 251a62bcb8f02bf0421d03de4ad180a37416657d
10590 Update tzdata to 2019a
commit 0c26abfe36e56b0d0ca74a046c85dc41f76d1d59
10597 would like a way to set NMI behavior at boot
commit e0f1c0afa46cc84d4b1e40124032a9a87310386e
10499 Multi-modifier protection (MMP)
Conflicts:
usr/src/uts/i86pc/sys/apic_common.h
usr/src/uts/i86pc/os/mlsetup.c
usr/src/uts/i86pc/io/pcplusmp/apic_common.c
Diffstat (limited to 'usr/src/man')
-rw-r--r-- | usr/src/man/man1m/zpool.1m | 54 |
1 files changed, 52 insertions, 2 deletions
diff --git a/usr/src/man/man1m/zpool.1m b/usr/src/man/man1m/zpool.1m index 52d68929f1..4d46ce3649 100644 --- a/usr/src/man/man1m/zpool.1m +++ b/usr/src/man/man1m/zpool.1m @@ -410,6 +410,11 @@ If a pool has a shared spare that is currently being used, the pool can not be exported since other pools may use this shared spare, which may lead to potential data corruption. .Pp +Shared spares add some risk. +If the pools are imported on different hosts, and both pools suffer a device +failure at the same time, both could attempt to use the spare at the same time. +This may not be detected, resulting in data corruption. +.Pp An in-progress spare replacement can be cancelled by detaching the hot spare. If the original faulted device is detached, then the hot spare assumes its place in the configuration, and is removed from the spare list of all active @@ -732,6 +737,31 @@ The default value is .Sy off . This property can also be referred to by its shortened name, .Sy listsnaps . +.It Sy multihost Ns = Ns Sy on Ns | Ns Sy off +Controls whether a pool activity check should be performed during +.Nm zpool Cm import . +When a pool is determined to be active it cannot be imported, even with the +.Fl f +option. +This property is intended to be used in failover configurations +where multiple hosts have access to a pool on shared storage. +.sp +Multihost provides protection on import only. +It does not protect against an +individual device being used in multiple pools, regardless of the type of vdev. +See the discussion under +.Sy zpool create. +.sp +When this property is on, periodic writes to storage occur to show the pool is +in use. +See +.Sy zfs_multihost_interval +in the +.Xr zfs-module-parameters 5 +man page. +In order to enable this property each host must set a unique hostid. +The default value is +.Sy off . .It Sy version Ns = Ns Ar version The current on-disk version of the pool. This can be increased, but never decreased. @@ -863,6 +893,10 @@ Clears device errors in a pool. If no arguments are specified, all device errors within the pool are cleared. If one or more devices is specified, only those errors associated with the specified device or devices are cleared. +If multihost is enabled, and the pool has been suspended, this will not +resume I/O. +While the pool was suspended, it may have been imported on +another host, and resuming I/O could result in pool damage. .It Xo .Nm .Cm create @@ -898,8 +932,24 @@ specification is described in the .Sx Virtual Devices section. .Pp -The command verifies that each device specified is accessible and not currently -in use by another subsystem. +The command attempts to verify that each device specified is accessible and not +currently in use by another subsystem. +However this check is not robust enough +to detect simultaneous attempts to use a new device in different pools, even if +.Sy multihost +is +.Sy enabled. +The +administrator must ensure that simultaneous invocations of any combination of +.Sy zpool replace , +.Sy zpool create , +.Sy zpool add , +or +.Sy zpool labelclear , +do not refer to the same device. +Using the same device in two pools will +result in pool corruption. +.sp There are some uses, such as being currently mounted, or specified as the dedicated dump device, that prevents a device from ever being used by ZFS. Other uses, such as having a preexisting UFS file system, can be overridden with |