Caldarale, Charles R wrote:
From: André Warnier [mailto:a...@ice-sa.com]
Subject: Re: tomcat6 still deleting XML files from Catalina/localhost when the system is booted
Suppose one of your local system's mountpoints is "/mnt/nfs01",
and suppose that what you want to mount there, is the exported
NFS filesystem "server01:/some/exported/fs". If you place a
small file "not.yet.mounted" inside of the /mnt/nfs01 local
directory, it will be visible, as long as the mount has not
yet really happened.
I'm under the impression that mount points have to be empty directories...
No (at least not under Linux) :
vovm1:~# cd /mnt
vovm1:/mnt# mkdir test
vovm1:/mnt# cd test
vovm1:/mnt/test# touch not.mounted.yet
vovm1:/mnt/test# ls -l
total 0
-rw-r--r-- 1 root root 0 2011-03-23 13:43 not.mounted.yet
vovm1:/mnt/test# cd ..
vovm1:/mnt# mount -t nfs titanic1-int:/TEST/SRV /mnt/test
vovm1:/mnt# mount
...
titanic1-int:/TEST/SRV on /mnt/test type nfs (rw,addr=192.168.20.80)
...
vovm1:/mnt# ls -l /mnt/test
total 8
drwxr-xr-x+ 4 root root 4 2011-01-04 20:10 DAV
drwxr-xr-x+ 2 root root 2 2005-03-23 22:34 ftp
drwxr-xr-x+ 5 root root 8 2011-02-06 22:09 tomcat5.5
drwxrws--- 9 www-data www-data 9 2010-08-04 00:27 www
vovm1:/mnt# umount /mnt/test
vovm1:/mnt# ls -l /mnt/test
total 0
-rw-r--r-- 1 root root 0 2011-03-23 13:43 not.mounted.yet
vovm1:/mnt#
CQFD.
And as soon as the mount has really happened, it will no longer
be visible, because its parent directory "/mnt/fs01", will be
"hidden" by the contents of "server01:/some/exported/fs".
Did you mean /mnt/nfs01 above, or is something else intended?
You are right, /mnt/nfs01 it should have been.
Conversely, if you place a file "now.its.mounted" inside of the
remote directory "server01:/some/exported/fs", it will not be
visible locally in "/mnt/fs01", until the mount has really happened.
Assuming you mean /mnt/nfs01, that one should work.
And the other one above too.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org