Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Basically you need to create a fake file for disk 2, create pool, set it offline and then when ready, (aka when data is copied to pool) add disk 2 and remove fake fileI read conflicting statements online, using "fake files" but that didn't work for me as I only wanted to create w/ 1 disk. You can only CREATE w/ 1 disk w/ stripped. The  you attached another disk later and switch to mirrored.

Best Source → https://blog.fosketts.net/2017/12/11/add-mirror-existing-zfs-drive/

Create Pool w/ 1 disk:

No Format
poolname=bigdatab
dev=/dev/sdb1
mount=/mnt/zfs/$poolname
zpool create -f $poolname $dev -o ashift=12 -m $mount
zpool status

Using Fake File Notes: Didn't work, but I'm keeping notes...

https://blog.chaospixel.com/linux/2017/08/zfs-create-pool-with-missing-devices.html
https://docs.oracle.com/cd/E19253-01/819-5461/gazgm/index.html

...