Last active
August 29, 2015 14:13
-
-
Save ikawnoclast/7ec44909135ab6d54350 to your computer and use it in GitHub Desktop.
ZFS-Storage-Pools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zpool create -f mypool <devices> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zpool create mypool mirror da0 da1 | |
# zpool status | |
pool: mypool | |
state: ONLINE | |
scan: none requested | |
config: | |
NAME STATE READ WRITE CKSUM | |
mypool ONLINE 0 0 0 | |
mirror-0 ONLINE 0 0 0 | |
da0 ONLINE 0 0 0 | |
da1 ONLINE 0 0 0 | |
errors: No known data errors | |
# df -H /mypool | |
Filesystem Size Used Avail Capacity Mounted on | |
mypool 2.1G 19k 2.1G 0% /mypool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zpool create mypool mirror da0 da1 mirror da2 da3 | |
# zpool status | |
pool: mypool | |
state: ONLINE | |
scan: none requested | |
config: | |
NAME STATE READ WRITE CKSUM | |
mypool ONLINE 0 0 0 | |
mirror-0 ONLINE 0 0 0 | |
da0 ONLINE 0 0 0 | |
da1 ONLINE 0 0 0 | |
mirror-1 ONLINE 0 0 0 | |
da2 ONLINE 0 0 0 | |
da3 ONLINE 0 0 0 | |
errors: No known data errors | |
# df -H /mypool | |
Filesystem Size Used Avail Capacity Mounted on | |
mypool 4.1G 19k 4.1G 0% /mypool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zpool create mypool raidz da0 da1 da2 da3 da4 | |
# zpool status | |
pool: mypool | |
state: ONLINE | |
scan: none requested | |
config: | |
NAME STATE READ WRITE CKSUM | |
mypool ONLINE 0 0 0 | |
raidz1-0 ONLINE 0 0 0 | |
da0 ONLINE 0 0 0 | |
da1 ONLINE 0 0 0 | |
da2 ONLINE 0 0 0 | |
da3 ONLINE 0 0 0 | |
da4 ONLINE 0 0 0 | |
errors: No known data errors | |
# df -H /mypool | |
Filesystem Size Used Avail Capacity Mounted on | |
mypool 8.3G 28k 8.3G 0% /mypool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zpool create mypool raidz2 da0 da1 da2 da3 da4 | |
# zpool status | |
pool: mypool | |
state: ONLINE | |
scan: none requested | |
config: | |
NAME STATE READ WRITE CKSUM | |
mypool ONLINE 0 0 0 | |
raidz2-0 ONLINE 0 0 0 | |
da0 ONLINE 0 0 0 | |
da1 ONLINE 0 0 0 | |
da2 ONLINE 0 0 0 | |
da3 ONLINE 0 0 0 | |
da4 ONLINE 0 0 0 | |
errors: No known data errors | |
# df -H /mypool | |
Filesystem Size Used Avail Capacity Mounted on | |
mypool 6.2G 31k 6.2G 0% /mypool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zpool create mypool raidz3 da0 da1 da2 da3 da4 | |
# zpool status | |
pool: mypool | |
state: ONLINE | |
scan: none requested | |
config: | |
NAME STATE READ WRITE CKSUM | |
mypool ONLINE 0 0 0 | |
raidz3-0 ONLINE 0 0 0 | |
da0 ONLINE 0 0 0 | |
da1 ONLINE 0 0 0 | |
da2 ONLINE 0 0 0 | |
da3 ONLINE 0 0 0 | |
da4 ONLINE 0 0 0 | |
errors: No known data errors | |
# df -H /mypool | |
Filesystem Size Used Avail Capacity Mounted on | |
mypool 4.1G 28k 4.1G 0% /mypool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zpool create mypool da0 da1 da2 da3 da4 | |
# zpool status | |
pool: mypool | |
state: ONLINE | |
scan: none requested | |
config: | |
NAME STATE READ WRITE CKSUM | |
mypool ONLINE 0 0 0 | |
da0 ONLINE 0 0 0 | |
da1 ONLINE 0 0 0 | |
da2 ONLINE 0 0 0 | |
da3 ONLINE 0 0 0 | |
da4 ONLINE 0 0 0 | |
errors: No known data errors | |
# df -H /mypool | |
Filesystem Size Used Avail Capacity Mounted on | |
mypool 10G 19k 10G 0% /mypool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zpool destroy mypool |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment