<html><body><p><font size="2" face="Arial">Hi,</font><br><br><font size="2" face="Arial">&gt;&gt; How can I prove that data of a small file is stored in the inode (and not on a data nsd)?<br></font><br><font size="2" face="Arial">You may use </font><font size="2" face="Arial">echo &quot;inode file_inode_number&quot; | tsdbfs fs_device | grep indirectionLevel and if it points to INODE, then the file is stored in the inodes</font><br><br><i><font size="2" color="#0000FF" face="Arial"># 4K Inode Size</font></i><br><i><font size="2" color="#0000FF" face="Arial"># mmlsfs gpfs3a | grep 'Inode size'</font></i><br><i><font size="2" color="#0000FF" face="Arial"> -i                 4096                     </font></i><b><i><font size="2" color="#0000FF" face="Arial">Inode size</font></i></b><i><font size="2" color="#0000FF" face="Arial"> in bytes</font></i><br><br><i><font size="2" color="#0000FF" face="Arial"># Small file </font></i><br><i><font size="2" color="#0000FF" face="Arial"># ls -l /mnt/gpfs3a/hello.txt </font></i><br><i><font size="2" color="#0000FF" face="Arial">-rw-r--r-- 1 root root 6 Jul 17 08:32 /mnt/gpfs3a/hello.txt</font></i><br><br><i><font size="2" color="#0000FF" face="Arial"># ls -i /mnt/gpfs3a/hello.txt </font></i><br><i><font size="2" color="#0000FF" face="Arial">91649 /mnt/gpfs3a/hello.txt</font></i><br><br><i><font size="2" color="#0000FF" face="Arial">#File is inlined within Inode</font></i><br><i><font size="2" color="#0000FF" face="Arial"># echo &quot;inode 91649&quot; | tsdbfs gpfs3a | grep indirectionLevel</font></i><br><i><font size="2" color="#0000FF" face="Arial"> </font></i><b><i><font size="2" color="#0000FF" face="Arial"> </font></i></b><b><i><font size="2" color="#0000FF" face="Arial">indirectionLevel</font></i></b><b><i><font size="2" color="#0000FF" face="Arial">=INODE</font></i></b><i><font size="2" color="#0000FF" face="Arial"> status=USERFILE</font></i><br><br><font size="2" face="Arial">Regards,</font><br><font size="2" face="Arial">-Kums</font><br><br><br><br><img width="16" height="16" src="cid:1__=8FBB0EA9DFD778458f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for &quot;Billich  Heinrich Rainer (ID SD)&quot; ---07/17/2019 07:49:56 AM---Hello, How can I prove that data of a "><font size="2" color="#424282">&quot;Billich  Heinrich Rainer (ID SD)&quot; ---07/17/2019 07:49:56 AM---Hello, How can I prove that data of a small file is stored in the inode (and not on a data nsd)?</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">&quot;Billich  Heinrich Rainer (ID SD)&quot; &lt;heinrich.billich@id.ethz.ch&gt;</font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">gpfsug main discussion list &lt;gpfsug-discuss@spectrumscale.org&gt;</font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">07/17/2019 07:49 AM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">[EXTERNAL] [gpfsug-discuss] How to prove that data is in inode</font><br><font size="2" color="#5F5F5F">Sent by:        </font><font size="2">gpfsug-discuss-bounces@spectrumscale.org</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><tt><font size="2">Hello,<br><br>How can I prove that data of a small file is stored in the inode (and not on a data nsd)?<br><br>We have a filesystem with 4k inodes on Scale 5.0.2 , but it seems there is no file data in the inodes?<br><br>I would expect that 'stat' reports 'Blocks: 0' &nbsp;for a small file, but I see 'Blocks:1'.<br><br>Cheers,<br><br>Heiner<br><br>I tried<br><br>[]# rm -f test; echo hello &gt; test<br>[]# ls -ls test<br>1 -rw-r--r-- 1 root root 6 Jul 17 13:11 test<br>[root@testnas13ems01 test]# stat test<br> &nbsp;File: \u2018test\u2019<br> &nbsp;Size: 6 &nbsp; &nbsp; &nbsp; &nbsp;                  Blocks: 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IO Block: 1048576 regular file<br>Device: 2dh/45d                 Inode: 353314 &nbsp; &nbsp; &nbsp;Links: 1<br>Access: (0644/-rw-r--r--) &nbsp;Uid: ( &nbsp; &nbsp;0/ &nbsp; &nbsp;root) &nbsp; Gid: ( &nbsp; &nbsp;0/ &nbsp; &nbsp;root)<br>Access: 2019-07-17 13:11:03.037049000 +0200<br>Modify: 2019-07-17 13:11:03.037331000 +0200<br>Change: 2019-07-17 13:11:03.037259319 +0200<br> Birth: -<br>[root@testnas13ems01 test]# du test<br>1                 test<br>[root@testnas13ems01 test]# du -b test<br>6                 test<br>[root@testnas13ems01 test]#<br><br>Filesystem<br><br># mmlsfs f****<br>flag &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;value &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;description<br>------------------- ------------------------ -----------------------------------<br> -f &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 32768 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Minimum fragment (subblock) size in bytes<br> -i &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4096 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Inode size in bytes<br> -I &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 32768 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Indirect block size in bytes<br> -m &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Default number of metadata replicas<br> -M &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Maximum number of metadata replicas<br> -r &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Default number of data replicas<br> -R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Maximum number of data replicas<br> -j &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cluster &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Block allocation type<br> -D &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nfs4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; File locking semantics in effect<br> -k &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nfs4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ACL semantics in effect<br> -n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Estimated number of nodes that will mount file system<br> -B &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1048576 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Block size<br> -Q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; user;group;fileset &nbsp; &nbsp; &nbsp; Quotas accounting enabled<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;user;group;fileset &nbsp; &nbsp; &nbsp; Quotas enforced<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;user;group;fileset &nbsp; &nbsp; &nbsp; Default quotas enabled<br> --perfileset-quota Yes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Per-fileset quota enforcement<br> --filesetdf &nbsp; &nbsp; &nbsp; &nbsp;Yes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Fileset df enabled?<br> -V &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20.01 (5.0.2.0) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Current file system version<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;15.01 (4.2.0.0) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Original file system version<br> --create-time &nbsp; &nbsp; &nbsp;***** 2017 File system creation time<br> -z &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; No &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Is DMAPI enabled?<br> -L &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 33554432 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Logfile size<br> -E &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Yes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Exact mtime mount option<br> -S &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; relatime &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Suppress atime mount option<br> -K &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; whenpossible &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Strict replica allocation option<br> --fastea &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Yes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Fast external attributes enabled?<br> --encryption &nbsp; &nbsp; &nbsp; No &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Encryption enabled?<br> --inode-limit &nbsp; &nbsp; &nbsp;1294592 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Maximum number of inodes in all inode spaces<br> --log-replicas &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Number of log replicas<br> --is4KAligned &nbsp; &nbsp; &nbsp;Yes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;is4KAligned?<br> --rapid-repair &nbsp; &nbsp; Yes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rapidRepair enabled?<br> --write-cache-threshold 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HAWC Threshold (max 65536)<br> --subblocks-per-full-block 32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Number of subblocks per full block<br> -P &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; system;data &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Disk storage pools in file system<br> --file-audit-log &nbsp; No &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; File Audit Logging enabled?<br> --maintenance-mode No &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Maintenance Mode enabled?<br> -d &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ******<br>-A &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Automatic mount option<br> -o &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nfssync,nodev &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Additional mount options<br> -T &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /**** &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Default mount point<br> --mount-priority &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Mount priority<br><br>-- <br>=======================<br>Heinrich Billich<br>ETH Zürich<br>Informatikdienste<br>Tel.: +41 44 632 72 56<br>heinrich.billich@id.ethz.ch<br>========================<br> <br> <br><br>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br></font></tt><tt><font size="2"><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a></font></tt><tt><font size="2">&nbsp;<br><br></font></tt><br><br><BR>
</body></html>