{"id":2047,"date":"2011-12-07T14:55:33","date_gmt":"2011-12-07T12:55:33","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=2047"},"modified":"2024-09-06T17:24:21","modified_gmt":"2024-09-06T14:24:21","slug":"%d0%b8%d1%81%d0%bf%d0%be%d0%bb%d1%8c%d0%b7%d1%83%d0%b5%d0%bc-iscsi-%d0%bf%d1%80%d0%be%d1%82%d0%be%d0%ba%d0%be%d0%bb","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=2047","title":{"rendered":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c iSCSI \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b"},"content":{"rendered":"<p><strong>iSCSI<\/strong> (\u0430\u043d\u0433\u043b. <strong>Internet Small Computer System Interface<\/strong>) \u2014 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0430\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 <strong>TCP\/IP<\/strong> \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438 \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438. \u0412 \u0441\u0432\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0440\u0435\u0434\u0443 <strong>Ethernet<\/strong> (<strong>1Gb\/s<\/strong>, <strong>10Gb\/s<\/strong>) \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u043f\u043e \u0441\u0443\u0442\u0438: \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0432 \u0441\u0435\u0442\u0438 \u0438 \u0445\u043e\u0442\u0438\u043c \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u043d\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e <strong>FTP\/HTTP<\/strong>, \u043d\u043e \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043d\u043e\u0432\u0435\u0435 \u0438 \u043b\u0443\u0447\u0448\u0435.<\/p>\n<p>\u041d\u0435\u043f\u043b\u043e\u0445\u043e\u0439 \u043e\u0431\u0437\u043e\u0440 \u0434\u043b\u044f <strong>Linux<\/strong> \u043e\u043f\u0438\u0441\u0430\u043d <a href=\"http:\/\/habrahabr.ru\/post\/200466\/\" target=\"_blank\" rel=\"nofollow noopener\">\u0437\u0434\u0435\u0441\u044c<\/a> , \u0430 \u0437\u0434\u0435\u0441\u044c <a href=\"https:\/\/mezzantrop.wordpress.com\/wp-content\/uploads\/2016\/10\/first-look-at-the-renewed-ctl-high-availability-implementation-in-freebsd-v1-1.pdf\">\u0430\u043d\u0430\u043b\u043e\u0433<\/a> \u043f\u043e\u0434 <strong>FreeBSD<\/strong><\/p>\n<p><!--more--><em><strong><span style=\"color: #008000;\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434<\/span><\/strong><\/em>: <strong>Solaris 10\/11<\/strong>.<\/p>\n<p><em><strong><span style=\"color: #ff6600;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/span><\/strong><\/em><\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 <strong>ISCSI<\/strong> \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f <strong><em><span style=\"color: #ff0000;\">\u0422\u041e\u041b\u042c\u041a\u041e \u0412 \u0413\u041b\u041e\u0411\u0410\u041b\u042c\u041d\u041e\u0419 \u0417\u041e\u041d\u0415<\/span><\/em><\/strong>. \u0415\u0441\u043b\u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0432 \u043d\u0435\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u043e\u043d\u0435, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0442\u0430\u043a\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:<\/p>\n<p><code>pkgadd: ERROR: The package &lt;SUNWiscsir&gt; may only be installed by the global zone administrator<\/code><\/p>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e\u0431 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 10 \u0438 11, \u0442\u0430\u043a \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f.<\/p>\n<h1><strong><span style=\"color: #0000ff;\">Solaris 10<\/span><\/strong><\/h1>\n<p><strong><span style=\"color: #ff0000;\">1) \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432.<\/span><\/strong><\/p>\n<p>\u0414\u043b\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u0442\u0430\u043a\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b:\u00a0<strong>SUNWiscsir,\u00a0SUNWiscsitgtr,\u00a0SUNWiscsitgtr,\u00a0SUNWiscsiu<\/strong>.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0441\u044f 2 \u0441\u043b\u0443\u0436\u0431\u044b, \u043e\u0434\u043d\u0430 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430:<\/p>\n<p><code># svcs -a | grep -i iscsi<br \/>\ndisabled 7:02:49 svc:\/network\/iscsi_initiator:default<br \/>\nonline 19:21:01 svc:\/system\/iscsitgt:default<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">2) \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/span><\/strong><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e <strong>iscsi-<\/strong>\u0434\u0438\u0441\u043a\u0430<\/p>\n<p><code>#zfs create rpool\/test_iscsi<br \/>\n#zfs set shareiscsi=on rpool\/test_iscsi<br \/>\n#zfs set mountpoint=\/test_iscsi\u00a0rpool\/test_iscsi<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">3) \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/span><\/strong><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c <strong>iscsi<\/strong>-\u0434\u0438\u0441\u043a<\/p>\n<p><code>#iscsitadm modify admin -d \/test_iscsi\/<br \/>\n#iscsitadm create target --size 2g test-iscsi<\/code><\/p>\n<p>\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u043b\u0443\u0436\u0431\u0443:<\/p>\n<p><code># svcadm enable svc:\/network\/iscsi_initiator:default<br \/>\n# svcs -a | grep iscsi<br \/>\nonline 14:25:11 svc:\/network\/iscsi\/initiator:default<br \/>\nonline 14:28:25 svc:\/system\/iscsitgt:default<\/code><\/p>\n<p>\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a <strong>iscsi<\/strong>-\u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435:<\/p>\n<p><code># iscsitadm list target -v test-iscsi<br \/>\nTarget: test-iscsi<br \/>\niSCSI Name: iqn.1986-03.com.sun:02:e237557f-657d-e0ce-d674-f4e74f5f078b.test-iscsi<br \/>\nConnections: 1<br \/>\nInitiator:<br \/>\niSCSI Name: iqn.1986-03.com.sun:01:2a85def5ffff.4eb429b5<br \/>\nAlias: skel-solaris<br \/>\nACL list:<br \/>\nTPGT list:<br \/>\nLUN information:<br \/>\nLUN: 0<br \/>\nGUID: 600144f04ecb956800000c2905c9a700<br \/>\nVID: SUN<br \/>\nPID: SOLARIS<br \/>\nType: disk<br \/>\nSize: 2.0G<br \/>\nStatus: unknown<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435, \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 <strong>10.10.10.10<\/strong> \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/p>\n<p><code># iscsiadm add isns-server 10.10.10.10:3205<br \/>\n# iscsiadm modify discovery --static enable<br \/>\n# iscsiadm list discovery-address -v<br \/>\nDiscovery Address: 10.10.10.10:3260<br \/>\nTarget name: iqn.1986-03.com.sun:02:e237557f-657d-e0ce-d674-f4e74f5f078b.test-iscsi<br \/>\nTarget address: 10.10.10.10:3260, 1<br \/>\nTarget name: iqn.1986-03.com.sun:02:e237557f-657d-e0ce-d674-f4e74f5f078b.test-iscsi<br \/>\nTarget address: 10.10.10.10:3260, 1<\/code><\/p>\n<h1><strong><span style=\"color: #0000ff;\">Solaris 11<\/span><\/strong><\/h1>\n<p><strong><span style=\"color: #ff0000;\">1) \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432.<\/span><\/strong><\/p>\n<p>\u0412 <strong>11<\/strong> \u0432\u0435\u0440\u0441\u0438\u0438 \u0442\u0435\u043f\u0435\u0440\u044c<strong> iscsi<\/strong> \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e \u043f\u0430\u043a\u0435\u0442\u0430 <strong>storage-server<\/strong> (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0441\u0435\u0431\u044f \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 <strong>Samb&#8217;y, X11, ruby<\/strong> \u0438 \u0434\u0440\u0443\u0433\u0438\u0435) \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f.<\/p>\n<p><code>#pkg install storage-server SUNWiscsit<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">2) \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/span><\/strong><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443:<\/p>\n<p><code>#zfs create -V 2g rpool\/iscsi<\/code><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u0435\u0440\u0432\u0438\u0441:<\/p>\n<p><code># svcs -a | grep stmf<br \/>\ndisabled 18:55:03 svc:\/system\/stmf:default<br \/>\n# svcadm enable stmf<br \/>\n# svcs -a | grep stmf<br \/>\nonline 18:56:30 svc:\/system\/stmf:default<\/code><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c <strong>LUN<\/strong><\/p>\n<pre># stmfadm create-lu \/dev\/zvol\/rdsk\/rpool\/iscsi\nLogical unit created: 600144F0515DC30000004EDE49830001<\/pre>\n<pre># stmfadm list-lu\nLU Name: 600144F0515DC30000004EDE49830001<\/pre>\n<pre># stmfadm add-view 600144F0C49A050000004CC84BE20001<\/pre>\n<pre># stmfadm list-view -l 600144F0C49A050000004CC84BE20001\nView Entry: 0\n    Host group   : All\n    Target group : All\n    LUN          : 0<\/pre>\n<pre># sbdadm list-lu\nFound 1 LU(s)\n\n              GUID                    DATA SIZE           SOURCE\n--------------------------------  -------------------  ----------------\n600144f0515dc30000004ede49830001  2147483648           \/dev\/zvol\/rdsk\/rpool\/iscsi<\/pre>\n<pre># stmfadm list-lu -v\nLU Name: 600144F0515DC30000004EDE49830001\n    Operational Status: Online\n    Provider Name     : sbd\n    Alias             : \/dev\/zvol\/rdsk\/rpool\/iscsi\n    View Entry Count  : 0\n    Data File         : \/dev\/zvol\/rdsk\/rpool\/iscsi\n    Meta File         : not set\n    Size              : 2147483648\n    Block Size        : 512\n    Management URL    : not set\n    Vendor ID         : SUN\n    Product ID        : COMSTAR\n    Serial Num        : not set\n    Write Protect     : Disabled\n    Writeback Cache   : Enabled\n    Access State      : Active\nLU Name: 600144F0C49A050000004CC84BE20001\n    Operational Status: unregistered\n    Provider Name     : unregistered\n    Alias             : -\n    View Entry Count  : 1<\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u043b\u0443\u0436\u0431\u0443 \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c <strong>iscsi-target<\/strong><\/p>\n<p><code>#svcadm enable -r svc:\/network\/iscsi\/target:default<br \/>\n#itadm create-target<br \/>\nTarget iqn.1986-03.com.sun:02:f5de6642-3611-ed59-c3d1-811b39cf571d successfully created<\/code><\/p>\n<pre># itadm list-target\nTARGET NAME                                                  STATE    SESSIONS\niqn.1986-03.com.sun:02:f5de6642-3611-ed59-c3d1-811b39cf571d  online   0<\/pre>\n<p>\u041d\u043e \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u0449\u0438\u0442\u0443, \u0447\u0442\u043e \u0431\u044b \u043a <strong>target&#8217;y<\/strong> \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0443-\u0443\u0433\u043e\u0434\u043d\u043e:<\/p>\n<p><code># itadm create-target -l alias_name -a chap<br \/>\n# itadm create-initiator -s -u username iqn.1986-03.com.sun:01:e00000000000.83647254<\/code><\/p>\n<p>\u0433\u0434\u0435 <strong>iqn.1986-03.com.sun:01:e00000000000.83647254<\/strong> &#8211; <strong>iqn<\/strong> \u043d\u0430\u0448\u0435\u0433\u043e <strong>initiatora<\/strong>. \u041f\u0440\u0438 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0448\u0435\u043d \u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<p><strong><span style=\"color: #ff0000;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/span><\/strong><\/p>\n<p>(\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439)<\/p>\n<p><em><span style=\"color: #ff6600;\">\u0415\u0441\u043b\u0438 \u0432\u0430\u0448\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u0430\u044f \u043f\u043b\u0430\u0442\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 VT-d (IOMMU IO \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f), \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0435\u0433\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u043a\u043e 2-\u043c\u0443 \u044d\u0442\u0430\u043f\u0443 (\u044d\u0442\u043e \u0431\u0430\u0433, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 oracle \u043d\u0435 \u0441\u043f\u0435\u0448\u0438\u0442 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c). \u0415\u0441\u043b\u0438 \u0436\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u2014 \u0442\u043e\u0433\u0434\u0430 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c 1-\u044b\u0439 \u044d\u0442\u0430\u043f, \u0430 \u0437\u0430 \u043d\u0438\u043c 2-\u043e\u0439.<\/span><\/em><\/p>\n<p>\u0427\u0442\u043e \u0431\u044b \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u0440\u0442 \u0432 \u0440\u0435\u0436\u0438\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,\u00a0<strong>target\u2019a<\/strong>\u00a0\u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u0432 2 \u044d\u0442\u0430\u043f\u0430:<\/p>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u0442\u0430\u043f<\/span><\/strong><\/em><\/p>\n<p><code># update_drv -a -i '\/pci@0,0\/pci1002,5a1f@b\/pci1077,138@0,1\/fp@0,0' qlt<br \/>\ndevfsadm: driver failed to attach: qlt<br \/>\nWarning: Driver (qlt) successfully added to system but failed to attach.<\/code><\/p>\n<p>\u0433\u0434\u0435 \u043f\u0443\u0442\u044c \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u0438\u0437 \u0432\u044b\u0432\u043e\u0434\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b (<strong>luxadm -e port)<\/strong>\u00a0\u0438<strong>\/pci@0,0\/pci1002,5a1f@b\/pci1077,138@0,1\/fp@0,0<\/strong>\u00a0\u2013 \u043f\u0443\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u00a0<strong>\/devices<\/strong>.<\/p>\n<p>\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u043b\u0438\u0448\u044c \u0442\u043e, \u0447\u0442\u043e \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u043d\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u2013 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u0440\u0443\u0436\u0435\u043d \u043f\u0440\u0438 \u0440\u0435\u0431\u0443\u0442\u0435.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c<\/p>\n<p><code># init 6<\/code><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">&#8211; \u0432\u0442\u043e\u0440\u043e\u0439 \u044d\u0442\u0430\u043f<\/span><\/strong><\/em><\/p>\n<p><code># update_drv -d -i 'pciex1077,2432' qlc<br \/>\nCannot unload module: qlc<br \/>\nWill be unloaded upon reboot.<br \/>\n# update_drv -a -i 'pciex1077,2432' qlt<br \/>\ndevfsadm: driver failed to attach: qlt<br \/>\nWarning: Driver (qlt) successfully added to system but failed to attach<\/code><\/p>\n<p>\u0438 \u0440\u0435\u0431\u0443\u0442<\/p>\n<p><code># init 6<\/code><\/p>\n<p>\u0412\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0443\u0442\u0441\u044f \u0432 \u0440\u0435\u0436\u0438\u043c\u00a0<strong>Target\u2019a<\/strong>. \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:<\/p>\n<pre># fcinfo hba-port\nHBA Port WWN: 21000024ff2f301c\n        Port Mode: Target\n        Port ID: 10600\n        OS Device Name: Not Applicable\n        Manufacturer: QLogic Corp.\n        Model: QLE2462\n        Firmware Version: 5.2.1\n        FCode\/BIOS Version: N\/A\n        Serial Number: not available\n        Driver Name: COMSTAR QLT\n        Driver Version: 20100505-1.05\n        Type: F-port\n        State: online\n        Supported Speeds: 1Gb 2Gb 4Gb\n        Current Speed: 4Gb\n        Node WWN: 20000024ff2f301c\nHBA Port WWN: 21000024ff2f301d\n        Port Mode: Target\n        Port ID: 0\n        OS Device Name: Not Applicable\n        Manufacturer: QLogic Corp.\n        Model: QLE2462\n        Firmware Version: 5.2.1\n        FCode\/BIOS Version: N\/A\n        Serial Number: not available\n        Driver Name: COMSTAR QLT\n        Driver Version: 20100505-1.05\n        Type: unknown\n        State: offline\n        Supported Speeds: 1Gb 2Gb 4Gb\n        Current Speed: not established\n        Node WWN: 20000024ff2f301d<\/pre>\n<p><strong><span style=\"color: #ff0000;\">3) \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 target&#8217;\u043e\u0432 \u043d\u0430 initiator&#8217;e.<\/span><\/strong><\/p>\n<p><code># iscsiadm add static-config iqn.1986-03.com.sun:02:f5de6642-3611-ed59-c3d1-811b39cf571d,1.2.3.4<\/code><\/p>\n<p>\u0433\u0434\u0435 <strong>UID<\/strong>-\u0431\u0435\u0440\u0451\u043c \u0438\u0437 <strong>target&#8217;a<\/strong>, <strong>ip<\/strong> &#8211; \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e<strong> IP-target&#8217;a<\/strong>.<\/p>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<\/p>\n<p><code># iscsiadm list static-config<br \/>\nStatic Configuration Target: iqn.1986-03.com.sun:02:f5de6642-3611-ed59-c3d1-811b39cf571d,1.2.3.4:3260<br \/>\n<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0443 \u0432\u0430\u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e<strong> iSCSI<\/strong> \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0435 \u0435\u0449\u0451 \u043d\u043e\u0432\u044b\u0435, \u0442\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u0433\u0434\u0435 \u043a\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f. \u0427\u0442\u043e \u0431\u044b \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432 <strong>\/var\/adm\/messages<\/strong> \u0438 \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<p><code>Sep 23 13:31:40 sr600 iscsi: [ID 559844 kern.info] NOTICE: iscsi session(49) iqn.1986-03.com.sun:02:a476023a-d971-ea8a-9c0a-95282fc52ddc online<br \/>\nSep 23 13:31:40 sr600 scsi: [ID 583861 kern.info] sd43 at scsi_vhci0: unit-address g600144f054bc4800000052403c400001: f_tpgs<br \/>\nSep 23 13:31:40 sr600 genunix: [ID 936769 kern.info] sd43 is \/scsi_vhci\/disk@g600144f054bc4800000052403c400001<br \/>\nSep 23 13:31:40 sr600 genunix: [ID 408114 kern.info] \/scsi_vhci\/disk@g600144f054bc4800000052403c400001 (sd43) online<br \/>\nSep 23 13:31:40 sr600 genunix: [ID 483743 kern.info] \/scsi_vhci\/disk@g600144f054bc4800000052403c400001 (sd43) multipath status: degraded: path 10 iscsi0\/disk@0000iqn.1986-03.com.sun:02:a476023a-d971-ea8a-9c0a-95282fc52ddc0001,0 is online<br \/>\nSep 23 13:32:36 sr600 iscsi: [ID 559844 kern.info] NOTICE: iscsi session(54) iqn.1986-03.com.sun:02:1965e5d0-d6c5-c58c-f4e4-837afee50606 online<br \/>\nSep 23 13:32:36 sr600 scsi: [ID 583861 kern.info] sd44 at scsi_vhci0: unit-address g600144f0d825cd00000052403d520001: f_tpgs<br \/>\nSep 23 13:32:36 sr600 genunix: [ID 936769 kern.info] sd44 is \/scsi_vhci\/disk@g600144f0d825cd00000052403d520001<br \/>\nSep 23 13:32:36 sr600 genunix: [ID 408114 kern.info] \/scsi_vhci\/disk@g600144f0d825cd00000052403d520001 (sd44) online<br \/>\nSep 23 13:32:36 sr600 genunix: [ID 483743 kern.info] \/scsi_vhci\/disk@g600144f0d825cd00000052403d520001 (sd44) multipath status: degraded: path 11 iscsi0\/disk@0000iqn.1986-03.com.sun:02:1965e5d0-d6c5-c58c-f4e4-837afee506060001,0 is online<br \/>\n<\/code><br \/>\n\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0442\u043e \u0435\u0441\u0442\u044c \u043a\u0442\u043e: \u043d\u0430\u0448\u0438 <strong>target&#8217;\u044b<\/strong> \u0443\u0432\u0438\u0434\u044f\u0442\u0441\u044f \u043a\u0430\u043a <strong>600144f054bc4800000052403c4, 600144f0d825cd00000052403d52<\/strong> \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>format<\/strong> \u0438\u043b\u0438 <strong>iostat -En<\/strong><\/p>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u0433\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 <strong>iSCSI<\/strong>(\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0430 <strong>target&#8217;e<\/strong>):<\/p>\n<pre># stmfadm list-target -v\nTarget: iqn.1986-03.com.sun:02:314701c8-2d45-4530-c0c5-c96bf790241d\n    Operational Status: Online\n    Provider Name     : iscsit\n    Alias             : -\n    Protocol          : iSCSI\n    Sessions          : 1\n        Initiator: iqn.1986-03.com.sun:01:e00000000000.4eefe7ae\n            Alias: -\n            Logged in since: Mon Oct 14 21:01:38 2013\nTarget: wwn.21000024FF2EB9F9\n    Operational Status: Online\n    Provider Name     : qlt\n    Alias             : qlt1,0\n    Protocol          : Fibre Channel\n    Sessions          : 0\nTarget: wwn.21000024FF2EB9F8\n    Operational Status: Online\n    Provider Name     : qlt\n    Alias             : qlt0,0\n    Protocol          : Fibre Channel\n    Sessions          : 0<\/pre>\n<p><strong><span style=\"color: #ff0000;\">Multipathing<\/span><\/strong><\/p>\n<p>\u041f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e <strong>multipathing<\/strong>: \u044d\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0443\u0442\u0435\u0439 \u0434\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0441 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u0438 \u0438 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0438 . \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0442\u0430\u043a \u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440).<\/p>\n<p>\u041f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 <strong>FC\/iSCSI<\/strong> \u043e\u0447\u0435\u043d\u044c \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438 <strong>multipathing<\/strong>.<\/p>\n<p>\u041e\u0447\u0435\u043d\u044c \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0439 <strong>tutorial<\/strong> \u043f\u043e <strong>multipathing<\/strong> \u043e\u043f\u0438\u0441\u0430\u043d <a title=\"\u0437\u0434\u0435\u0441\u044c\" href=\"http:\/\/www.unixpin.com\/wordpress\/2009\/09\/21\/solaris-multipating-mpxio-stms\/\" target=\"_blank\" rel=\"nofollow noopener\">\u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>iSCSI (\u0430\u043d\u0433\u043b. Internet Small Computer System Interface) \u2014 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0430\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 TCP\/IP \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438 \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438. \u0412 \u0441\u0432\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0440\u0435\u0434\u0443 Ethernet (1Gb\/s, 10Gb\/s) \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u043e \u0441\u0443\u0442\u0438: \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0432 \u0441\u0435\u0442\u0438 \u0438 \u0445\u043e\u0442\u0438\u043c \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u043d\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-2047","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2047"}],"version-history":[{"count":23,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2047\/revisions"}],"predecessor-version":[{"id":6440,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2047\/revisions\/6440"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}