This content has been marked as final. Show 2 replies
Because the 4 TB disk is already in use, you can't attach disks that are smaller in size to the existing 4 TB pool. If the disks were equivalent in size, then yes, this is how you can created a mirrored pool after a non-redundant pool is created by attaching disks
with zpool attach.
You could start over and use all 3 disks, but the pool size would be constrained to the smallest disk, the 1 TB disk. You would end up with a mirrored pool of 3 disks, with a total size of 1 TB.
# zpool create pool mirror Disk_1TB Disk_3TB Disk_4TB
Without any additional disks, reconfiguring this pool with active data would involve the following steps:
1. Copy the data to a new pool on the 3 TB disk.
2. Destroy the pool with the 4 TB disk.
3. Create a pool with the 1 TB disk and 4 TB disk:
# zpool create pool mirror Disk_1TB Disk_4TB
4. Copy the data over to the new mirrored pool.
5. Destroy the pool created in step 1.
6. Attach the remaining disk to the new pool:
# zpool attach pool Disk_1TB Disk_3TB