Skip to content

permission denied trying to mount /home on newly started nodes after accidental deletion #666

Open

Description

@blmt

It seems elasticluster can recover remarkably well when worker VMs are deleted by just starting again the cluster.
However as a consequence of the new IP address a VM gets assigned, the setup phase fails when it tries to mount /home from the frontend node: it seems that while the hosts file is properly updated, NFS caches the IP address it initially resolved from the exports file.
A manual restart of the NFS service on the frontend node fixes the situation and it could be suggested and/or automatically performed to be sure the running configuration is in sync with the configuration files.

Activity

  1. riccardomurri commented on Oct 31, 2019

    @riccardomurri
    Contributor

    A manual restart of the NFS service on the frontend node fixes the situation and it could be suggested and/or automatically performed to be sure the running configuration is in sync with the configuration files.

    Actually, exportfs -r is unconditionally performed whenver the nfs-server role is run. What is happening, I think, is that, since the host names have not changed but only the IP addresses, exportfs can not detect any change in the configuration and exits without signalling rpc.mountd to reload the exports table.

    A fix would be to populate the exports table with IP addresses instead of host names, which would fix the issue at the cost of making the exports file more obscure.

    Another one would be to restart only the rpc.mountd service, but on older SysV-based distros it does not have a separate startup script, we must restart the entire NFS subsystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions