Skip to content

Instantly share code, notes, and snippets.

@ilovezfs
Created July 27, 2015 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilovezfs/1f7c568d1bf3331a1fb5 to your computer and use it in GitHub Desktop.
Save ilovezfs/1f7c568d1bf3331a1fb5 to your computer and use it in GitHub Desktop.
mkzfsramdisk.sh
#!/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