VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
2 Replies Last post: Nov 7, 2009 11:18 AM by brasshopper  

NFS Apache Log files posted: Jan 17, 2008 5:47 PM

Click to view tazmarine's profile Lurker 2 posts since
Jan 17, 2008
Hello all, I'm a new user of VMware virtual server and I'm trying to create a simple setup to run two Linux virtual servers each hosting an install of apache/php/mysql. One server will be used for production and the other server will be used for development. I've created two nfs shares on the host box (one for prod /webs/prod and one for devl /webs/devl) and mount them at boot on the respective virtual servers. The nfs shares hold the apache document root, log files, and mysql databases. Both servers run great but I'm seeing a small inconsistency with the logging. Not all the http requests are getting logged and can see this as I watch tail -f /webs/prod/log/access_log. There have been a couple times where I don't send any request for about 15 minutes then I send a couple and do an ls -l and the date/time stamp isn't updated. I do a tail on the access_log and it has the last log entry from 15 minutes ago. It does seem to log better when I tail -f it, almost like it fell asleep and I woke it up.

Just curious if anyone has seen this before. I did try and change some of the mount options but still see inconsistencies in the logging.

My server info is a Sun V20z server, dual amd processors, and 2GB of RAM. Host and client operating systems are RHEL 4 ES

Re: NFS Apache Log files

2. Nov 7, 2009 11:18 AM in response to: tazmarine
Click to view brasshopper's profile Lurker 1 posts since
Nov 7, 2009
Look at the open(2) man page and the note about O_APPEND regarding NFS.

I think that putting apache log files on NFS appended by multiple processes simply will not work. You are going to need local disk for the VM for apache log files.

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities