[Bug 241083] zfs: zpool import seems to probe all snapshots

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Oct 6 07:18:18 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241083

--- Comment #17 from Martin Birgmeier <d8zNeCFG at aon.at> ---
Hmmm...

[0]# ll /lib/libzfs.so.3*
-r--r--r--  1 root  wheel  310944 Oct  6 09:10 /lib/libzfs.so.3
-r--r--r--  1 root  wheel  310944 Dec 30  2018 /lib/libzfs.so.3.ORIG
[0]# sysctl vfs.zfs.vol.recursive
vfs.zfs.vol.recursive: 0
[0]# time zpool import nonexistent_pool
cannot import 'nonexistent_pool': no such pool available
zpool import nonexistent_pool  0.04s user 1.26s system 4% cpu 29.296 total
[1]# sysctl vfs.zfs.vol.recursive=1    
vfs.zfs.vol.recursive: 0 -> 1
[0]# time zpool import nonexistent_pool
cannot import 'nonexistent_pool': no such pool available
zpool import nonexistent_pool  0.03s user 1.11s system 28% cpu 4.033 total
[1]# sysctl vfs.zfs.vol.recursive=0    
vfs.zfs.vol.recursive: 1 -> 0
[0]# 

Note that using 'gstat -a' I saw that after the first import there was again a
long time when all zvols would be active (the system has been running since
yesterday as a lightly loaded iSCSI server). I waited for this activity to
abate and then started the second import.

Again I have the impression that some caching mechanism is at work.

-- Martin

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list