3939.Cm attach
4040.Op Fl fsw
4141.Oo Fl o Ar property Ns = Ns Ar value Oc
42- .Ar pool device new_device
42+ .Ar pool vdev new_device
4343.
4444.Sh DESCRIPTION
4545Attaches
4646.Ar new_device
4747to the existing
48- .Ar device .
48+ .Ar vdev .
4949The behavior differs depending on if the existing
50- .Ar device
50+ .Ar vdev
5151is a RAID-Z device, or a mirror/plain device.
5252.Pp
53- If the existing device is a mirror or plain device
53+ If the existing vdev is a mirror or plain device
5454.Pq e.g. specified as Qo Li sda Qc or Qq Li mirror-7 ,
55- the new device will be mirrored with the existing device , a resilver will be
55+ the new device will be mirrored with the existing vdev , a resilver will be
5656initiated, and the new device will contribute to additional redundancy once the
5757resilver completes.
5858If
59- .Ar device
59+ .Ar vdev
6060is not currently part of a mirrored configuration,
6161.Ar device
6262automatically transforms into a two-way mirror of
6363.Ar device
6464and
6565.Ar new_device .
6666If
67- .Ar device
67+ .Ar vdev
6868is part of a two-way mirror, attaching
6969.Ar new_device
7070creates a three-way mirror, and so on.
7171In either case,
7272.Ar new_device
7373begins to resilver immediately and any running scrub is canceled.
7474.Pp
75- If the existing device is a RAID-Z device
75+ If the existing vdev is a RAID-Z device
7676.Pq e.g. specified as Qq Ar raidz2-0 ,
7777the new device will become part of that RAID-Z group.
7878A "raidz expansion" will be initiated, and once the expansion completes,
@@ -112,7 +112,7 @@ the checksums of all blocks which have been copied during the expansion.
112112Forces use of
113113.Ar new_device ,
114114even if it appears to be in use.
115- Not all devices can be overridden in this manner.
115+ Not all vdevs can be overridden in this manner.
116116.It Fl o Ar property Ns = Ns Ar value
117117Sets the given pool properties.
118118See the
@@ -121,7 +121,7 @@ manual page for a list of valid properties that can be set.
121121The only property supported at the moment is
122122.Sy ashift .
123123.It Fl s
124- When attaching to a mirror or plain device , the
124+ When attaching to a mirror or plain vdev , the
125125.Ar new_device
126126is reconstructed sequentially to restore redundancy as quickly as possible.
127127Checksums are not verified during sequential reconstruction so a scrub is
0 commit comments