- ÆÐÅ°Áö ¼³Ä¡ ¹× (ºÎÆýÃ)±âµ¿
# 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'.