Ashley M. Kirchner said:
>
>     Does something like this already exist?  Is there some other solution
> if
> this isn't the proper way of doing it?  Ideally I'd like to delay
> sendmail's startup as well otherwise incoming mail will get stored on the
> physical (local) /var/mail and when the NFS mount becomes available, I
> have to moves those files, do a remount, then cat those files back into
> the user's mailbox.  This is annoying.


though I have not tried this, it may work.

set the default mount options for the NFS filesystem(on the client) to
be soft(I believe default is hard). When the system boots if it cannot
mount it, it should continue, then when something tries to access it,
it will try(again) to mount it.

example:

I had a laptop playing MP3s off of NFS once. it was mounted as soft. I
rebooted the server. About 30 seconds later the XMMS buffer ran out and
the MP3 playing stalled. When the system came back up, the MP3 resumed
playing where it had left off, and I didn't have to do anything. I just
let it 'stall' until the mountpoint was available again.

If you really need a 'hard' mount, you may be able to remount it hard
after a set time(put a script in startup that sleeps for maybe 30 minutes
and then issues a mount /path/to/nfs -o remount,hard) that may work.
Though haven't tried it on an active file system.

You may want to keep it mounted soft all the time, depending on how
much usage it gets and how often the network may go down due to power
outages.

Another way would be to delay the startup of the user server, modify
the startup scripts(I think that would be /etc/rc.d/rc.sysinit) and
put a long sleep in there before the system tries to mount the filesystems,
or take the filesystem out of fstab so it doesn't mount on boot and
put it in a seperate script which sleeps before mounting.

Most things I have read said its generally a real bad idea to export
mail spools(at least read/write) over NFS due to locking issues, so
I wouldn't do it in the first place..if it's read only then it shouldn't
be a problem.

nate







-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to