Outils pour utilisateurs

Outils du site


informatique:nix:san:iscsi

Centos 7 - targetcli

/> backstores/block create disk1 /dev/vdb
Created block storage object disk1 using /dev/vdb.
/> iscsi/
/iscsi> create iqn.2015-09.ndlp.info:target1
Created target iqn.2015-09.ndlp.info:target1.
Created TPG 1.
/iscsi> cd iqn.2015-09.ndlp.info:target1/
/iscsi/iqn.20....info:target1> ls
o- iqn.2015-09.ndlp.info:target1 ......................................................................................... [TPGs: 1]
  o- tpg1 ................................................................................................... [no-gen-acls, no-auth]
    o- acls .............................................................................................................. [ACLs: 0]
    o- luns .............................................................................................................. [LUNs: 0]
    o- portals ........................................................................................................ [Portals: 0]
/iscsi/iqn.20....info:target1> cd tpg1/
/iscsi/iqn.20...:target1/tpg1> ls
o- tpg1 ..................................................................................................... [no-gen-acls, no-auth]
  o- acls ................................................................................................................ [ACLs: 0]
  o- luns ................................................................................................................ [LUNs: 0]
  o- portals .......................................................................................................... [Portals: 0]
/iscsi/iqn.20...:target1/tpg1> ls
o- tpg1 ..................................................................................................... [no-gen-acls, no-auth]
  o- acls ................................................................................................................ [ACLs: 0]
  o- luns ................................................................................................................ [LUNs: 0]
  o- portals .......................................................................................................... [Portals: 0]
/iscsi/iqn.20...:target1/tpg1> portals/ create
Using default IP port 3260
Binding to INADDR_ANY (0.0.0.0)
Created network portal 0.0.0.0:3260.
/iscsi/iqn.20...:target1/tpg1> luns/  create /backstores/block/disk1
Created LUN 0.
/iscsi/iqn.20...:target1/tpg1> set attribute authentication=0
Parameter authentication is now '0'.
/iscsi/iqn.20...:target1/tpg1> set attribute demo_mode_write_protect=0
Parameter demo_mode_write_protect is now '0'.
/iscsi/iqn.20...:target1/tpg1> set attribute generate_node_acls=1
Parameter generate_node_acls is now '1'.
/iscsi/iqn.20...:target1/tpg1> exit
Global pref auto_save_on_exit=true
Last 10 configs saved in /etc/target/backup.
Configuration saved to /etc/target/saveconfig.json

Solairs 10 - x86

iscsiadm add discovery-address 192.168.2.10:3260
iscsiadm modify discovery --static enable
iscsiadm add static-config iqn.2015-09.ndlp.info:target1,192.168.2.10:3260
informatique/nix/san/iscsi.txt · Dernière modification: 2015/11/16 17:59 (modification externe)