Skip to content

Instantly share code, notes, and snippets.

@2grep
Last active September 27, 2015 20:14
Show Gist options
  • Select an option

  • Save 2grep/45f6df4b277e1353dcce to your computer and use it in GitHub Desktop.

Select an option

Save 2grep/45f6df4b277e1353dcce to your computer and use it in GitHub Desktop.

Revisions

  1. 2grep revised this gist Sep 27, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions ct1.conf
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ target iqn.2015-10.com.hisdomain:target0 {
    portal-group pg0
    lun 0 {
    path /tank/images
    size 6T
    size 8T
    }
    }

    @@ -23,6 +23,6 @@ target iqn.2015-10.com.hisdomain:target1 {
    portal-group pg0
    lun 1 {
    path /tank/images2
    size 6T
    size 4T
    }
    }
  2. 2grep revised this gist Sep 27, 2015. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion ct1.conf
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,15 @@ target iqn.2015-10.com.hisdomain:target0 {
    portal-group pg0
    lun 0 {
    path /tank/images
    size 12T
    size 6T
    }
    }

    target iqn.2015-10.com.hisdomain:target1 {
    auth-group ag0
    portal-group pg0
    lun 1 {
    path /tank/images2
    size 6T
    }
    }
  3. 2grep revised this gist Sep 27, 2015. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion bash
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,7 @@ config:
    tank ONLINE 0 0 0
    mirror-0 ONLINE 0 0 0
    ada1 ONLINE 0 0 0
    ada2 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
  4. 2grep revised this gist Sep 27, 2015. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # 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
  5. 2grep created this gist Sep 27, 2015.
    19 changes: 19 additions & 0 deletions ct1.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    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 12T
    }
    }