SSHFS/SFTP for use with munkiimport

157 views
Skip to first unread message

Joseph Rafferty

unread,
Mar 13, 2013, 1:42:58 PM3/13/13
to munki-dev@googlegroups.com munki-dev@googlegroups.com

A little tip for those mounting your munki repo using sftp... I highly recommend using OSXFUSE and the SSHFS project to mount your repository, found here: http://osxfuse.github.com/


I recently had my network jack upgraded to gigabit and when uploading some large packages into my repo quickly found that my bottleneck was actually not my ethernet connection. I was using Transmit at the time, and even with a gigabit connection found that ~16 MB/s was the max throughput to the repo. I then tried ExpanDrive (which itself uses a modified MacFUSE) and got 11-12 MB/s. Yikes.

I then checked my server's CPU usage when performing a copy, and there was barely a blip. Disk write bandwidth was as expected from a disk array and was over 200 Mb/s.

Then I tried FUSE for OS X (OSXFUSE), which is the successor to MacFUSE and saw 50+ MB/s throughput. Bingo. This was using a Mid 2012 Macbook Air.

So, definitely give it a try. There isn't a fancy menubar mounter yet like ExpanDrive and Transmit have (though that gives me an idea for an app). It requires a command to mount a volume, but if you're comfortable using munki and munkiimport, a measly shell command shouldn't be an issue for you.

Example command:

mkdir -p /Volumes/munki_repo; sshfs username@reposerver:/path/to/repo -o volname=custom_volume_name

Cheers,
Joseph




A.E. van Bochoven

unread,
Mar 13, 2013, 6:48:42 PM3/13/13
to munk...@googlegroups.com
If you like a GUI with that, try

http://code.google.com/p/sshfs-gui/

-Arjen
> --
> You received this message because you are subscribed to the Google Groups "munki-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Chris @ FACT

unread,
Mar 20, 2013, 4:06:38 AM3/20/13
to munk...@googlegroups.com
+1 This is exactly how I mount my repo locally and it works very well indeed. Never knew about the local volume switch for sshfs though so thanks for that!
Reply all
Reply to author
Forward
0 new messages