Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Restoring automounts



On Wed, 6 Jun 2007 09:04:21, Dan Shoop <email@hidden> wrote:
>
> At 11:41 AM -0700 6/5/07, Scot Hacker wrote:
>>Hi all  - Quick question I couldn't find an answer to in the archives.
>>
>>Servers A and B  store user homes, Server C  is a web server that
>>automounts those homes on boot and makes available user Sites
>>folders through apache. If either A or  B is rebooted and C is not,
>>those
>>Site folders  become inaccessible, since the mount  is broken.
>>
>>The question is, is there  a command I can run that will
>>re-initiate the same mount connection that occurs  at boot time, so
>>I can restore the mounts on C without restarting the server?
>
> `mount` doesn't work?
>
>>  I see that I can build map files and pass them to the automount
>>command., but am thinking there  must  be an easier way - a command
>>that will reproduce whatever  mount process is normally run during
>>boot.
>>
>>I'd like to set  up some kind of automated job to check for the
>>mounts  and re-mount the broken connections if necessary.
>
> Couldn't you always have the rebooted host (A/B) send a ssh request
> to the client (C) to issue a mount or restart automount??

I think Dan's approach is a good way to go.  If you try to do it all on
the client (C), it will have to determine:

1. Are the mounts broken?
2. Is the host (A/B) up and running yet?

It will have to repeatedly check the status of the mounts and the host. 
If you check too often, you're wasting resources.  If you don't check
often enough, the mounts may remain broken for longer than necessary.

The host should inform the client that it has restarted and is ready to
resume file sharing, and the client can fix the mount ASAP.

Now, how to actually fix the mount... I'll have to plead ignorance on that
count.

-- 
Patrick Schwisow
Web Information Manager
Waukegan Public School District 60
http://www.waukeganschools.org/

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.