ZFS fileinfo

From Lolly's Wiki
Revision as of 18:01, 25 November 2021 by Lollypop (talk | contribs) (Text replacement - "[[Kategorie:" to "[[Category:")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Wenn man nachträglich z.B. sehen möchte, mit welcher Blocksize ein File angelegt wurde, so kann man sich das anschauen mit zdb:

# zdb -ddd <ZFS> <i-Node>

z.B.

# ls -i /.globaldevices 
    524575 /.globaldevices
# zdb -dddd rpool/ROOT/zfsBE 524575
Dataset rpool/ROOT/zfsBE [ZPL], ID 45, cr_txg 8, 27.5G, 459538 objects, rootbp DVA[0]=<0:b1eb43600:200:STD:1> DVA[1]=<0:da0e39e00:200:STD:1> [L0 DMU objset] fletcher4 lzjb BE contiguous unique 2-copy size=800L/200P birth=3168L/3168P fill=459538 cksum=17cad0b0f0:7230399a8a3:134096738e1d8:25bba0c8eec052

    Object  lvl   iblk   dblk  dsize  lsize   %full  type
    524575    3    16K   128K   100M   100M  100.00  ZFS plain file
                                        168   bonus  System attributes
        dnode flags: USED_BYTES USERUSED_ACCOUNTED 
        dnode maxblkid: 799
        path    /.globaldevices
        uid     0
        gid     0
        atime   Wed Aug 22 09:50:28 2012
        mtime   Wed Aug 22 09:50:28 2012
        ctime   Wed Aug 22 09:50:28 2012
        crtime  Wed Aug 22 09:47:15 2012
        gen     2639
        mode    101600
        size    104857600
        parent  4
        links   1