Add the target to a list of discovery addresses.
The IP address is the server where we have the iscsi target :
The IP address is the server where we have the iscsi target :
iscsiadm add discovery-address IP_ADDRESS
This command won't produce any output.
# iscsiadm add discovery-address 192.168.1.192
To see if the server has any iscsi device available for others, let's do :
# iscsiadm list discovery-address -v
the output :
Discovery Address: 192.168.1.192:3260 Target name: iqn.2006-01.com.openfiler:tsn.24def7fd4a0a Target address: 192.168.1.192:3260, 1
To use the iSCSI target :
# iscsiadm add static-config NAME_OF_ISCSI_TARGET,IP_ADDRESS_OF_ISCSI_TARGET;
example :
# iscsiadm add static-config iqn.2006-01.com.openfiler:tsn.24def7fd4a0a,192.168.1.192
We have to check if static-config service is enable. Check this out with :
# iscsiadm list discovery
Our output :
Discovery:
Static: disabled
Send Targets: disabled
iSNS: disabled
We won't be able to see the iSCSI drive.
To be able to use it, we have to enable the static service :
# iscsiadm modify discovery --static enable
and the ouput :
Discovery:
Static: enabled
Send Targets: disabled
iSNS: disabled
now, we can see the new iSCSI drive, check it out with format if the new drive shows up
# format
:
:
3. c2t1d0 <OPNFILE-VIRTUAL-DISK -0 cyl 1021 alt 2 hd 64 sec 32>
/iscsi/disk@0000iqn.2006-01.com.openfiler%3Atsn.24def7fd4a0a0001,0
:
:
No comments:
Post a Comment