I have a very specific and a very puzzling problem.
If I modify (touch) file located on mounted drive the file's timestamp shows the latest modification time as exactly one hour before the actual event.
I have checked all possible options I could imagine, but got nowhere.
Here are more details about setup (it is quite complicated).
- The machine runs RH 6.8 (let us call it rh68).
- On top of it I run RH 4.8 on virtual box (let us call it rh48vb)
- Physically, home folder is located on machine with RH 5.5 (rh55) and is mounted on both rh68 & rh48vb
All machines' clock set to (almost) the same time as shown by 'date' command with rh48vb clock going about 2 minutes forward
Now, assume I am log on to rh48vb. I have access to home folder (physically located on rh55) and to the /build/ folder, physically located on the local hard drive. I have 2 files named test_home and test_build.
Here is the magic:
<rh48vb>cd /build
/build
<rh48vb>date
Mon Jun 5 13:26:52 UTC 2017
<rh48vb>touch test_build
<rh48vb>ll test_build
-rw-r--r-- users 5 Jun 5 13:26 test_build
<rh48vb>cd ~
<rh48vb>date
Mon Jun 5 13:27:04 UTC 2017
<rh48vb>touch test_home
<rh48vb>ll test_home
-rw-r--r-- 1 users 5 Jun 5 12:25 test_home
< ....... login to my physical workstation rh68 ........>
<rh68>date
Mon Jun 5 13:25:36 BST 2017
<rh68>ll test_home
-rw-r--r-- 1 users 5 Jun 5 13:25 test_home
< ....... login to machine rh55 where homefolder physically is located ........>
<rh55> date
Mon Jun 5 13:25:54 BST 2017
<rh55>ll test_home
-rw-r--r-- 1 users 5 Jun 5 13:25 test_home
So
- When I look at file
test_home
from rh68 or rh55 timestamp is correct. - When I look at
test_home
from rh48vb the timestamp is rh55 time of file's modification minus one hour. - When I look at file
test_build
from rh48vb timestamp is rh48vb time of file modification.
It does not matter if I 'touch' time_home
from rh48 or from rh68 or rh55 -- the result is the same.
At this point I have run out of ideas.
UTC
and the rh68 onBST
timezone. You should set them both to the sameBST
timezone and maybe install the ntp service to sync the machine time with the internet. (UTC offset to BST is +1 hour)hwclock -r
shows the same time on rh48vb and rh55. I do not have access rights to runhwclock -r
on rh68.