Client not sync when NFS server move exported directory

Reuben D. Budiardja techlist at voyager.phys.utk.edu
Fri Jul 9 15:03:25 UTC 2004


On Friday 09 July 2004 01:38, Peter Smith wrote:
> Reuben D. Budiardja wrote:
<snip>
> >After every snapshot run, when I try to access the NFS mounted directory
> > from my workstation, I think I actually see the moved directory, that is
> > I see hourly.3 instead of hourly.2 (because of step 2 above). If I
> > unmount then try to mount again, I'd get 'permission denied'. The only
> > way I can fix it is to restart nfs service from the backup server, then
> > try mounting again.
> >
> >Is there a better way to do this? Of cource I can just put all those as
> > cron jobs, but if there's a way to keep my NFS mounted directory to sync
> > with the new hourly.2 after rsnapshot run, that'd be great.
> >
> >Thanks for any help.
> >Reuben D. Budiardja
>
> Hi Reuben,
>
> I would try creating shared directories hourly.0, hourly.1 etc, and then
> 1. rm hourly.3/hourly
> 2. mv hourly.2/hourly hourly.3/
> 3. mv hourly.1/hourly hourly.2/
> 4 cp hourly.0/hourly hourly.1/
> 5 rsync hourly.0/hourly with the most current snapshot.


That may not be as easy as it sounds, since the mv and cp is all run fron 
rsnapshot (www.rnapshot.org). Sure I can modify the program, but I'd rather 
not.

RDB





More information about the redhat-list mailing list