NAS mount via launch daemon script - what else could be recreating mount? + Thunderbolt woes


i've created launch daemon (no keepalive, runatload true) runs script @ boot time this:

mkdir /volumes/homes
/sbin/mount_nfs nnn.nnn.nnn.nnn:/homes /volumes/homes

background (why i've done this)
1) users don't have logon nas separately. script runs @ boot time, time manage logon, mounted.
2) i've put users' directories on nas , it's transparent wouldn't notice. thing see no matter of 2 macs logon to, have files if local - great!
3) don't have have user ids on nas - had ensure mac users have same uids on both macs , permissions work if files local. i'm happy security implications of using nfs way - it's safe environment (home).

issue 1 - inexplicable mount points
in addition expected /volumes/homes, can see /volumes/homes-1, , /volumes/homes-2.
don't cause problems (the users don't notice) , work , can unmounted without issues (all symlinks point /volumes/homes/...), annoys me they're there , can't figure out come from! ...or pattern why appear.
there in mac os might remembering mounted , tries mount again?

issue 2 - mounting via thunderbolt ip address slow/flakey
have qnap thunderbolt nas. if use thunderbolt ip address mounting, takes 10-20 seconds longer nas's ethernet ip address, point not finish until after user has had enough time log on. that's not good, because e.g. desktop background might picture on nas, , instead default mountain background because mac os can't find image file (yet)! doesn't want mount @ via thunderbolt. no such issues via ethernet ip address - either mounting via thunderbolt flakey or there dependencies during boot don't work out...? like use thunderbolt because it's faster (the reason got specific qnap nas model).

side note, haven't played around @ automounting (/etc/fstab or /etc/auto_master), because think kick in when user logs on, @ point it's late (e.g. loading desktop background).

any suggestions or comments appreciated, i'm still learning ;-)
 



Forums Macs Mac OS X Server, Xserve, and Networking


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Other Unknown error

Trump supporter?

com.apple.DiskManagement.disenter error -119930878