Delay services until external drive mounts?

I have a Drobo 5D connected to my Mac running OS X Server. I use my Drobo to host the "Service Data" folder. For the most part, this has been a great setup, however - in the event of a cold-start, I need my OS X Server to delay starting services (mainly mail server) until the Drobo is mounted.
In a cold start scenario, my Mac boots and is ready to go before my Drobo has completed its power on initialization (particularly in the event of a power outage). When this happens, the Drobo is not mounted when OS X Server starts the mailserver. Since the folder "/Volumes/Drobo" can not be found, OS X creates it with owner "_dovecot" (the mail service uid). When my Drobo becomes ready, it mounts under "/Volumes/Drobo 1" ... this results in the mail service storing my mail in an invalid location, and the remainder of my services (time machine server) not being available.
Is there a way to delay the start of the mail service until the drive is mounted? Or even just to introduce a time-delay? If I put a 5 minute delay, it would be more than sufficient.
Thanks!
(Note: this is OS X 10.9.1 Server... I accidentally tagged it Mac OS 9, and my update doesn't seem to take affect)

Caveat: I have not tried altering the startup delay setting via the systemsetup command-line command, but it looks to be close to what you want.  Here are the applicable parts of the systemsetup man page:
systemsetup
     -getwaitforstartupafterpowerfailure
             Get the number of seconds after which the computer will start up after a power failure.
     -setwaitforstartupafterpowerfailure seconds
             Set the number of seconds after which the computer will start up after a power failure. The <seconds> value must be a multiple of 30 seconds.
Here's an example of fetching the current delay value from an OS X Mavericks box;
$ sudo systemsetup -getwaitforstartupafterpowerfailure
Password:
getwaitforstartupafterpowerfailure: 0 seconds
$
Based on your requirements and the description, maybe 300 seconds waiting for the disk to come online and to finish whatever RAID rebuild or controller initialization is necessary here would be the obvious test.
See if it works.  (Please let us know, too.)
Possible hardware options include sequencing power strips (power bars), but those aren't cheap; US$300 seems to be typical for one of those, and the ones I've located (Middle Atlantic) don't have delays anywhere near as long as your environment seems to require. 
Sequencing this startup from another system via a network-connected power strip — those tend to be a little over US$100, last I checked — would also be feasible; if you have another box (Mac, Linux, PC, Plug Computer, whatever) that can power up and manage the network power strip for you.

Similar Messages

  • How do I autorun something upon an external drive mounting?

    I do support for elementary schools and all teachers have a MacBook but limited server space for backup. I would like to set up a large external drive (raid 5 or somesuch) that upon insertion, would run a backup script and then unmount.
    Is there a way to make something autorun (regardless of what computer is connected) upon firewire or usb drive insertion?
    -Brandon L.

    It could be automatically done a few ways from each Mac with I use FW drives on most of my Networks and use Tri-Backup...
    http://www.tri-edre.com/english/index.html
    It can be setup to just sit in the background until a Drive or Share mounts, Backup whatever, dismount when done.
    Ideally it'd be run from the Server with the RAID attached to it.

  • External drives mount as read only

    I am running OS X 10.6, on a MacPro. Something happened recently to make my external hard drives mount as read only. The only way I've found to be able to fix them is to run Disk Utility every time I start up my computer. Does anyone have an solution to this?
    Also every time I run the Disk Utility, at the end of the repairs it says "Updating boot support partitions for the volume as required." I do not know if this is related, but I haven't been able to find anything relevant in relation to my problem with the drives mounting as read only.
    Message was edited by: HeatherK

    You might give this a try:
    Select the drive and Press COMMAND-I to open the Get Info window. At the bottom open the Ownership and Sharing section. Be sure the box labeled "Ignore permissions on this volume" is unchecked. If it is checked then click on the lock icon, authenticate, then uncheck that box. Close the window.
    Open the Terminal application in your Utilities folder and at the prompt enter or paste the following:
    sudo chown root:admin
    Put a space after "admin" then drag the drive's icon into the Terminal window. Press RETURN. You will be prompted to enter your admin password which will not be echoed.
    See if this fixes the problem.

  • Why doesn't an external drive mount?

    I am trying to do backup, and the external drive won't mount. I bought a SATA 250GB drive and attached it to the Powerbook using the USB port. The light shows up on the enclosure but there is no hard drive that appears on the desktop. Also it doesn't show up on Disk Utility.
    Is it because this is the wrong sort of drive?
    I connected the external drive to the MacBook Air to see if it would mount there and it doesn't show up there either on the desktop.

    Is this a bus-powered USB drive? If so, it's demanding too much power, and the USB port can't meet the demand. You'll need to provide it with an AC power supply, if it can be so equipped, or plug it into an AC-powered USB hub instead of directly into the computer.

  • Two computers, external drive mounting on wrong one?

    Weirdest thing: I have 2 computers on my desk:
    Mac Pro and older iMac.
    Two WD external drives, one connected via firewire to the macPro, one connected via firewire to the iMac.
    The drives are mounting on the wrong computers! (Yes I checked my cables). How is this happening?
    ANY help would be appreciated!!!

    or you could continue to network with the cable for security reasons.
    you just need to boot the computers disconnected from each other, mount their respective FW devices and then connect the cable between them, and youll be fine.
    im internetting with you now on my pro which is FW400ed to another computer that is on the connection. The pro has an external FW drive. One in 20 times, it mounts on the other computer, in which case, i disconnect, mount, reconnect, no prob.

  • Time Machine popup message on external drive mount

    When attaching a new external hard disk, a dialog pops up asking if you want to use this drive with Time Machine.
    How do you turn off this message? We don't need this message appearing every time an external disk is mounted.

    I disabled Dashboard in Tiger by going into Dock.app and removing the Dashboard components. Perhaps something similar will work here? I would prefer to alter a .plist to tell the Finder to stop displaying this dialog.
    I did some digging in the system and found that Time Machine consists of (at least in part):
    backupd
    elements of Finder.app (the Finder.app bundle contains Time Machine UI elements such as the background graphic).
    In ~/Library/Preferences/ByHost/com.apple.TimeMachine.HOSTADDR.plist
    it appears that hard drive GUID identifiers are recorded under the AutoSetupDisks array. I've tried replacing one of the entries with an asterix, in the hopes that it would be read as a wildcard. No luck there.
    This is a peek into some of the workings of Time Machine, and from what I can see so far, weeding Time Machine out of the system would be a messy business and involve modifying the Finder, removing backupd and its Launch Daemon, and possibly more.
    I would much rather alter a .plist and be done with it.

  • My external drive mounts but doesn't show in Finder anymore?

    I was accessing my iMac external backup drive over the network from my laptop and it suddenly greyed out.  Going to my iMac I discoverd that the drive was mounted according to Disk Utility and my backup utility could find it but it doesn't show on my desktop or the sidebar of the Finder window.  I can access it thru the Go to Folder menu item.  I can then drag items to it but can't save items to it directly since it doesn't show up in Finder. I have checked Finder preferences, restarted the iMac, dismounted (in Disk Utility) and remounted it.  I've also eliminated it in Sharing system preferences.  No luck on all counts.  I connected it to the laptop and it behaves the same way.  Doing a Google search turned up the possiblity that it has become "invisible" but I'm confused as to how to change this attribute.  I'm hoping there is a simple Terminal command I can use.
    Looking for some help here!

    Yes I did Eric.  Then just found the answer.  Volume became hidden and I used a Terminal command.
    Thank you for reading my question and suggesting a solution!

  • Why won't my external drive mount in Lion when it will mount in Snow Leopard?

    Hello,
    I have an external hard drive, a Rocstor Arcticroc 4T, that will not mount on my Mac Pro running OS 10.7.4.  It will mount when I connect it to my other system running OS 10.6.8, or when I boot to an alternate partition on the same system running OS 10.6.8.  I've tried using the latest versions of Disk Warrior and Drive Genius to repair/rebuild/reformat the drive with no success. 
    When I boot to OS 10.7.4 the disk shows up in Disk Utilities, but the volume is grayed out.  When I select the volume and try to mount it I get the following error:  "The disk "Media 3" could not be mounted.  Try running First Aid on the disk and then retry mounting."  I've run repair disk numerous times, with no errors reported.
    There is no media on the drive, so I can re-partition, reformat or change the RAID configuration with no consequences.
    Any help would be greatly appreciated.
    Thanks,
    -Jim

    the drive case needs drivers and or firmware. Happens all the time esp. with many makes and vendors due to the bridge it uses, that does the SATA drive <=> to FW/USB/etc to your Mac and whether you use FW800/400 or USB2 or even eSATA (w/ a PCIe SATA controller).
    If you are using native SATA and an PCIe SATA controller.... tell us! and the vendor needs to provide drivers that are not included with Lion. Lion just 'broke' support it has had with Snow Leopard.
    As for RAID - a RAID created with SL will not always support Lion for booting or mount. Happened with 10.3.9 too. And SL would not install on a RAID created with Leopard. See the pattern emerging?

  • External Drive Mounts on MacBook, not on PowerBook

    Situation:
    I own a Powerbook G4, and recently bought a Macbook from a friend, along with a Hitachi Travelstar external hard drive that he used with the Macbook.
    When I got the hard drive, I plugged it into my Powerbook and copied some files to and from it, then plugged it into my Macbook and moved some files over to the computer.
    I then used the Macbook to format the Hitachi drive.
    Now, the drive works perfectly fine with the Macbook, but when I plug it into the Powerbook, it doesn't mount, and makes a slight clicking noise.
    I tried plugging it into a different Powerbook, and the same thing happens.
    I'm thinking it has something to do with the way the drive was formatted, but I'm not sure of this, and I'd like the advice of you wiser, more experienced users. I'm willing and able to do a reformat of the drive using the Macbook (since I can't format it on the Powerbook), but I need to know what settings I should be using to prevent this from happening again. The drive is intended to be used as a backup media drive, so ownership and permissions shouldn't matter. (I'm not even sure if that's relevant to this problem, but thought I'd mention it anyway)
    Any help is greatly appreciated! Thank you!
    Joe

    If the Powerbook has 10.3.9 or later it shouldn't matter how it was formatted. If it has 10.3.8 or earlier, you have to partition it for Apple Partition Map to be readable on both Intel and PowerPC Mac. Unfortunately as Apple Partition Map, it won't be bootable on an Intel Mac. You can do a dual Apple Partition Map/GUID (the format used by Intel Macs), as documented here:
    http://www.macosxhints.com/article.php?story=2006061610374449

  • Why does my external drive mount as not writable?

    I've got a 1 TB external WD drive formatted as Mac OS Extended.  After upgrading my MacBook Pro this drive occasionally is mounted as read-only.  If I open Disk Utility and Verify the volume, the verify completes without reporting any errors, and when it remounts the volume, it's writable again. Anyone else seen this behaviour?
    -Brian

    You may try a SMC reset, maybe do it 2-3x.
    SMC RESET
    Shut down the computer.
    Unplug the computer's power cord and all peripherals.
    Press and hold the power button for 5 seconds.
    Release the power button.
    Attach the computers power cable.
    Press the power button to turn on the computer.

  • External drive mounting in keyboard (USB 1) not in USB 2

    After some days crying and many hours searching I found lots of USB-related issues, different OS versions, machines and external peripherals.
    My problem was with a Iomega USB2 external disk and a "brand new" Mac Pro Intel Xeon 2.66GHz. Many times plugging and un-plugging, replacing cable, etc. and I found that it worked fine when attached to the USB port in the keyboard (USB 1, not aluminium), but not in any USB 2 port.
    This is the little troubleshooting list I created, sorted in less-effort-sorting, just in case it can help anyone:
    -Apply latest Combo Update --> Worked!!! (I allways use the Combo update; re-applying it made the job).
    -Delete kext caches:
    delete the following:
    • com.apple.kernelcaches (a folder in /System/Library/Caches)
    • Extensions.kextcache (a file in /System/Library)
    • Extensions.mkext (a file in /System/Library/)
    -Use "USB Prober" (installed with the Dev Tools at /Developer/Applications)
    -Re-format the external disk as NO GUID (more info at http://discussions.apple.com/thread.jspa?messageID=4442474 paragraph -3 of last post).
    The first one made the trick for me (re-installing the latest Combo avaiilable). Thanks to these forums.

    Update: after a couple of restarts, same issue. Then I deleted kext caches. Worked! After a couple of restarts, same issue. After some more restarts, I got the BSoD (blue-screen-of-death).
    I tried deleting the regular addons, but it only booted fine after deleting the system caches /System/Library/Caches, plus all the kext caches.
    Before getting this Mac Pro, I had exactly the same BSoD issue in a Mac Mini. After cleaning these files, it worked fine again as well (via Firewire-target-mode).
    I'll explain... I have the same configuration in the last year (applying only regular updates to my regular software). No changes in the last month. Now I'm on hollidays, so I picked my machine and the external HD of my wife (mine USB 2, hers Firewire).
    After some days without problems, the USB 2 HD stopped working (working only thru USB 1). The firewire one allways works fine.
    After some more days, I got the BSoD in the Mac Mini. Then I bought a Mac Pro and started installing from zero all my needs. After some days working fine, again USB 2 issues, again BSoD.
    This smells pretty much to OS software failure, most probably related to the mix of the Firewire and the USB 2 external disks, as if the cohabitation of various disks being turned ON and OFF, both thru USB 2 and Firewire, along the day was confusing the system to the point of corrupting something in the mentioned caches.
    I tried various system configs, with or without haxies, but the only thing which fixes (at least temporarily) both USB-2-HD and BSoD seems rebuilding that caches. I think something similar happened when I re-applied originally the latest Combo update.
    I'm close to "absolutelly sure" nothing changed in my machine before these issues. The only thing which changed was the introduction of the FW external hard disk and a new user (my wife), but she doesn't use to mangle system folders, just use various design apps, email and so on...
    Any help is appreciated, as I guess I'll reach the BSoD status again very soon. I can reset again the caches and most probably it will work again. But it's not only a PITA, but also dangerous. In the last phase of the Mac Mini's death, it's been very difficult ever using it in firewire-target-mode, as the keyboard wasn't responding at all, only one time every 10 or 20 restarts... (now works flawlessly after deleting the "offending" caches).
    Thanks for any hint!

  • Stop external drive auto-mounting with utf8=1 option

    The filenames on my external disk aren't showing up right.  I've used and am using a typical GNOME setup, and this only started happening when I stopped upgrading for a long while, then went with a complete re-install.
    A little experimenting showed that mounting it without the utf8=1 option fixed those filenames. Given the labyrinth of HAL, DBus, udev and DeviceKit, how do I stop my vfat external drive mounting with utf8=1?
    There's more info over at the cross-posted thread in Desktop Environments, but I felt it would be more appropriate to ask here instead.

    I've "fixed" the issue by adding this line to /etc/fstab:
    UUID=3BEC-9DA3 /media/WD\040Passport vfat rw,user,uid=1000,gid=100,shortname=mixed,dmask=0077,utf8=0,noauto,flush 0 0
    This stops the utf8=1 option being used when I hotplug my external disk.
    However, GNOME now has a phantom "WD Passport" external drive icon. It never seems to point to anything, and whenever it's so much as selected, an error dialog appears saying that nothing is mounted there. Another, actual drive icon can access the disk, but the phantom icon is annoying.
    Does anybody have a better way of setting mount options in this setup than using /etc/fstab?
    If not, does anybody know how to get rid of the phantom drive icon?

  • Want to use external drive for new Mac, fresh iTunes

    So I recently got a new Mac and have not transferred any music to it yet. In fact I haven't even launched iTunes. I want to store all of my music and play it from an external drive. I have found articles detailing how to transfer your library from your internal drive to an external one but I don't have an internal library of music on this machine. How do I set up iTunes to play from an external library for the first time? And how do I add my backed up music from my previous iTunes to that external drive's new music library? Do I just drag the files into the folder and hope iTunes will recognize them?
    Thanks!

    okay, i had to collect my thoughts for a moment
    ... but I don't have an internal library of music on this machine.
    is *this machine* the new Mac ?
    How do I set up iTunes to play from an external library for the first time?
    the files will have to be added to iTunes. however, with the correct settings, they can be put straight on the external.
    in order to set up iTunes on the new Mac, you will have to launch it. with the external drive mounted on your new Mac's desktop, go iTunes > preferences > advanced and point +iTunes media folder location+ to the external. this will cause iTunes to put all newly added content in that location.
    also on the advanced tab, check +keep iTunes media folder organized+ and +copy files to ... when adding to library+.
    And how do I add my backed up music from my previous iTunes to that external drive's new music library?
    did you back up the music to disk ? if so, you should probably authorize iTunes with your iTMS account details, then just pop in the disk(s) and add the content to your library.
    if you have backed up to an external HD, use the +add to library+ command from the file menu and navigate to the folder containing your media files.
    JGG
    edited by the Jolly Green Giant (where Green stands for environmentally friendly)

  • How do you view file on an external drive using Unix?

    Hi Folks,
    I'm a serious UNIX newbie...Basically I took up unix in order to use a specific image processing software package... I've learned enough to write a script to batch process all of my images, but I have so many that I would like to use an external (USB) drive to hold the data and point the script towards those files.
    Is there any way to navigate to an external drive in UNIX?
    I see a lot about "mounting" drives, but I have no idea how to do this... I really need someone to hold my hand!
    Thanks.
    -Brent.

    PS:
    here is an example of mounting a network drive if you have to go across the network and actually have the external drive mounted, as opposed to just copying to/from (which would probably be the case coz' things like "scp" are going to ask you for a password):
    mount -t smb server.work.com:/vol/vol0/Projects /Projects
    -t is keyword for type of of filesystem and smb is the actual type.
    server.work.com:/vol/vol0/Projects is path to actual directory on external networked drive. The trailing "/Projects" is the mount point and name on your computer.
    Visit the "man" pages for mount in Terminal for more info, at prompt, type
    man mount
    You won't have to bother with this with a locally mounted (i.e., on the same computer that you are working on) firewire or USB drive. The local path is just
    /Volumes/{NameOfExternalFirewireOrUSBdrive}/{filepath}

  • Big flaw in Leopard regarding External Drives and DISK UTILITY

    My macbook pro with Leopard 10.5.3. is not recognizing my drives and does not let me use or move files into them. File corruption in drives. Does not mount or unmount.
    THe disk utility cannot repair these problems.
    Now I'm at the 3rd drive getting corrupt in the last week.
    Is Apple coming out with an update to resolve these issues?
    In the meanwhile I saw this page on the Seagate web sites.
    https://seagate.custhelp.com/cgi-bin/seagate.cfg/php/enduser/popupadp.php?p_sid=dLEqXr6j&p_lva=&p_li=&p_faqid=5005&p_created=1195077097&psp=
    Any help will be appreciated.
    Thanks,
    Antonio

    You can get dozens of "not me" or "yes" opinions, but you might want to look at reader feedback reports first on MacFixit (subscription required after 3 days) or MacIntouch, or handy olde Google.
    There have been problems with external drives mounting, not unmounting, a known issue during shutdown, that seems to affect a number of drive cases.
    Note: it helps to narrow down and ask/focus on what you are using, I assume by your link, that you are asking about a Seagate case, so issues with LaCie, Maxtor, Initio may or may not apply.
    By 3rd drive, I assume same case? rather than disk drive, or same make model in each case?
    For the record, years of using Oxford based and no issues, I avoid all the name brand cases in favor of the 'build it yourself' or OWC FireWire/USB Mercury (not that there aren't a few reports of problems, but I think much less).
    Also, check www.xlr8yourmac.com for its "Drive Upgrade Database" reports, too.
    http://www.macintouch.com - hard drives a good start.

Maybe you are looking for

  • On how many pc's may I install Lightroom with one license?

    I'm planning to purchase Lightroom 5, but I need to know on how many pc's I can install the software when having a single license. Note that I will be the only user, but I do need it to work on both my desktop pc, as well as on my laptop. How many pc

  • How to handle idoc documents by BizTalk without WCF-SAP Adapter?

    Dear All, our company is no customer of SAP. But one partner company of us uses SAP Systems to generate business transactions like "INVOICE". Then they send us such a idoc-file per email. So I can not use the SAP-WCF Adapter by BizTalk (the download

  • SPNego SSO not working on specific servers

    Hello gurus, we have installed BI 7.0 SP15 with Portal as the java side of the BI (double stack). We have CI + 3 dia instances. we have configured the SPNego as described in SAP documents and for some reason only on two servers the SSO is working. On

  • ITunes Runaway Sound Glitch?

    I just bought a new 15" Powerbook G4, quickly loaded about 8GB of my music onto the computer and am now having a strange problem... Every once in a while the music will start skipping (playing the same short part of a song over and over) while increa

  • Redhat 7.0

    How can run the JRE with this distribution? I have the problems to run dbassist and others java applications that use this Java rutime. Best Regards