On Mon, Jul 19, 2021 at 09:37:43AM -0400, Jeff Layton wrote:
With the rados_cluster backend, you can also configure a nodeid to use. If you set up a trivial rados_cluster with one (active/passive) host, I expect it'll work more like you want. So, I'd set this in the NFSv4 block:
Using `rados_cluster` and sharing a `nodeid`... NFSv4 { RecoveryBackend = rados_cluster; Minor_Versions = 1,2; Grace_Period = 60; } [...] RADOS_KV { UserId = "nfsmeta"; pool = "cephfs.tank.meta"; namespace = "ganesha"; nodeid = "nfs.storage"; } ...seems to have resolved the problem; failover times now seem to track the `Grace_Period` setting.
Longer term, maybe we should allow rados_ng and rados_kv to set a static nodeid too? That would also probably fix this for people who just want a simple active/passive cluster. Basically we'd just need to add a get_nodeid operation for them.
Was I misusing `rados_ng`? All the docs I found said "use rados_ng for active/passive configurations". -- Lars Kellogg-Stedman <lars@redhat.com> | larsks @ {irc,twitter,github} http://blog.oddbit.com/ | N1LKS