pool.attach =========== Attach a disk to an existing vdev in a pool, converting a striped vdev to a mirror or extending an existing mirror to an n-way mirror. This operation will format the new disk, attach it to the target vdev, and wait for resilvering to complete if the target is a RAIDZ vdev undergoing expansion. Locking behavior: - If another attach operation is already using the same disk, this call will fail immediately with EBUSY rather than queueing. - If another attach operation is running on the same pool (but with a different disk), this call will queue and wait for the previous operation to complete. - Operations on different pools with different disks can run concurrently. This method is a job. .. raw:: html
ID of the pool to attach a disk to.
Configuration for the disk attachment operation.
No Additional PropertiesThe GUID of the vdev where the disk needs to be attached. In the case of a STRIPED vdev, this is the STRIPED disk GUID which will be converted into a mirror. If target_vdev is already a mirror, it will be converted into an n-way mirror.
Name of the new disk to attach.
Whether to allow attaching disks with duplicate serial numbers.
Returns null on successful disk attachment.