Skip to content

Instantly share code, notes, and snippets.

@unicolet
Created December 22, 2015 19:51
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 unicolet/e6cf5097eff6f9ce9392 to your computer and use it in GitHub Desktop.
Save unicolet/e6cf5097eff6f9ce9392 to your computer and use it in GitHub Desktop.
How to automatically import a ZFS pool built on top of iSCSI devices with systemd
[Unit]
After=dev-disk-by\x2did-wwn\x2d0x60014057ab42867d066fd393edb4abd6.device
[Service]
ExecStart=/usr/sbin/zpool import itank
ExecStartPost=/usr/bin/logger "started ZFS pool itank"
[Install]
WantedBy=dev-disk-by\x2did-wwn\x2d0x60014057ab42867d066fd393edb4abd6.device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment