Skip to content

Instantly share code, notes, and snippets.

@2grep
Last active September 27, 2015 20:14
Show Gist options
  • Save 2grep/45f6df4b277e1353dcce to your computer and use it in GitHub Desktop.
Save 2grep/45f6df4b277e1353dcce to your computer and use it in GitHub Desktop.
iscsi setup
# zpool status
pool: tank
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada2 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
ada3 ONLINE 0 0 0
ada4 ONLINE 0 0 0
auth-group ag0 {
chap spectrum bigrandompassword
chap accelerator anotherbigrandompassword
}
portal-group pg0 {
discovery-auth-group no-authentication
listen 0.0.0.0
listen [::]
}
target iqn.2015-10.com.hisdomain:target0 {
auth-group ag0
portal-group pg0
lun 0 {
path /tank/images
size 8T
}
}
target iqn.2015-10.com.hisdomain:target1 {
auth-group ag0
portal-group pg0
lun 1 {
path /tank/images2
size 4T
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment