Created
June 16, 2014 23:22
-
-
Save tcooper/d1d63dc63bfce742a223 to your computer and use it in GitHub Desktop.
Create a RAID-Z2 pool on Campfire NAS
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
#!/bin/bash | |
# Create the zfs pool as 4 RAID-Z2 vdev's... | |
zpool create pool raidz2 \ | |
wwn-0x5000cca00d6f3910 \ | |
wwn-0x5000cca00d72a644 \ | |
wwn-0x5000cca00d7b8158 \ | |
wwn-0x5000cca00d7d376c \ | |
wwn-0x5000cca00d7f49c4 \ | |
wwn-0x5000cca00d7ff4e8 | |
# Add more disks... | |
zpool add pool raidz2 \ | |
wwn-0x5000cca00d7ffce4 \ | |
wwn-0x5000cca00d809558 \ | |
wwn-0x5000cca00d80a4e8 \ | |
wwn-0x5000cca00d80f60c \ | |
wwn-0x5000cca00d80f7a8 | |
# Add even more disks... | |
zpool add pool raidz2 \ | |
wwn-0x5000cca00d80f844 \ | |
wwn-0x5000cca00d80f8ac \ | |
wwn-0x5000cca00d835b40 \ | |
wwn-0x5000cca00d835ba8 \ | |
wwn-0x5000cca00d83bf98 \ | |
wwn-0x5000cca00d83c858 | |
# Add even more disks... | |
zpool add pool raidz2 \ | |
wwn-0x5000cca00d8525e4 \ | |
wwn-0x5000cca00d86b834 \ | |
wwn-0x5000cca00d874148 \ | |
wwn-0x5000cca00d8745f4 \ | |
wwn-0x5000cca00d87469c \ | |
wwn-0x5000cca00d8747dc \ | |
wwn-0x5000cca00d874a2c | |
# Add external mirrored ZIL... | |
zpool add pool log mirror \ | |
wwn-0x5000c5000f8d38bb \ | |
wwn-0x5000c5000f90c953 | |
# Here check the pool status | |
zpool status poll |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment