From owner-freebsd-stable@FreeBSD.ORG Fri Mar 25 17:10:13 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 DD2EB106566B for ; Fri, 25 Mar 2011 17:10:12 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6C5FF8FC1A for ; Fri, 25 Mar 2011 17:10:12 +0000 (UTC) Received: by fxm11 with SMTP id 11so1607897fxm.13 for ; Fri, 25 Mar 2011 10:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=MtMGK7xDnRGAIeMOgiPgq4Y8iBtWM/utvg5L85BaycU=; b=pzQjambGtO0a6GvCHN5DNCBXglpPvZiRBVIMQKBdb0MBfOL9bSFOonJrw+ft/RK0pR S9Bjdmh9VoTfPYHDTRPu7kMw61TDV5WOokB8/9NzEuoB2Ca5+UiqP+9zziGdgWPbwkYw hVaWXcQ/jVu7ajO/1NtLPNXFLe7R8OnKtHAvA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Uzn9rD4Jqd7HnvyuzKuBW58Z2VE9+ba4TjNavtRk3wbKIy9eeNfx5siVbJdAbll3c5 j8Ir2a/nVmnwnjAWUE0Ot1gfwSKPTjNAwTy1NCUACJEheB96SaPhJ2uXOrtegYdaDrOw 7jx8E1edVQx2NlRCYhV1qRlwnRPNWykU/pSoc= Received: by 10.223.160.5 with SMTP id l5mr1146714fax.85.1301072980882; Fri, 25 Mar 2011 10:09:40 -0700 (PDT) Received: from Groseille.malikania.fr (65.21.102-84.rev.gaoland.net [84.102.21.65]) by mx.google.com with ESMTPS id p16sm508142fax.21.2011.03.25.10.09.38 (version=SSLv3 cipher=OTHER); Fri, 25 Mar 2011 10:09:39 -0700 (PDT) Message-ID: <4D8CCC6A.50702@gmail.com> Date: Fri, 25 Mar 2011 18:10:02 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110320 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <20110321112322.GA6733@twoquid.cs.ru.nl> In-Reply-To: <20110321112322.GA6733@twoquid.cs.ru.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 25 Mar 2011 17:10:13 -0000 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? > > -Olaf. 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, -- David Demelier