On Friday 31 October 2008 02:20:39 Brendan Hart wrote:

> > Is it possible that nfs directory got written to /usr at some point in
>
> time?
>
> > You would only notice this with du if the nfs directory is unmounted.
> > Unmount it and ls -al /usr/mountpoint should only give you an empty dir
>
> Bingo!! That is exactly the problem. An NFS mount was hiding a 17G local
> dir which had an old copy of the entire NFS mounted dir. I guess it must
> have been written incorrectly to this standby server by RSYNC before the
> NFS mount was put in place. I will add an exclusion to rsync to make sure
> it does not happen again even if the NFS dir is not mounted.

I used to nfs mount /usr/ports and run a cron job on the local machine. I made 
a file on the local machine:
echo 'This is a mountpoint' > /usr/ports/KEEP_ME_EMPTY

The script would:
if [ -e /usr/ports/KEEP_ME_EMPTY ]; then
        do_nfs_mount();
        if [ -e /usr/ports/KEEP_ME_EMPTY ]; then
                give_up_or_wait();
        fi
fi

Of course it's fragile, but it works for not so critical issues.


-- 
Mel

Problem with today's modular software: they start with the modules
    and never get to the software part.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to