What files actually exist in the /nfs file system? Those errors about referrals are because Ganesha is trying to check if a file is supposed to be a referral, but it can't get attributes for the file. Turning on some debug would help, add this to your config: LOG { COMPONENTS { FSAL = FULL_DEBUG; } } And either re-start or issue a SIGHUP. We can get a better idea of what is going on. Frank
-----Original Message----- From: swarnock@warnocksolutions.com [mailto:swarnock@warnocksolutions.com] Sent: Friday, January 8, 2021 10:08 AM To: support@lists.nfs-ganesha.org Subject: [NFS-Ganesha-Support] Initial testing with ESXi 6.7
Hello All,
I am attempting to get nfs-ganesha 3.0.3 under Ubuntu 20.04 working with ESXi. While I can successfully mount the NFS export I receive regular errors while performing any kind of file work through ESXi. The volume /vdb is just raw formatted with XFS and the environment is completely virtual. Any suggestions for debugging this farther as this is my first time trying out this configuration.
Sean
tail /var/log/ganesha/ganesha.log 08/01/2021 17:52:49 : epoch 5ff7ccb6 : ganesha : ganesha.nfsd-720[svc_584] fsal_common_is_referral :FSAL :EVENT :Failed to get attrs for referral, handle: 0x7f8a1800e830, valid_mask: 0, request_mask: 11d7ce, supported: 0, error: The file no longer exists 08/01/2021 17:52:49 : epoch 5ff7ccb6 : ganesha : ganesha.nfsd-720[svc_584] fsal_common_is_referral :FSAL :EVENT :Failed to get attrs for referral, handle: 0x7f8a0c00e200, valid_mask: 0, request_mask: 11d7ce, supported: 0, error: The file no longer exists 08/01/2021 17:52:49 : epoch 5ff7ccb6 : ganesha : ganesha.nfsd-720[svc_584] fsal_common_is_referral :FSAL :EVENT :Failed to get attrs for referral, handle: 0x7f8a0c0103b0, valid_mask: 0, request_mask: 11d7ce, supported: 0, error: The file no longer exists 08/01/2021 17:52:49 : epoch 5ff7ccb6 : ganesha : ganesha.nfsd-720[svc_584] fsal_common_is_referral :FSAL :EVENT :Failed to get attrs for referral, handle: 0x7f8a0c00f2d0, valid_mask: 0, request_mask: 11d7ce, supported: 0, error: The file no longer exists 08/01/2021 17:52:49 : epoch 5ff7ccb6 : ganesha : ganesha.nfsd-720[svc_584] fsal_common_is_referral :FSAL :EVENT :Failed to get attrs for referral, handle: 0x7f8a0c010510, valid_mask: 0, request_mask: 11d7ce, supported: 0, error: The file no longer exists 08/01/2021 17:52:49 : epoch 5ff7ccb6 : ganesha : ganesha.nfsd-720[svc_584] fsal_common_is_referral :FSAL :EVENT :Failed to get attrs for referral, handle: 0x7f8a0c010670, valid_mask: 0, request_mask: 11d7ce, supported: 0, error: The file no longer exists 08/01/2021 17:52:50 : epoch 5ff7ccb6 : ganesha : ganesha.nfsd-720[svc_584] fsal_common_is_referral :FSAL :EVENT :Failed to get attrs for referral, handle: 0x7f8a0c010510, valid_mask: 0, request_mask: 11d7ce, supported: 0, error: The file no longer exists 08/01/2021 17:52:50 : epoch 5ff7ccb6 : ganesha : ganesha.nfsd-720[svc_582] fsal_common_is_referral :FSAL :EVENT :Failed to get attrs for referral, handle: 0x7f8a0c010670, valid_mask: 0, request_mask: 11d7ce, supported: 0, error: The file no longer exists 08/01/2021 17:52:50 : epoch 5ff7ccb6 : ganesha : ganesha.nfsd-720[svc_582] fsal_common_is_referral :FSAL :EVENT :Failed to get attrs for referral, handle: 0x7f8a100109c0, valid_mask: 0, request_mask: 11d7ce, supported: 0, error: The file no longer exists 08/01/2021 17:55:18 : epoch 5ff7ccb6 : ganesha : ganesha.nfsd- 720[dbus_heartbeat] nfs_health :DBUS :WARN :Health status is unhealthy. enq new: 9736, old: 9735; deq new: 9735, old: 9735
lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 55.4M 1 loop /snap/core18/1944 loop1 7:1 0 69M 1 loop /snap/lxd/14804 loop2 7:2 0 55M 1 loop /snap/core18/1705 loop3 7:3 0 71.3M 1 loop /snap/lxd/18772 loop4 7:4 0 31.1M 1 loop /snap/snapd/10492 loop5 7:5 0 31.1M 1 loop /snap/snapd/10707 sr0 11:0 1 1024M 0 rom vda 252:0 0 25G 0 disk ├─vda1 252:1 0 1M 0 part ├─vda2 252:2 0 1G 0 part /boot └─vda3 252:3 0 24G 0 part └─ubuntu--vg-ubuntu--lv 253:0 0 20G 0 lvm / vdb 252:16 0 200G 0 disk /nfs
cat /etc/ganesha/ganesha.conf ################################################### # # Ganesha Config Example # # This is a commented example configuration file for Ganesha. It is not # complete, but only has some common configuration options. See the man pages # for complete documentation. # ###################################################
## These are core parameters that affect Ganesha as a whole. NFS_CORE_PARAM { ## Allow NFSv3 to mount paths with the Pseudo path, the same as NFSv4, ## instead of using the physical paths. #mount_path_pseudo = true;
## Configure the protocols that Ganesha will listen for. This is a hard ## limit, as this list determines which sockets are opened. This list ## can be restricted per export, but cannot be expanded. Protocols = 3,4; }
## These are defaults for exports. They can be overridden per-export. #EXPORT_DEFAULTS { ## Access type for clients. Default is None, so some access must be ## given either here or in the export itself. #Access_Type = RW; #}
## Configure settings for the object handle cache #MDCACHE { ## The point at which object cache entries will start being reused. #Entries_HWMark = 100000; #}
## Configure an export for some file tree #EXPORT #{ ## Export Id (mandatory, each EXPORT must have a unique Export_Id) #Export_Id = 12345;
## Exported path (mandatory) #Path = /nonexistant;
## Pseudo Path (required for NFSv4 or if mount_path_pseudo = true) #Pseudo = /nonexistant;
## Restrict the protocols that may use this export. This cannot allow ## access that is denied in NFS_CORE_PARAM. #Protocols = 3,4;
## Access type for clients. Default is None, so some access must be ## given. It can be here, in the EXPORT_DEFAULTS, or in a CLIENT block #Access_Type = RW;
## Whether to squash various users. #Squash = root_squash;
## Allowed security types for this export #Sectype = sys,krb5,krb5i,krb5p;
## Exporting FSAL #FSAL { #Name = VFS; #} #} EXPORT { Export_Id = 5; Path = /nfs; Pseudo = /nfs; Protocols = 4; Access_Type = RW; #Squash = root_squash; Sectype = none,sys; FSAL { Name = vfs; } } ## Configure logging. Default is to log to Syslog. Basic logging can also be ## configured from the command line #LOG { ## Default log level for all components # Default_Log_Level = INFO;
## Configure per-component log levels. # Components { # FSAL = INFO; # NFS4 = EVENT; # }
## Where to log # Facility { # name = FILE; # destination = "/var/log/ganecat /etc/ganesha/ganesha.conf ################################################### # # Ganesha Config Example # # This is a commented example configuration file for Ganesha. It is not # complete, but only has some common configuration options. See the man pages # for complete documentation. # ###################################################
## These are core parameters that affect Ganesha as a whole. NFS_CORE_PARAM { ## Allow NFSv3 to mount paths with the Pseudo path, the same as NFSv4, ## instead of using the physical paths. #mount_path_pseudo = true;
## Configure the protocols that Ganesha will listen for. This is a hard ## limit, as this list determines which sockets are opened. This list ## can be restricted per export, but cannot be expanded. Protocols = 3,4; }
## These are defaults for exports. They can be overridden per-export. #EXPORT_DEFAULTS { ## Access type for clients. Default is None, so some access must be ## given either here or in the export itself. #Access_Type = RW; #}
## Configure settings for the object handle cache #MDCACHE { ## The point at which object cache entries will start being reused. #Entries_HWMark = 100000; #}
## Configure an export for some file tree #EXPORT #{ ## Export Id (mandatory, each EXPORT must have a unique Export_Id) #Export_Id = 12345;
## Exported path (mandatory) #Path = /nonexistant;
## Pseudo Path (required for NFSv4 or if mount_path_pseudo = true) #Pseudo = /nonexistant;
## Restrict the protocols that may use this export. This cannot allow ## access that is denied in NFS_CORE_PARAM. #Protocols = 3,4;
## Access type for clients. Default is None, so some access must be ## given. It can be here, in the EXPORT_DEFAULTS, or in a CLIENT block #Access_Type = RW;
## Whether to squash various users. #Squash = root_squash;
## Allowed security types for this export #Sectype = sys,krb5,krb5i,krb5p;
## Exporting FSAL #FSAL { #Name = VFS; #} #} EXPORT { Export_Id = 5; Path = /nfs; Pseudo = /nfs; Protocols = 4; Access_Type = RW; #Squash = root_squash; Sectype = none,sys; FSAL { Name = vfs; } } ## Configure logging. Default is to log to Syslog. Basic logging can also be ## configured from the command line #LOG { ## Default log level for all components # Default_Log_Level = INFO;
## Configure per-component log levels. # Components { # FSAL = INFO; # NFS4 = EVENT; # }
## Where to log # Facility { # name = FILE; # destination = "/var/log/ganesha.log"; # enable = active; # } #} sha.log"; # enable = active; # } #} _______________________________________________ Support mailing list -- support@lists.nfs-ganesha.org To unsubscribe send an email to support-leave@lists.nfs-ganesha.org