°Ô½Ã¹° 259°Ç
   
[RHEL7.4] ISCSI create [ targetcli ]
±Û¾´ÀÌ : theko ³¯Â¥ : 2018-05-15 (È­) 16:45 Á¶È¸ : 1436

- ÆÐÅ°Áö ¼³Ä¡ ¹× (ºÎÆýÃ)±âµ¿
# yum install targetcli

# systemctl start target

# systemctl enable target


- ISCSI LUN »ý¼º

# targetcli


/> cd /backstores/block/
/backstores/block> create lun1 /dev/sdb 


/backstores/block> cd /iscsi
/iscsi> create iqn.2018-05.com.rplinux:target1

/iscsi/iqn.20.../tpg1/portals> cd ../luns
/iscsi/iqn.20...17a/tpg1/luns> create /backstores/block/lun0 



- º¸¾È¼³Á¤ ¾Æ·¡¿Í °°ÀÌ ¾ÈÇÏ¸é º¸¾È¶§¹®¿¡ ¿¬°áÀÌ ¾ÈµÊ.
# disable authentication

/iscsi/iqn.20...:target1/tpg1> set attribute authentication=0
Parameter authentication is now '0'.

# enable read/write mode

/iscsi/iqn.20...:target1/tpg1> set attribute demo_mode_write_protect=0
Parameter demo_mode_write_protect is now '0'.

# Enable generate_node_acls mode. This can be thought of as 
# "ignore ACLs mode" -- both  authentication and LUN mapping
# will then use the TPG settings.

/iscsi/iqn.20...:target1/tpg1> set attribute generate_node_acls=1
Parameter generate_node_acls is now '1'.

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com