# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ramsdenj.com/introduction-2/introduction-3/mirrors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
