On Friday 18 November 2005 15:26, Bob Manson wrote: > We're have the NFS locking problem with Redhat (RHEL4). It's apparently > fixed in the next release of the kernel (I hope). But until then we invoke > UML via a script which copies the COW file to a unique directory in /tmp > and the copies it back to the users home directory--which is nfs > mounted--when the user shuts down the virtual machine. We use star > (instead of cp or tar) to do the copying because it seems to do a good job > of handling sparse files.
By default cp and tar don't work well, but they have a --sparse or -S option. I don't know if --sparse=auto works on NFS (it depends on the FS reporting the real disk usage), but --sparse=always should work (never tested). Ah, but cp --sparse will still read the holes, so it's pointless on NFS. "Good job" means in their creation, right? Because rsync --sparse could also save downloading the holes through the network. -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user