Last active
August 29, 2015 14:14
-
-
Save ikawnoclast/6185c7945ce97d0ef7c0 to your computer and use it in GitHub Desktop.
Zpool-Accessories
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
# pool add mypool cache da3 |
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 cache da2 | |
# 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 | |
cache | |
da2 ONLINE 0 0 0 | |
errors: No known data errors |
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 remove mypool da3 |
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 add mypool log da4 |
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 log da2 | |
# 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 | |
logs | |
da2 ONLINE 0 0 0 | |
errors: No known data errors |
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 log 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 | |
logs | |
mirror-1 ONLINE 0 0 0 | |
da2 ONLINE 0 0 0 | |
da3 ONLINE 0 0 0 | |
errors: No known data errors |
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 remove mypool da4 |
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 add mypool spare da3 |
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 set autoreplace=on 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 spare da2 | |
# 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 | |
spares | |
da2 AVAIL | |
errors: No known data errors |
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 remove mypool da3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment