From owner-freebsd-fs@FreeBSD.ORG Wed Aug 4 10:53:06 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AEC716A4CF for ; Wed, 4 Aug 2004 10:53:06 +0000 (GMT) Received: from musique.teaser.net (musique.teaser.net [213.91.2.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD2AD43D3F for ; Wed, 4 Aug 2004 10:53:05 +0000 (GMT) (envelope-from e-masson@kisoft-services.com) Received: from srvbsdnanssv.interne.kisoft-services.com (nantes.kisoft-services.com [193.56.60.243]) by musique.teaser.net (Postfix) with ESMTP id 5951072559 for ; Wed, 4 Aug 2004 12:53:04 +0200 (CEST) Received: by srvbsdnanssv.interne.kisoft-services.com (Postfix, from userid 1001) id F02E1C1CA; Wed, 4 Aug 2004 12:53:03 +0200 (CEST) To: Mailing List FreeBSD Filesystems From: Eric Masson X-Operating-System: FreeBSD 5.2.1-RELEASE-p9 i386 Date: Wed, 04 Aug 2004 12:53:03 +0200 Message-ID: <86smb3tbsg.fsf@srvbsdnanssv.interne.kisoft-services.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Subject: mksnap_ffs, time, lor & inconsistencies X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 10:53:06 -0000 Hello, I'm toying atm with a Dell Powervault 725N (dmesg attached), this box will be used as a nas, disk layout is the following : Filesystem Size Used Avail Capacity Mounted on /dev/amrd0s1a 248M 76M 152M 33% / devfs 1.0K 1.0K 0B 100% /dev /dev/amrd0s1e 248M 6.0K 228M 0% /tmp /dev/amrd0s1f 2.8G 1.7G 836M 68% /usr /dev/amrd0s1d 496M 450K 456M 0% /var /dev/amrd1s1d 672G 794M 617G 0% /vol0 I've just tested snapshots on /vol0 filesystem : emss@terra:/usr# time mksnap_ffs /vol0 /vol0/.snap/snap0 0.000u 15.634s 32:57.18 0.7% 5+234k 56071+71989io 0pf+0w /vol0 only contains a copy of /usr/src. Well, I removed the src directory from vol0 and shut down the machine via shutdown -p now and everything went fine except i got a lor (similar to already registered id 006) : lock order reversal 1st 0xc26bf948 vnode interlock (vnode interlock) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:1906 2nd 0xc103a100 system map (system map) @ /usr/src/sys/vm/vm_map.c:2223 KDB: stack backtrace: kdb_backtrace(0,ffffffff,c08b9568,c08ba7b0,c0848a5c) at kdb_backtrace+0x29 witness_checkorder(c103a100,9,c0804b23,8af) at witness_checkorder+0x544 _mtx_lock_flags(c103a100,0,c0804b23,8af) at _mtx_lock_flags+0x5b _vm_map_lock(c103a0a0,c0804b23,8af) at _vm_map_lock+0x21 vm_map_remove(c103a0a0,c26e1000,c26e9000,dd04dba0,c074cdc1) at vm_map_remove+0x1f kmem_free(c103a0a0,c26e1000,8000,dd04dbb8,c074eb17) at kmem_free+0x25 page_free(c26e1000,8000,22,8000,dd04dbd0) at page_free+0x29 uma_large_free(c26b33c0) at uma_large_free+0x7f free(c26e1000,c0881ae0,c2667600,0,c265c000) at free+0xe1 ffs_snapshot_unmount(c265c000) at ffs_snapshot_unmount+0xe7 ffs_flushfiles(c265c000,0,c23c2000) at ffs_flushfiles+0x40 softdep_flushfiles(c265c000,0,c23c2000,c26bf738,0) at softdep_flushfiles+0x1e ffs_unmount(c265c000,8000000,c23c2000,0,0) at ffs_unmount+0x32 dounmount(c265c000,8000000,c23c2000,410a0a31,8c4052) at dounmount+0x1c4 unmount(c23c2000,dd04dd14,2,1,206) at unmount+0x1e0 syscall(2f,2f,2f,804a72f,8052a51) at syscall+0x217 Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (22, FreeBSD ELF32, unmount), eip = 0x280c32b7, esp = 0xbfbfe51c, ebp = 0xbfbfe5c8 --- I then rm'ed the snapshot named snap0 in /vol0/.snap and later shut down the box via shutdown -p now. syncer process timed out, last message before stop was "giving up on 41 buffers." At next reboot, the box fscked all filesystems as none was marked clean Kernel conf is a plain stock GENERIC from last Friday Is this an expected behaviour atm, sort of known bug investigated atm ? And last, is the time used to create a snapshot normal ? I can offer shell access to the box if needed. Regards Eric Masson -- donc, si tu n'en a rien à foutre tu ne lis pas les mess qui ne te sont pas adressés, c'est le problème de poster sur plusieurs forums, tu parles au charcutier, et c'est la saucisse qui te répond :-)" -+- Sandra in GNU : Si six neuneux scient six saucisses -+-