From owner-freebsd-stable@FreeBSD.ORG Sat Mar 26 05:03:48 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C5B510656A6 for ; Sat, 26 Mar 2011 05:03:48 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id C0BF28FC15 for ; Sat, 26 Mar 2011 05:03:47 +0000 (UTC) Received: by iyj12 with SMTP id 12so2215397iyj.13 for ; Fri, 25 Mar 2011 22:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:in-reply-to :message-id:references:user-agent:x-openpgp-key-id :x-openpgp-key-fingerprint:mime-version:content-type; bh=LEB8In6pJVXo8Mok3HmSOC4zQ2vbr2pCLxPfMXMCneI=; b=IfIURbWzDQFQJn6liGTPzML1tbc2rpmJVUe+dGRMx7auz0f6gQOmUWCmhX+ee/DFa5 /BStM//zA2+ODJzlHy/6QsFiyUvqmRm8JB7FBNAyBI76RrC1WvfxllAHHR8idNWBpVex nPgGR14xiKPKyoStEuAthpqRln7299a/IYuhQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=YepLqTajW7s8W3vMoXSzTrLjBBuhur7TU6FpWIRxrsg9OqFfrlGhsWL2r/eLZt3M6O ylg+Cnrh4+X9sJ8aKeyPrW9b+Y9qCf1/LlkCLPDIYgWXAunW7PyXd8B7wM6hspJx9wF8 /+TJ6Je7vDhn4GFpXFefWOVLK5RgC0GZgGsiI= Received: by 10.231.3.145 with SMTP id 17mr1647225ibn.83.1301115827238; Fri, 25 Mar 2011 22:03:47 -0700 (PDT) Received: from disbatch.dataix.local (adsl-99-181-153-110.dsl.klmzmi.sbcglobal.net [99.181.153.110]) by mx.google.com with ESMTPS id o3sm1125082ibd.27.2011.03.25.22.03.44 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 Mar 2011 22:03:45 -0700 (PDT) Sender: "J. Hellenthal" Date: Sat, 26 Mar 2011 01:03:28 -0400 From: "J. Hellenthal" To: David Demelier In-Reply-To: <4D8CCC6A.50702@gmail.com> Message-ID: References: <20110321112322.GA6733@twoquid.cs.ru.nl> <4D8CCC6A.50702@gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Stable Subject: Re: .zfs directory: snapshot: Bad file descriptor X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Mar 2011 05:03:48 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 25 Mar 2011 13:10, demelier.david@ wrote: > On 21/03/2011 12:23, Olaf Seibert wrote: >> On my production system (still 8.1, I haven't had time yet to upgrade to >> 8.2) I have a ZFS. Nightly I make snapshots of each filesystem in it. >> Suddenly, one of the file systems has no snapshots any more: >> >> $ ls -l /tank/vol-fourquid-1/.zfs >> ls: snapshot: Bad file descriptor >> total 0 >> $ ls -l /tank/vol-fourquid-1/.zfs/snapshot >> ls: /tank/vol-fourquid-1/.zfs/snapshot: Bad file descriptor >> >> Snapshots in other file systems seem ok, for example: >> >> $ ls -l /home/local/.zfs >> total 0 >> dr-xr-xr-x 9 root wheel 9 Oct 21 2009 snapshot/ >> $ ls -l /home/local/.zfs/snapshot/ >> total 32 >> drwxr-xr-x 48 root vb 48 Apr 19 2010 friday/ >> drwxr-xr-x 48 root vb 48 Apr 19 2010 monday/ >> drwxr-xr-x 48 root vb 48 Apr 19 2010 saturday/ >> drwxr-xr-x 48 root vb 48 Apr 19 2010 sunday/ >> drwxr-xr-x 48 root vb 48 Apr 19 2010 thursday/ >> drwxr-xr-x 48 root vb 48 Apr 19 2010 tuesday/ >> drwxr-xr-x 48 root vb 48 Apr 19 2010 wednesday/ >> >> zpool status thinks all is ok: >> >> $ zpool status >> pool: tank >> state: ONLINE >> status: The pool is formatted using an older on-disk format. The pool can >> still be used, but some features are unavailable. >> action: Upgrade the pool using 'zpool upgrade'. Once this is done, the >> pool will no longer be accessible on older software versions. >> scrub: none requested >> config: >> >> NAME STATE READ WRITE CKSUM >> tank ONLINE 0 0 0 >> raidz2 ONLINE 0 0 0 >> da0 ONLINE 0 0 0 >> da1 ONLINE 0 0 0 >> da2 ONLINE 0 0 0 >> da3 ONLINE 0 0 0 >> da4 ONLINE 0 0 0 >> da5 ONLINE 0 0 0 >> >> errors: No known data errors >> >> How worried should I be about corruption anyway, say if I unmount and >> remount the affected file system? >> At this point I wouldn't be to worried yet, Its for a snapshot directory and as I see you are running cross versions here, not judging that is what is making the difference or the cause of this but can you attempt the following and report back. Provide output from: zfs upgrade ; zpool upgrade ; zdb run: zpool scrub tank And add to the report back the output of: zpool status -v PS: There was a problem with the .zfs directories somewhere around 8.0 & 8.1 that could cause a crash, core dump and this was fixed in stable before 8.2-RELEASE. I would highly suggest you update your system to a kernel from 8.2-RELEASE to test this as the problem may just up and disappear before your eyes. Even if you just have to extract a 8.2 kernel into boot/testkernel it may be well worth it. > > I don't know how to manage ZFS filesystem but usually on UFS file system when > you have a bad file descriptor you must run fsck(8) manually to check up the > disk. > > Cheers, > > - -- Regards, J. Hellenthal (0x89D8547E) JJH48-ARIN -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89D8547E iQEcBAEBAgAGBQJNjXOpAAoJEJBXh4mJ2FR+uUoH/3kqZ7ff7f4ireFeXEJ5iwwD hK1D6sNxC4oavW54U9Uw/uNrldERxYXOXsKARgs9JR9AMmXYvNGhy29K13vtUP67 9IOI8Q5uhc5ctF4vOFonLdvy8P/JfdDKgYTI2pvPP3JronUigIKqofjWseZZ5vvq Nk9lN5f0GNwUe1j/YVtPwZcntcUoXE2afSiab6QcQPjCfT4K50+VjMMOmzuzqXnE 9/3a4qdr3eCI6gbZrIk/pgZcvhjNuOmElvqZR5qHxo74qO4ZJnZ+5QMwRFKR2bmQ dmLmFC1fGOsonjHDe1o76NpchFmNfkKViBtHSsVubBb+gG1MduET2HL9vhiYuFY= =qbIt -----END PGP SIGNATURE-----