Difference between revisions of "ISCSI on Debian"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| Line 20: | Line 20: | ||
|   iscsiadm -m node |   iscsiadm -m node | ||
| Output :  192.168.8.31:3260,1 iqn.2004-04.com.qnap:ts-239:iscsi.qnap1.8d8976 | Output :  192.168.8.31:3260,1 iqn.2004-04.com.qnap:ts-239:iscsi.qnap1.8d8976 | ||
| + | |||
| + | |||
| + | ... vi springer lige over CHAP ... | ||
| + | |||
| + | Nå, opret forbindelse :  | ||
| + |  iscsiadm -m node --targetname "iqn.2004-04.com.qnap:ts-239:iscsi.qnap1.8d8976" --portal "192.168.8.31:3260" --login | ||
| + | |||
| + | Nu skulle disken kunne findes med  | ||
| + |  fdisk -l | ||
Revision as of 11:53, 22 February 2013
af Tommy, feb 2013.
Fra : http://www.howtoforge.com/using-iscsi-on-debian-lenny-initiator-and-target
Korte noter:
apt-get install open-iscsi
Edit /etc/iscsi/iscsid.conf
... node.startup = automatic ...
derefter en restart :
/etc/init.d/open-iscsi restart
Discover LUN:
root@testbox:~# iscsiadm -m discovery -t st -p 192.168.8.31
Output : 192.168.8.31:3260,1 iqn.2004-04.com.qnap:ts-239:iscsi.qnap1.8d8976
iscsiadm -m node
Output : 192.168.8.31:3260,1 iqn.2004-04.com.qnap:ts-239:iscsi.qnap1.8d8976
... vi springer lige over CHAP ...
Nå, opret forbindelse :
iscsiadm -m node --targetname "iqn.2004-04.com.qnap:ts-239:iscsi.qnap1.8d8976" --portal "192.168.8.31:3260" --login
Nu skulle disken kunne findes med
fdisk -l