From owner-freebsd-fs@FreeBSD.ORG Sat Feb 13 01:54:16 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E91E1065679 for ; Sat, 13 Feb 2010 01:54:16 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 32E138FC08 for ; Sat, 13 Feb 2010 01:54:15 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 9so82531eyd.9 for ; Fri, 12 Feb 2010 17:54:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=alZMr83MkssX9Hu+jDUn8R/daj3HuGcXgrPfefk+p9U=; b=eXYbSuxy7JBJcqm5YbhDpIJqUFPsSUSJ+LVBo9sIrQRlXu0Z+8wUNDHkKlC1oTWCru JP4x8aLTXvl7rkTemOnSQRb2f9pS81slof/E9eLE1pO1qYZF0oSrUFJ4fpqGGr8RK+o+ 2ZkZ322kPMyQDmKnvWz0IH5iw4HRV4t1LvuY0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=Z7U+jd90+1RT2oNhFdUs5wyZTJRT+k0AYVyHA7gxMMbldfaWbJEGoimMyQTbulR+CG 3VveMq1zPSZCDieRsvZeFLhid4sFrIAMiMTUdBBwzvoqJF/dUoEI0xzng/DvC6sWuAQr 6ZM1DgPtIwwfsQDULaIMaoTEL9z4viS+NcMx8= MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.216.86.16 with SMTP id v16mr1287587wee.162.1266026055111; Fri, 12 Feb 2010 17:54:15 -0800 (PST) In-Reply-To: References: From: Ivan Voras Date: Sat, 13 Feb 2010 02:53:55 +0100 X-Google-Sender-Auth: 4ac8369b52fa713e Message-ID: <9bbcef731002121753j3787430cv2256b2baeddd9e1@mail.gmail.com> To: Matt Reimer Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: ZFS file storage info X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Feb 2010 01:54:16 -0000 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.