# pool.attach

target_vdev is the GUID of the vdev where the disk needs to be attached. In case of STRIPED vdev, this is the STRIPED disk GUID which will be converted to mirror. If target_vdev is mirror, it will be converted into a n-way mirror.

This method is a job.

Type: object

##

Type: array
No Additional Items

#### Tuple Validation

##### Parameter 1: oid

#### oid

Type: integer

ID of the pool to attach a disk to.

##### Parameter 2: options

#### options

Type: object

Configuration for the disk attachment operation.

No Additional Properties

##

#### Target Vdev

Type: string

GUID or device name of the target vdev to attach to.

##

#### New Disk

Type: string

Name of the new disk to attach.

##

#### Allow Duplicate Serials

Type: boolean Default: false

Whether to allow attaching disks with duplicate serial numbers.

##

#### Result

Type: null

Returns `null` on successful disk attachment.

Required roles: POOL_WRITE