<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"MS 明朝";}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:Calibri;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:Calibri;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Calibri;
color:windowtext;}
span.msoIns
{mso-style-type:export-only;
mso-style-name:"";
text-decoration:underline;
color:teal;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Oh, and I forgot to add that when I try to create the LUN with the implementation=”lio” parameter, I see the following:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">[root@hdc1anas002 ec2-user]# pcs resource create hdcvbnas_lun0 ocf:heartbeat:iSCSILogicalUnit target_iqn="iqn.2016-07.local.hsinawsdev:hdcvadbs-witness" lun="0" path=/dev/drbd1 implementation="lio" op monitor
interval=15s<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">[root@hdc1anas002 ec2-user]# pcs status<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Cluster name: hdcvbnas<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Last updated: Wed Jul 13 16:29:36 2016 Last change: Wed Jul 13 16:29:33 2016 by root via cibadmin on hdc1anas002<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Stack: corosync<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Current DC: hdc1anas002 (version 1.1.13-10.el7-44eb2dd) - partition with quorum<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">2 nodes and 7 resources configured<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Online: [ hdc1anas002 hdc1bnas002 ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Full list of resources:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Master/Slave Set: hdcvbnas_tgtclone [hdcvbnas_tgt]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Masters: [ hdc1anas002 ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Slaves: [ hdc1bnas002 ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">hdcvbnas_tgtfs (ocf::heartbeat:Filesystem): Started hdc1anas002<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">hdcvbnas_ip0 (ocf::heartbeat:IPaddr2): Started hdc1anas002<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">hdcvbnas_ip1 (ocf::heartbeat:IPaddr2): Started hdc1bnas002<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">hdcvbnas_tgtsvc (ocf::heartbeat:iSCSITarget): Started hdc1bnas002<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">hdcvbnas_lun0 (ocf::heartbeat:iSCSILogicalUnit): FAILED hdc1anas002 (unmanaged)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Failed Actions:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">* hdcvbnas_lun0_stop_0 on hdc1anas002 'not installed' (5): call=251, status=complete, exitreason='Setup problem: couldn't find command: tcm_node',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> last-rc-change='Wed Jul 13 16:29:33 2016', queued=0ms, exec=31ms<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F4E79">--</span><span style="font-size:11.0pt;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F4E79"> </span><span style="font-size:11.0pt;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:14.0pt;color:#27628C">[ jR ]</span></b><span style="font-size:14.0pt;color:#27628C"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F4E79"> M: +1 (703) 628-2621</span><span style="font-size:11.0pt;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F4E79"> @: <a href="mailto:jason@eramsey.org"><span style="color:blue">jason@eramsey.org</span></a></span><span style="font-size:11.0pt;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F4E79"> </span><span style="font-size:11.0pt;color:black"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F4E79"> </span><i><span style="font-size:9.0pt;color:#1F4E79">there is no path to greatness; greatness is the path</span></i><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">Jason Ramsey <jason@eramsey.org><br>
<b>Reply-To: </b>Cluster Labs - All topics related to open-source clustering welcomed <users@clusterlabs.org><br>
<b>Date: </b>Wednesday, July 13, 2016 at 4:02 PM<br>
<b>To: </b>"users@clusterlabs.org" <users@clusterlabs.org><br>
<b>Subject: </b>[ClusterLabs] HA iSCSITarget Using FileIO<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman""><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">I’m having some difficulty setting up a PCS/Corosync HA iSCSI target. I’m able to create the iSCSI target resource (it spins up the target service properly when the pcs command is issued. However, when I attempt
to create a LUN, I get nothing but error messages. This works:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">pcs resource create hdcvbnas_tgtsvc ocf:heartbeat:iSCSITarget iqn=”iqn.2016-07.local.hsinawsdev:hdcvadbs-witness” op monitor interval=15s</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">But this does not:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">pcs resource create hdcvbnas_tgtsvc ocf:heartbeat:iSCSITarget iqn=”iqn.2016-07.local.hsinawsdev:hdcvadbs-witness” implementation=”lio” portals=”10.0.96.100 10.0.96.101” op monitor interval=15s</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Also, when the first (working) command is issued, the creation of the LUN does not:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">pcs resource create hdcvbnas_lun0 ocf:heartbeat:iSCSILogicalUnit target_iqn=”iqn.2016-07.local.hsinawsdev:hdcvadbs-witness” lun=”0” path=/dev/drbd1 op monitor interval=15s</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Here’s the results:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">[root@hdc1anas002 ec2-user]# pcs status</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Cluster name: hdcvbnas</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Last updated: Wed Jul 13 15:59:05 2016 Last change: Wed Jul 13 15:59:03 2016 by root via cibadmin on hdc1anas002</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Stack: corosync</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Current DC: hdc1anas002 (version 1.1.13-10.el7-44eb2dd) - partition with quorum</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">2 nodes and 7 resources configured</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Online: [ hdc1anas002 hdc1bnas002 ]</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Full list of resources:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Master/Slave Set: hdcvbnas_tgtclone [hdcvbnas_tgt]</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Masters: [ hdc1anas002 ]</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Slaves: [ hdc1bnas002 ]</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">hdcvbnas_tgtfs (ocf::heartbeat:Filesystem): Started hdc1anas002</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">hdcvbnas_ip0 (ocf::heartbeat:IPaddr2): Started hdc1anas002</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">hdcvbnas_ip1 (ocf::heartbeat:IPaddr2): Started hdc1bnas002</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">hdcvbnas_tgtsvc (ocf::heartbeat:iSCSITarget): Started hdc1bnas002</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">hdcvbnas_lun0 (ocf::heartbeat:iSCSILogicalUnit): Stopped</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Failed Actions:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">* hdcvbnas_lun0_start_0 on hdc1anas002 'unknown error' (1): call=243, status=complete, exitreason='none',</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> last-rc-change='Wed Jul 13 15:59:03 2016', queued=0ms, exec=123ms</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">* hdcvbnas_lun0_start_0 on hdc1bnas002 'unknown error' (1): call=257, status=complete, exitreason='none',</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> last-rc-change='Wed Jul 13 15:59:03 2016', queued=0ms, exec=124ms</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">PCSD Status:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> hdc1anas002: Online</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> hdc1bnas002: Online</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Daemon Status:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> corosync: active/disabled</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> pacemaker: active/disabled</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> pcsd: active/enabled</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Unfortunately, neither the corosync nor syslog logs provide any information that is remotely helpful in troubleshooting this. I appreciate any help you might provide.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F4E79">--</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F4E79"> </span><o:p></o:p></p>
<p class="MsoNormal"><b><span style="font-size:14.0pt;color:#27628C">[ jR ]</span></b><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F4E79"> @: <a href="mailto:jason@eramsey.org"><span style="color:blue">jason@eramsey.org</span></a></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F4E79"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F4E79"> </span><i><span style="font-size:9.0pt;color:#1F4E79">there is no path to greatness; greatness is the path</span></i><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>