Help Center> Scalable File Service> FAQ> Networks> What Can I Do If the Data of the File System That Is Mounted to Two Servers Is Not Synchronized?

What Can I Do If the Data of the File System That Is Mounted to Two Servers Is Not Synchronized?

Symptom

When file system C is mounted to both server A and server B, there is a delay in synchronizing the file to server B after it is uploaded to server A. However, there is no delay when the file is uploaded to server B separately.

Fault Diagnosis

Add noac to the mount parameters of the two servers. noac indicates that cache is disabled and synchronous write is forcibly performed. To improve performance, the NFS client caches file properties (the default value is ac), and then checks the file properties periodically and updates them if the properties are changed. Within the cache validity period, the client does not check whether the file properties on the server are changed. The default value is ac. Set this parameter to noac.

Solution

  1. If the file system has been mounted, unmount it by referring to Unmounting a File System.
  2. Prepare for the mount by referring to Mounting an NFS File System to ECSs
  3. Run the following command to mount the file system:

    mount -t nfs -o vers=3,timeo=600,noac,noresvport,nolock Shared path Local path