Lentes, Bernd
2021-Jan-11 14:42 UTC
[Ocfs2-users] how to find out the real size of a reflink ?
Hi guys, is there a way to find out the real size of a reflink ? "ls -s" doesn't seem to help. And shared-du or shared-filefrag does not seem to be available for my SLES 12 SP5. I know that i can calculate using df -h, but that's not convenient. Thanks. Bernd -- Bernd Lentes Head of Systemadministration Institute for Metabolism and Cell Death (MCD) Building 25 - office 122 HelmholtzZentrum M?nchen bernd.lentes at helmholtz-muenchen.de phone: +49 89 3187 1241 phone: +49 89 3187 3827 fax: +49 89 3187 2294 http://www.helmholtz-muenchen.de/mcd Helmholtz Zentrum M?nchen Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671
Herbert Van Den Bergh
2021-Jan-11 17:20 UTC
[Ocfs2-users] how to find out the real size of a reflink ?
Hi Bernd, See if any of the info here helps: https://unix.stackexchange.com/questions/263309/how-to-verify-a-file-copy-is-reflink-cow/ Thanks, Herbert.> On Jan 11, 2021, at 6:42 AM, Lentes, Bernd <bernd.lentes at helmholtz-muenchen.de> wrote: > > Hi guys, > > is there a way to find out the real size of a reflink ? > "ls -s" doesn't seem to help. > And shared-du or shared-filefrag does not seem to be available for my SLES 12 SP5. > I know that i can calculate using df -h, but that's not convenient. > > Thanks. > > Bernd > > > > -- > > Bernd Lentes > Head of Systemadministration > Institute for Metabolism and Cell Death (MCD) > Building 25 - office 122 > HelmholtzZentrum M?nchen > bernd.lentes at helmholtz-muenchen.de > phone: +49 89 3187 1241 > phone: +49 89 3187 3827 > fax: +49 89 3187 2294 > http://www.helmholtz-muenchen.de/mcd > Helmholtz Zentrum M?nchen > > Helmholtz Zentrum Muenchen > Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) > Ingolstaedter Landstr. 1 > 85764 Neuherberg > www.helmholtz-muenchen.de > Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling > Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther > Registergericht: Amtsgericht Muenchen HRB 6466 > USt-IdNr: DE 129521671 > > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users at oss.oracle.com > https://oss.oracle.com/mailman/listinfo/ocfs2-users
Hi Lentes, you can use "o2info --filestat yourfile" to identify how many data clusters for a cloned file are shared with the original file. Of course, the cloned file does not share meta-data blocks with the original file, only shares the data clusters. e.g. ghe-nd1:/rear/test # o2info --filestat dd.1.ref File: dd.1.ref Size: 8589934592 Blocks: 16777216 IO Block: 4096 regular file Device: fe00h/65024d Inode: 355844 Links: 1 Frag%: 0.01 Clusters: 2097152 Extents: 157 Score: 2 Shared: 2097152 Unwritten: 0 Holes: 0 Xattr: 0 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2021-01-13 10:08:06.561968304 +0800 Modify: 2021-01-13 10:07:52.74642661 Change: 2021-01-13 10:07:52.77958163 Please refer to "Shared: 2097152" item. Thanks Gang On 2021/1/11 22:42, Lentes, Bernd wrote:> Hi guys, > > is there a way to find out the real size of a reflink ? > "ls -s" doesn't seem to help. > And shared-du or shared-filefrag does not seem to be available for my SLES 12 SP5. > I know that i can calculate using df -h, but that's not convenient. > > Thanks. > > Bernd > > >