The file generation time on the Mount point follows that system.

Source: Internet
Author: User
The file generation time on the Mount mount Mount point follows the actual situation of the system: one of my Linux systems, mount one NAS, is two systems, with A writing operating system, B representing the NAS system. Mount nfs B on A, and grant A the read/write permission on B! The problem is: in the mount directory of... the file generation time on the Mount mount Mount point follows the actual situation of the system: one of my Linux systems, mount one NAS, is two systems, with A writing operating system, B representing the NAS system. Mount nfs B on A, and grant A the read/write permission on B! Now the question is: in the mount directory of A, if A file is vi or touch, is the file generation time A's system time, or B's system time? (Assuming the system time of A and B is inconsistent) Test: // use touchto update the time of the whattime.txt file, and then check the time of A file and the system time! [A] # touch whattime.txt [A] # ll -- full-time whattime.txt-rw-r -- 1 root 9 20:56:43. 533820000 + 0800 whattime.txt [A] # dateMon Jul 20 20:53:22 CST 2009 the time that can be sent to system A is 20:53:22, while the time when the file is just updated is 20:56:43, it indicates that the file time is not the time of system A, but the time when system B is mounted. // Check the time of B immediately. it is 20:56:53. B> dateMon Jul 20 20:56:53 CST 2009 conclusion: When A system A mounts another System B, the file generation time in the mount directory is based on the system time that provides the shared space. We recommend that you use the same NTP server for clock synchronization between the two systems! During WWW access, in the response header returned by the server, the date header is the time of the WWW server, and the last-modified header is the time when the file is generated. if the WWW server is mounted to a NAS environment, the time of the two systems is inconsistent. problems may occur in the page cache.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.