This file contains hidden or 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
brew install redis | |
redis-cli hset services resque '["localhost"]' | |
jgem install rack -v1.3.6 | |
jgem install jruby-rack -v1.1.1 | |
jgem install trinidad -v1.2.3 | |
git clone git://github.com/sam/geminaboxplus.git | |
cd geminaboxplus | |
bundle install --path vendor | |
rake resque:work & | |
GEMINABOX_DATA="$(pwd)/data" jruby -S trinidad |
This file contains hidden or 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
# Make sure that the swap volume is the same size as your available RAM or | |
# you'll have trouble starting as many guests as you think you should have | |
# RAM for. | |
zfs create -oprimarycache=none -osecondarycache=none -V256G zones/swap |
This file contains hidden or 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
# Attach your new "spare" device (c0t1d0 in this example) | |
# to your existing device (c0t0d0) as a mirror: | |
zpool attach zones c0t0d0 c0t1d0 | |
# Wait until `zpool status` says resilvering is complete, then: | |
zpool detach zones c0t0d0 |
This file contains hidden or 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
dumpadm -d /dev/dsk/c0t2d0 |
This file contains hidden or 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 backup \ | |
spare c1t0d0 c1t1d0 c1t2d0 \ | |
raidz2 c1t3d0 c1t4d0 c1t5d0 c1t6d0 c1t7d0 c1t8d0 c1t9d0 \ | |
raidz2 c1t10d0 c1t11d0 c1t12d0 c1t13d0 c1t14d0 c1t15d0 c1t16d0 \ | |
raidz2 c1t17d0 c1t18d0 c1t19d0 c1t20d0 c1t21d0 c1t22d0 c1t23d0 |
This file contains hidden or 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
zfs snapshot -r zones@backup | |
zfs send -R zones@backup | zfs recv -Fd backup |
This file contains hidden or 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 -f zones | |
# If that doesn't work because some filesystems are still in use, run: | |
zfs destroy -fr zones | |
# That will force unmount and destroy all the filesystems. | |
# Then try destroying the zpool again. |
This file contains hidden or 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 export backup | |
zpool import backup zones |
This file contains hidden or 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 zones spare c1t0d0 |
This file contains hidden or 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
[root@f0-4d-a2-3c-f4-a0 ~]# zpool status | |
pool: zones | |
state: ONLINE | |
scan: none requested | |
config: | |
NAME STATE READ WRITE CKSUM | |
zones ONLINE 0 0 0 | |
raidz2-0 ONLINE 0 0 0 | |
c1t3d0 ONLINE 0 0 0 |
OlderNewer