> For the complete documentation index, see [llms.txt](https://docs.ramsdenj.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ramsdenj.com/introduction-2/introduction-3/mirrors.md).

# Mirrors

Creating a mirrored ZFS pool is easy.

### Two disk mirror

To create a single two disk mirror:

```shell
zpool create -f -o ashift=12 vault mirror \
                ata-SanDisk_SDSSDXPS480G_152271401093 \
                ata-SanDisk_SDSSDXPS480G_154501401266
```

### Four disk mirror - RAID10

To create a RAID10 style pool, create multiple mirrors. As many mirrors as desired can be added.

```shell
zpool create -f -o ashift=12 vault \
              mirror \
                ata-SanDisk_SDSSDXPS480G_152271401093 \
                ata-SanDisk_SDSSDXPS480G_154501401266 \
              mirror \
                ata-SanDisk_SDSSDXPS480G_164277402487 \
                ata-SanDisk_SDSSDXPS480G_164277402657
```

This created the following.

```shell
zpool status

  pool: vault
 state: ONLINE
  scan: none requested
config:

	NAME                                       STATE     READ WRITE CKSUM
	vault                                      ONLINE       0     0     0
	  mirror-0                                 ONLINE       0     0     0
	    ata-SanDisk_SDSSDXPS480G_152271401093  ONLINE       0     0     0
	    ata-SanDisk_SDSSDXPS480G_154501401266  ONLINE       0     0     0
	  mirror-1                                 ONLINE       0     0     0
	    ata-SanDisk_SDSSDXPS480G_164277402487  ONLINE       0     0     0
	    ata-SanDisk_SDSSDXPS480G_164277402657  ONLINE       0     0     0

errors: No known data errors
```
