Created
July 27, 2015 14:40
-
-
Save ilovezfs/1f7c568d1bf3331a1fb5 to your computer and use it in GitHub Desktop.
mkzfsramdisk.sh
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/sh | |
NUMSECTORS=2097152 | |
mydev=`hdid -nomount ram://$NUMSECTORS` | |
sudo zpool create myramdiskpool $mydev | |
zpool status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment