<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 > 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">--<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">Luis Bolinches <luis.bolinches@fi.ibm.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">gpfsug main discussion
list <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 08:49</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </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:    
   </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 "a a a a a a a a a a" >
test && grep ATAG test | wc -l && sleep 4 && 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>
Ystävällisin 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&d=DwMFAw&c=jf_iaSHvJObTbx-siA1ZOg&r=1mZ896psa5caYzBeaugTlc7TtRejJp3uvKYxas3S7Xc&m=HrR-mBJ82ubcbtBin7NGVl2VenLj726Fcah6-3XFvDs&s=hGQKSxR54bjW2i9KVDRpflHxrMcJhY269FZkQGWHtLI&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>
"If you always give you will always have" --  Anonymous</font><font size=3>
<br>
<br>
<br>
</font><font size=1 color=#5f5f5f face="sans-serif"><br>
From:        </font><font size=1 face="sans-serif">John
Hanks <griznog@gmail.com></font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
To:        </font><font size=1 face="sans-serif">gpfsug-discuss
<gpfsug-discuss@spectrumscale.org></font><font size=3> </font><font size=1 color=#5f5f5f face="sans-serif"><br>
Date:        </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:        </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:        </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 "a" <br>
<br>
cat a a a a a a a a a a > /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  "Binary
file /path/to/gpfs/mount/test matches" <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&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=1mZ896psa5caYzBeaugTlc7TtRejJp3uvKYxas3S7Xc&m=ut35qIIMxjZMX3obFJ2xtUMng4MtGtKz4YHxpkgQbak&s=cNt66GjRD6rVhq7nGcvT76l-0_u2C3UTz9SfwzHf1xw&e="><tt><font size=2 color=blue><u>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=</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&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=1mZ896psa5caYzBeaugTlc7TtRejJp3uvKYxas3S7Xc&m=HrR-mBJ82ubcbtBin7NGVl2VenLj726Fcah6-3XFvDs&s=d5YiAyXz4el9bF0zjGL9gVjnTfbX4z-qelZodxRqlz0&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=HrR-mBJ82ubcbtBin7NGVl2VenLj726Fcah6-3XFvDs&s=d5YiAyXz4el9bF0zjGL9gVjnTfbX4z-qelZodxRqlz0&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>