/usr/syno/etc/rc.iscsi start#You can get the targetname with iscsiadm -m discovery -t st -p IpAdressiscsiadm -m node --targetname "iqn.2000-01.com.synology:MyRemoteServer.Target-1.0b6d4f7c32" --portal "IpAdress:3260" --login##checks#tail -f /var/log/messages#fdisk -lsynospace --partition --add-to-system -o /dev/isda#make synology 3 partitions on LUNsynospace --partition --do --level=single_disk -o /dev/isda#check with fdisk -l mkfs.btrfs /dev/isda3or only one partition with parted
parted /dev/isda>mklabel gpt>mkpart primary btrfs 2048s 100%>resizepart 1 100%>quitWeb gui : Task scheduler > new boot-up task :
/usr/syno/etc/rc.iscsi start iscsiadm -m node --targetname "iqn.2000-01.com.synology:MyRemoteServer.Target-1.0b6d4f7c32" --portal "IpAdress:3260" --loginsleep 5 #need some time to connectmount /dev/isda3 /volume2 #make the new mount available in the webguised -i '$ i\ <space path="\/dev\/isda3" reference="\/volume2"><device><\/device><reference><volume path="\/volume2" dev_path="\/dev\/isda3" type="btrfs"><\/volume><\/reference><\/space>' /tmp/space/space_mapping.xml#add a sharesynoshare --add iscsi_test "iscsi target mounted from another syno" /volume2/iscsi_test "" "rwuser" "" 1 0