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 PropertiesGUID or device name of the target vdev to attach to.
Name of the new disk to attach.
Whether to allow attaching disks with duplicate serial numbers.
Returns null on successful disk attachment.