From owner-freebsd-fs@FreeBSD.ORG Tue Jul 26 20:18:56 2011 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 025B1106566B for ; Tue, 26 Jul 2011 20:18:56 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id BCD3B8FC0A for ; Tue, 26 Jul 2011 20:18:55 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p6QKIsCI081218 for ; Tue, 26 Jul 2011 16:18:54 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4E2F2122.6080204@sentex.net> Date: Tue, 26 Jul 2011 16:18:42 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-fs@freebsd.org X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.71 on IPv6:2607:f3e0:0:1::12 Subject: zfs error - snapshot: Bad file descriptor 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: Tue, 26 Jul 2011 20:18:56 -0000 I googled around for an answer to this, but other than reboot, I never found any other strategies. On my backup server (RELENG_8 from Jun 20th, AMD64 8G of RAM), I have one big pool # zpool status -v pool: zbackup1 state: ONLINE scan: scrub repaired 0 in 11h11m with 0 errors on Mon Jul 25 19:51:11 2011 config: NAME STATE READ WRITE CKSUM zbackup1 ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 ada5 ONLINE 0 0 0 ada7 ONLINE 0 0 0 ada4 ONLINE 0 0 0 ada6 ONLINE 0 0 0 raidz1-1 ONLINE 0 0 0 ada0 ONLINE 0 0 0 ada1 ONLINE 0 0 0 ada2 ONLINE 0 0 0 ada3 ONLINE 0 0 0 errors: No known data errors and a number of file systems zbackup1 5241690240 2248788502 2992901738 43% /zbackup1 zbackup1/archive 2992901771 33 2992901738 0% /zbackup1/archive zbackup1/cust1 3254254853 261353115 2992901738 8% /zbackup1/cust1 When I would change to /zbackup1/cust1/.zfs and do a ls -l # ls -l ls: snapshot: Bad file descriptor total 4 dr-xr-xr-x 4 root wheel - 4 Mar 4 08:43 . drwxr-xr-x 21 root wheel - 21 Jun 29 11:46 .. dr-xr-xr-x 2 root wheel - 2 Mar 4 08:43 shares snapshot was set to visible zbackup1/cust1 snapdir visible inherited from zbackup1 And I could even list them in zfs get all zbackup1/cust1@20110715 type snapshot - zbackup1/cust1@20110715 creation Fri Jul 15 8:10 2011 - zbackup1/cust1@20110715 used 7.41G - But I could never change to the directory and do an ls -l, let along get files I ran a full scrub, but it did not help. I did a reboot and all worked after that. # ls -l total 4 dr-xr-xr-x 4 root wheel - 4 Mar 4 08:43 . drwxr-xr-x 21 root wheel - 21 Jun 29 11:46 .. dr-xr-xr-x 2 root wheel - 2 Mar 4 08:43 shares dr-xr-xr-x 5 root wheel - 5 Jul 26 12:11 snapshot # cd snapshot/ # ls -l total 6 dr-xr-xr-x 5 root wheel - 5 Jul 26 12:11 . dr-xr-xr-x 4 root wheel - 4 Mar 4 08:43 .. drwxr-xr-x 20 root wheel - 21 Jun 29 11:46 20110715 drwxr-xr-x 20 root wheel - 21 Jun 29 11:46 20110722 drwxr-xr-x 20 root wheel - 21 Jun 29 11:46 test In the future, are there any other things I can do to fix the issue short of rebooting ? ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/