You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It throws a [CRIT] Remote share '/export/data/subfolder' unavailable! error because showmount -e nfshost does not output subfolders of nfs shares. The check_remoteshare function returns false.
The only way to make it work I can think of right now (with no testing, and not being very good at bash programming), is to not run the check_remoteshare function.
Anyone else have a better idea?
The text was updated successfully, but these errors were encountered:
FYI, I "fixed" the problem by commenting out lines 311-312 and 330-332 in /usr/local/bin/nfs_automount.
Not a very good fix since it removes the check for the nfs share.
# Make sure the remote NFS share is available#check_remoteshare ${_remotesystem} ${_remoteshare}#if ${_RET} ; then# Make sure the local mountpoint exists and is free
valid_for_mount ${_localmountpoint}if${_RET};then
log "[INFO] Attempting mount: ${mountcmd}${_mountopts}${_remotesystem}:${_remoteshare}${_localmountpoint}"${mountcmd}${_mountopts}${_remotesystem}:${_remoteshare}${_localmountpoint}if [ $?-ne 0 ] ;then
log "[CRIT] Unable to mount share '${_remoteshare}'!"else
log "[INFO] Share '${_remoteshare}' mounted from '${_remotesystem}' at '${_localmountpoint}'."fielse
log "[CRIT] Local mount point '${_localmountpoint}' missing or already in use!"fi#else# log "[CRIT] Remote share '${_remoteshare}' unavailable!"#fi
In /etc/fstab, if I do something like:
It mounts just fine.
If I try with nfs_automount:
It throws a
[CRIT] Remote share '/export/data/subfolder' unavailable!
error becauseshowmount -e nfshost
does not output subfolders of nfs shares. Thecheck_remoteshare
function returns false.The only way to make it work I can think of right now (with no testing, and not being very good at bash programming), is to not run the check_remoteshare function.
Anyone else have a better idea?
The text was updated successfully, but these errors were encountered: