<font size=2 face="sans-serif">Hi</font>
<br>
<br><font size=2 face="sans-serif">This seems to be setup specific</font>
<br>
<br><font size=2 face="sans-serif">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>
<br>
<br><font size=2 face="sans-serif">I got interested and run a quick test
on a gpfs far from powerful cluster of 3 nodes on KVM</font>
<br>
<br><font size=2 face="sans-serif">[root@specscale01 IBM_REPO]# echo "a
a a a a a a a a a" > test && grep ATAG test | wc -l &&
sleep 4 && 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">[root@specscale01 IBM_REPO]#</font>
<br>
<br>
<br><font size=2 face="sans-serif">--<br>
Ystävällisin 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>
"If you always give you will always have" --  Anonymous</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">John Hanks <griznog@gmail.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">gpfsug-discuss <gpfsug-discuss@spectrumscale.org></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">14/02/2018 07:33</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">[gpfsug-discuss]
Odd behavior with cat followed by grep.</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by:    
   </font><font size=1 face="sans-serif">gpfsug-discuss-bounces@spectrumscale.org</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Hi,</font>
<br>
<br><font size=3>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 "a"</font>
<br>
<br><font size=3>cat a a a a a a a a a a > /path/to/gpfs/mount/test</font>
<br><font size=3>grep ATAG /path/to/gpfs/mount/test | wc -l</font>
<br><font size=3>sleep 4</font>
<br><font size=3>grep ATAG /path/to/gpfs/mount/test | wc -l</font>
<br>
<br><font size=3>The first grep | wc -l returns 1, because grep outputs 
"Binary file /path/to/gpfs/mount/test matches"</font>
<br>
<br><font size=3>The second grep | wc -l returns the correct count of ATAG
in the file.</font>
<br>
<br><font size=3>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?</font>
<br>
<br><font size=3>Note that I have the same filesystem mounted via NFS and
over an NFS mount it works as expected.</font>
<br>
<br><font size=3>Any illumination is appreciated,</font>
<br>
<br><font size=3>jbh</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&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=1mZ896psa5caYzBeaugTlc7TtRejJp3uvKYxas3S7Xc&m=ut35qIIMxjZMX3obFJ2xtUMng4MtGtKz4YHxpkgQbak&s=cNt66GjRD6rVhq7nGcvT76l-0_u2C3UTz9SfwzHf1xw&e="><tt><font size=2>https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=1mZ896psa5caYzBeaugTlc7TtRejJp3uvKYxas3S7Xc&m=ut35qIIMxjZMX3obFJ2xtUMng4MtGtKz4YHxpkgQbak&s=cNt66GjRD6rVhq7nGcvT76l-0_u2C3UTz9SfwzHf1xw&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>