By using AWS re:Post, you agree to the Terms of Use

Is using the linux sync command able to provide a consistent view of an EFS volume?

0

EFS (and NFS) have "close to open consistency" so two clients may not have the same view of the same file system. If I issue a linux sync command from a connected EC2 or Fargate container will this cause the client to refresh it's view of the content of the filesystem? Will it cause other connected clients to also see a consistent view?

Assuming the approach works, are there drawbacks to using sync especially when multiple clients are connected to the volume and may be reading and writing files at the time the command is issued?

asked 10 months ago28 views
1 Answer
1

Have you tried specifying noac as a mount option to force un-cached writes of file attributes, depending on your application this may be simpler to implement than forcing a sync.

This will however likely impact performance.

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions