Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Feb 2010 02:53:55 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        Matt Reimer <mattjreimer@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS file storage info
Message-ID:  <9bbcef731002121753j3787430cv2256b2baeddd9e1@mail.gmail.com>
In-Reply-To: <f383264b1002121639w25b2b2f8k91aeb1994b53ec73@mail.gmail.com>
References:  <hl4pgv$l6l$1@ger.gmane.org> <f383264b1002121639w25b2b2f8k91aeb1994b53ec73@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Clear as mud, but I'll try to understand it...


>
> =C2=A0=C2=A0 =C2=A0Object =C2=A0lvl =C2=A0 iblk =C2=A0 dblk =C2=A0lsize =
=C2=A0asize =C2=A0type
> =C2=A0=C2=A0 =C2=A0 =C2=A06987 =C2=A0 =C2=A02 =C2=A0 =C2=A016K =C2=A0 128=
K =C2=A0 384K =C2=A0 388K =C2=A0ZFS plain file
> =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 264 =C2=A0bonus =C2=A0ZFS zno=
de
> path /bin/ex
> uid =C2=A0 =C2=A0 0
> gid =C2=A0 =C2=A0 0
> atime Sat Feb 13 07:37:52 2010
> mtime Sat Nov 21 14:31:07 2009
> ctime Fri Feb 12 05:52:32 2010
> crtime Fri Feb 12 05:52:32 2010
> gen 145

I assume "gen" is the file generation, e.g. number of write
transactions to the file? (irrelevant, just curious about it; I have a
database file with gen=3D10002980).

> mode 100555
> size 337136
> parent 4
> links 6
> xattr 0
> rdev 0x0000000000000000
> Indirect blocks:
> =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 L1 =C2=A00:10bef=
000:c00 4000L/400P F=3D3 B=3D145
> =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 =C2=A0L0 0:10bf0=
000:30000 20000L/20000P F=3D1 B=3D145
> =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 20000 =C2=A0L0 0:10c30000:30000 =
20000L/20000P F=3D1 B=3D145
> =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 40000 =C2=A0L0 0:10c70000:30000 =
20000L/20000P F=3D1 B=3D145
> segment [0000000000000000, 0000000000060000) size =C2=A0384K


> You're interested in the "Indirect blocks" portion. Google raidzmap.tar.g=
z,
> download and build it, then do the following. Note that you'll drop the
> third portion of the zfs offset tuple (e.g. the "c00" in=C2=A00:10bef000:=
c00) and

For start, what information is there in the "zfs offset tuple"? I
guess the first number is probably the pool id/index?

> use the physical size (the hex number next to the "P" in "400P"). The dev=
idx

Can you give some information about each of the columns in the output
above? I.e. in the line

"0 L1  0:10bef000:c00 4000L/400P F=3D3 B=3D145"

What are the fields' meanings? I tried to deduce that the first column
looks like an offset within its "L" level, but this breaks down on my
file example which has multiple "L1" records. I have no idea about the
"F" and "B" fields.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9bbcef731002121753j3787430cv2256b2baeddd9e1>