Iscsi - target + initiator on the same host.


 
Thread Tools Search this Thread
Operating Systems Solaris Iscsi - target + initiator on the same host.
# 1  
Old 09-07-2009
Iscsi - target + initiator on the same host.

Hi all

iscsiadm / iscsitadm.

Ive created two devices on a host.

# iscsitadm list target
Target: 1-disk0
iSCSI Name: iqn.1986-03.com.sun:02:f105ddf3-52a4-ed7a-9590-c3d354b8fc32.1-disk0
Connections: 1
Target: 1-disk1
iSCSI Name: iqn.1986-03.com.sun:02:14fd7226-bbb8-4a62-dcc0-fb5660f709c2.1-disk1
Connections: 1


On another host, Ive created an initiator and via static discovery, attachment to this host.

iscsiadm list target
Target: iqn.1986-03.com.sun:02:14fd7226-bbb8-4a62-dcc0-fb5660f709c2.1-disk1
Alias: 1-disk1
TPGT: 1
ISID: 4000002a0000
Connections: 1
Target: iqn.1986-03.com.sun:02:f105ddf3-52a4-ed7a-9590-c3d354b8fc32.1-disk0
Alias: 1-disk0
TPGT: 1
ISID: 4000002a0000
Connections: 1

Without going into the pros / cons, I know want to make the target server, an initiator too, and `mount` its own disks.

Ive static added them to itself

iscsiadm list static-config
Static Configuration Target: iqn.1986-03.com.sun:02:f105ddf3-52a4-ed7a-9590-c3d354b8fc32.1-disk0,172.30.188.129:3260
Static Configuration Target: iqn.1986-03.com.sun:02:14fd7226-bbb8-4a62-dcc0-fb5660f709c2.1-disk1,172.30.188.129:3260

However, when I devfsadm / format, I cant see the little sods.

Anyone use iscsi on a solaris 10 server ?? Shed any light / help ?? Ive tried static, sendtarget. The host has several NIC's, so I wonder if I need to create a tpgt group ??

SBK

SBK
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

ISCSI initiator (client) for HP-UX 10.20

Is there one? If so where can it be found? I have the 10.20 CD set but I don't think that there's an iSCSI initiator on there. Thank you Dave (0 Replies)
Discussion started by: perdrix
0 Replies

2. Shell Programming and Scripting

Connect to target host from Source host.

Hi All, Need to connect to target host and execute a command and connect back to source host to continue with next set of command execution. Is there a utility/command using which we can connect to target host ? Please suggest. Note: Netezza database is instaled on Linux server. ... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies

3. Linux

How to boot iSCSI target from console linux?

I need boot any images from iSCSI and I'd like to boot from linux console of a previous LiveCD booted. Is possible, without gpxe, ipxe firmware or similar? With a simple iSCSI initiator for example? (1 Reply)
Discussion started by: spark2k06
1 Replies

4. HP-UX

Unable to delete iscsi target

Hi Please can someone give me a hint on this, when I list the targets, I see two o them: #iscsiutil -p Operational Target Information ------------------------------ Target # 1 ----------- Target Name : iqn.1992-08.com.netapp:sn.142241859 Target Alias ... (2 Replies)
Discussion started by: fretagi
2 Replies

5. HP-UX

After adding new iscsi target port, still the session state of that target port is showing offline

Hi, I wanted to configure new iscsi port on HPUX system, i added the target port address and configured it, once done, went to array side and searched for that host iqn number , but was nt able to find the same, came to host, then when i ran "iscsiutil -pVS" command it gave me below result ... (0 Replies)
Discussion started by: Vinay Kumar D
0 Replies

6. UNIX for Dummies Questions & Answers

Delete from target a LUN that is mounted on initiator

hi all, i'm new here and i have a question, i wanted to know, what should happen if i delete a LUN that is already mounted on one of my initiators. thanks! (3 Replies)
Discussion started by: slavash
3 Replies

7. Solaris

Does iscsi initiator supported on SUN

I have a Sun Blade 2500 with SUN 5.9 OS installed. I have configured ISCSI SAN and one of my Red Hat OS can accessed/mount the ISCSI SAN disk Now i want to access/mount another ISCSI SAN disk on SUN solaris. Is that possible ? Thanks (1 Reply)
Discussion started by: z_haseeb
1 Replies

8. UNIX for Advanced & Expert Users

LTO2 tape drive as iSCSI target

I'm using Bacula as my backup system, with full backups going to an LTO2 tape drive, while differentials and incrementals go to a disk array on my main server, babylon4. The tape drive is currently attached to a separate machine, because babylon4 does not have a SCSI controller, nor a free PCI-X... (0 Replies)
Discussion started by: Phil Stracchino
0 Replies

9. UNIX for Dummies Questions & Answers

How to change ethernet cable of iscsi initiator (iscsi client)?

how to change ethernet cable of iscsi initiator (iscsi client) (0 Replies)
Discussion started by: pankajd
0 Replies

10. Solaris

How do I breakdown the Target (tx) part of a cXtXdX Iscsi device?

Hello, I am trying to breakdown the cXtXdX (specifically tX) part of an iscsi device. I know in the fibre SAN world, this tX will usually be a combination of the path to device/device WWN. From what I understand in iscsi world it is similar, breaking down into... (0 Replies)
Discussion started by: Bashful
0 Replies
Login or Register to Ask a Question
isnsadm(1M)						  System Administration Commands					       isnsadm(1M)

NAME
isnsadm - administer the internet Storage Name Server (iSNS) server SYNOPSIS
isnsadm options isnsadm subcommand [subcommand_options] [operand] DESCRIPTION
The isnsadm command is the command-line interface to the Internet Storage Name Service (iSNS) server. isnsadm comprises a set of subcom- mands, described in their own section, each of which accomplishes one of the iSNS server management functions. For any operations that will change the iSNS configurations the solaris.isnsmgr.write authorization is required. Refer to isns(1M). For read operations, the command does not require special authorizations. isnsadm has a set of general options and a set of subcommand-specific options. The first category is described under OPTIONS; the second category is described in the context of each subcommand description. OPTIONS
The following options are supported: -?, --help Displays context help. Stops interpretation of any subsequent arguments. -V, --version Displays version information. Stops interpretation of any subsequent arguments. OPERANDS
The following operands are used by one or more isnsadm subcommands. iscsi-node-name iSCSI target or iSCSI initiator symbolic name. A string with a maximum length of 223 characters. discovery-domain-name Discovery domain symbolic name. A string with a maximum length of 256 characters. discovery-domain-set-name Discovery domain set symbolic name. A string with a maximum length of 256 characters. SUBCOMMANDS
The isnsadm command supports the subcommands described below. add-dd The add-dd subcommand adds a discovery domain to a discovery domain set. The add-dd subcommand has the following syntax: # isnsadm add-dd option discovery-domain-name, ... add-dd has the following option: -s discovery-domain-set-name Specifies a discovery domain set. add-node The add-node subcommand adds a node to a specified discovery-domain. The add-node subcommand has the following syntax: # isnsadm add-node option iscsi-node-name,... add-node has the following options: -d,--dd discovery-domain-name Specifies a discovery domain. create-dd The create-dd subcommand creates a discovery domain with the name you specify. The create-dd subcommand has the following syntax: # isnsadm create-dd discovery-domain-name, ... create-dd has no options. create-dd-set The create-dd-set subcommand creates a discovery domain set with the name you specify. The create-dd-set subcommand has the following syntax: # isnsadm create-dd-set discovery-domain-set-name, ... create-dd-set has no options. delete-dd The delete-dd subcommand deletes a discovery domain of the name you specify. The delete-dd subcommand has the following syntax: # isnsadm delete-dd discovery-domain-name, ... delete-dd has no options. delete-dd-set The delete-dd-set subcommand deletes a discovery domain set of the name you specify. The delete-dd-set subcommand has the following syntax: # isnsadm delete-dd-set discovery-domain-set-name, ... delete-dd-set has no options. disable-dd-set The disable-dd-set subcommand disables a discovery domain set. The disable-dd-set subcommand has the following syntax: # isnsadm disable-dd-set discovery-domain-set-name, ... disable-dd-set has no options. enable-dd-set The enable-dd-set subcommand enables a discovery domain set. The enable-dd-set subcommand has the following syntax: # isnsadm enable-dd-set discovery-domain-set-name, ... enable-dd-set has no options. list-dd The list-dd subcommand displays information about discovery domains. If no operand is specified, it lists all discovery domains that cur- rently exist on the iSNS server. The list-dd subcommand has the following syntax: # isnsadm list-dd [option] [discovery-domain-name, ...] list-dd supports the following option: -v, --verbose Displays the member contents of the discovery domain(s). list-dd-set The list-dd-set subcommand lists the discovery domain sets, both enabled and disabled, that exist on the iSNS server. Note that there is no dd-set registration. If no operand is specified, it lists all of the discovery domain sets. The list-dd-set subcommand has the following syntax: # isnsadm list-dd-set [option] [discovery-domain-set-name, ...] list-dd-set supports the following option: -v, --verbose Shows all discovery domains within the discovery domain set. list-node The list-node subcommand displays information about nodes that are currently registered with the iSNS server or that are not registered and belong to non-default discovery-domain(s). For the latter case, the node has its type field shown as unknown. If no operand is specified, list-node lists all nodes known by the iSNS server. The list-node subcommand has the following syntax: # isnsadm list-node [options] [iscsi-node-name, ...] list-node supports the following options: -t, --target Filters the list to display only iSCSI target nodes. -i, --initiator Filters the list to display only iSCSI initiator nodes. -v, --verbose Displays details about a node. Without this option, only the name, alias, and type information are displayed. modify-dd The modify-dd subcommand modifies an attribute of a specified discovery domain. The modify-dd subcommand has the following syntax: # isnsadm modify-dd option discovery-domain-name modify-dd has the following option: -n discovery-domain-name Specifies the new name of a discovery domain to be applied to an existing discovery-domain. modify-dd-set The modify-dd-set subcommand modifies a discovery domain set. The modify-dd-set subcommand has the following syntax: # isnsadm modify-dd-set option discovery-domain-set-name modify-dd-set has the following option: -n discovery-domain-set-name Specifies the new name of a discovery domain set to be applied to an existing discovery-domain-set. remove-dd The remove-dd subcommand removes the association with a specified discovery domain set. The remove-dd subcommand has the following syntax: # isnsadm remove-dd option discovery-domain-name, ... remove-dd has the following option: -s discovery-domain-set-name Specifies the discovery domain set from which the discovery domain will be removed. remove-node The remove-node subcommand removes a node. The remove-node subcommand has the following syntax: # isnsadm remove-node option iscsi-node-name, ... remove-node has the following option: -d discovery-domain-name Specifies the discovery domain from which a node will be removed. show-config The show-config subcommand displays the iSNS server administrative settings. Note that the setting can be modified by means of the service management facility (see smf(5)). Refer to isns(1M). The show-config subcommand has the following syntax: # isnsadm show-config show-config has no options. EXAMPLES
Example 1 Displaying Clients The following use of the list-node subcommand displays clients. # isnsadm list-node -v iSCSI Name: iqn.1986-03.com.sun:01:000e0c9f10da.45173FEA.engr Alias: STK5320_NAS Type: Target Network Entity: SE5310 Portal: 172.20.57.95:3260 Portal Group: 1 Portal: 172.20.56.95:3260 Portal Group: 1 DD Name: Default iSCSI Name: iqn.1986-03.com.sun:01:000e0c9f10da.454F00A2.acct Alias: Type: Target Network Entity: SE5310 Portal: 172.20.57.95:3260 Portal Group: 1 Portal: 172.20.56.95:3260 Portal Group: 1 DD Name: Default iSCSI Name: iqn.1986-03.com.sun:01:e00000000000.46fd8e2b Alias: host-x2100 Type: Initiator Network Entity: iqn.1986-03.com.sun:01:e00000000000.46fd8e2b Portal: 172.20.236.123:58530 Portal Group: 1 DD Name: Default Example 2 Displaying a Discovery Domain The following use of the list-dd subcommand displays discovery domains. # isnsadm list-dd -v DD name: Default DD set(s): Default iSCSI Name: iqn.1986-03.com.sun:01:000e0c9f10da.45173FEA.engr iSCSI Name: iqn.1986-03.com.sun:01:000e0c9f10da.454F00A2.acct iSCSI name: iqn.1986-03.com.sun:01:e00000000000.46fd8e2b DD name: acct-dd DD name: engineering-dd Example 3 Adding a Node The following use of the add-node subcommand adds a node to a discovery domain, creating a discovery domain membership. # isnsadm add-node -d engineering-dd iqn.1986-03.com.sun:01:000e0c9f10da.454F00A2.engr Example 4 Removing a Node The following use of the remove-node subcommand removes a node from a discovery domain, thereby removing a discovery domain membership. # isnsadm remove-node -d acct-dd iqn.1986-03.com.sun:01:000e0c9f10da.454F00A2.acct Example 5 Creating a Discovery Domain Set The following use of the create-dd-set subcommand creates a discovery domain set. # isnsadm create-dd-set operation-dd-set Example 6 Displaying a Discovery Domain Set The following use of the list-dd-set subcommand displays discovery domain sets. # isnsadm list-dd-set -v DD Set name: Default State: Disabled DD Name: Default DD Set name: operation-dd-set State: Disabled Example 7 Adding a Discovery Domain The following use of the add-dd subcommand adds a discovery domain to a discovery domain set. # isnsadm add-dd -s operation-dd-set engineering-dd Example 8 Displaying a Discovery Domain Set The following use of the list-dd-set displays the attributes of a discovery domain set. # isnsadm list-dd-set DD Set name: Default State: Disabled DD Name: Default DD Set name: operation-dd-set State: Disabled DD Name: engineering-dd Example 9 Enabling a Discovery Domain Set The following use of the enable-dd-set subcommand enables a discovery domain set. # isnsadm enable-dd-set Default Example 10 Disabling a Discovery Domain Set The following use of the disable-dd-set subcommand disables a discovery domain set. # isnsadm disable-dd-set Default Example 11 Displaying Administrative Settings The following use of the show-config subcommand displays current administrative settings. # isnsadm show-config Data Store Location: /etc/isns/isnsdata.xml Entity Status Inquiry Non-Response Threshold: 3 Management SCN Enabled: yes Authorized Control Node Names: - ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWisnsadm | +-----------------------------+-----------------------------+ |Interface Stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
iscsiadm(1M), iscsitadm(1M), isns(1M), attributes(5), smf(5) NOTES
When a subcommand is invoked with multiple operands and there are failures on one or more, but not all, operands, isnsadm displays a generic message indicating partial failure, with list of failed operands. An error on a specific operand can be found by issuing the same subcommand on the failing operand. SunOS 5.11 25 Sep 2008 isnsadm(1M)