HarryWei / cloudxy

Automatically exported from code.google.com/p/cloudxy
6 stars 3 forks source link

iscsiadm can not discovery the HLFS target #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a target with HLFS lun according to the wiki page 
http://code.google.com/p/cloudxy/wiki/Support_iSCSI
2. Install iscsi tools:
$sudo apt-get install openiscsi
3. Login HLFS target.
sudo iscsiadm -m discovery -t st -p localhost

What is the expected output? What do you see instead?
Nothing was found.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by Kelvin.x...@gmail.com on 24 Jan 2013 at 11:27

GoogleCodeExporter commented 9 years ago
Solved.
Before we discovery the target we should enable the target to accept any 
initiators by
the command as follows:

$sudo tgtadm --mode target --tid 1 --op bind -I ALL

Original comment by Kelvin.x...@gmail.com on 25 Jan 2013 at 8:54

GoogleCodeExporter commented 9 years ago

Original comment by kanghua...@gmail.com on 9 Feb 2013 at 6:26