ZPOOL-CREATE(8) | System Manager's Manual | ZPOOL-CREATE(8) |
zpool-create
—
Creates a new ZFS storage pool
zpool |
create [-dfn ]
[-m mountpoint]
[-o
property=value]...
[-o
feature@feature=value]
[-O
file-system-property=value]...
[-R root]
pool vdev... |
zpool
create
[-dfn
] [-m
mountpoint] [-o
property=value]...
[-o
feature@feature=value]...
[-O
file-system-property=value]...
[-R
root]
[-t
tname]
pool vdev...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 multihost is enabled. The administrator must ensure that simultaneous invocations of any combination of zpool replace, zpool create, zpool add, or zpool labelclear, do not refer to the same device. Using the same device in two pools will result in pool corruption.
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 the -f
option.
The command also checks that the replication strategy for the
pool is consistent. An attempt to combine redundant and non-redundant
storage in a single pool, or to mix disks and files, results in an error
unless -f
is specified. The use of differently
sized devices within a single raidz or mirror group is also flagged as
an error unless -f
is specified.
Unless the -R
option is specified, the
default mount point is
/pool. The mount point
must not exist or must be empty, or else the root dataset cannot be
mounted. This can be overridden with the -m
option.
By default all supported features are enabled on the new pool
unless the -d
option is specified.
-d
-o
option. See
zpool-features(5) for details about feature
properties.-f
-m
mountpoint-n
-o
property=value-o
feature@feature=value-O
file-system-property=value-R
root-o
cachefile=none
-o
altroot=root-t
tnameAugust 9, 2019 | Linux |