<?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>treibsand.com &#187; Administration</title>
	<atom:link href="http://www.treibsand.com/tag/administration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.treibsand.com</link>
	<description></description>
	<lastBuildDate>Tue, 27 Dec 2011 12:46:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>NFS Server unter Solaris 10</title>
		<link>http://www.treibsand.com/2009/11/17/nfs-server-unter-solaris-10/</link>
		<comments>http://www.treibsand.com/2009/11/17/nfs-server-unter-solaris-10/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 10:50:06 +0000</pubDate>
		<dc:creator>Toast</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.treibsand.com/?p=395</guid>
		<description><![CDATA[Solaris ist ein wunderbares Betriebssystem, allerdings schaut man grundsätzlich erstmal in die Röhre, wenn man z.B. von FreeBSD kommt. Neulich brauchte ich einen NFS Server auf einem Solaris System und war zuerst etwas verwirrt wie es konfiguriert wird&#8230; Die Konfiguration unterscheidet sich ziemlich von der unter FreeBSD, so dass erst mal die Handbücher gewälzt werden [...]]]></description>
			<content:encoded><![CDATA[<p>Solaris ist ein wunderbares Betriebssystem, allerdings schaut man grundsätzlich erstmal in die Röhre, wenn man z.B. von FreeBSD kommt. Neulich brauchte ich einen NFS Server auf einem Solaris System und war zuerst etwas verwirrt wie es konfiguriert wird&#8230;</p>
<p><span id="more-395"></span><br />
Die Konfiguration unterscheidet sich ziemlich von der unter FreeBSD, so dass erst mal die Handbücher gewälzt werden mussten.</p>
<p>Als erstes sollte der NFS Service gestartet werden&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">svcadm <span style="color: #660033;">-v</span> <span style="color: #7a0874; font-weight: bold;">enable</span> <span style="color: #660033;">-r</span> network<span style="color: #000000; font-weight: bold;">/</span>nfs<span style="color: #000000; font-weight: bold;">/</span>server</pre></div></div>

<p>Danach ist die NFS Freigabe nötig, bei FreeBSD stehen die in <em>/etc/exports</em>, unter Solaris allerdings in <em>/etc/dfs/dfstab</em>. Eine Freigabe kann man allerdings auch auf der Konsole machen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">share <span style="color: #660033;">-F</span> nfs <span style="color: #660033;">-o</span> rw <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">export</span></pre></div></div>

<p>Diese Methode überlebt allerdings keinen Reboot, so dass für eine permanente Freigabe die Zeile in der Datei <em>/etc/dfs/dfstab</em> eingetragen werden sollte.</p>
<p>Wenn auch der Benutzer <em>root</em> auf den NFS Clients verwendet werden soll, dann muss dies explizit freigegeben werden:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">share <span style="color: #660033;">-F</span> nfs <span style="color: #660033;">-o</span> rw,<span style="color: #007800;">root</span>=host1:host2 <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">export</span></pre></div></div>

<p>Die Option <em>root=access_list</em> legt fest von welchem Host der Benutzer <em>root</em> für die Freigabe Zugriff hat.</p>
<p>Um die Freigabe auf dem anderen System zu mounten, reicht der Befehl:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-F</span> nfs server:<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #000000; font-weight: bold;">/</span>mount_point</pre></div></div>

<p>Um das Volumen dauerhaft auf dem Client einzubinden, muss dies in der Datei <em>/etc/vfstab</em> definiert werden:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">server:<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">export</span>   -   <span style="color: #000000; font-weight: bold;">/</span>mount_point   nfs   -   <span style="color: #c20cb9; font-weight: bold;">yes</span>    rw,soft</pre></div></div>

<p>Also eigentlich gar nicht so schwer&#8230;man muss nur wissen, wo man alles nachlesen kann <img src='http://www.treibsand.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Alle Sun Administration Handücher können übrigens unter <a href="http://docs.sun.com/app/docs/coll/47.16?l=de">http://docs.sun.com/app/docs/coll/47.16?l=de</a> gefunden werden.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.treibsand.com/2009/11/17/nfs-server-unter-solaris-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

