Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2007 19:04:53 +0000
From:      =?ISO-8859-1?Q?Arnar_Mar_Sigur=F0sson?= <antab@valka.is>
To:        freebsd-fs@FreeBSD.org
Subject:   Re: ZFS port to FreeBSD: 2nd patchset available.
Message-ID:  <138C2C6E-B791-466C-AFC0-ACFF3DB0B01E@valka.is>
In-Reply-To: <20070304123801.GA22350@garage.freebsd.pl>
References:  <20070304123801.GA22350@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

Patch applied and builds ok.
I created a striped pool with 2x 320GB disks and when i use the pool,  
then dmesg will fills up with messages like thous:

zfs_lowmem:2686[0]: 42 EXIT
zfs_lowmem:2681[0]: 42 ENTER
zfs_lowmem:2686[0]: 42 EXIT
zfs_lowmem:2681[0]: 42 ENTER

Also i added zfs_load="YES" to loader.conf and the kernel panics in boot


After power on and loading zfs manualy, i'm was unable to import my  
pool.

[root@ofurdolla /home/antab]# zpool import leech
cannot import 'leech': pool may be in use from other system
use '-f' to import anyway

acquiring duplicate lock of same type: "zfs:dbuf"
1st zfs:dbuf @ /usr/src/sys/modules/zfs/../../compat/opensolaris/sys/ 
mutex.h:44
2nd zfs:dbuf @ /usr/src/sys/modules/zfs/../../compat/opensolaris/sys/ 
mutex.h:44
KDB: stack backtrace:
db_trace_self_wrapper 
(c081fd55,df1a1a74,c0615f0d,c0821cc9,c3d88251,...) at  
db_trace_self_wrapper+0x27
kdb_backtrace(c0821cc9,c3d88251,c3d87b03,2c,aa,...) at kdb_backtrace 
+0x2f
witness_checkorder(c408a234,9,c3d87b03,2c,c09407ec,...) at  
witness_checkorder+0x6e4
_sx_xlock(c408a234,c3d87b03,2c,c3d4cad3,c3bcd400,...) at _sx_xlock+0x7e
dbuf_rele(c408a1f8,c3bcd400,c3bcd400,0,df1a1aec,...) at dbuf_rele+0x27
dsl_dir_close(c406ea00,c3bcd400,c431d930,df1a1b00,c3d24b74,...) at  
dsl_dir_close+0x32
dsl_dir_evict(c431d930,c3bcd400,0,df1a1b24,c3d272f5,...) at  
dsl_dir_evict+0x2d
dbuf_evict_user(c431d930,ffffffff,ffffffff,c3d4cad3,c40fdc00,...) at  
dbuf_evict_user+0x40
dbuf_rele(c431d930,c40fdc00,c40fdc00,c3ea2000,df1a1b50,...) at  
dbuf_rele+0xa9
dsl_dir_close(c3bcd400,c40fdc00,c3ea2000,df1a1b6c,c3d443ac,...) at  
dsl_dir_close+0x32
dsl_pool_close(c40fdc00,c3d86f80,c3d86f80,c3ea2000,c4128b60,...) at  
dsl_pool_close+0x20
spa_unload(c3ea2000,c41280a0,0,0,1,...) at spa_unload+0x6c
spa_tryimport(c4128b60,df1a1bb0,c4128b60,0,c3e78000,...) at  
spa_tryimport+0x1a9
zfs_ioc_pool_tryimport(c3e78000,c3cf9500,c3a12d9c,6,0,...) at  
zfs_ioc_pool_tryimport+0x33
zfsdev_ioctl(c3cf5500,ceec5a06,c3e78000,3,c3c1d6c0,...) at  
zfsdev_ioctl+0xed
devfs_ioctl_f(c38d0c18,ceec5a06,c3e78000,c3cf9500,c3c1d6c0,...) at  
devfs_ioctl_f+0xdc
kern_ioctl(c3c1d6c0,3,ceec5a06,c3e78000,c3e78000,...) at kern_ioctl 
+0x353
ioctl(c3c1d6c0,df1a1d00,c,c3632c30,28472000,...) at ioctl+0x11b
syscall(df1a1d38) at syscall+0x2d8
Xint0x80_syscall() at Xint0x80_syscall+0x20
--- syscall (54, FreeBSD ELF32, ioctl), eip = 0x281a557f, esp =  
0xbfbf970c, ebp = 0xbfbf9748 ---

-f will force the import and i can use the pool.

Keep up the good work
    Arnar Mar Sig


On Mar 4, 2007, at 12:38 PM, Pawel Jakub Dawidek wrote:

> Hi.
>
> I'd like to announce availability of the second ZFS patchset for  
> FreeBSD.
> And the begining I'd like to thank everyone who reported problems or
> success stories. This is very important, because:
> 1. Seeing people interested in ZFS for FreeBSD gives me great  
> motivation
>    to spend more time on coding. It is much appreciated!
> 2. I'm not able to test everything by myself.
>
> List of changes against the 1st patchset:
> - Full NFS support including automatic snapshots export and zfs(1)
>   control. Don't forget to run mountd(8) with two exports files:
>   /etc/exports and /etc/zfs/exports.
> - Missing atomic operations were taken from OpenSolaris, which
>   eliminates global mutex protection. This improves performance a bit.
> - Added various sysctls to vfs.zfs tree.
> - Implemented kstat functionality from OpenSolaris based on our  
> sysctls.
>   Try 'sysctl kstat'.
> - ztest, zdb and libzpool are now compilable again and work.
> - Access protection cleanups. ZFS pass all fstest regression tests
>   (available in HEAD under src/tools/regression/fstest/). It  
> doesn't use
>   suser(9) anymore, only priv(9) KPI.
> - Fixed bug preventing ZFS file systems mount via:
> 	# mount -t zfs name /mountpoint
> - Fixed orphan event handling in vdev_geom.
> - Added BIO_FLUSH support for ZVOL providers.
> - Many, many other bug fixes and cleanups.
>
> The patch is available at:
>
> 	http://people.freebsd.org/~pjd/patches/zfs_20070303.patch.bz2
>
> To apply and compile the patch, enter your src directory and:
>
> 	# patch -p0 < /path/to/zfs_20070303.patch
> 	# make kernel   <-- compiles and install patched kernel and
> 	                    zfs module
> 	# cd cddl
> 	# make && make install   <-- compiles and install userland
> 	                             utilities and libraries
>
> Please report any problems ('it works without problems!' is nice too).
>
> Good luck.
>
> -- 
> Pawel Jakub Dawidek                       http://www.wheel.pl
> pjd@FreeBSD.org                           http://www.FreeBSD.org
> FreeBSD committer                         Am I Evil? Yes, I Am!




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?138C2C6E-B791-466C-AFC0-ACFF3DB0B01E>