zpool hammering opendirectoryd when no pools are attached

This forum is to find answers to problems you may be having with ZEVO Community Edition.

Moderators: jhartley, MSR734, nola

zpool hammering opendirectoryd when no pools are attached

Post by jays » Wed Feb 27, 2013 7:39 pm

Hi, all.

I've got a 4x1.5TB 2.5" USB3 raidz1 pool that I use for portable bulk storage for my laptop (MacBookPro10,1).

The problem I'm having is that whenever this pool is not attached to my laptop, opendirectoryd is getting absolutely hammered by a client called zpool, the end result being ~15% CPU utilization (as reported by Activity Monitor). I used "odutil set log debug" and a quick check of /var/log/opendirectoryd.log to find this out, and it looks like zpool is requesting the same thing over and over... by my count at a rate of 324 queries/second! (A very small snippet is provided below)

When I plug in the drives and the pool gets imported, the insanity stops.

Any recommendations?

Code: Select all
2013-02-27 16:19:37.204301 PST - Trigger - new node trigger watching for 'opendirectoryd:nodes;(register|unregister);.*'
2013-02-27 16:19:37.204372 PST - 14136.1914293 - Client: zpool, UID: 501, EUID: 501, GID: 20, EGID: 20
2013-02-27 16:19:37.204386 PST - 14136.1914293 - RPC: getpwuid, Module: SystemCache, uid: 501, rpc_version: 2
2013-02-27 16:19:37.204428 PST - 14136.1914293, Module: SystemCache - getpwuid completed, delivered 1 result
2013-02-27 16:19:37.205041 PST - 14136 - Client: 'zpool', exited with 0 session(s), 0 node(s) and 0 active request(s)
2013-02-27 16:19:37.205074 PST - Trigger - cancelled
2013-02-27 16:19:37.207392 PST - Trigger - new node trigger watching for 'opendirectoryd:nodes;(register|unregister);.*'
2013-02-27 16:19:37.207467 PST - 14137.1914294 - Client: zpool, UID: 501, EUID: 501, GID: 20, EGID: 20
2013-02-27 16:19:37.207480 PST - 14137.1914294 - RPC: getpwuid, Module: SystemCache, uid: 501, rpc_version: 2
2013-02-27 16:19:37.207528 PST - 14137.1914294, Module: SystemCache - getpwuid completed, delivered 1 result
2013-02-27 16:19:37.208085 PST - 14137 - Client: 'zpool', exited with 0 session(s), 0 node(s) and 0 active request(s)
2013-02-27 16:19:37.208125 PST - Trigger - cancelled
2013-02-27 16:19:37.210358 PST - Trigger - new node trigger watching for 'opendirectoryd:nodes;(register|unregister);.*'
2013-02-27 16:19:37.210420 PST - 14138.1914295 - Client: zpool, UID: 501, EUID: 501, GID: 20, EGID: 20
2013-02-27 16:19:37.210433 PST - 14138.1914295 - RPC: getpwuid, Module: SystemCache, uid: 501, rpc_version: 2
2013-02-27 16:19:37.210484 PST - 14138.1914295, Module: SystemCache - getpwuid completed, delivered 1 result
2013-02-27 16:19:37.211009 PST - 14138 - Client: 'zpool', exited with 0 session(s), 0 node(s) and 0 active request(s)
2013-02-27 16:19:37.211055 PST - Trigger - cancelled
2013-02-27 16:19:37.213470 PST - Trigger - new node trigger watching for 'opendirectoryd:nodes;(register|unregister);.*'
2013-02-27 16:19:37.213535 PST - 14139.1914296 - Client: zpool, UID: 501, EUID: 501, GID: 20, EGID: 20
2013-02-27 16:19:37.213549 PST - 14139.1914296 - RPC: getpwuid, Module: SystemCache, uid: 501, rpc_version: 2
2013-02-27 16:19:37.213577 PST - 14139.1914296, Module: SystemCache - getpwuid completed, delivered 1 result
2013-02-27 16:19:37.214125 PST - 14139 - Client: 'zpool', exited with 0 session(s), 0 node(s) and 0 active request(s)
2013-02-27 16:19:37.214160 PST - Trigger - cancelled
2013-02-27 16:19:37.216437 PST - Trigger - new node trigger watching for 'opendirectoryd:nodes;(register|unregister);.*'
2013-02-27 16:19:37.216515 PST - 14140.1914297 - Client: zpool, UID: 501, EUID: 501, GID: 20, EGID: 20
2013-02-27 16:19:37.216529 PST - 14140.1914297 - RPC: getpwuid, Module: SystemCache, uid: 501, rpc_version: 2
2013-02-27 16:19:37.216585 PST - 14140.1914297, Module: SystemCache - getpwuid completed, delivered 1 result
2013-02-27 16:19:37.217384 PST - 14140 - Client: 'zpool', exited with 0 session(s), 0 node(s) and 0 active request(s)
2013-02-27 16:19:37.217419 PST - Trigger - cancelled
2013-02-27 16:19:37.219811 PST - Trigger - new node trigger watching for 'opendirectoryd:nodes;(register|unregister);.*'
2013-02-27 16:19:37.219902 PST - 14141.1914298 - Client: zpool, UID: 501, EUID: 501, GID: 20, EGID: 20
2013-02-27 16:19:37.219921 PST - 14141.1914298 - RPC: getpwuid, Module: SystemCache, uid: 501, rpc_version: 2
2013-02-27 16:19:37.219965 PST - 14141.1914298, Module: SystemCache - getpwuid completed, delivered 1 result
2013-02-27 16:19:37.220505 PST - 14141 - Client: 'zpool', exited with 0 session(s), 0 node(s) and 0 active request(s)
2013-02-27 16:19:37.220534 PST - Trigger - cancelled


* Edit - I've enacted a temporary workaround by creating a ZFS pool in a sparsebundle as a sort of "dummy plug", which I'll have to keep mounted whenever I don't have a real array plugged in. Has anyone else seen this "IF no zfs volumes mounted THEN go haywire" behavior?
jays Offline


 
Posts: 1
Joined: Thu Nov 01, 2012 11:00 am

Return to Troubleshooting

Who is online

Users browsing this forum: bileyqrkq, ilovezfs and 0 guests

cron