{"id":1158,"date":"2014-01-27T10:05:49","date_gmt":"2014-01-27T15:05:49","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=1158"},"modified":"2014-01-27T10:05:49","modified_gmt":"2014-01-27T15:05:49","slug":"iscsi-and-iscsiadm","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2014\/01\/iscsi-and-iscsiadm\/","title":{"rendered":"iSCSI and iSCSIadm"},"content":{"rendered":"<p>On a development Oracle environment we were running Oracle (RHEL 6.x) on a Dell PowerEdge R510 server and connected via iSCSI to a SuperMicro NAS (Nas4Free 9.1.x) on a bonded 1Gb ethernet switch (LACP on Cisco).  We then changed out the one SuperMicro NAS for an updated and larger NAS and reconnected to the Oracle environment.  Unfortunately we also saw attempts to contact the old\/retired NAS on iSCSI.<\/p>\n<p><strong>View all iSCSI sessions<\/strong><br \/>\n<code>iscsiadm -m session<\/code><\/p>\n<blockquote><p>tcp: [2] 10.10.0.137:3260,1 iqn.2013.us.temp.zfs.freenas1:disk0<br \/>\ntcp: [3] 10.10.0.138:3260,1 iqn.2014.us.temp.zfs.freenas2:disk0<\/p><\/blockquote>\n<p><strong>Logout of an iSCSI connection<\/strong><br \/>\n<code>iscsiadm -m node --targetname \"iqn.2014.us.temp.zfs.freenas2:disk0\" --logout<\/code><\/p>\n<blockquote><p>Logging out of session successful<\/p><\/blockquote>\n<p><strong>Discover all available iSCSI on a host<\/strong><br \/>\n<code>iscsiadm -m discovery -t st -p IPADDRESSOFHOST_ORGROUP<\/code><\/p>\n<p><strong>Login to all discovered iSCSI<\/strong><br \/>\n<code>iscsiadm -m node --loginall=all<\/code><\/p>\n<p><strong>Login to specific iSCSI target<\/strong><br \/>\n<code>iscsiadm -m node -T FQN_IQN:DISK_NUMBER -l -p IPADDRESSOFHOST_ORGROUP<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On a development Oracle environment we were running Oracle (RHEL 6.x) on a Dell PowerEdge R510 server and connected via iSCSI to a SuperMicro NAS (Nas4Free 9.1.x) on a bonded 1Gb ethernet switch (LACP on Cisco). We then changed out the one SuperMicro NAS for an updated and larger NAS and reconnected to the Oracle &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2014\/01\/iscsi-and-iscsiadm\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">iSCSI and iSCSIadm<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1158","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1158"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1158\/revisions"}],"predecessor-version":[{"id":1159,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1158\/revisions\/1159"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}