Bug #71981
closed[NFS-Ganesha] After NFS server hosting node reboot, new mount fails with posix2fsal_error and requires nfs service restart for mount to suceed
0%
Description
Looked the provided logs from both nodes. The entire issue of getting error "ERR_FSAL_SERVERFAULT" is due to same ceph uuid is claimed by 2 Ganesha instances running simultaneously.
Here is what happens
1. After deploying, Ganesha starts on original node (say node1). see below logs for ceph uuid
Original node
Jul 01 07:22:30 ceph-sumar-nfs-byok-f9le1w-node5 ceph-54e956dc-4ff2-11f0-bde2-fa163e3d39fc-nfs-cephfs-nfs-0-1-ceph-sumar-nfs-byok-f9le1w-node5-zzqkkt3128733: 01/07/2025 07:22:30 : epoch 68638cb6 : ceph-sumar-nfs-byok-f9le1w-node5 : ganesha.nfsd-2[main] create_unique_id :FSAL :DEBUG :New logic of uuid for ceph
Jul 01 07:22:30 ceph-sumar-nfs-byok-f9le1w-node5 ceph-54e956dc-4ff2-11f0-bde2-fa163e3d39fc-nfs-cephfs-nfs-0-1-ceph-sumar-nfs-byok-f9le1w-node5-zzqkkt3128733: 01/07/2025 07:22:30 : epoch 68638cb6 : ceph-sumar-nfs-byok-f9le1w-node5 : ganesha.nfsd-2[main] create_unique_id :FSAL :DEBUG :ceph_mount hash data: node0nfs.cephfs-nfs.cephfs.5d839b2acephfs/
Jul 01 07:22:30 ceph-sumar-nfs-byok-f9le1w-node5 ceph-54e956dc-4ff2-11f0-bde2-fa163e3d39fc-nfs-cephfs-nfs-0-1-ceph-sumar-nfs-byok-f9le1w-node5-zzqkkt3128733: 01/07/2025 07:22:30 : epoch 68638cb6 : ceph-sumar-nfs-byok-f9le1w-node5 : ganesha.nfsd-2[main] create_unique_id :FSAL :DEBUG :Unique id for ceph_mount : ganesha-0x1ca160459fd35de0
Jul 01 07:22:30 ceph-sumar-nfs-byok-f9le1w-node5 ceph-54e956dc-4ff2-11f0-bde2-fa163e3d39fc-nfs-cephfs-nfs-0-1-ceph-sumar-nfs-byok-f9le1w-node5-zzqkkt3128733: 01/07/2025 07:22:30 : epoch 68638cb6 : ceph-sumar-nfs-byok-f9le1w-node5 : ganesha.nfsd-2[main] reclaim_reset :FSAL :DEBUG :Issuing reclaim reset for ganesha-0x1ca160459fd35de0
2. When you reboot the original node (node1), ceph chooses another node (say node2) to start Ganesha. See below logs for ceph uuid
New node
Jul 02 07:44:25 ceph-sumar-nfs-byok-f9le1w-node2 ceph-54e956dc-4ff2-11f0-bde2-fa163e3d39fc-nfs-cephfs-nfs-0-2-ceph-sumar-nfs-byok-f9le1w-node2-rlcnoo231223: 02/07/2025 07:44:25 : epoch 6864e359 : ceph-sumar-nfs-byok-f9le1w-node2 : ganesha.nfsd-2[main] create_unique_id :FSAL :DEBUG :New logic of uuid for ceph
Jul 02 07:44:25 ceph-sumar-nfs-byok-f9le1w-node2 ceph-54e956dc-4ff2-11f0-bde2-fa163e3d39fc-nfs-cephfs-nfs-0-2-ceph-sumar-nfs-byok-f9le1w-node2-rlcnoo231223: 02/07/2025 07:44:25 : epoch 6864e359 : ceph-sumar-nfs-byok-f9le1w-node2 : ganesha.nfsd-2[main] create_unique_id :FSAL :DEBUG :ceph_mount hash data: node0nfs.cephfs-nfs.cephfs.5d839b2acephfs/
Jul 02 07:44:25 ceph-sumar-nfs-byok-f9le1w-node2 ceph-54e956dc-4ff2-11f0-bde2-fa163e3d39fc-nfs-cephfs-nfs-0-2-ceph-sumar-nfs-byok-f9le1w-node2-rlcnoo231223: 02/07/2025 07:44:25 : epoch 6864e359 : ceph-sumar-nfs-byok-f9le1w-node2 : ganesha.nfsd-2[main] create_unique_id :FSAL :DEBUG :Unique id for ceph_mount : ganesha-0x1ca160459fd35de0
Jul 02 07:44:25 ceph-sumar-nfs-byok-f9le1w-node2 ceph-54e956dc-4ff2-11f0-bde2-fa163e3d39fc-nfs-cephfs-nfs-0-2-ceph-sumar-nfs-byok-f9le1w-node2-rlcnoo231223: 02/07/2025 07:44:25 : epoch 6864e359 : ceph-sumar-nfs-byok-f9le1w-node2 : ganesha.nfsd-2[main] reclaim_reset :FSAL :DEBUG :Issuing reclaim reset for ganesha-0x1ca160459fd35de0
Note that its same unique id in the logs from both node
Unique id for ceph_mount : ganesha-0x1ca160459fd35de0
So far this good and the ceph uuid must match to take over the responsibility of rebooted node.
3. After some time original starts (as it was rebooted) again.
4. Now Ganesha also starts over here, and do the reclaim of ceph uuid. This leads to get the "ERR_FSAL_SERVERFAULT" error on new node.
5. Once ceph deployment/management stack detects that Ganesha is already running on the new node, it shuts down Ganesha from original node. But the damage is already done.
So here main culprit is starting Ganesha on rebooted node, when it was not required.
SB Updated by Shweta Bhosale over 1 year ago
- Pull request ID set to 64317
UB Updated by Upkeep Bot 4 months ago
- Status changed from In Progress to Resolved
- Merge Commit set to cd6bc96ae3b553671bdd7a49fe0431260e39899a
- Fixed In set to v21.3.0-2170-gcd6bc96ae3
- Upkeep Timestamp set to 2026-08-19T14:25:07+00:00