<font size=2 face="sans-serif">Sorry</font>
<br>
<br><font size=2 face="sans-serif">With cat</font>
<br>
<br><font size=2 face="sans-serif">[root@specscale01 IBM_REPO]# cp test
a</font>
<br><font size=2 face="sans-serif">[root@specscale01 IBM_REPO]# cat a a
a a &gt; test &amp;&amp; grep ATAG test | wc -l &amp;&amp; sleep 4 &amp;&amp;
grep ATAG test | wc -l</font>
<br><font size=2 face="sans-serif">0</font>
<br><font size=2 face="sans-serif">0</font>
<br><font size=2 face="sans-serif">--<br>
Ystvllisin terveisin / Kind regards / Saludos cordiales / Salutations<br>
Luis Bolinches<br>
Consultant IT Specialist<br>
Mobile Phone: +358503112585<br>
</font><a href="https://www.youracclaim.com/user/luis-bolinches"><font size=2 face="sans-serif">https://www.youracclaim.com/user/luis-bolinches</font></a><font size=2 face="sans-serif"><br>
<br>
&quot;If you always give you will always have&quot; -- &nbsp;Anonymous</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Luis Bolinches &lt;luis.bolinches@fi.ibm.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">gpfsug main discussion
list &lt;gpfsug-discuss@spectrumscale.org&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">14/02/2018 08:49</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [gpfsug-discuss]
Odd behavior with cat followed by grep.</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">gpfsug-discuss-bounces@spectrumscale.org</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=2 face="sans-serif">Hi</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
This seems to be setup specific</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Care to explain a bit more of the setup. Number of nodes GPFS versions,
number of FS, Networking, running from admin node, server / client, number
of NSD, separated meta and data, etc?</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
I got interested and run a quick test on a gpfs far from powerful cluster
of 3 nodes on KVM</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
[root@specscale01 IBM_REPO]# echo &quot;a a a a a a a a a a&quot; &gt;
test &amp;&amp; grep ATAG test | wc -l &amp;&amp; sleep 4 &amp;&amp; grep
ATAG test | wc -l</font><font size=3> </font><font size=2 face="sans-serif"><br>
0</font><font size=3> </font><font size=2 face="sans-serif"><br>
0</font><font size=3> </font><font size=2 face="sans-serif"><br>
[root@specscale01 IBM_REPO]#</font><font size=3> <br>
<br>
</font><font size=2 face="sans-serif"><br>
--<br>
Ystvllisin terveisin / Kind regards / Saludos cordiales / Salutations<br>
Luis Bolinches<br>
Consultant IT Specialist<br>
Mobile Phone: +358503112585</font><font size=3 color=blue><u><br>
</u></font><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.youracclaim.com_user_luis-2Dbolinches&amp;d=DwMFAw&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=1mZ896psa5caYzBeaugTlc7TtRejJp3uvKYxas3S7Xc&amp;m=HrR-mBJ82ubcbtBin7NGVl2VenLj726Fcah6-3XFvDs&amp;s=hGQKSxR54bjW2i9KVDRpflHxrMcJhY269FZkQGWHtLI&amp;e="><font size=2 color=blue face="sans-serif"><u>https://www.youracclaim.com/user/luis-bolinches</u></font></a><font size=2 face="sans-serif"><br>
<br>
&quot;If you always give you will always have&quot; -- &nbsp;Anonymous</font><font size=3>
<br>
<br>
<br>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
From: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">John
Hanks &lt;griznog@gmail.com&gt;</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
To: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">gpfsug-discuss
&lt;gpfsug-discuss@spectrumscale.org&gt;</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Date: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">14/02/2018
07:33</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Subject: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">[gpfsug-discuss]
Odd behavior with cat followed by grep.</font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Sent by: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">gpfsug-discuss-bounces@spectrumscale.org</font><font size=3>
<br>
</font>
<hr noshade><font size=3><br>
<br>
<br>
Hi, <br>
<br>
We have a GPFS filesystem mounted on CentOS 7.4 as type gpfs, pretty straightforward
run of the mill stuff. But are seeing this odd behavior. If I do this in
a shell script, given a file called &quot;a&quot; <br>
<br>
cat a a a a a a a a a a &gt; /path/to/gpfs/mount/test <br>
grep ATAG /path/to/gpfs/mount/test | wc -l <br>
sleep 4 <br>
grep ATAG /path/to/gpfs/mount/test | wc -l <br>
<br>
The first grep | wc -l returns 1, because grep outputs &nbsp;&quot;Binary
file /path/to/gpfs/mount/test matches&quot; <br>
<br>
The second grep | wc -l returns the correct count of ATAG in the file.
<br>
<br>
Why does it take 4 seconds (3 isn't enough) for that file to be properly
recognized as a text file and/or why is it seen as a binary file in the
first place since a is a plain text file? <br>
<br>
Note that I have the same filesystem mounted via NFS and over an NFS mount
it works as expected. <br>
<br>
Any illumination is appreciated, <br>
<br>
jbh</font><tt><font size=2>_______________________________________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at spectrumscale.org</font></tt><font size=3 color=blue><u><br>
</u></font><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&amp;d=DwICAg&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=1mZ896psa5caYzBeaugTlc7TtRejJp3uvKYxas3S7Xc&amp;m=ut35qIIMxjZMX3obFJ2xtUMng4MtGtKz4YHxpkgQbak&amp;s=cNt66GjRD6rVhq7nGcvT76l-0_u2C3UTz9SfwzHf1xw&amp;e="><tt><font size=2 color=blue><u>https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&amp;d=DwICAg&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=1mZ896psa5caYzBeaugTlc7TtRejJp3uvKYxas3S7Xc&amp;m=ut35qIIMxjZMX3obFJ2xtUMng4MtGtKz4YHxpkgQbak&amp;s=cNt66GjRD6rVhq7nGcvT76l-0_u2C3UTz9SfwzHf1xw&amp;e=</u></font></tt></a><font size=3><br>
<br>
</font><font size=2 face="sans-serif"><br>
<br>
<br>
Ellei edell ole toisin mainittu: / Unless stated otherwise above:<br>
Oy IBM Finland Ab<br>
PL 265, 00101 Helsinki, Finland<br>
Business ID, Y-tunnus: 0195876-3 <br>
Registered in Finland</font><tt><font size=2>_______________________________________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at spectrumscale.org<br>
</font></tt><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&amp;d=DwICAg&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=1mZ896psa5caYzBeaugTlc7TtRejJp3uvKYxas3S7Xc&amp;m=HrR-mBJ82ubcbtBin7NGVl2VenLj726Fcah6-3XFvDs&amp;s=d5YiAyXz4el9bF0zjGL9gVjnTfbX4z-qelZodxRqlz0&amp;e="><tt><font size=2>https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&amp;d=DwICAg&amp;c=jf_iaSHvJObTbx-siA1ZOg&amp;r=1mZ896psa5caYzBeaugTlc7TtRejJp3uvKYxas3S7Xc&amp;m=HrR-mBJ82ubcbtBin7NGVl2VenLj726Fcah6-3XFvDs&amp;s=d5YiAyXz4el9bF0zjGL9gVjnTfbX4z-qelZodxRqlz0&amp;e=</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br><font size=2 face="sans-serif"><br>
<br>
Ellei edell ole toisin mainittu: / Unless stated otherwise above:<br>
Oy IBM Finland Ab<br>
PL 265, 00101 Helsinki, Finland<br>
Business ID, Y-tunnus: 0195876-3 <br>
Registered in Finland<br>
</font>