<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>klein2 blog &#187; netatalk</title>
	<atom:link href="http://www.klein2.de/tag/netatalk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.klein2.de</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 10:16:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Time Machine Volumes with ZFS &amp; AFP</title>
		<link>http://www.klein2.de/2011/01/09/time-machine-volumes-with-zfs-afp/</link>
		<comments>http://www.klein2.de/2011/01/09/time-machine-volumes-with-zfs-afp/#comments</comments>
		<pubDate>Sun, 09 Jan 2011 11:49:33 +0000</pubDate>
		<dc:creator>Dennis Klein</dc:creator>
				<category><![CDATA[Technique Stuff]]></category>
		<category><![CDATA[afp]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[netatalk]]></category>
		<category><![CDATA[time machine]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.klein2.de/?p=1550</guid>
		<description><![CDATA[After moving to Nexenta with ZFS, I of course wanted to keep hourly backups of the Macs in the network. We&#8217;re currently running 6 of them: - Mac Pro &#8220;Kurumi&#8221; in the office - iMac &#8220;Indy&#8221; in the office - MacBook &#8220;Dawn&#8221; &#8211; everywhere - MacBook &#8220;Hammy&#8221; &#8211; everywhere - Mac mini &#8220;Belldandy&#8221; in the [...]]]></description>
			<content:encoded><![CDATA[<p>After moving to Nexenta with ZFS, I of course wanted to keep hourly backups of the Macs in the network. We&#8217;re currently running 6 of them: <span id="more-1550"></span></p>
<p>- Mac Pro &#8220;Kurumi&#8221; in the office<br />
- iMac &#8220;Indy&#8221; in the office<br />
- MacBook &#8220;Dawn&#8221; &#8211; everywhere<br />
- MacBook &#8220;Hammy&#8221; &#8211; everywhere<br />
- Mac mini &#8220;Belldandy&#8221; in the living room<br />
- Mac mini &#8220;Saki&#8221; in the office</p>
<p>As both Mac minis are &#8220;just&#8221; used to playback videos (from the Nexenta server), TV (Sat) &#038; Radio (Sat), I don&#8217;t think a backup makes any sense. So &#8211; still 4 Macs to backup left. On Debian it was a hassle to create new partitions now and oh &#8211; the backup pool (4x 1.5TB RAIDz1) was already created and data is stored onto.</p>
<p>Luckily, ZFS is a fantastic filesystem. I simply create new pools below the mainpool.</p>
<pre class="brush:plain">zfs create backup/tm-kurumi</pre>
<p>Done! This took just a few seconds. Now I want that Time Machine does not fill up the complete space of the backup pool, so I set a quota. 500GB sounds reasonable, since I save most of my stuff directly to my server and my Mac Pro&#8217;s OS drive is a 240GB SSD.</p>
<pre class="brush:plain">zfs set quota=500G backup/tm-kurumi</pre>
<p>Let&#8217;s see if it works:</p>
<pre class="brush:plain">root@karinka:/var/spool/cron/crontabs# zfs list
NAME                     USED  AVAIL  REFER  MOUNTPOINT
backup                  1.15T  2.85T   578G  /backup
backup/tm-kurumi         65K   500G   65K  /backup/tm-kurumi</pre>
<p>Looks good! The next step is to assign the correct rights to this volume, so that the user can really use it when logging on to it via AFP and later using Time Machine.</p>
<pre class="brush:plain">chmod 770 -R /backup/tm-kurumi
chown -R dieta /backup/tm-kurumi</pre>
<p>&#8220;dieta&#8221; is my username to access the AFP network.</p>
<p>Last step on the UNIX side is to make this volume &#8220;supported&#8221;. In the past a lot people were working with the following command on the CLIENT</p>
<pre class="brush:plain">defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1</pre>
<p>but this is a bad idea &#8211; you need to redo this on every single client. There&#8217;s an easier option (especially from admins point of view) to make a volume supported from the server&#8217;s side.</p>
<pre class="brush:plain">touch /backup/tm-kurumi/.com.apple.timemachine.supported</pre>
<p>That&#8217;s all you need to do (sure, per volume, but it saves you to touch others Macs from the terminal). Now this is a fully supported Time Machine volume <img src='http://www.klein2.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Oh! It seems like this also works for Debian &#038; other systems and not only Nexenta/OpenSolaris, so give it a try!</p>
<p>To share it, we need to add a single line (per Time Machine) to the <strong>/etc/netatalk/AppleVolumes.default</strong>:</p>
<pre class="brush:plain">/backup/tm-kurumi       "Time Machine Kurumi"   allow:dieta cnidscheme:dbd options:tm</pre>
<p>Maybe you want to restart netatalk now using</p>
<pre class="brush:plain">/etc/init.d/netatalk restart</pre>
<p>But I found out, that&#8217;s it&#8217;s not needed. AFP loads the netatalk config files when you log on to the server via Finder.</p>
<p>At last, connect to your server via AFP and log in to the new volume and them tell Time Machine to use this volume. Here&#8217;s a screenshot how it looks when the backup is done <img src='http://www.klein2.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img src="http://www.klein2.de/wp-content/uploads/2011/01/Bildschirmfoto-2011-01-09-um-12.47.01.png" alt="" title="Bildschirmfoto 2011-01-09 um 12.47.01" class="aligncenter size-full wp-image-1553" /></p>
<p>Hope you enjoyed this post and have learned some stuff!</p>
<p>By the way: did it for all 4 Macs and this looks like this on Nexenta:<br />
<img src="http://www.klein2.de/wp-content/uploads/2011/01/Bildschirmfoto-2011-01-09-um-12.53.53.png" alt="" title="Bildschirmfoto 2011-01-09 um 12.53.53" class="aligncenter size-full wp-image-1556" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.klein2.de/2011/01/09/time-machine-volumes-with-zfs-afp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<enclosure url="http://www.klein2.de/wp-content/uploads/2011/01/Bildschirmfoto-2011-01-09-um-12.47.01-150x150.png" length="18814" type="image/jpg" />	</item>
		<item>
		<title>Showing the OpenSolaris netatalk share in your clients Finder</title>
		<link>http://www.klein2.de/2010/04/10/showing-the-opensolaris-netatalk-share-in-your-clients-finder/</link>
		<comments>http://www.klein2.de/2010/04/10/showing-the-opensolaris-netatalk-share-in-your-clients-finder/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 19:57:00 +0000</pubDate>
		<dc:creator>Dennis Klein</dc:creator>
				<category><![CDATA[Technique Stuff]]></category>
		<category><![CDATA[avahi]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[netatalk]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://blog.klein2.de/?p=229</guid>
		<description><![CDATA[If you&#8217;ve successfully set up your netatalk on your OpenSolaris machine , wouldn&#8217;t it be nice to see the share on your clients Finder? &#8220;Well, sure!&#8221; you would say. If so, here&#8217;s the link to the Caffeinated blog post which shows how to enable this &#8211; quick and easy I&#8217;ve found this entry by crawling [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve successfully set up your netatalk on your OpenSolaris machine <span id="more-229"></span>, wouldn&#8217;t it be nice to see the share on your clients Finder? &#8220;Well, sure!&#8221; you would say. If so, here&#8217;s the link to the <a href="http://cafenate.wordpress.com/2009/02/26/making-netatalk-discoverable-in-opensolaris/" target="_blank">Caffeinated</a> blog post which shows how to enable this &#8211; quick and easy <img src='http://www.klein2.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img src="http://farm3.static.flickr.com/2637/4508498197_075e663b98_o.png" /></p>
<p>I&#8217;ve found this entry by crawling through <a href="http://www.blogs.uni-erlangen.de/anfalas/stories/4633/" target="_blank">sale e pepe</a> which is another fascinating blog about OpenSolaris as (file)server and Macs as clients.</p>
<p>Ciao<br />Dennis </p>
]]></content:encoded>
			<wfw:commentRss>http://www.klein2.de/2010/04/10/showing-the-opensolaris-netatalk-share-in-your-clients-finder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

