<?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>Otmanix' Blog &#187; Solaris</title>
	<atom:link href="http://otmanix.de/category/solaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://otmanix.de</link>
	<description>Wissenswertes und Belangloses aus dem Leben eines Admins</description>
	<lastBuildDate>Thu, 26 Apr 2012 22:39:02 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Nachruf: Servus c0t0d0s0.org</title>
		<link>http://otmanix.de/2011/07/24/nachruf-servus-c0t0d0s0-org/</link>
		<comments>http://otmanix.de/2011/07/24/nachruf-servus-c0t0d0s0-org/#comments</comments>
		<pubDate>Sun, 24 Jul 2011 08:50:51 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[LDom]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sparc]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Virtualisierung]]></category>
		<category><![CDATA[Xen]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[c0t0d0s0]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=2329</guid>
		<description><![CDATA[Der norddeutsche Blogger, Vielflieger und IT-Mensch J&#246;rg M&#246;llenkamp hat die digitalen Pforten seines Blogs c0t0d0s0.org laut eigenem Bekunden f&#252;r immer eingestellt. Jeder, der irgendwie mit Solaris / OpenSolaris in Ber&#252;hrung kam, ist wohl zwangl&#228;ufig irgendwann &#252;ber einen seiner Artikel gestolpert. &#8230; <a href="http://otmanix.de/2011/07/24/nachruf-servus-c0t0d0s0-org/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Der norddeutsche Blogger, Vielflieger und IT-Mensch J&#246;rg M&#246;llenkamp hat die digitalen Pforten seines Blogs <a href="http://c0t0d0s0.org/" target="_blank">c0t0d0s0.org</a> laut eigenem Bekunden f&#252;r immer eingestellt.</p>
<p>Jeder, der irgendwie mit Solaris / OpenSolaris in Ber&#252;hrung kam, ist wohl zwangl&#228;ufig irgendwann &#252;ber einen seiner Artikel gestolpert. Besonders hervorzuheben ist die Reihe &#8220;less known Solaris features&#8221;, zusammengefasst auch als PDF erh&#228;ltlich. Fr&#252;her bei Sun, heute bei Oracle besch&#228;ftigt, hat er &#252;ber IT-Trends berichtet, eigene Einsch&#228;tzungen zu aktuellen Themen abgegeben und howtos verfasst. Nicht immer frei von Scheuklappen, aber stets um Objektivit&#228;t bem&#252;ht, auch mal selbstkritisch und vor allem technikbegeistert&#8230; so habe ich dieses Blog erlebt. Nach dem Wechsel von Solaris zu AIX im eigenem Haus war dies auch immer eine Informationsquelle f&#252;r mich aktuelle Entwicklungen im Solaris-Umfeld nicht zu verpassen.</p>
<p>Ich bedaure deshalb die Einstellung dieses Blogs und sage servus!</p>
<p>&nbsp;</p>
<p>P.S.</p>
<p><a href="http://de.wikipedia.org/wiki/Servus" target="_blank">Servus</a> ist universell zur Verabschiedung, aber auch zur Begr&#252;&#223;ung verwendbar. In diesem Sinne &#8211; vielleicht sieht man sich in den Tiefen des digitalen Netzes wieder&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2011/07/24/nachruf-servus-c0t0d0s0-org/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Uptime</title>
		<link>http://otmanix.de/2009/08/22/uptime/</link>
		<comments>http://otmanix.de/2009/08/22/uptime/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 13:46:06 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sparc]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://otmanix.de/2009/08/22/uptime/</guid>
		<description><![CDATA[Platform Shell xxx:SC&#62; showsc SC: SSC1 Main System Controller V2 SC Failover: enabled and active. Clock failover enabled. SC date: Sat Aug 22 15:46:57 CEST 2009 SC uptime: 884 days 23 hours 58 minutes 45 seconds ScApp version: 5.20.1 Build_03 &#8230; <a href="http://otmanix.de/2009/08/22/uptime/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<pre>Platform Shell

xxx:SC&gt; showsc

SC: SSC1
Main System Controller V2
SC Failover: enabled and active.
Clock failover enabled.

SC date: Sat Aug 22 15:46:57 CEST 2009
SC uptime: 884 days 23 hours 58 minutes 45 seconds

ScApp version: 5.20.1 Build_03
RTOS version: 45</pre>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2009/08/22/uptime/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>die Sonne geht unter</title>
		<link>http://otmanix.de/2009/06/24/die-sonne-geht-unter/</link>
		<comments>http://otmanix.de/2009/06/24/die-sonne-geht-unter/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 15:45:20 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=1342</guid>
		<description><![CDATA[Nach einer regelrechten Preisschlacht zwischen HP, IBM und SUN hat nun IBM den Zuschlag f&#252;r unser neues UNIX-Equipment bekommen. Die aktuelle wirtschaftliche Lage und das anstehende Quartalsende erm&#246;glichten einen &#8220;Schn&#228;ppchenpreis&#8221;. D.h. ich werde jetzt AIX-Admin mit Migrationshintergrund. P.S. Ich w&#252;nsche &#8230; <a href="http://otmanix.de/2009/06/24/die-sonne-geht-unter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Nach einer regelrechten Preisschlacht zwischen HP, IBM und SUN hat nun IBM den Zuschlag f&#252;r unser neues UNIX-Equipment bekommen. Die aktuelle wirtschaftliche Lage und das anstehende Quartalsende erm&#246;glichten einen &#8220;Schn&#228;ppchenpreis&#8221;.</p>
<p>D.h. ich werde jetzt AIX-Admin mit Migrationshintergrund.</p>
<p>P.S.</p>
<p>Ich w&#252;nsche den Sunnies beim Merge mit Oracle noch alles Gute und hoffe, dass ich Solaris nicht allzu sehr hinterhertrauern muss&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2009/06/24/die-sonne-geht-unter/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>flying zones f&#252;r Arme &#8211; Teil 3: Liveupgrade und ZFS f&#252;r zoneroot</title>
		<link>http://otmanix.de/2009/04/11/flying-zones-fuer-arme-teil-3-liveupgrade-und-zfs-fuer-zoneroot/</link>
		<comments>http://otmanix.de/2009/04/11/flying-zones-fuer-arme-teil-3-liveupgrade-und-zfs-fuer-zoneroot/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 08:31:01 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Virtualisierung]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[Container]]></category>
		<category><![CDATA[Liveupgrade]]></category>
		<category><![CDATA[zones]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=1175</guid>
		<description><![CDATA[Wie im letzten Artikel berichtet bin ich beim Liveupgrade &#252;ber ein Problem gestolpert. Ausgangssituation war eine Solaris10u6-Installation mit ZFS-root-filesystem und eine zone, die sich in einem seperaten ZFS-Pool auf shared disks befand. Das sollte die M&#246;glichkeit der Zonenmigration auf einen &#8230; <a href="http://otmanix.de/2009/04/11/flying-zones-fuer-arme-teil-3-liveupgrade-und-zfs-fuer-zoneroot/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wie im letzten Artikel berichtet bin ich beim Liveupgrade &#252;ber ein Problem gestolpert. Ausgangssituation war eine Solaris10u6-Installation mit ZFS-root-filesystem und eine zone, die sich in einem seperaten ZFS-Pool auf shared disks befand. Das sollte die M&#246;glichkeit der Zonenmigration auf einen anderen phys. Rechner bieten.</p>
<p>Das lucreate-Kommando des Solaris Liveupgrade verschluckte sich aber am seperaten ZFS-Pool. Deshalb f&#252;hrte ich das Patchen zun&#228;chst ohne Zone durch (detached) und machte dann einen upgrade-on-attach.</p>
<p>Trotzdem wollte ich nun wissen, warum das nicht komplett mit Liveupgrade klappte. Nach etwas Experimentieren stellte sich heraus, dass lucreate nicht mit dem Zonen-Root direkt im ZFS-Pool umgehen kann. Das Zonen-Root muss in einem untergeordneten Filesystem des Pools liegen.</p>
<p>Hier der Beweis (die Zone wurde bereits von /zone1 nach /zone1/zoneroot umgezogen):</p>
<p>bash-3.00# <strong>lustatus</strong><br />
Boot Environment           Is       Active Active    Can    Copy<br />
Name                       Complete Now    On Reboot Delete Status<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;-<br />
s10x_u6wos_07b             yes      no     no        yes    -<br />
s10u6_recpatches           yes      yes    yes       no     -</p>
<p>bash-3.00# <strong>lucreate -n zone_lu_test</strong><br />
Checking GRUB menu&#8230;<br />
System has findroot enabled GRUB<br />
Analyzing system configuration.<br />
Comparing source boot environment &lt;s10u6_recpatches&gt; file systems with the<br />
file system(s) you specified for the new boot environment. Determining<br />
which file systems should be in the new boot environment.<br />
Updating boot environment description database on all BEs.<br />
Updating system configuration files.<br />
Creating configuration for boot environment &lt;zone_lu_test&gt;.<br />
Source boot environment is &lt;s10u6_recpatches&gt;.<br />
Creating boot environment &lt;zone_lu_test&gt;.<br />
Cloning file systems from boot environment &lt;s10u6_recpatches&gt; to create boot environment &lt;zone_lu_test&gt;.<br />
Creating snapshot for &lt;rpool/ROOT/s10u6_recpatches&gt; on &lt;rpool/ROOT/s10u6_recpatches@zone_lu_test&gt;.<br />
Creating clone for &lt;rpool/ROOT/s10u6_recpatches@zone_lu_test&gt; on &lt;rpool/ROOT/zone_lu_test&gt;.<br />
Setting canmount=noauto for &lt;/&gt; in zone &lt;global&gt; on &lt;rpool/ROOT/zone_lu_test&gt;.<br />
<span style="color: #008000;">Creating snapshot for &lt;zone1/zoneroot&gt; on &lt;zone1/zoneroot@zone_lu_test&gt;.<br />
Creating clone for &lt;zone1/zoneroot@zone_lu_test&gt; on &lt;zone1/zoneroot-zone_lu_test&gt;.</span><br />
Saving existing file &lt;/boot/grub/menu.lst&gt; in top level dataset for BE &lt;s10x_u6wos_07b&gt; as &lt;mount-point&gt;//boot/grub/menu.lst.prev.<br />
Saving existing file &lt;/boot/grub/menu.lst&gt; in top level dataset for BE &lt;zone_lu_test&gt; as &lt;mount-point&gt;//boot/grub/menu.lst.prev.<br />
File &lt;/boot/grub/menu.lst&gt; propagation successful<br />
Copied GRUB menu from PBE to ABE<br />
No entry for BE &lt;zone_lu_test&gt; in GRUB menu<br />
Population of boot environment &lt;zone_lu_test&gt; successful.<br />
Creation of boot environment &lt;zone_lu_test&gt; successful.</p>
<p>bash-3.00# <strong>lustatus</strong><br />
Boot Environment           Is       Active Active    Can    Copy<br />
Name                       Complete Now    On Reboot Delete Status<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;-<br />
s10x_u6wos_07b             yes      no     no        yes    -<br />
s10u6_recpatches           yes      yes    yes       no     -<br />
zone_lu_test               yes      no     no        yes    -</p>
<p>bash-3.00# <strong>zfs list</strong><br />
NAME                                         USED  AVAIL  REFER  MOUNTPOINT<br />
patches                                     2.69G  5.12G  2.69G  /patches<br />
rpool                                       6.63G  1.19G    40K  /rpool<br />
rpool/ROOT                                  5.24G  1.19G    18K  legacy<br />
rpool/ROOT/s10u6_recpatches                 1.39G  1.19G  4.48G  /<br />
rpool/ROOT/s10u6_recpatches@zone_lu_test    82.5K      -  4.48G  -<br />
rpool/ROOT/s10x_u6wos_07b                   3.86G  1.19G  3.81G  /<br />
rpool/ROOT/s10x_u6wos_07b@s10u6_recpatches  50.5M      -  3.81G  -<br />
rpool/ROOT/zone_lu_test                      163K  1.19G  4.48G  /<br />
rpool/dump                                   900M  1.19G   900M  -<br />
rpool/export                                  37K  1.19G    19K  /export<br />
rpool/export/home                             18K  1.19G    18K  /export/home<br />
rpool/swap                                   512M  1.45G   244M  -<br />
testpool                                     155M   202K   154M  /testpool<br />
zone1                                        871M  1.10G   871M  /zone1<br />
zone1/zoneroot                                18K  1.10G    18K  /zone1/zoneroot<br />
<span style="color: #008000;">zone1/zoneroot@zone_lu_test                     0      -    18K  -<br />
zone1/zoneroot-zone_lu_test                     0  1.10G    18K  /zone1/zoneroot-zone_lu_test</span></p>
<h3><span style="color: #008000;"><span style="color: #000000;">Nachtrag</span></span></h3>
<p><span style="color: #008000;"><span style="color: #000000;">Heute habe ich den Liveupgradetest weitergef&#252;hrt und eine geh&#246;rige &#220;berraschung erlebt.</span></span></p>
<p><span style="color: #008000;"><span style="color: #000000;">bash-3.00#  <strong>cd </strong></span></span><strong><span style="color: #008000;"><span style="color: #000000;">/patches/java_es_required_os_patches_solaris10-x86</span></span></strong></p>
<p><span style="color: #008000;"><span style="color: #000000;">bash-3.00# <strong>luupgrade -n zone_lu_test -s /patches/java_es_required_os_patches_solaris10-x86 -t `cat  patch_order`</strong><br />
System has findroot enabled GRUB<br />
No entry for BE &lt;zone_lu_test&gt; in GRUB menu<br />
Validating the contents of the media &lt;/patches/java_es_required_os_patches_solaris10-x86&gt;.<br />
The media contains 19 software patches that can be added.<br />
Mounting the BE &lt;zone_lu_test&gt;.<br />
<span style="color: #ff0000;">ERROR: mount point &lt;/a/zone1&gt; is already in use</span>, mounted on &lt;/zone1&gt;<br />
<span style="color: #ff0000;">ERROR: failed to create mount point &lt;/a/zone1&gt; for file system &lt;/zone1&gt;</span><br />
ERROR: unmounting partially mounted boot environment file systems<br />
<span style="color: #ff0000;">ERROR: cannot mount boot environment</span> by icf file &lt;/tmp/.luupgrade.beicf.12595&gt;<br />
cat: cannot open /tmp/.luupgrade.tmp.12595<br />
ERROR: Unable to mount ABE disk slices: &lt; &gt;.<br />
ERROR: Unable to mount the BE &lt;zone_lu_test&gt;.<br />
</span></span></p>
<p><span style="color: #008000;"><span style="color: #000000;">bash-3.00# <strong>zfs list</strong><br />
NAME                                         USED  AVAIL  REFER  MOUNTPOINT<br />
patches                                     2.88G  4.93G  2.88G  /patches<br />
rpool                                       6.63G  1.18G    40K  /rpool<br />
rpool/ROOT                                  5.25G  1.18G    18K  legacy<br />
rpool/ROOT/s10u6_recpatches                 1.40G  1.18G  4.49G  /<br />
rpool/ROOT/s10u6_recpatches@zone_lu_test     103K      -  4.49G  -<br />
rpool/ROOT/s10x_u6wos_07b                   3.86G  1.18G  3.81G  /<br />
rpool/ROOT/s10x_u6wos_07b@s10u6_recpatches  50.5M      -  3.81G  -<br />
<span style="color: #008000;">rpool/ROOT/zone_lu_test                      172K  1.18G  4.49G  /a/</span><br />
rpool/dump                                   900M  1.18G   900M  -<br />
rpool/export                                  37K  1.18G    19K  /export<br />
rpool/export/home                             18K  1.18G    18K  /export/home<br />
rpool/swap                                   512M  1.44G   244M  -<br />
testpool                                     155M   202K   154M  /testpool<br />
zone1                                        871M  1.10G   871M  /zone1<br />
zone1/zoneroot                                18K  1.10G    18K  /zone1/zoneroot<br />
zone1/zoneroot@zone_lu_test                     0      -    18K  -<br />
<span style="color: #ff0000;">zone1/zoneroot-zone_lu_test                     0  1.10G    18K  /zone1/zoneroot-zone_lu_test</span><br />
</span></span></p>
<p><span style="color: #008000;"><span style="color: #000000;">So, so&#8230; Das klappt wohl nicht wie geplant. </span></span></p>
<p><span style="color: #008000;"><span style="color: #000000;">bash-3.00#<strong> lumount zone_lu_test /b</strong><br />
<span style="color: #ff0000;">ERROR: unable to mount zones:<br />
cannot mount &#8216;/zone1/zoneroot&#8217;: directory is not empty<br />
zoneadm: zone &#8216;zone1&#8242;: zone root /zone1/zoneroot/root already in use by zone zone1<br />
zoneadm: zone &#8216;zone1&#8242;: call to zoneadmd failed<br />
ERROR: unable to mount zone &lt;zone1&gt; in &lt;/b&gt;<br />
ERROR: unmounting partially mounted boot environment file systems<br />
ERROR: No such file or directory: error unmounting &lt;rpool/ROOT/zone_lu_test&gt;<br />
ERROR: umount: warning: rpool/ROOT/zone_lu_test not in mnttab<br />
umount: rpool/ROOT/zone_lu_test no such file or directory<br />
ERROR: cannot unmount &lt;rpool/ROOT/zone_lu_test&gt;<br />
ERROR: cannot mount boot environment by name &lt;zone_lu_test&gt;</span></span></span></p>
<p><span style="color: #008000;"><span style="color: #000000;"><br />
bash-3.00# <strong>zfs list</strong><br />
NAME                                         USED  AVAIL  REFER  MOUNTPOINT<br />
patches                                     2.88G  4.93G  2.88G  /patches<br />
rpool                                       6.63G  1.18G    40K  /rpool<br />
rpool/ROOT                                  5.25G  1.18G    18K  legacy<br />
rpool/ROOT/s10u6_recpatches                 1.40G  1.18G  4.49G  /<br />
rpool/ROOT/s10u6_recpatches@zone_lu_test     116K      -  4.49G  -<br />
rpool/ROOT/s10x_u6wos_07b                   3.86G  1.18G  3.81G  /<br />
rpool/ROOT/s10x_u6wos_07b@s10u6_recpatches  50.5M      -  3.81G  -<br />
<span style="color: #008000;">rpool/ROOT/zone_lu_test                      172K  1.18G  4.49G  /b</span><br />
rpool/dump                                   900M  1.18G   900M  -<br />
rpool/export                                  37K  1.18G    19K  /export<br />
rpool/export/home                             18K  1.18G    18K  /export/home<br />
rpool/swap                                   512M  1.44G   244M  -<br />
testpool                                     155M   202K   154M  /testpool<br />
zone1                                        871M  1.10G   871M  /zone1<br />
zone1/zoneroot                                18K  1.10G    18K  /zone1/zoneroot<br />
zone1/zoneroot@zone_lu_test                     0      -    18K  -<br />
<span style="color: #ff0000;">zone1/zoneroot-zone_lu_test                     0  1.10G    18K  /zone1/zoneroot</span><br />
</span></span></p>
<p>bash-3.00#<strong> lumount</strong><br />
s10u6_recpatches on /</p>
<p>Also irgendwie scheint der lumount mit der Zone azf seperaten ZFS-Pool nicht zurecht zu kommen.</p>
<h3>Fazit</h3>
<p>Gibt es also tats&#228;chlich nur upgrade-on-attach als funktionierende Variante f&#252;r Zonen auf seperaten ZFS-Pools? Hat hier jemand Anregungen oder Erfahrungen? Bitte die Kommentarfunktion nutzen&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2009/04/11/flying-zones-fuer-arme-teil-3-liveupgrade-und-zfs-fuer-zoneroot/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>flying zones f&#252;r Arme &#8211; Teil 2: Liveupgrade mit Solaris10 Update6 und ZFS-root</title>
		<link>http://otmanix.de/2009/04/10/flying-zones-fuer-arme-teil-2-liveupgrade-mit-solaris10-update6-und-zfs-root/</link>
		<comments>http://otmanix.de/2009/04/10/flying-zones-fuer-arme-teil-2-liveupgrade-mit-solaris10-update6-und-zfs-root/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 19:10:28 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[EMC]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Virtualisierung]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[Container]]></category>
		<category><![CDATA[Liveupgrade]]></category>
		<category><![CDATA[recommended patch cluster]]></category>
		<category><![CDATA[svm]]></category>
		<category><![CDATA[upgrade-on-attach]]></category>
		<category><![CDATA[zones]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=1166</guid>
		<description><![CDATA[Zuletzt habe ich dar&#252;ber geschrieben wie man mit Vmware Server 2.01 und Solaris10 ein sog. &#8220;flying zones&#8221;-Szenario aufbauen kann. D.h. man installiert eine Solaris-Zone auf einer shared disk und kann dann  eine sog. Zonenmigration durchf&#252;hren. D.h. die Zone und die &#8230; <a href="http://otmanix.de/2009/04/10/flying-zones-fuer-arme-teil-2-liveupgrade-mit-solaris10-update6-und-zfs-root/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Zuletzt habe ich dar&#252;ber geschrieben wie man mit Vmware Server 2.01 und Solaris10 ein sog. &#8220;flying zones&#8221;-Szenario aufbauen kann. D.h. man installiert eine Solaris-Zone auf einer shared disk und kann dann  eine sog. Zonenmigration durchf&#252;hren. D.h. die Zone und die Filesysteme der Zone werden am ersten Rechner exportiert und am zweiten Rechner wird das Ganze dann wieder importiert.</p>
<h3>serielles Patching und Zonen</h3>
<p>Ein leidiges Thema, insbesondere bei Solaris Zonen, ist das Installieren von Patches. In regelm&#228;&#223;igen Abst&#228;nden wird man z.B. dazu angehalten das &#8220;recommended patch cluster&#8221; zu installieren. In der Regel befinden sich Kernelpatches in den Patch-Sammlungen, so dass eine Installation im Single-User-Modus erforderlich ist. Zudem m&#252;ssen auch alle Zonen beim Patchen verf&#252;gbar sein (nicht detached!). Das Standard-Patchinstallationstool von Sun arbeitet dann die Patchinstallation sequentiell ab. Bei einer gr&#246;&#223;eren Anzahl Zonen kann das u.U. zeitkrisch werden.</p>
<h3>Parallel Patching, Solaris Liveupgrade, Neuerungen in Solaris10u6 10/08</h3>
<p>Gute Neuigkeiten gibt es bei <a title="parallel patching" href="http://blogs.sun.com/JeffV/entry/patching_zones_goes_zoom" target="_blank">Jeff Victor</a>. Demn&#228;chst soll also eine neue Version des patchadd-Kommandos das parallele Patchen von Zonen beherrschen. Aber auch das ist u.U. noch zu zeitinsiv. Seit l&#228;ngerem gibt es bereits die Software Solaris Liveupgrade, die zum Patchen oder Upgraden auf ein neues Release benutzt werden kann. Dabei wird zun&#228;chst vom laufenden Solaris eine Kopie erzeugt, ein sog. boot environment (BE), auf der dann die Patches bzw. das Upgrade angewendet werden. Das ganze passiert im normalen Onlinebetrieb. Ist die Aktionen abgeschlossen, wird vom alternativen BE gebootet. Gibt es &#196;rger hat man ein Fallback auf das verherige BE.</p>
<p>Zun&#228;chst wurde Liveupgrade &#8220;zone aware&#8221; gemacht. D.h. auch Zonen k&#246;nnen seit einiger Zeit damit aktualisiert werden. Im Solaris10u6 kam dann die Unterst&#252;tzung f&#252;r ZFS-root (ZFS-Pool als Bootumgebung f&#252;r das Rootfilesystem) und &#8220;upgrade-on-attach&#8221;. War eine Zone beim Upgrade detached und hat somit einen &#228;lteren Stand kann nun beim Attach die Aktualisierung nachgeholt werden.</p>
<p>Infos zum Thema gibt es hier:</p>
<p><a title="S10u6 lu" href="http://docs.sun.com/app/docs/doc/820-5238/esqbt?a=browse" target="_blank">Solaris 10 10/08 Installation Guide: Solaris Live Upgrade and Upgrade Planning</a></p>
<p><a title="lu" href="http://sunsolve.sun.com/search/document.do?assetkey=1-61-206844-1" target="_blank">Solution  206844: Solaris[TM] Live Upgrade Software: Minimum Patch Requirements </a></p>
<h3>Solaris Liveupgrade bei S10u6 im Praxiseinsatz</h3>
<p>Ich m&#246;chte also nun die Umgebung aus dem letzten Artikel auf Basis Solaris10u6 mit Hilfe von Liveupgrade auf das aktuelle recommended patch cluster patchen.</p>
<p>bash-3.00# <strong>cat /etc/release</strong><br />
<span style="color: #008000;">Solaris 10 10/08 s10x_u6wos_07b X86</span><br />
Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.<br />
Use is subject to license terms.<br />
Assembled 27 October 2008</p>
<p># <strong>zoneadm list -cv</strong><br />
ID NAME             STATUS     PATH                           BRAND    IP<br />
0 global           running    /                              native   shared<br />
1 zone1            running    /zone1                         native   shared</p>
<p># <strong>lustatus</strong><br />
ERROR: No boot environments are configured on this system<br />
ERROR: cannot determine list of all boot environment names</p>
<p># <strong>lucreate -n s10u6_recpatches</strong><br />
Checking GRUB menu&#8230;<br />
Analyzing system configuration.<br />
No name for current boot environment.<br />
INFORMATION: The current boot environment is not named &#8211; assigning name &lt;s10x_u6wos_07b&gt;.<br />
Current boot environment is named &lt;s10x_u6wos_07b&gt;.<br />
Creating initial configuration for primary boot environment &lt;s10x_u6wos_07b&gt;.<br />
The device &lt;/dev/dsk/c1t0d0s0&gt; is not a root device for any boot environment; cannot get BE ID.<br />
PBE configuration successful: PBE name &lt;s10x_u6wos_07b&gt; PBE Boot Device &lt;/dev/dsk/c1t0d0s0&gt;.<br />
Comparing source boot environment &lt;s10x_u6wos_07b&gt; file systems with the<br />
file system(s) you specified for the new boot environment. Determining<br />
which file systems should be in the new boot environment.<br />
Updating boot environment description database on all BEs.<br />
Updating system configuration files.<br />
Creating configuration for boot environment &lt;s10u6_recpatches&gt;.<br />
Source boot environment is &lt;s10x_u6wos_07b&gt;.<br />
Creating boot environment &lt;s10u6_recpatches&gt;.<br />
Cloning file systems from boot environment &lt;s10x_u6wos_07b&gt; to create boot environment &lt;s10u6_recpatches&gt;.<br />
Creating snapshot for &lt;rpool/ROOT/s10x_u6wos_07b&gt; on &lt;rpool/ROOT/s10x_u6wos_07b@s10u6_recpatches&gt;.<br />
Creating clone for &lt;rpool/ROOT/s10x_u6wos_07b@s10u6_recpatches&gt; on &lt;rpool/ROOT/s10u6_recpatches&gt;.<br />
Setting canmount=noauto for &lt;/&gt; in zone &lt;global&gt; on &lt;rpool/ROOT/s10u6_recpatches&gt;.<br />
Creating snapshot for &lt;zone1&gt; on &lt;zone1@s10u6_recpatches&gt;.<br />
<span style="color: #ff0000;">cannot create &#8216;.&#8217;: missing dataset name</span><br />
Creating clone for &lt;zone1@s10u6_recpatches&gt; on &lt;zone1-s10u6_recpatches&gt;.<br />
<span style="color: #ff0000;">ERROR: cannot create &#8216;zone1-s10u6_recpatches&#8217;: missing dataset name<br />
ERROR: Unable to clone &lt;&gt; on &lt;&gt;.<br />
/usr/lib/lu/luclonefs: zone1@s10u6_recpatches: not found<br />
cannot open &#8216;zone1-s10u6_recpatches&#8217;: dataset does not exist<br />
cannot open &#8216;zone1-s10u6_recpatches&#8217;: dataset does not exist<br />
cannot open &#8216;zone1-s10u6_recpatches&#8217;: dataset does not exist</span><br />
Saving existing file &lt;/boot/grub/menu.lst&gt; in top level dataset for BE &lt;s10u6_recpatches&gt; as &lt;mount-point&gt;//boot/grub/menu.lst.prev.<br />
File &lt;/boot/grub/menu.lst&gt; propagation successful<br />
Copied GRUB menu from PBE to ABE<br />
No entry for BE &lt;s10u6_recpatches&gt; in GRUB menu<br />
Population of boot environment &lt;s10u6_recpatches&gt; successful.<br />
Creation of boot environment &lt;s10u6_recpatches&gt; successful.</p>
<p># <strong>lustatus</strong><br />
Boot Environment           Is       Active Active    Can    Copy<br />
Name                       Complete Now    On Reboot Delete Status<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;-<br />
s10x_u6wos_07b             yes      yes    yes       no     -<br />
s10u6_recpatches           yes      no     no        yes    -</p>
<p>bash-3.00# <strong>zpool list</strong><br />
NAME    SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT<br />
rpool  7.94G  6.78G  1.15G    85%  ONLINE  -<br />
zone1  1.98G   546M  1.45G    26%  ONLINE  -</p>
<p>bash-3.00# <strong>zfs list</strong><br />
NAME                                         USED  AVAIL  REFER  MOUNTPOINT<br />
rpool                                       7.07G   766M  38.5K  /rpool<br />
rpool/ROOT                                  5.68G   766M    18K  legacy<br />
rpool/ROOT/s10u6_recpatches                  156K   766M  3.77G  /a/<br />
rpool/ROOT/s10x_u6wos_07b                   5.68G   766M  5.67G  /<br />
rpool/ROOT/s10x_u6wos_07b@s10u6_recpatches  12.0M      -  3.77G  -<br />
rpool/dump                                   900M   766M   900M  -<br />
rpool/export                                  37K   766M    19K  /export<br />
rpool/export/home                             18K   766M    18K  /export/home<br />
rpool/swap                                   512M  1.03G   222M  -<br />
zone1                                        546M  1.42G   545M  /zone1<br />
zone1@s10u6_recpatches                       619K      -   545M  -</p>
<p>bash-3.00# <strong>cd /patches/10_x86_Recommended</strong></p>
<p>bash-3.00# <strong>luupgrade -n s10u6_recpatches -s /patches/10_x86_Recommended -t `cat  patch_order`</strong><br />
System has findroot enabled GRUB<br />
No entry for BE &lt;s10u6_recpatches&gt; in GRUB menu<br />
Validating the contents of the media &lt;/patches/10_x86_Recommended&gt;.<br />
The media contains 152 software patches that can be added.<br />
Mounting the BE &lt;s10u6_recpatches&gt;.<br />
<span style="color: #ff0000;">ERROR: unable to mount zones:<br />
/a/zone1 must not be group readable.<br />
/a/zone1 must not be group executable.<br />
/a/zone1 must not be world readable.<br />
/a/zone1 must not be world executable.</span><br />
<span style="color: #ff0000;">could not verify zonepath /a/zone1 because of the above errors.<br />
zoneadm: zone zone1 failed to verify<br />
ERROR: unable to mount zone &lt;zone1&gt; in &lt;/a&gt;<br />
ERROR: unmounting partially mounted boot environment file systems<br />
ERROR: cannot mount boot environment by icf file &lt;/tmp/.luupgrade.beicf.4645&gt;<br />
cat: cannot open /tmp/.luupgrade.tmp.4645<br />
ERROR: Unable to mount ABE disk slices: &lt; &gt;.<br />
ERROR: Unable to mount the BE &lt;s10u6_recpatches&gt;.</span></p>
<p>bash-3.00# <strong>lumount s10u6_recpatches /a</strong><br />
<span style="color: #ff0000;">ERROR: unable to mount zones:<br />
/a/zone1 must not be group readable.<br />
/a/zone1 must not be group executable.<br />
/a/zone1 must not be world readable.<br />
/a/zone1 must not be world executable.<br />
could not verify zonepath /a/zone1 because of the above errors.<br />
zoneadm: zone zone1 failed to verify<br />
ERROR: unable to mount zone &lt;zone1&gt; in &lt;/a&gt;<br />
ERROR: unmounting partially mounted boot environment file systems<br />
ERROR: No such file or directory: error unmounting &lt;rpool/ROOT/s10u6_recpatches&gt;<br />
ERROR: umount: warning: rpool/ROOT/s10u6_recpatches not in mnttab<br />
umount: rpool/ROOT/s10u6_recpatches no such file or directory<br />
ERROR: cannot unmount &lt;rpool/ROOT/s10u6_recpatches&gt;<br />
ERROR: cannot mount boot environment by name &lt;s10u6_recpatches&gt;</span></p>
<p>bash-3.00# <strong>lustatus</strong><br />
Boot Environment           Is       Active Active    Can    Copy<br />
Name                       Complete Now    On Reboot Delete Status<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;-<br />
s10x_u6wos_07b             yes      yes    yes       no     -<br />
s10u6_recpatches           yes      no     no        yes    -</p>
<p>bash-3.00# <strong>ludelete s10u6_recpatches</strong><br />
System has findroot enabled GRUB<br />
Checking if last BE on any disk&#8230;<br />
<span style="color: #ff0000;">ERROR: unable to mount zones:<br />
/.alt.s10u6_recpatches/zone1 must not be group readable.<br />
/.alt.s10u6_recpatches/zone1 must not be group executable.<br />
/.alt.s10u6_recpatches/zone1 must not be world readable.<br />
/.alt.s10u6_recpatches/zone1 must not be world executable.<br />
could not verify zonepath /.alt.s10u6_recpatches/zone1 because of the above errors.<br />
zoneadm: zone zone1 failed to verify<br />
ERROR: unable to mount zone &lt;zone1&gt; in &lt;/.alt.s10u6_recpatches&gt;<br />
ERROR: unmounting partially mounted boot environment file systems<br />
ERROR: No such file or directory: error unmounting &lt;rpool/ROOT/s10u6_recpatches&gt;<br />
ERROR: umount: warning: rpool/ROOT/s10u6_recpatches not in mnttab<br />
umount: rpool/ROOT/s10u6_recpatches no such file or directory<br />
ERROR: cannot unmount &lt;rpool/ROOT/s10u6_recpatches&gt;<br />
ERROR: cannot mount boot environment by name &lt;s10u6_recpatches&gt;<br />
ERROR: Failed to mount BE &lt;s10u6_recpatches&gt;.<br />
ERROR: Failed to mount BE &lt;s10u6_recpatches&gt;.<br />
cat: cannot open /tmp/.lulib.luclb.dsk.5254.s10u6_recpatches<br />
ERROR: This boot environment &lt;s10u6_recpatches&gt; is the last BE on the above disk.<br />
ERROR: Deleting this BE may make it impossible to boot from this disk.<br />
ERROR: However you may still boot solaris if you have BE(s) on other disks.<br />
ERROR: You *may* have to change boot-device order in the BIOS to accomplish this.<br />
ERROR: If you still want to delete this BE &lt;s10u6_recpatches&gt;, please use the force option (-f).<br />
Unable to delete boot environment.</span></p>
<p>bash-3.00# <strong>ludelete -f s10u6_recpatches</strong><br />
System has findroot enabled GRUB<br />
No entry for BE &lt;s10u6_recpatches&gt; in GRUB menu<br />
Determining the devices to be marked free.<br />
Updating boot environment configuration database.<br />
Updating boot environment description database on all BEs.<br />
Updating all boot environment configuration databases.<br />
Boot environment &lt;s10u6_recpatches&gt; deleted.</p>
<p>bash-3.00# <strong>lustatus</strong><br />
Boot Environment           Is       Active Active    Can    Copy<br />
Name                       Complete Now    On Reboot Delete Status<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;-<br />
s10x_u6wos_07b             yes      yes    yes       no     -</p>
<p>bash-3.00# <strong>zfs list</strong><br />
NAME                        USED  AVAIL  REFER  MOUNTPOINT<br />
rpool                      7.11G   715M  38.5K  /rpool<br />
rpool/ROOT                 5.73G   715M    18K  legacy<br />
rpool/ROOT/s10x_u6wos_07b  5.73G   715M  5.73G  /<br />
rpool/dump                  900M   715M   900M  -<br />
rpool/export                 37K   715M    19K  /export<br />
rpool/export/home            18K   715M    18K  /export/home<br />
rpool/swap                  512M   984M   243M  -<br />
zone1                       546M  1.42G   545M  /zone1<br />
<span style="color: #ff0000;">zone1@s10u6_recpatches      619K      -   545M  -</span></p>
<p>bash-3.00# <strong>zfs destroy zone1@s10u6_recpatches</strong></p>
<p>bash-3.00# <strong>zfs list</strong><br />
NAME                        USED  AVAIL  REFER  MOUNTPOINT<br />
rpool                      7.11G   715M  38.5K  /rpool<br />
rpool/ROOT                 5.73G   715M    18K  legacy<br />
rpool/ROOT/s10x_u6wos_07b  5.73G   715M  5.73G  /<br />
rpool/dump                  900M   715M   900M  -<br />
rpool/export                 37K   715M    19K  /export<br />
rpool/export/home            18K   715M    18K  /export/home<br />
rpool/swap                  512M   984M   243M  -<br />
zone1                       545M  1.42G   545M  /zone1</p>
<p>Na bravo! Das war ja der totale Reinfall&#8230;</p>
<p>Scheinbar kommt Liveupgrade nicht damit klar, dass die Zone in einem seperaten ZFS-Pool liegt. Das ist aber f&#252;r die Zonenmigration unabdingbar.</p>
<h3>neuer Versuch &#8211; Liveupgrade ohne Zonen, nur f&#252;r ZFS-root</h3>
<p>Dazu also erst einmal die Zone1 verschwinden lassen&#8230;</p>
<p>bash-3.00# <strong>zoneadm -z zone1 detach</strong></p>
<p>bash-3.00# <strong>metaset -s zone1data -r</strong></p>
<p>bash-3.00# <strong>metaset</strong><br />
Set name = zone1data, Set number = 1<br />
Host                Owner<br />
horst1<br />
horst2<br />
Drive    Dbase<br />
c2t1d0   Yes<br />
c3t1d0   Yes</p>
<p>bash-3.00#<strong> zpool export zone1</strong></p>
<p>bash-3.00# <strong>zpool list</strong><br />
NAME      SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT<br />
patches  7.94G  2.69G  5.25G    33%  ONLINE  -<br />
rpool    7.94G  4.93G  3.01G    62%  ONLINE  -</p>
<p>bash-3.00# <strong>lustatus</strong><br />
Boot Environment           Is       Active Active    Can    Copy<br />
Name                       Complete Now    On Reboot Delete Status<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;-<br />
s10x_u6wos_07b             yes      yes    yes       no     -</p>
<p>bash-3.00#<strong> lucreate -n s10u6_recpatches</strong><br />
Checking GRUB menu&#8230;<br />
System has findroot enabled GRUB<br />
Analyzing system configuration.<br />
Comparing source boot environment &lt;s10x_u6wos_07b&gt; file systems with the<br />
file system(s) you specified for the new boot environment. Determining<br />
which file systems should be in the new boot environment.<br />
Updating boot environment description database on all BEs.<br />
Updating system configuration files.<br />
Creating configuration for boot environment &lt;s10u6_recpatches&gt;.<br />
Source boot environment is &lt;s10x_u6wos_07b&gt;.<br />
Creating boot environment &lt;s10u6_recpatches&gt;.<br />
Cloning file systems from boot environment &lt;s10x_u6wos_07b&gt; to create boot environment &lt;s10u6_recpatches&gt;.<br />
Creating snapshot for &lt;rpool/ROOT/s10x_u6wos_07b&gt; on &lt;rpool/ROOT/s10x_u6wos_07b@s10u6_recpatches&gt;.<br />
Creating clone for &lt;rpool/ROOT/s10x_u6wos_07b@s10u6_recpatches&gt; on &lt;rpool/ROOT/s10u6_recpatches&gt;.<br />
Setting canmount=noauto for &lt;/&gt; in zone &lt;global&gt; on &lt;rpool/ROOT/s10u6_recpatches&gt;.<br />
Saving existing file &lt;/boot/grub/menu.lst&gt; in top level dataset for BE &lt;s10u6_recpatches&gt; as &lt;mount-point&gt;//boot/grub/menu.lst.prev.<br />
File &lt;/boot/grub/menu.lst&gt; propagation successful<br />
Copied GRUB menu from PBE to ABE<br />
No entry for BE &lt;s10u6_recpatches&gt; in GRUB menu<br />
Population of boot environment &lt;s10u6_recpatches&gt; successful.<br />
Creation of boot environment &lt;s10u6_recpatches&gt; successful.</p>
<p>Na gut, das Erstellen des alternate BE hat also soweit geklappt. Nun zum Patchen..</p>
<p>bash-3.00# <strong>cd /patches/10_x86_Recommended/</strong></p>
<p>bash-3.00#<strong> luupgrade -n s10u6_recpatches -s /patches/10_x86_Recommended -t `cat  patch_order`</strong><br />
System has findroot enabled GRUB<br />
No entry for BE &lt;s10u6_recpatches&gt; in GRUB menu<br />
Validating the contents of the media &lt;/patches/10_x86_Recommended&gt;.<br />
The media contains 152 software patches that can be added.<br />
Mounting the BE &lt;s10u6_recpatches&gt;.<br />
Adding patches to the BE &lt;s10u6_recpatches&gt;.<br />
Validating patches&#8230;<br />
Loading patches installed on the system&#8230;<br />
Done!<br />
Loading patches requested to install.<br />
Version of package SUNWmctag from directory SUNWmctag in patch 121212-02 differs from the package installed on the system.<br />
Version of package SUNWmcosx from directory SUNWmcosx in patch 121212-02 differs from the package installed on the system.<br />
Version of package SUNWmcon from directory SUNWmcon in patch 121212-02 differs from the package installed on the system.<br />
Version of package SUNWmcos from directory SUNWmcos in patch 121212-02 differs from the package installed on the system.<br />
Done!<br />
The following requested patches have packages not installed on the system<br />
Package SUNWgzipS from directory SUNWgzipS in patch 120720-02 is not installed on the system. Changes for package SUNWgzipS will not be applied to the system.<br />
Package SUNWbzipS from directory SUNWbzipS in patch 126869-03 is not installed on the system. Changes for package SUNWbzipS will not be applied to the system.<br />
Package SUNWbreg from directory SUNWbreg in patch 121454-02 is not installed on the system. Changes for package SUNWbreg will not be applied to the system.<br />
Package SUNWdc from directory SUNWdc in patch 121454-02 is not installed on the system. Changes for package SUNWdc will not be applied to the system.<br />
Package SUNWbreg from directory SUNWbreg in patch 121454-02 is not installed on the system. Changes for package SUNWbreg will not be applied to the system.<br />
Package SUNWdc from directory SUNWdc in patch 121454-02 is not installed on the system. Changes for package SUNWdc will not be applied to the system.<br />
Package SUNWsmaS from directory SUNWsmaS in patch 120273-25 is not installed on the system. Changes for package SUNWsmaS will not be applied to the system.<br />
Package SUNWsmbaS from directory SUNWsmbaS in patch 119758-14 is not installed on the system. Changes for package SUNWsmbaS will not be applied to the system.<br />
Package SUNWpostgr-jdbcS from directory SUNWpostgr-jdbcS in patch 123591-09 is not installed on the system. Changes for package SUNWpostgr-jdbcS will not be applied to the system.<br />
Package SUNWpostgrS from directory SUNWpostgrS in patch 123591-09 is not installed on the system. Changes for package SUNWpostgrS will not be applied to the system.<br />
Package SUNWpostgr-tclS from directory SUNWpostgr-tclS in patch 123591-09 is not installed on the system. Changes for package SUNWpostgr-tclS will not be applied to the system.<br />
Package SUNWkxplt from directory SUNWkxplt in patch 120415-23 is not installed on the system. Changes for package SUNWkxplt will not be applied to the system.<br />
Package SUNWinleu from directory SUNWinleu in patch 120415-23 is not installed on the system. Changes for package SUNWinleu will not be applied to the system.<br />
Package SUNWhkleu from directory SUNWhkleu in patch 120415-23 is not installed on the system. Changes for package SUNWhkleu will not be applied to the system.<br />
Package SUNWcxplt from directory SUNWcxplt in patch 120415-23 is not installed on the system. Changes for package SUNWcxplt will not be applied to the system.<br />
Package SUNWhleu from directory SUNWhleu in patch 120415-23 is not installed on the system. Changes for package SUNWhleu will not be applied to the system.<br />
Package SUNWhleu2 from directory SUNWhleu2 in patch 120415-23 is not installed on the system. Changes for package SUNWhleu2 will not be applied to the system.<br />
Package SUNWkleu from directory SUNWkleu in patch 120415-23 is not installed on the system. Changes for package SUNWkleu will not be applied to the system.<br />
Package SUNWtleu from directory SUNWtleu in patch 120415-23 is not installed on the system. Changes for package SUNWtleu will not be applied to the system.<br />
Package SUNWhkplt from directory SUNWhkplt in patch 120415-23 is not installed on the system. Changes for package SUNWhkplt will not be applied to the system.<br />
Package SUNWinplt from directory SUNWinplt in patch 120415-23 is not installed on the system. Changes for package SUNWinplt will not be applied to the system.<br />
Package SUNWtxplt from directory SUNWtxplt in patch 120415-23 is not installed on the system. Changes for package SUNWtxplt will not be applied to the system.<br />
Package SUNWhxplt from directory SUNWhxplt in patch 120415-23 is not installed on the system. Changes for package SUNWhxplt will not be applied to the system.<br />
Package SUNWsunpinyin from directory SUNWsunpinyin in patch 120415-23 is not installed on the system. Changes for package SUNWsunpinyin will not be applied to the system.<br />
Package SUNWsibi from directory SUNWsibi in patch 119082-25 is not installed on the system. Changes for package SUNWsibi will not be applied to the system.<br />
Package SUNWapchS from directory SUNWapchS in patch 122912-15 is not installed on the system. Changes for package SUNWapchS will not be applied to the system.<br />
Package SUNWgrubS from directory SUNWgrubS in patch 138884-01 is not installed on the system. Changes for package SUNWgrubS will not be applied to the system.<br />
Package SUNWsibi from directory SUNWsibi in patch 124629-10 is not installed on the system. Changes for package SUNWsibi will not be applied to the system.<br />
Package SUNWsibi from directory SUNWsibi in patch 119253-31 is not installed on the system. Changes for package SUNWsibi will not be applied to the system.<br />
Package SUNWTkS from directory SUNWTkS in patch 137872-02 is not installed on the system. Changes for package SUNWTkS will not be applied to the system.<br />
Package SUNWipmiS from directory SUNWipmiS in patch 119765-06 is not installed on the system. Changes for package SUNWipmiS will not be applied to the system.<br />
Package SUNWj5jmp from directory SUNWj5jmp in patch 118668-19 is not installed on the system. Changes for package SUNWj5jmp will not be applied to the system.<br />
Package SUNWpngS from directory SUNWpngS in patch 137081-01 is not installed on the system. Changes for package SUNWpngS will not be applied to the system.<br />
Package SUNWsibi from directory SUNWsibi in patch 124631-24 is not installed on the system. Changes for package SUNWsibi will not be applied to the system.<br />
Package SUNWgtarS from directory SUNWgtarS in patch 139100-01 is not installed on the system. Changes for package SUNWgtarS will not be applied to the system.<br />
Package SUNWbindS from directory SUNWbindS in patch 119784-10 is not installed on the system. Changes for package SUNWbindS will not be applied to the system.<br />
Package SUNWzebraS from directory SUNWzebraS in patch 126207-04 is not installed on the system. Changes for package SUNWzebraS will not be applied to the system.<br />
Package SUNWcleu2 from directory SUNWcleu2 in patch 120413-09 is not installed on the system. Changes for package SUNWcleu2 will not be applied to the system.<br />
Package SUNWmysqlS from directory SUNWmysqlS in patch 120293-02 is not installed on the system. Changes for package SUNWmysqlS will not be applied to the system.<br />
Package SUNWimagickS from directory SUNWimagickS in patch 136883-02 is not installed on the system. Changes for package SUNWimagickS will not be applied to the system.<br />
Package SUNWapch2S from directory SUNWapch2S in patch 120544-14 is not installed on the system. Changes for package SUNWapch2S will not be applied to the system.<br />
Package SUNWlxmlS from directory SUNWlxmlS in patch 125732-04 is not installed on the system. Changes for package SUNWlxmlS will not be applied to the system.<br />
The following requested patches are already installed on the system<br />
Requested patch 120720-02 is already installed on the system.<br />
Requested patch 121297-01 is already installed on the system.<br />
Requested patch 122035-05 is already installed on the system.<br />
Requested patch 118344-14 is already installed on the system.<br />
Requested patch 118919-21 is already installed on the system.<br />
Requested patch 120901-03 is already installed on the system.<br />
Requested patch 121334-04 is already installed on the system.<br />
Requested patch 123840-04 is already installed on the system.<br />
Requested patch 127756-01 is already installed on the system.<br />
Requested patch 117435-02 is already installed on the system.<br />
Requested patch 121264-01 is already installed on the system.<br />
Requested patch 119575-02 is already installed on the system.<br />
Requested patch 113000-07 is already installed on the system.<br />
Requested patch 138218-01 is already installed on the system.<br />
Requested patch 121454-02 is already installed on the system.<br />
Requested patch 121454-02 is already installed on the system.<br />
Requested patch 118855-36 is already installed on the system.<br />
Requested patch 126424-03 is already installed on the system.<br />
Requested patch 122641-06 is already installed on the system.<br />
Requested patch 125548-02 is already installed on the system.<br />
Requested patch 125504-02 is already installed on the system.<br />
Requested patch 120012-14 is already installed on the system.<br />
Requested patch 127128-11 is already installed on the system.<br />
Requested patch 119318-01 is already installed on the system.<br />
Requested patch 123612-05 is already installed on the system.<br />
Requested patch 123591-09 is already installed on the system.<br />
Requested patch 128412-01 is already installed on the system.<br />
Requested patch 125542-03 is already installed on the system.<br />
Requested patch 121976-01 is already installed on the system.<br />
Requested patch 138182-01 is already installed on the system.<br />
Requested patch 120202-06 is already installed on the system.<br />
Requested patch 119082-25 is already installed on the system.<br />
Requested patch 138884-01 is already installed on the system.<br />
Requested patch 137138-09 is already installed on the system.<br />
Requested patch 124445-01 is already installed on the system.<br />
Requested patch 126541-02 is already installed on the system.<br />
Requested patch 136999-05 is already installed on the system.<br />
Requested patch 137872-02 is already installed on the system.<br />
Requested patch 138276-01 is already installed on the system.<br />
Requested patch 119765-06 is already installed on the system.<br />
Requested patch 138362-01 is already installed on the system.<br />
Requested patch 119811-05 is already installed on the system.<br />
Requested patch 120330-02 is already installed on the system.<br />
Requested patch 138323-02 is already installed on the system.<br />
Requested patch 128001-01 is already installed on the system.<br />
Requested patch 124189-02 is already installed on the system.<br />
Requested patch 138270-02 is already installed on the system.<br />
Requested patch 119131-33 is already installed on the system.<br />
Requested patch 119901-06 is already installed on the system.<br />
Requested patch 137081-01 is already installed on the system.<br />
Requested patch 123614-01 is already installed on the system.<br />
Requested patch 138624-02 is already installed on the system.<br />
Requested patch 118960-03 is already installed on the system.<br />
Requested patch 128329-01 is already installed on the system.<br />
Requested patch 136840-01 is already installed on the system.<br />
Requested patch 121013-02 is already installed on the system.<br />
Requested patch 119116-34 is already installed on the system.<br />
Requested patch 124458-01 is already installed on the system.<br />
Requested patch 124998-01 is already installed on the system.<br />
Requested patch 138877-01 is already installed on the system.<br />
Requested patch 126207-04 is already installed on the system.<br />
Requested patch 120236-01 is already installed on the system.<br />
Requested patch 138266-01 is already installed on the system.<br />
Requested patch 138105-01 is already installed on the system.<br />
Requested patch 127854-02 is already installed on the system.<br />
Requested patch 138374-02 is already installed on the system.<br />
Requested patch 137033-01 is already installed on the system.<br />
Requested patch 119813-08 is already installed on the system.<br />
Requested patch 120293-02 is already installed on the system.<br />
Requested patch 123939-01 is already installed on the system.<br />
Requested patch 137094-01 is already installed on the system.<br />
Requested patch 121096-02 is already installed on the system.<br />
Requested patch 124939-03 is already installed on the system.<br />
Requested patch 119987-03 is already installed on the system.<br />
Requested patch 137322-01 is already installed on the system.<br />
Requested patch 119904-02 is already installed on the system.<br />
Requested patch 120831-06 is already installed on the system.<br />
Requested patch 126441-01 is already installed on the system.<br />
Requested patch 125280-05 is already installed on the system.<br />
The following requested patches do not update any packages installed on the system<br />
No Packages from patch 121212-02 are installed on the system.<br />
Checking patches that you specified for installation.<br />
Done!<br />
The following requested patches will not be installed because<br />
they have been made obsolete by other patches already<br />
installed on the system or by patches you have specified for installation.<br />
0 All packages from patch 118844-20 are patched by higher revision patches.<br />
1 All packages from patch 122661-08 are patched by higher revision patches.<br />
2 All packages from patch 124205-05 are patched by higher revision patches.<br />
The following requested patches will not be installed because<br />
the packages they patch are not installed on this system.<br />
0 No Packages from patch 120415-23 are installed on the system.<br />
1 No Packages from patch 120413-09 are installed on the system.<br />
Approved patches will be installed in this order:<br />
126869-03 126420-02 119255-65 126539-02 121119-15 120273-25 119758-14 126366-14<br />
120740-05 119060-45 120411-30 122912-15 141009-01 125556-02 137122-06 138628-07<br />
124629-10 119253-31 138372-06 125540-06 137128-05 119214-18 140775-03 123896-10<br />
118668-19 139499-04 121309-16 119314-26 122213-32 139463-02 125185-11 121395-03<br />
138857-02 118669-19 140384-01 120200-15 124631-24 138264-03 139100-01 138286-02<br />
119784-10 119091-32 138224-03 138882-02 139482-01 138242-05 140145-01 119247-35<br />
120223-31 139580-02 125165-13 125953-18 139501-02 139561-02 125333-05 139484-05<br />
141015-01 124394-09 140456-01 136883-02 120095-22 125720-28 120544-14 125732-04<br />
126364-07 138254-02 138867-02 138889-08<br />
Checking installed patches&#8230;<br />
Verifying sufficient filesystem capacity (dry run method)&#8230;<br />
Installing patch packages&#8230;<br />
Patch 126869-03 has been successfully installed.<br />
See /a/var/sadm/patch/126869-03/log for details<br />
Patch packages installed:<br />
SUNWbzip<br />
SUNWsfman<br />
Checking installed patches&#8230;<br />
Verifying sufficient filesystem capacity (dry run method)&#8230;<br />
Installing patch packages&#8230;<br />
Patch 126420-02 has been successfully installed.<br />
See /a/var/sadm/patch/126420-02/log for details<br />
Patch packages installed:<br />
SUNWcsr<br />
SUNWcsu<br />
&#8230;<br />
Patch 138889-08 has been successfully installed.<br />
See /a/var/sadm/patch/138889-08/log for details<br />
Patch packages installed:<br />
SUNWcakr<br />
SUNWckr<br />
SUNWcpcu<br />
SUNWcsd<br />
SUNWcsl<br />
SUNWcslr<br />
SUNWcsr<br />
SUNWcsu<br />
SUNWdtrc<br />
SUNWesu<br />
SUNWhea<br />
SUNWib<br />
SUNWibsdpib<br />
SUNWipfh<br />
SUNWipfu<br />
SUNWmdb<br />
SUNWmdbr<br />
SUNWnxge<br />
SUNWos86r<br />
SUNWrds<br />
SUNWroute<br />
SUNWtavor<br />
Unmounting the BE &lt;s10u6_recpatches&gt;.<br />
<span style="color: #008000;">The patch add to the BE &lt;s10u6_recpatches&gt; completed.</span></p>
<p>bash-3.00# <strong>lustatus</strong><br />
Boot Environment           Is       Active Active    Can    Copy<br />
Name                       Complete Now    On Reboot Delete Status<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;-<br />
s10x_u6wos_07b             yes      yes    yes       no     -<br />
s10u6_recpatches           yes      no     no        yes    -</p>
<p>Nach dem erfolgreichen Patchen nun also vom neuen BE starten&#8230;</p>
<p>bash-3.00# <strong>luactivate s10u6_recpatches</strong><br />
System has findroot enabled GRUB<br />
Generating boot-sign, partition and slice information for PBE &lt;s10x_u6wos_07b&gt;<br />
Saving existing file &lt;/etc/bootsign&gt; in top level dataset for BE &lt;s10x_u6wos_07b&gt; as &lt;mount-point&gt;//etc/bootsign.prev.<br />
A Live Upgrade Sync operation will be performed on startup of boot environment &lt;s10u6_recpatches&gt;.</p>
<p>Generating boot-sign for ABE &lt;s10u6_recpatches&gt;<br />
Saving existing file &lt;/etc/bootsign&gt; in top level dataset for BE &lt;s10u6_recpatches&gt; as &lt;mount-point&gt;//etc/bootsign.prev.<br />
Generating partition and slice information for ABE &lt;s10u6_recpatches&gt;<br />
Copied boot menu from top level dataset.<br />
Generating multiboot menu entries for PBE.<br />
Generating multiboot menu entries for ABE.<br />
Disabling splashimage<br />
Re-enabling splashimage<br />
No more bootadm entries. Deletion of bootadm entries is complete.<br />
GRUB menu default setting is unaffected<br />
Done eliding bootadm entries.</p>
<p>**********************************************************************</p>
<p>The target boot environment has been activated. It will be used when you<br />
reboot. NOTE: You MUST NOT USE the reboot, halt, or uadmin commands. You<br />
MUST USE either the init or the shutdown command when you reboot. If you<br />
do not use either init or shutdown, the system will not boot using the<br />
target BE.</p>
<p>**********************************************************************</p>
<p>In case of a failure while booting to the target BE, the following process<br />
needs to be followed to fallback to the currently working boot environment:</p>
<p>1. Boot from Solaris failsafe or boot in single user mode from the Solaris<br />
Install CD or Network.</p>
<p>2. Mount the Parent boot environment root slice to some directory (like<br />
/mnt). You can use the following command to mount:</p>
<p>mount -Fzfs /dev/dsk/c1t0d0s0 /mnt</p>
<p>3. Run &lt;luactivate&gt; utility with out any arguments from the Parent boot<br />
environment root slice, as shown below:</p>
<p>/mnt/sbin/luactivate</p>
<p>4. luactivate, activates the previous working boot environment and<br />
indicates the result.</p>
<p>5. Exit Single User mode and reboot the machine.</p>
<p>**********************************************************************</p>
<p>Modifying boot archive service<br />
Propagating findroot GRUB for menu conversion.<br />
File &lt;/etc/lu/installgrub.findroot&gt; propagation successful<br />
File &lt;/etc/lu/stage1.findroot&gt; propagation successful<br />
File &lt;/etc/lu/stage2.findroot&gt; propagation successful<br />
File &lt;/etc/lu/GRUB_capability&gt; propagation successful<br />
Deleting stale GRUB loader from all BEs.<br />
File &lt;/etc/lu/installgrub.latest&gt; deletion successful<br />
File &lt;/etc/lu/stage1.latest&gt; deletion successful<br />
File &lt;/etc/lu/stage2.latest&gt; deletion successful<br />
Activation of boot environment &lt;s10u6_recpatches&gt; successful.</p>
<p>bash-3.00# <strong>lustatus</strong><br />
Boot Environment           Is       Active Active    Can    Copy<br />
Name                       Complete Now    On Reboot Delete Status<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;-<br />
s10x_u6wos_07b             yes      yes    no        no     -<br />
<span style="color: #008000;">s10u6_recpatches           yes      no     yes       no     -</span></p>
<p>bash-3.00# <strong>init 6</strong><br />
updating /platform/i86pc/boot_archive<br />
&#8230;</p>
<p>Achtung: Es muss zwingend mit init oder shutdown neu gestartet werden!</p>
<p>bash-3.00# <strong>lustatus</strong><br />
Boot Environment           Is       Active Active    Can    Copy<br />
Name                       Complete Now    On Reboot Delete Status<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;-<br />
s10x_u6wos_07b             yes      no     no        yes    -<br />
<span style="color: #008000;">s10u6_recpatches           yes      yes    yes       no     -</span></p>
<p>bash-3.00# <strong>zoneadm list -cv</strong><br />
ID NAME             STATUS     PATH                           BRAND    IP<br />
0 global           running    /                              native   shared<br />
- zone1            configured /zone1                         native   shared</p>
<p>bash-3.00# <strong>zpool import zone1</strong></p>
<p>bash-3.00# <strong>zpool list</strong><br />
NAME      SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT<br />
patches  7.94G  2.69G  5.25G    33%  ONLINE  -<br />
rpool    7.94G  6.36G  1.58G    80%  ONLINE  -<br />
zone1    1.98G   547M  1.45G    26%  ONLINE  -</p>
<p>bash-3.00# <strong>metaset -s zone1data -t</strong></p>
<p>bash-3.00#<strong> metaset</strong><br />
Set name = zone1data, Set number = 1<br />
Host                Owner<br />
horst1<br />
horst2             Yes<br />
Drive    Dbase<br />
c2t1d0   Yes<br />
c3t1d0   Yes</p>
<h3>Patchen der Zone mit ugrade-on-attach</h3>
<p>bash-3.00# <strong>zoneadm -z zone1 attach</strong><br />
These patches installed on the source system are inconsistent with this system:<br />
118668: version mismatch<br />
(17) (19)<br />
118669: version mismatch<br />
(17) (19)<br />
119060: version mismatch<br />
(44) (45)<br />
119091: version mismatch<br />
(31) (32)<br />
119214: version mismatch<br />
(17) (18)<br />
119247: version mismatch<br />
(34) (35)<br />
119253: version mismatch<br />
(29) (31)<br />
119255: version mismatch<br />
(59) (65)<br />
119314: version mismatch<br />
(24) (26)<br />
119758: version mismatch<br />
(12) (14)<br />
119784: version mismatch<br />
(07) (10)<br />
120095: version mismatch<br />
(21) (22)<br />
120200: version mismatch<br />
(14) (15)<br />
120223: version mismatch<br />
(29) (31)<br />
120273: version mismatch<br />
(23) (25)<br />
120411: version mismatch<br />
(29) (30)<br />
120544: version mismatch<br />
(11) (14)<br />
120740: version mismatch<br />
(04) (05)<br />
121119: version mismatch<br />
(13) (15)<br />
121309: version mismatch<br />
(14) (16)<br />
121395: version mismatch<br />
(01) (03)<br />
122213: version mismatch<br />
(28) (32)<br />
122912: version mismatch<br />
(13) (15)<br />
123896: version mismatch<br />
(05) (10)<br />
124394: version mismatch<br />
(08) (09)<br />
124629: version mismatch<br />
(09) (10)<br />
124631: version mismatch<br />
(19) (24)<br />
125165: version mismatch<br />
(12) (13)<br />
125185: version mismatch<br />
(08) (11)<br />
125333: version mismatch<br />
(03) (05)<br />
125540: version mismatch<br />
(04) (06)<br />
125720: version mismatch<br />
(24) (28)<br />
125732: version mismatch<br />
(02) (04)<br />
125953: version mismatch<br />
(17) (18)<br />
126364: version mismatch<br />
(06) (07)<br />
126366: version mismatch<br />
(12) (14)<br />
126420: version mismatch<br />
(01) (02)<br />
126539: version mismatch<br />
(01) (02)<br />
126869: version mismatch<br />
(02) (03)<br />
136883: version mismatch<br />
(01) (02)<br />
137122: version mismatch<br />
(03) (06)<br />
137128: version mismatch<br />
(02) (05)<br />
138224: version mismatch<br />
(02) (03)<br />
138242: version mismatch<br />
(01) (05)<br />
138254: version mismatch<br />
(01) (02)<br />
138264: version mismatch<br />
(02) (03)<br />
138286: version mismatch<br />
(01) (02)<br />
138372: version mismatch<br />
(02) (06)<br />
138628: version mismatch<br />
(02) (07)<br />
138857: version mismatch<br />
(01) (02)<br />
138867: version mismatch<br />
(01) (02)<br />
138882: version mismatch<br />
(01) (02)<br />
These patches installed on this system were not installed on the source system:<br />
125556-02<br />
138889-08<br />
139100-01<br />
139463-02<br />
139482-01<br />
139484-05<br />
139499-04<br />
139501-02<br />
139561-02<br />
139580-02<br />
140145-01<br />
140384-01<br />
140456-01<br />
140775-03<br />
141009-01<br />
141015-01</p>
<p>bash-3.00# <strong>zoneadm -z zone1 attach -u</strong><br />
Getting the list of files to remove<br />
Removing 1209 files<br />
Remove 198 of 198 packages<br />
Installing 1315 files<br />
Add 198 of 198 packages<br />
Updating editable files<br />
The file &lt;/var/sadm/system/logs/update_log&gt; within the zone contains a log of the zone update.</p>
<p>bash-3.00# <strong>zoneadm list -cv</strong><br />
ID NAME             STATUS     PATH                           BRAND    IP<br />
0 global           running    /                              native   shared<br />
- zone1            installed  /zone1                         native   shared</p>
<p>bash-3.00# <strong>zoneadm -z zone1 boot</strong></p>
<p>bash-3.00# <strong>zlogin zone1</strong><br />
[Connected to zone 'zone1' pts/4]<br />
Last login: Thu Apr  9 09:06:23 on pts/5<br />
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005<br />
#<br />
# <strong>exit</strong><br />
[Connection to zone 'zone1' pts/4 closed]</p>
<p>Upgrade-on-attach zum Patchen der Zone hat hier wunder geklappt.</p>
<h3>weiterer Test nach Einspielen des recommended patch clusters</h3>
<p>Nachdem nun Solaris10u6 mit neuestem recommended patch cluster installiert ist m&#246;chte ich das Liveupgrade inclusive Zone nochmals testen.</p>
<p>bash-3.00# <strong>lustatus</strong><br />
Boot Environment           Is       Active Active    Can    Copy<br />
Name                       Complete Now    On Reboot Delete Status<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;-<br />
s10x_u6wos_07b             yes      no     no        yes    -<br />
s10u6_recpatches           yes      yes    yes       no     -</p>
<p>bash-3.00# <strong>zoneadm list -cv</strong><br />
ID NAME             STATUS     PATH                           BRAND    IP<br />
0 global           running    /                              native   shared<br />
2 zone1            running    /zone1                         native   shared</p>
<p>bash-3.00# <strong>lucreate -n s10u6_zonetest</strong><br />
Checking GRUB menu&#8230;<br />
System has findroot enabled GRUB<br />
Analyzing system configuration.<br />
Comparing source boot environment &lt;s10u6_recpatches&gt; file systems with the<br />
file system(s) you specified for the new boot environment. Determining<br />
which file systems should be in the new boot environment.<br />
Updating boot environment description database on all BEs.<br />
Updating system configuration files.<br />
Creating configuration for boot environment &lt;s10u6_zonetest&gt;.<br />
Source boot environment is &lt;s10u6_recpatches&gt;.<br />
Creating boot environment &lt;s10u6_zonetest&gt;.<br />
Cloning file systems from boot environment &lt;s10u6_recpatches&gt; to create boot environment &lt;s10u6_zonetest&gt;.<br />
Creating snapshot for &lt;rpool/ROOT/s10u6_recpatches&gt; on &lt;rpool/ROOT/s10u6_recpatches@s10u6_zonetest&gt;.<br />
Creating clone for &lt;rpool/ROOT/s10u6_recpatches@s10u6_zonetest&gt; on &lt;rpool/ROOT/s10u6_zonetest&gt;.<br />
Setting canmount=noauto for &lt;/&gt; in zone &lt;global&gt; on &lt;rpool/ROOT/s10u6_zonetest&gt;.<br />
Creating snapshot for &lt;zone1&gt; on &lt;zone1@s10u6_zonetest&gt;.<br />
<span style="color: #ff0000;">cannot create &#8216;.&#8217;: missing dataset name<br />
Creating clone for &lt;zone1@s10u6_zonetest&gt; on &lt;zone1-s10u6_zonetest&gt;.<br />
ERROR: cannot create &#8216;zone1-s10u6_zonetest&#8217;: missing dataset name<br />
ERROR: Unable to clone &lt;&gt; on &lt;&gt;.<br />
/usr/lib/lu/luclonefs: zone1@s10u6_zonetest: not found<br />
cannot open &#8216;zone1-s10u6_zonetest&#8217;: dataset does not exist<br />
cannot open &#8216;zone1-s10u6_zonetest&#8217;: dataset does not exist<br />
cannot open &#8216;zone1-s10u6_zonetest&#8217;: dataset does not exist</span><br />
Saving existing file &lt;/boot/grub/menu.lst&gt; in top level dataset for BE &lt;s10x_u6wos_07b&gt; as &lt;mount-point&gt;//boot/grub/menu.lst.prev.<br />
Saving existing file &lt;/boot/grub/menu.lst&gt; in top level dataset for BE &lt;s10u6_zonetest&gt; as &lt;mount-point&gt;//boot/grub/menu.lst.prev.<br />
File &lt;/boot/grub/menu.lst&gt; propagation successful<br />
Copied GRUB menu from PBE to ABE<br />
No entry for BE &lt;s10u6_zonetest&gt; in GRUB menu<br />
Population of boot environment &lt;s10u6_zonetest&gt; successful.<br />
Creation of boot environment &lt;s10u6_zonetest&gt; successful.<br />
bash-3.00#</p>
<p>bash-3.00# <strong>ludelete -n s10u6_zonetest -f</strong><br />
System has findroot enabled GRUB<br />
No entry for BE &lt;s10u6_zonetest&gt; in GRUB menu<br />
Determining the devices to be marked free.<br />
Updating boot environment configuration database.<br />
Updating compare databases on boot environment &lt;s10x_u6wos_07b&gt;.<br />
Updating boot environment description database on all BEs.<br />
Updating all boot environment configuration databases.<br />
Boot environment &lt;s10u6_zonetest&gt; deleted.</p>
<p>bash-3.00# <strong>zfs destroy zone1@s10u6_zonetest</strong></p>
<p>Tja, auch nach Installieren der aktuell empfohlen Patches klappt das nicht wie gew&#252;nscht.</p>
<p>Hat jemand zu diesem Thema eigene Erfahrungen oder Workarounds? Auf Kommentare oder Tips w&#252;rde ich mich freuen&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2009/04/10/flying-zones-fuer-arme-teil-2-liveupgrade-mit-solaris10-update6-und-zfs-root/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flying zones f&#252;r Arme im Eigenbau mit Solaris10 und Vmware Server 2</title>
		<link>http://otmanix.de/2009/04/05/flying-zones-fuer-arme-im-eigenbau-mit-solaris10-und-vmware-server-2/</link>
		<comments>http://otmanix.de/2009/04/05/flying-zones-fuer-arme-im-eigenbau-mit-solaris10-und-vmware-server-2/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 20:33:08 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[EMC]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[SAN]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Virtualisierung]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Container]]></category>
		<category><![CDATA[disk set]]></category>
		<category><![CDATA[svm]]></category>
		<category><![CDATA[UFS]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[zones]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=1150</guid>
		<description><![CDATA[Solaris Zones / Container Sun Microsystems hat Solaris10 eine interessante OS-Virtualisierungsl&#246;sung kostenlos beigelegt &#8211; Solaris Zones, &#228;hnlich zu BSD jails. Im Gegensatz zu XVM (Xen im Solaris-Kernel f&#252;r X86) oder Logical Domains (Hypervisor f&#252;r CMT/Niagara) gibt es bei Zones kaum &#8230; <a href="http://otmanix.de/2009/04/05/flying-zones-fuer-arme-im-eigenbau-mit-solaris10-und-vmware-server-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Solaris Zones / Container</h3>
<p>Sun Microsystems hat Solaris10 eine interessante OS-Virtualisierungsl&#246;sung kostenlos beigelegt &#8211; Solaris Zones, &#228;hnlich zu <a title="BSD jails" href="http://en.wikipedia.org/wiki/FreeBSD_jail" target="_blank">BSD jails</a>. Im Gegensatz zu XVM (Xen im Solaris-Kernel f&#252;r X86) oder Logical Domains (Hypervisor f&#252;r CMT/Niagara) gibt es bei Zones kaum Overhead durch die Virtualisierung. Zudem steht es sowohl im Sparc- als auch im X86-Umfeld zur Verf&#252;gung. In einer Zone werden Resourcen der sog. &#8220;globalen Zone&#8221; genutzt. Es gibt aber auch z.T. die M&#246;glichkeit dediziert Resourcen zuzuweisen, z.B. einen eigenen IP-Stack. Den OS-Kernel hingegen gibt es nur einmal. Die Kombination von OS-Virtualisierung mit Zones und dem Resourcemanagement wird als Container bezeichnet.</p>
<p>Container werden i.d.R. genutzt um Applikationen oder Applikationsschichten voneinander abzuschotten und die Resourcenverteilung zu steuern. So kann ein Container ein SAP ERP Entwicklungs- und Testsystem beinhalten und ein weiterer das Produktionssystem. Die Systeme haben je eine eigene Netzwerkkonfiguration und k&#246;nnen weiche oder harten Grenzen f&#252;r CPU-Auslastung und Speicherverbrauch besitzen.</p>
<h3>flying zones</h3>
<p>Heruntergefahrene Zonen kann man klonen oder exportieren. Kopiert man die Filesysteme der Zone auf einen anderen Rechner kann man sie dort importieren und die Zone wieder in Betrieb nehmen. Legt man die Filesysteme auf shared storage kann man durch Zuweisen der relevanten Disks auf allen relevanten Rechnern die Filesysteme je nach Bedarf am passenden System in Betrieb nehmen. Danach kann auch die Zone dort wieder in Betrieb genommen werden. Das Verfahren nennt man Zonenmigration. Das wird genutzt um bei Rechnerausf&#228;llen Zonen umzuziehen oder um eine bessere Auslastung der vorhandenen Systeme zu erzielen. Als Basis f&#252;r den Umzug der Filesysteme kann sowohl ZFS als auch UFS auf shared disk sets genutzt werden.</p>
<p>M&#246;chte man den Umzug von Zonen auf andere Rechner automatisieren, die Verf&#252;gbarkeit der Zonen/Rechner &#252;berwachen lassen und automische Reaktionen in Problemf&#228;llen haben, dann kann man den Sun Cluster 3.2 mit dem Zonenagent einsetzen.</p>
<p>Sun verkauft die Implementierung einer solchen Gesamtl&#246;sung unter dem Titel &#8220;<a title="flying zones" href="http://de.sun.com/sunnews/events/2007/solaris10techno/pdf/A3_Solaris10-FlyingZones_V3.pdf" target="_blank">flying zones</a>&#8220;. Dabei wird noch das Monitoringtool N1AA Analyzer beigelegt. Dort kann man z.B. den Resourcenverbrauch von best. Zonen aufsummieren lassen und pr&#252;fen, ob das denn so zusammen auf einer best. Hardware laufen w&#252;rde. Au&#223;erdem wird einem noch das Softwareinstallationssystem N1AA ans Herz gelegt.</p>
<h3>flying zones f&#252;r Arme im Eigenbau</h3>
<p>Im kostenlosen Vmware Server 2.01 auf meinem PC habe ich eine Testumgebung aufgebaut um die Grundz&#252;ge von flying zones nachzustellen und zu testen. Wichtig war mir eine realistische Umgebung wie im Betriebsalltag, deshalb bin ich von 2 virt. Rechenzentren ausgegangen. In jedem virt. RZ befindet sich ein Solaris-Host und ein Storagesystem. Auf das Storagesystem jedes RZs kann jeder Server zugreifen. Die Platten im Storagesystem sind als shared disks konfiguriert. Es soll mit host based mirroring erreicht werden, dass trotz Ausfall eines kompletten Storagesystems den Betrieb der Zone nicht gest&#246;rt wird, egal auf welchem host die Zone aktiv l&#228;uft. Auf den Einsatz kostenpflichtiger Clustersoftware zur Automatisierung verzichte ich in diesem Test.</p>
<p><a href="http://otmanix.de/wp-content/uploads/2009/04/flyingzones.jpg"><img class="alignnone size-full wp-image-1151" title="flying zones mit Solaris10 und Vmware Server 2" src="http://otmanix.de/wp-content/uploads/2009/04/flyingzones.jpg" alt="flying zones mit Solaris10 und Vmware Server 2" width="50%" height="50%" /></a></p>
<p>In der Testumgebung gibt es nur eine Zone. In der Realit&#228;t w&#228;ren das nat&#252;rlich mehr.</p>
<p>Auf jedem Solaris-Host ist Solaris10u6 (10/08) installiert. Dabei wurde ein lokale Platte genutzt um darauf das OS zu installieren. Dabei wurde bereits die neue Funktionalit&#228;t genutzt ZFS als Rootfilesystem einzusetzen. Eine weitere kleine lokale Platte steht dar&#252;ber hinaus zur Verf&#252;gung. Auf die Grundinstallation der Solaris-hosts gehe ich hier nicht n&#228;her ein. Die shared disks sind ebenfalls bereits den hosts bereitgestellt.</p>
<h3>Testumgebung auf Vmware Server 2.01</h3>
<p>Am Vmware Server ist eigentlich nur die Konfiguration der shared disks interessant. Die Disks werden zun&#228;chst in einer virt. Maschine erstellt, dann deren vmx-Dateien angepasst und die relevanten Teile der vmx-Datei in die des anderen hosts &#252;bertragen.</p>
<p>Ben&#246;tigt werden also folgende Platten:</p>
<p>lokale disks pro System:</p>
<p>1 Disk mit &gt;= 5GB f&#252;r den ZFS-RootPool<br />
1 Disk &gt;= 20MB f&#252;r die lokale State Database</p>
<p>shared disks (insgesamt):</p>
<p>2 shared Disks (preaallocated) f&#252;r Zonen-Root (ZFS) 2GB<br />
2 shared Disks (preaallocated) mit Zonen-Daten (UFS) 50MB</p>
<p>relevanter Teil der vmx-Dateien:</p>
<pre>scsi1.present = "TRUE"
scsi1.sharedBus = "virtual"
scsi1.virtualDev = "lsilogic"</pre>
<pre>scsi1:0.present = "TRUE"
scsi1:0.fileName = "D:\Virtual Machines\ext1disk1.vmdk"
scsi1:0.writeThrough = "TRUE"
scsi1:0.mode = "independent-persistent"</pre>
<pre>scsi1:1.present = "TRUE"
scsi1:1.fileName = "D:\Virtual Machines\ext1disk2.vmdk"
scsi1:1.writeThrough = "TRUE"
scsi1:1.mode = "independent-persistent"</pre>
<pre>scsi2.present = "TRUE"
scsi2.sharedBus = "virtual"
scsi2.virtualDev = "lsilogic"</pre>
<pre>scsi2:0.present = "TRUE"
scsi2:0.fileName = "D:\Virtual Machines\ext2disk1.vmdk"
scsi2:0.writeThrough = "TRUE"
scsi2:0.mode = "independent-persistent"</pre>
<pre>scsi2:1.present = "TRUE"
scsi2:1.fileName = "D:\Virtual Machines\ext2disk2.vmdk"
scsi2:1.writeThrough = "TRUE"
scsi2:1.mode = "independent-persistent"</pre>
<pre>disk.locking = "FALSE"</pre>
<p><a href="http://otmanix.de/wp-content/uploads/2009/04/horst2.jpg"><img class="alignnone size-full wp-image-1159" title="VM &quot;horst2&quot; im Vmware Server 2.01" src="http://otmanix.de/wp-content/uploads/2009/04/horst2.jpg" alt="VM &quot;horst2&quot; im Vmware Server 2.01" width="30%" height="30%" /></a></p>
<p>Hier ein Blick auf das System nach der Solaris-Installation:</p>
<pre>bash-3.00# <strong>zpool list</strong>
NAME    SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
rpool  7.94G  4.65G  3.28G    58%  ONLINE  -

bash-3.00# <strong>zpool status rpool</strong>
pool: rpool
state: ONLINE
scrub: none requested
config:
NAME        STATE     READ WRITE CKSUM
rpool       ONLINE       0     0     0
c1t0d0s0  ONLINE       0     0     0
errors: No known data errors

bash-3.00# <strong>zfs list</strong>
NAME                        USED  AVAIL  REFER  MOUNTPOINT
rpool                      5.15G  2.67G  35.5K  /rpool
rpool/ROOT                 3.77G  2.67G    18K  legacy
rpool/ROOT/s10x_u6wos_07b  3.77G  2.67G  3.77G  /
rpool/dump                  900M  2.67G   900M  -
rpool/export                 37K  2.67G    19K  /export
rpool/export/home            18K  2.67G    18K  /export/home
rpool/swap                  512M  3.16G  5.54M  -

bash-3.00# <strong>df -h</strong>
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/s10x_u6wos_07b 7.8G   3.8G   2.7G    59%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   532M   364K   532M     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap2.so.1 6.4G   3.8G   2.7G    59%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   535M   2.7M   532M     1%    /tmp
swap                   532M    32K   532M     1%    /var/run
rpool/export           7.8G    19K   2.7G     1%    /export
rpool/export/home      7.8G    18K   2.7G     1%    /export/home
rpool                  7.8G    35K   2.7G     1%    /rpool
/hgfs                   16G   4.0M    16G     1%    /hgfs
/tmp/VMwareDnD           0K     0K     0K     0%    /var/run/vmblock

bash-3.00# <strong>swap -l</strong>
swapfile             dev  swaplo blocks   free
/dev/zvol/dsk/rpool/swap 181,1       8 1048568 1047280</pre>
<h3>Arbeiten mit den shared disks</h3>
<h4>ZFS f&#252;r Zonenroot, RAID1 gespiegelt</h4>
<pre>bash-3.00# <strong>format</strong>
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 &lt;DEFAULT cyl 4092 alt 2 hd 128 sec 32&gt;
/pci@0,0/pci15ad,1976@10/sd@0,0
1. c1t1d0 &lt;DEFAULT cyl 47 alt 2 hd 64 sec 32&gt;
/pci@0,0/pci15ad,1976@10/sd@1,0
2. c2t0d0 &lt;VMware,-VMware Virtual S-1.0-2.00GB&gt;
/pci@0,0/pci15ad,790@11/pci15ad,1976@0/sd@0,0
3. c2t1d0 &lt;DEFAULT cyl 47 alt 2 hd 64 sec 32&gt;
/pci@0,0/pci15ad,790@11/pci15ad,1976@0/sd@1,0
4. c3t0d0 &lt;VMware,-VMware Virtual S-1.0-2.00GB&gt;
/pci@0,0/pci15ad,790@11/pci15ad,1976@1/sd@0,0
5. c3t1d0 &lt;DEFAULT cyl 47 alt 2 hd 64 sec 32&gt;
/pci@0,0/pci15ad,790@11/pci15ad,1976@1/sd@1,0
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
/dev/dsk/c1t0d0s0 is part of active ZFS pool rpool. Please see zpool(1M).
/dev/dsk/c1t0d0s2 is part of active ZFS pool rpool. Please see zpool(1M).

bash-3.00# <strong>zpool create zone1 mirror c2t0d0 c3t0d0</strong>
bash-3.00# zpool list zone1
NAME    SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
zone1  1.98G    94K  1.98G     0%  ONLINE  -

bash-3.00# <strong>zpool status zone1</strong>
pool: zone1
state: ONLINE
scrub: none requested
config:
NAME        STATE     READ WRITE CKSUM
zone1       ONLINE       0     0     0
mirror    ONLINE       0     0     0
c2t0d0  ONLINE       0     0     0
c3t0d0  ONLINE       0     0     0
errors: No known data errors

bash-3.00# <strong>zfs list</strong>
NAME                        USED  AVAIL  REFER  MOUNTPOINT
rpool                      5.15G  2.67G  35.5K  /rpool
rpool/ROOT                 3.77G  2.67G    18K  legacy
rpool/ROOT/s10x_u6wos_07b  3.77G  2.67G  3.77G  /
rpool/dump                  900M  2.67G   900M  -
rpool/export                 37K  2.67G    19K  /export
rpool/export/home            18K  2.67G    18K  /export/home
rpool/swap                  512M  3.16G  5.54M  -
zone1                       106K  1.95G    18K  /zone1</pre>
<h4>Datenbereich mit UFS-Filesystem auf SVM shared disk set, RAID1 gespiegelt</h4>
<pre>bash-3.00# <strong>metaset -s zone1data -a c2t1d0 c3t1d0 -h horst1 horst2</strong>
metaset: horst1: there are no existing databases</pre>
<p>Es existiert noch keine lokale state database. Deshalb auf horst1 und horst2 die zweite lokale Platte partitionieren und in der Slice7 eine lokale State Database anlegen.</p>
<pre>bash-3.00# <strong>format</strong>
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 &lt;DEFAULT cyl 4092 alt 2 hd 128 sec 32&gt;
/pci@0,0/pci15ad,1976@10/sd@0,0
1. c1t1d0 &lt;DEFAULT cyl 47 alt 2 hd 64 sec 32&gt;
/pci@0,0/pci15ad,1976@10/sd@1,0
2. c2t0d0 &lt;VMware,-VMware Virtual S-1.0-2.00GB&gt;
/pci@0,0/pci15ad,790@11/pci15ad,1976@0/sd@0,0
3. c2t1d0 &lt;DEFAULT cyl 47 alt 2 hd 64 sec 32&gt;
/pci@0,0/pci15ad,790@11/pci15ad,1976@0/sd@1,0
4. c3t0d0 &lt;VMware,-VMware Virtual S-1.0-2.00GB&gt;
/pci@0,0/pci15ad,790@11/pci15ad,1976@1/sd@0,0
5. c3t1d0 &lt;DEFAULT cyl 47 alt 2 hd 64 sec 32&gt;
/pci@0,0/pci15ad,790@11/pci15ad,1976@1/sd@1,0
Specify disk (enter its number): <strong>1</strong>
selecting c1t1d0
[disk formatted]
FORMAT MENU:
disk       - select a disk
type       - select (define) a disk type
partition  - select (define) a partition table
current    - describe the current disk
format     - format and analyze the disk
fdisk      - run the fdisk program
repair     - repair a defective sector
label      - write label to the disk
analyze    - surface analysis
defect     - defect list management
backup     - search for backup labels
verify     - read and display labels
save       - save new disk/partition definitions
inquiry    - show vendor, product and revision
volname    - set 8-character volume name
!&lt;cmd&gt;     - execute &lt;cmd&gt;, then return
format&gt; <strong>fdisk</strong>
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition,  otherwise type "n" to edit the
partition table.
<strong>y</strong>
quit
format&gt; <strong>part</strong>
PARTITION MENU:
0      - change `0' partition
1      - change `1' partition
2      - change `2' partition
3      - change `3' partition
4      - change `4' partition
5      - change `5' partition
6      - change `6' partition
7      - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name   - name the current table
print  - display the current table
label  - write partition map and label to the disk
!&lt;cmd&gt; - execute &lt;cmd&gt;, then return
quit
partition&gt; <strong>print</strong>
Current partition table (original):
Total disk cylinders available: 46 + 2 (reserved cylinders)
Part      Tag    Flag     Cylinders      Size            Blocks
0 unassigned    wm       0             0         (0/0/0)      0
1 unassigned    wm       0             0         (0/0/0)      0
2     backup    wu       0 - 45       46.00MB    (46/0/0) 94208
3 unassigned    wm       0             0         (0/0/0)      0
4 unassigned    wm       0             0         (0/0/0)      0
5 unassigned    wm       0             0         (0/0/0)      0
6 unassigned    wm       0             0         (0/0/0)      0
7 unassigned    wm       0             0         (0/0/0)      0
8       boot    wu       0 -  0        1.00MB    (1/0/0)   2048
9 unassigned    wm       0             0         (0/0/0)      0
partition&gt; <strong>7</strong>
Part      Tag    Flag     Cylinders      Size            Blocks
7 unassigned    wm       0             0         (0/0/0)      0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: <strong>46c</strong>
partition&gt; <strong>print</strong>
Current partition table (unnamed):
Total disk cylinders available: 46 + 2 (reserved cylinders)
Part      Tag    Flag     Cylinders      Size            Blocks
0 unassigned    wm       0             0         (0/0/0)      0
1 unassigned    wm       0             0         (0/0/0)      0
2     backup    wu       0 - 45       46.00MB    (46/0/0) 94208
3 unassigned    wm       0             0         (0/0/0)      0
4 unassigned    wm       0             0         (0/0/0)      0
5 unassigned    wm       0             0         (0/0/0)      0
6 unassigned    wm       0             0         (0/0/0)      0
7 unassigned    wm       0 - 45       46.00MB    (46/0/0) 94208
8       boot    wu       0 -  0        1.00MB    (1/0/0)   2048
9 unassigned    wm       0             0         (0/0/0)      0
partition&gt; <strong>label</strong>
Ready to label disk, continue? <strong>y</strong>
partition&gt; <strong>quit</strong>
FORMAT MENU:
disk       - select a disk
type       - select (define) a disk type
partition  - select (define) a partition table
current    - describe the current disk
format     - format and analyze the disk
fdisk      - run the fdisk program
repair     - repair a defective sector
label      - write label to the disk
analyze    - surface analysis
defect     - defect list management
backup     - search for backup labels
verify     - read and display labels
save       - save new disk/partition definitions
inquiry    - show vendor, product and revision
volname    - set 8-character volume name
!&lt;cmd&gt;     - execute &lt;cmd&gt;, then return
quit
format&gt; <strong>quit</strong>
bash-3.00#

bash-3.00# <strong>metadb -a -f c1t1d0s7</strong>

bash-3.00# <strong>metadb</strong>
flags           first blk       block count
a        u         16              8192            /dev/dsk/c1t1d0s7
bash-3.00# echo "set md:mirrored_root_flag=1" &gt;&gt; /etc/system</pre>
<p>Auf horst1 nun das shared disk set anlegen.</p>
<pre>bash-3.00# <strong>metaset -s zone1data -a -h horst1 horst2</strong>
metaset: horst2: rpc.metad: Permission denied</pre>
<p>Dem Dienst fehlen die Berechtigungen.</p>
<p>Auf horst1</p>
<pre>bash-3.00# <strong>echo horst2 &gt; /.rhosts</strong></pre>
<p>Auf horst2</p>
<pre>bash-3.00# <strong>echo horst1 &gt; /.rhosts</strong></pre>
<p>Auf horst1 nun das shared disk set erstellen:</p>
<pre>bash-3.00# <strong>metaset -s zone1data -a -h horst1 horst2</strong>

bash-3.00# <strong>metaset -s zone1data -a c2t1d0 c3t1d0</strong>

bash-3.00# <strong>metaset</strong>
Set name = zone1data, Set number = 1
Host                Owner
horst1             Yes
horst2
Drive    Dbase
c2t1d0   Yes
c3t1d0   Yes

bash-3.00# <strong>metadb -s zone1data</strong>
flags           first blk       block count
a        u         16              8192            /dev/dsk/c2t1d0s7
a        u         16              8192            /dev/dsk/c3t1d0s7</pre>
<p>Nun die RAID1-Spiegelung mit Solaris Volummanager (SVM) aufsetzen:</p>
<pre>bash-3.00# <strong>metainit -s zone1data d11 1 1 c2t1d0s0</strong>
zone1data/d11: Concat/Stripe is setup

bash-3.00# <strong>metainit -s zone1data d12 1 1 c3t1d0s0</strong>
zone1data/d12: Concat/Stripe is setup

bash-3.00# <strong>metainit -s zone1data d10 -m d11</strong>
zone1data/d10: Mirror is setup

bash-3.00# <strong>metattach -s zone1data d10 d12</strong>
zone1data/d10: submirror zone1data/d12 is attached

bash-3.00# <strong>metastat -s zone1data</strong>
zone1data/d10: Mirror
Submirror 0: zone1data/d11
State: Okay
Submirror 1: zone1data/d12
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 86016 blocks (42 MB)
zone1data/d11: Submirror of zone1data/d10
State: Okay
Size: 86016 blocks (42 MB)
Stripe 0:
Device     Start Block  Dbase        State Reloc Hot Spare
c2t1d0s0          0     No            Okay   Yes
zone1data/d12: Submirror of zone1data/d10
State: Okay
Size: 86016 blocks (42 MB)
Stripe 0:
Device     Start Block  Dbase        State Reloc Hot Spare
c3t1d0s0          0     No            Okay   Yes
Device Relocation Information:
Device   Reloc  Device ID
c3t1d0   Yes    id1,sd@f0000000049d7b0e80006e5c10004
c2t1d0   Yes    id1,sd@f0000000049d7b0e80004846b0003</pre>
<p>Im Anschluss die Platte mit UFS formatieren:</p>
<pre>bash-3.00# <strong>newfs /dev/md/zone1data/rdsk/d10</strong>
/dev/md/zone1data/rdsk/d10: Unable to find Media type. Proceeding with system determined parameters.
newfs: construct a new file system /dev/md/zone1data/rdsk/d10: (y/n)? <strong>y</strong>
/dev/md/zone1data/rdsk/d10:     86016 sectors in 42 cylinders of 64 tracks, 32 sectors
42.0MB in 3 cyl groups (16 c/g, 16.00MB/g, 7680 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 32832, 65632,</pre>
<h3>Konfiguration und Installation der Zone zone1</h3>
<pre>bash-3.00# <strong>zonecfg -z zone1</strong>
zone1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:zone1&gt; <strong>create</strong>
zonecfg:zone1&gt; <strong>set zonepath=/zone1</strong>
zonecfg:zone1&gt; <strong>set autoboot=false</strong>
zonecfg:zone1&gt; <strong>add fs</strong>
zonecfg:zone1:fs&gt; <strong>set dir=/daten</strong>
zonecfg:zone1:fs&gt; <strong>set special=/dev/md/zone1data/dsk/d10</strong>
zonecfg:zone1:fs&gt; <strong>set raw=/dev/md/zone1data/rdsk/d10</strong>
zonecfg:zone1:fs&gt; <strong>set type=ufs</strong>
zonecfg:zone1:fs&gt; <strong>end</strong>
zonecfg:zone1&gt; <strong>add net</strong>
zonecfg:zone1:net&gt; <strong>set physical=e100g0</strong>
zonecfg:zone1:net&gt; <strong>set address=192.168.178.61</strong>
zonecfg:zone1:net&gt; <strong>end</strong>
zonecfg:zone1&gt; <strong>exit</strong>

bash-3.00# <strong>zoneadm list -c</strong>
global
zone1

bash-3.00# <strong>cat /etc/zones/index</strong>
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)zones-index        1.2     04/04/01 SMI"
#
# DO NOT EDIT: this file is automatically generated by zoneadm(1M)
# and zonecfg(1M).  Any manual changes will be lost.
#
global:installed:/
zone1:configured:/zone1:

bash-3.00# <strong>cat /etc/zones/zone1.xml</strong>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN" "file:///usr/share/lib/xml/dtd/zonecfg.dtd.1"&gt;
&lt;!--
DO NOT EDIT THIS FILE.  Use zonecfg(1M) instead.
--&gt;
&lt;zone name="zone1" zonepath="/zone1" autoboot="false"&gt;
&lt;inherited-pkg-dir directory="/lib"/&gt;
&lt;inherited-pkg-dir directory="/platform"/&gt;
&lt;inherited-pkg-dir directory="/sbin"/&gt;
&lt;inherited-pkg-dir directory="/usr"/&gt;
&lt;filesystem special="/dev/md/zone1data/dsk/d10" raw="/dev/md/zone1data/rdsk/d10" directory="/daten" type="ufs"/&gt;
&lt;network address="192.168.178.61" physical="e100g0"/&gt;
&lt;/zone&gt;

bash-3.00# <strong>chmod 700 /zone1</strong>

bash-3.00# <strong>zoneadm -z zone1 install</strong>
Preparing to install zone &lt;zone1&gt;.
Checking &lt;ufs&gt; file system on device &lt;/dev/md/zone1data/rdsk/d10&gt; to be mounted at &lt;/zone1/root&gt;
Creating list of files to copy from the global zone.
Copying &lt;8135&gt; files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize &lt;1186&gt; packages on the zone.
Initialized &lt;1186&gt; packages on zone.
Zone &lt;zone1&gt; is initialized.
The file &lt;/zone1/root/var/sadm/system/logs/install_log&gt; contains a log of the zone installation.

bash-3.00# <strong>zoneadm list -cv</strong>
ID NAME             STATUS     PATH                           BRAND    IP
0 global           running    /                              native   shared
- zone1            installed  /zone1                         native   shared

bash-3.00# <strong>zoneadm -z zone1 boot</strong>

bash-3.00# <strong>zlogin -C zone1</strong>
[Connected to zone 'zone1' console]
143/143
Reading ZFS config: done.
Select a Language
0. English
1. German
2. es
3. fr
Please make a choice (0 - 3), or press h or ? for help:<strong>1</strong>
...
Auf welcher Art von Terminal arbeiten Sie?
1) ANSI Standard CRT
2) DEC VT52
3) DEC VT100
4) Heathkit 19
5) Lear Siegler ADM31
6) PC-Konsole
7) Sun-Kommando-Shell
 <img src='http://otmanix.de/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Sun-Workstation
9) Televideo 910
10) Televideo 925
11) Wyse Modell 50
12) X Terminal Emulator (xterms)
13) CDE Terminal Emulator (dtterm)
14) Andere
Geben Sie die gew&#252;nschte Zahl ein und dr&#252;cken Sie Eingabetaste: <strong>3</strong>
...
System identification is completed.
rebooting system due to change(s) in /etc/default/init
[NOTICE: Zone rebooting]
SunOS Release 5.10 Version Generic_137138-09 64-bit
Copyright 1983-2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Hostname: zone1
Reading ZFS config: done.
zone1 console login: Apr  5 13:33:22 zone1 sendmail[6008]: My unqualified host name (localhost) unknown; sleeping for retry
<strong>root</strong>
Password:
Apr  5 13:33:44 zone1 login: ROOT LOGIN /dev/console
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005

# <strong>svcadm disable svc:*sendmail*</strong>

bash-3.00# <strong>df -h</strong>
Dateisystem           Gr&#246;&#223;e belegt verf&#252;gbar Kapazit&#228;t Eingeh&#228;ngt auf
/                        0K   541M   1,4G    28%    /
/daten                  39M   1,0M    34M     3%    /daten
/dev                   2,0G   541M   1,4G    28%    /dev
/lib                   6,4G   3,8G   2,7G    59%    /lib
/platform              6,4G   3,8G   2,7G    59%    /platform
/sbin                  6,4G   3,8G   2,7G    59%    /sbin
/usr                   6,4G   3,8G   2,7G    59%    /usr
proc                     0K     0K     0K     0%    /proc
ctfs                     0K     0K     0K     0%    /system/contract
mnttab                   0K     0K     0K     0%    /etc/mnttab
objfs                    0K     0K     0K     0%    /system/object
swap                   452M   316K   452M     1%    /etc/svc/volatile
/usr/lib/libc/libc_hwcap2.so.1 6,4G   3,8G   2,7G    59%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   452M    36K   452M     1%    /tmp
swap                   452M    12K   452M     1%    /var/run
bash-3.00# <strong>exit</strong>
# <strong>^D</strong>
zone1 console login: <strong>~.</strong>
[Connection to zone 'zone1' console closed]</pre>
<h3>Zonenmigration</h3>
<p>Zone exportieren</p>
<pre>bash-3.00# <strong>zlogin zone1 init 0</strong>

bash-3.00# <strong>zoneadm list -cv</strong>
ID NAME             STATUS     PATH                           BRAND    IP
0 global           running    /                              native   shared
- zone1            installed  /zone1                         native   shared

bash-3.00# <strong>zoneadm -z zone1 detach</strong>
bash-3.00# zoneadm list -cv
ID NAME             STATUS     PATH                           BRAND    IP
0 global           running    /                              native   shared
- zone1            configured /zone1                         native   shared

bash-3.00# <strong>ls -l /zone1</strong>
total 3343
-rw-r--r--   1 root     root     1618163 Apr  5 14:25 SUNWdetached.xml
drwxr-xr-x  13 root     root          52 Apr  5 14:22 dev
drwxr-xr-x  19 root     root          21 Apr  5 13:44 root</pre>
<p>ZFS-Pool mit Zonenroot exportieren</p>
<pre>bash-3.00# <strong>zpool export zone1</strong>

bash-3.00# <strong>zpool list</strong>
NAME    SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
rpool  7.94G  5.02G  2.92G    63%  ONLINE  -</pre>
<p>SVM disk set mit UFS-Filesystem f&#252;r Daten exportieren</p>
<pre>bash-3.00# <strong>metaset</strong>
Set name = zone1data, Set number = 1
Host                Owner
horst1             Yes
horst2
Drive    Dbase
c2t1d0   Yes
c3t1d0   Yes

bash-3.00# <strong>metaset -s zone1data -r</strong>

bash-3.00# <strong>metaset</strong>
Set name = zone1data, Set number = 1
Host                Owner
horst1
horst2
Drive    Dbase
c2t1d0   Yes
c3t1d0   Yes</pre>
<p>Auf horst2:</p>
<p>ZFS-Pool importieren</p>
<pre>bash-3.00# <strong>zpool list</strong>
NAME    SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
rpool  7.94G  4.65G  3.28G    58%  ONLINE  -

bash-3.00# <strong>zpool import</strong>
pool: zone1
id: 12609083278336438915
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
zone1       ONLINE
mirror    ONLINE
c2t0d0  ONLINE
c3t0d0  ONLINE

bash-3.00# <strong>zpool import zone1</strong>

bash-3.00# <strong>zpool list</strong>
NAME    SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
rpool  7.94G  4.65G  3.28G    58%  ONLINE  -
zone1  1.98G   544M  1.45G    26%  ONLINE  -</pre>
<p>SVM disk set importieren</p>
<pre>bash-3.00# <strong>metaset</strong>
Set name = zone1data, Set number = 1
Host                Owner
horst1
horst2
Drive    Dbase
c2t1d0   Yes
c3t1d0   Yes

bash-3.00# <strong>metaset -s zone1data -t</strong>

bash-3.00# <strong>metaset</strong>
Set name = zone1data, Set number = 1
Host                Owner
horst1
horst2             Yes
Drive    Dbase
c2t1d0   Yes
c3t1d0   Yes

bash-3.00# <strong>metastat -s zone1data d10</strong>
zone1data/d10: Mirror
Submirror 0: zone1data/d11
State: Okay
Submirror 1: zone1data/d12
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 86016 blocks (42 MB)
zone1data/d11: Submirror of zone1data/d10
State: Okay
Size: 86016 blocks (42 MB)
Stripe 0:
Device     Start Block  Dbase        State Reloc Hot Spare
c2t1d0s0          0     No            Okay   Yes
zone1data/d12: Submirror of zone1data/d10
State: Okay
Size: 86016 blocks (42 MB)
Stripe 0:
Device     Start Block  Dbase        State Reloc Hot Spare
c3t1d0s0          0     No            Okay   Yes
Device Relocation Information:
Device   Reloc  Device ID
c2t1d0   Yes    id1,sd@f0000000049d7b0e80004846b0003
c3t1d0   Yes    id1,sd@f0000000049d7b0e80006e5c10004</pre>
<p>Zone zone1 importieren und wieder in Betrieb nehmen:</p>
<pre>bash-3.00# <strong>zonecfg -z zone1</strong>
zone1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:zone1&gt; <strong>create -a /zone1</strong>
zonecfg:zone1&gt; <strong>exit</strong>

bash-3.00# <strong>zoneadm list -cv</strong>
ID NAME             STATUS     PATH                           BRAND    IP
0 global           running    /                              native   shared
- zone1            configured /zone1                         native   shared

bash-3.00# <strong>zoneadm -z zone1 attach</strong>

bash-3.00# <strong>zoneadm list -cv</strong>
ID NAME             STATUS     PATH                           BRAND    IP
0 global           running    /                              native   shared
- zone1            installed  /zone1                         native   shared

bash-3.00# <strong>zoneadm -z zone1 boot</strong>

bash-3.00# <strong>zoneadm list -cv</strong>
ID NAME             STATUS     PATH                           BRAND    IP
0 global           running    /                              native   shared
2 zone1            running    /zone1                         native   shared

bash-3.00# <strong>zlogin zone1</strong>
[Connected to zone 'zone1' pts/5]
Last login: Sun Apr  5 14:22:15 on pts/5
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005

# <strong>df -h</strong>
Filesystem             size   used  avail capacity  Mounted on
/                        0K   545M   1.4G    28%    /
/daten                  39M   5.0M    30M    15%    /daten
/dev                   2.0G   545M   1.4G    28%    /dev
/lib                   6.4G   3.8G   2.7G    59%    /lib
/platform              6.4G   3.8G   2.7G    59%    /platform
/sbin                  6.4G   3.8G   2.7G    59%    /sbin
/usr                   6.4G   3.8G   2.7G    59%    /usr
proc                     0K     0K     0K     0%    /proc
ctfs                     0K     0K     0K     0%    /system/contract
mnttab                   0K     0K     0K     0%    /etc/mnttab
objfs                    0K     0K     0K     0%    /system/object
swap                   437M   300K   437M     1%    /etc/svc/volatile
/usr/lib/libc/libc_hwcap2.so.1 6.4G   3.8G   2.7G    59%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   437M    36K   437M     1%    /tmp
swap                   437M    12K   437M     1%    /var/run

# <strong>ls -l /daten</strong>
total 8176
-rw-r--r--   1 root     root     4165061 Apr  5 14:14 lksf_book_alpha.pdf
drwx------   2 root     root        8192 Apr  5 12:13 lost+found

<a href="http://otmanix.de/wp-content/uploads/2009/04/horst2rconsole.jpg"><img class="alignnone size-full wp-image-1160" title="VM &quot;horst2&quot; Remote Console des Vmware Server 2.01" src="http://otmanix.de/wp-content/uploads/2009/04/horst2rconsole.jpg" alt="VM &quot;horst2&quot; Remote Console des Vmware Server 2.01" width="30%" height="30%" /></a></pre>
<h3>Fazit</h3>
<p>Zonen sind ne nette Sache. Mit der M&#246;glichkeit der Zonenmigration wird das Thema aber erst richtig interessant und RZ-tauglich.</p>
<h3>Weiterf&#252;hrende Literatur, etc.</h3>
<p><a title="SVM" href="http://docs.sun.com/app/docs/doc/816-4520?l=de" target="_blank">Solaris Volume Manager Administration Guide</a></p>
<p><a title="ZFS" href="http://docs.sun.com/app/docs/doc/819-5461?l=de" target="_blank">ZFS Administration Guide</a></p>
<p><a href="http://docs.sun.com/app/docs/doc/817-1592?l=de" target="_blank">Solaris Containers</a></p>
<p><a href="http://docs.sun.com/app/docs/doc/817-5093?l=de" target="_blank">Devices and Filesystems</a></p>
<p><a href="http://docs.sun.com/app/docs/coll/1236.9" target="_blank">Solaris10u6 10/08</a></p>
<p><a href="http://prefetch.net/blog/index.php/2009/03/22/building-clusters-with-shared-disk-using-vmware-server-20/" target="_blank">Blog O&#8217;Matty zu shared disks unter Vmware Server 2</a></p>
<p>P.S.</p>
<p>Der n&#228;chste Test wird Liveupgrade mit ZFS-Rootfilesystem und Zonen zum Thema haben&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2009/04/05/flying-zones-fuer-arme-im-eigenbau-mit-solaris10-und-vmware-server-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ZFS Webgui Patch</title>
		<link>http://otmanix.de/2009/04/04/zfs-webgui-patch/</link>
		<comments>http://otmanix.de/2009/04/04/zfs-webgui-patch/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 20:11:29 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=1148</guid>
		<description><![CDATA[Wer das ZFS Webgui vermisst hat &#8211; hier die relevanten Patches um es wieder lauff&#228;hig zu bekommen: 141105 &#8212; &#60; 01 &#8212; 1 SunOS 5.10_x86: ZFS Administration Java Web Console Patch 141104 &#8212; &#60; 01 &#8212; 1 SunOS 5.10: ZFS &#8230; <a href="http://otmanix.de/2009/04/04/zfs-webgui-patch/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wer das ZFS Webgui vermisst hat &#8211; hier die relevanten Patches um es wieder lauff&#228;hig zu bekommen:</p>
<p>141105 &#8212; &lt; 01 &#8212;   1 SunOS 5.10_x86: ZFS Administration Java Web Console Patch<br />
141104 &#8212; &lt; 01 &#8212;   1 SunOS 5.10: ZFS Administration Java Web Console Patch</p>
<p>Mit patchadd installieren und danach den Webserver durchstarten: /usr/sbin/smcwebserver restart</p>
<p>Anschliessend wie gewohnt https://localhost:6789/zfs/zfsmodule/Index aufrufen.</p>
<p><a href="http://otmanix.de/wp-content/uploads/2009/04/zfs1.jpg"><img class="alignnone size-full wp-image-1153" title="zfs webgui" src="http://otmanix.de/wp-content/uploads/2009/04/zfs1.jpg" alt="zfs webgui" width="30%" height="30%" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2009/04/04/zfs-webgui-patch/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Automatisiertes Schreiben von disk label unter Solaris</title>
		<link>http://otmanix.de/2009/03/18/automatisiertes-schreiben-von-disk-label-unter-solaris/</link>
		<comments>http://otmanix.de/2009/03/18/automatisiertes-schreiben-von-disk-label-unter-solaris/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 20:16:11 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[fmthard]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[prtvtoc]]></category>
		<category><![CDATA[svm]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=1133</guid>
		<description><![CDATA[Wer unter Solaris mit UFS-Filesystemen arbeitet muss vor der Benutzung einer Platte selbige mit einem disk label (vtoc bzw. Partitionstabelle) versehen. Dazu startet man den Befehl &#8220;format&#8221;, w&#228;hlt die gew&#252;nschte Disk aus, &#228;ndert unter &#8220;partition&#8221; die Gr&#246;&#223;en f&#252;r die Partitionen, &#8230; <a href="http://otmanix.de/2009/03/18/automatisiertes-schreiben-von-disk-label-unter-solaris/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wer unter Solaris mit UFS-Filesystemen arbeitet muss vor der Benutzung einer Platte selbige mit einem disk label (vtoc bzw. Partitionstabelle) versehen. Dazu startet man den Befehl &#8220;format&#8221;, w&#228;hlt die gew&#252;nschte Disk aus, &#228;ndert unter &#8220;partition&#8221; die Gr&#246;&#223;en f&#252;r die Partitionen, speichert das mit &#8220;label&#8221; und beendet das Programm mit &#8220;quit&#8221;.</p>
<pre>root@server # <strong>format</strong>
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c0t0d0 &lt;SUN36G cyl 24620 alt 2 hd 27 sec 107&gt;
          /ssm@0,0/pci@1a,700000/pci@1/SUNW,isptwo@4/sd@0,0
       1. c1t0d0 &lt;SUN36G cyl 24620 alt 2 hd 27 sec 107&gt;
          /ssm@0,0/pci@1b,700000/pci@1/SUNW,isptwo@4/sd@0,0
       2. c2t40d41 &lt;EMC-SYMMETRIX-5772 cyl 49598 alt 2 hd 30 sec 128&gt;
          /ssm@0,0/pci@1a,600000/pci@1/lpfc@4/sd@28,29
...</pre>
<pre>Specify disk (enter its number): <strong>0</strong>
selecting c0t0d0
[disk formatted]

FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !&lt;cmd&gt;     - execute &lt;cmd&gt;, then return
        quit
format&gt; <strong>partition</strong>

PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !&lt;cmd&gt; - execute &lt;cmd&gt;, then return
        quit
partition&gt; <strong>print</strong>
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -  6812        9.39GB    (6813/0/0)  19682757
  1       swap    wu    6813 - 21330       20.00GB    (14518/0/0) 41942502
  2     backup    wm       0 - 24619       33.92GB    (24620/0/0) 71127180
  3 unassigned    wm       0                0         (0/0/0)            0
  4 unassigned    wm       0                0         (0/0/0)            0
  5        var    wm   21331 - 24233        4.00GB    (2903/0/0)   8386767
  6 unassigned    wm   24234 - 24596      512.06MB    (363/0/0)    1048707
  7 unassigned    wm   24597 - 24619       32.44MB    (23/0/0)       66447

partition&gt; <strong>quit</strong>

FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !&lt;cmd&gt;     - execute &lt;cmd&gt;, then return
        quit
format&gt; <strong>quit</strong></pre>
<p>Im Bereich &#8220;partition&#8221; kann man mit &#8220;print&#8221; die aktuelle Partitionstabelle ansehen. Bei neuen Platten wird ein Standardvorschlag zur Partitionierung angezeigt, der nat&#252;rlich abge&#228;ndert werden kann. Wird dies nicht getan und trotzdem &#8220;label&#8221; ausgef&#252;hrt, wird dieser default-label geschrieben.</p>
<p>Hat man nun die Aufgabe eine gr&#246;&#223;ere Anzahl Platten zu partitionieren m&#246;chte man dann den Vorgang doch irgendwie automatisieren. Dazu gibt es die Tools prtvtoc und fmthard. Mit prtvtoc kann die Partitionstabelle einer Platte als Text in genormter Form ausgegeben werden.</p>
<pre>root@server # <strong>prtvtoc /dev/rdsk/c0t0d0s0</strong></pre>
<pre>* /dev/rdsk/c0t0d0s2 partition map</pre>
<pre>*</pre>
<pre>* Dimensions:</pre>
<pre>*     512 bytes/sector</pre>
<pre>*     107 sectors/track</pre>
<pre>*      27 tracks/cylinder</pre>
<pre>*    2889 sectors/cylinder</pre>
<pre>*   24622 cylinders</pre>
<pre>*   24620 accessible cylinders</pre>
<pre>*</pre>
<pre>* Flags:</pre>
<pre>*   1: unmountable</pre>
<pre>*  10: read-only</pre>
<pre>*</pre>
<pre>*                          First     Sector    Last</pre>
<pre>* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory</pre>
<pre>       0      2    00          0  19682757  19682756</pre>
<pre>       1      3    01   19682757  41942502  61625258</pre>
<pre>       2      5    00          0  71127180  71127179</pre>
<pre>       5      7    00   61625259   8386767  70012025</pre>
<pre>       6      0    00   70012026   1048707  71060732</pre>
<pre>       7      0    00   71060733     66447  71127179</pre>
<p>Diese Ausgabe l&#228;&#223;t sich nun als Vorlage nutzen um Platten mit &#8220;fmthard&#8221; zu partitionieren. Sinn ergibt das nat&#252;rlich nur bei Disks mit gleicher Gr&#246;&#223;e.</p>
<pre>prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c1t0d0s2</pre>
<p>Dummerweise bekommt man nun ziemlich wahrscheinlich einen I/O-error beim Schreiben der Partitionstabelle auf die zweite Platte (wenn diese neu ist). Hier des R&#228;tsels L&#246;sung:</p>
<p><em>manpage zu &#8220;fmthard</em>&#8221;</p>
<blockquote><p>For disks under one terabyte, fmthard cannot write a VTOC on an unlabeled disk. Use format(1M) for this purpose.<br />
SunOS 5.10          Last change: 11 Apr 2005</p></blockquote>
<p>Na klasse, da l&#228;&#223;t sich das Tool zum Automatisieren in der Masse der Anwendungsf&#228;lle also nicht nutzen. Weniger bekannt ist der folgende Workaround:</p>
<p>Man automatisiert das Schreiben eines Standard disk label mit &#8220;Format&#8221; und benutzt im Anschluss wie oben gezeigt &#8220;prtvtoc&#8221; und &#8220;fmthard&#8221; (&#252;blicherweise wird immer die Slice 2 angegeben, da diese per Definition die komplette Disk umfassen sollte!).</p>
<pre class="MsoNormal">echo label &gt; /tmp/input
echo quit &gt;&gt; /tmp/input
format -d c1t0d0  -f /tmp/input
prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c1t0d0s2</pre>
<p>Um eine gr&#246;&#223;ere Zahl Disks zu partitionieren schreibt man ein kleines Skript:</p>
<pre>cd /dev/rdsk/
echo label &gt; /tmp/input
echo quit &gt;&gt; /tmp/input
DISKS=$(ls c4t50d*s2|sed 's/s2//')
export DISKS
for i in $DISKS
do
format -d $i -f /tmp/input
done</pre>
<p>In diesem Beispiel werden alle LUNs am Controller 4 / Target 50 mit einem Standard disk label versehen.</p>
<p>Danach kann man z.B. das Partitionslayout einer Platte auf alle neuen Platten &#252;bertragen:</p>
<pre>for i in $DISKS
do
prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/${i}s2
done</pre>
<p>Alternativ k&#246;nnte man aber auch die neuen Platten einem Diskset hinzuf&#252;gen:</p>
<pre>for i in $DISKS
do
<span lang="EN-US">metaset -s oradb -a $i</span>
done</pre>
<p>P.S.</p>
<p>Die Skripte kann man nat&#252;rlich noch sch&#246;ner schreiben. Ich will hier nur das Prinzip zeigen&#8230;</p>
<p>Hier noch etwas Lesestoff: <a href="http://docs.sun.com/app/docs/doc/817-5093/disksprep-103?a=view">http://docs.sun.com/app/docs/doc/817-5093/disksprep-103?a=view</a></p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2009/03/18/automatisiertes-schreiben-von-disk-label-unter-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>grub loswerden</title>
		<link>http://otmanix.de/2009/01/25/grub-loswerden/</link>
		<comments>http://otmanix.de/2009/01/25/grub-loswerden/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 13:43:03 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[fixboot]]></category>
		<category><![CDATA[fixmbr]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Multiboot]]></category>
		<category><![CDATA[Wiederherstellungskonsole]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=977</guid>
		<description><![CDATA[Wer Linux oder OpenSolaris in einer Multiboot-Umgebung betreibt verwendet i.d.R. grub als Bootmanager. Will man dann u.U. grub wieder loswerden, z.B. weil man OpenSolaris nur testen wollte, und auf den Standard Windows XP Bootmanager wieder zur&#252;ckstellen funktioniert das folgenderma&#223;en: Windows XP &#8230; <a href="http://otmanix.de/2009/01/25/grub-loswerden/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wer Linux oder OpenSolaris in einer Multiboot-Umgebung betreibt verwendet i.d.R. grub als Bootmanager. Will man dann u.U. grub wieder loswerden, z.B. weil man OpenSolaris nur testen wollte, und auf den Standard Windows XP Bootmanager wieder zur&#252;ckstellen funktioniert das folgenderma&#223;en:</p>
<ul>
<li>Windows XP CD und Administrator-Passwort bereithalten (falls nicht bekannt, das Passwort vorher neu vergeben!)</li>
<li>Windows-Partition auf aktiv setzen (Windows &gt; rechte MT auf Arbeitsplatz &gt; Verwalten &gt; Datenspeicher &gt; Datentr&#228;gerverwaltung &gt; rechte MT  auf Partition C: &gt; Partition als aktiv markieren &gt; ja), danach Reboot</li>
<li> von Windows XP CD starten und mit &#8220;R&#8221; in die <a href="http://support.microsoft.com/kb/314058/de" target="_blank">Wiederherstellungskonsole</a> wechseln, i.d.R. mit &#8220;1&#8243; das relevante Windows ausw&#228;hlen und das Administrator-Passwort eingeben</li>
<li>Danach fixboot, ggf. auch fixmbr eingeben, anschlie&#223;end Reboot</li>
<li>Danach k&#246;nnen die Linux-/OpenSolaris-Partitionen gefahrlos in der Datentr&#228;gerverwaltung gel&#246;scht werden</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2009/01/25/grub-loswerden/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Performance&#252;berwachung unter Solaris</title>
		<link>http://otmanix.de/2009/01/18/performanceueberwachung-unter-solaris/</link>
		<comments>http://otmanix.de/2009/01/18/performanceueberwachung-unter-solaris/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 17:18:03 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=945</guid>
		<description><![CDATA[Will man bei Solaris die Performance &#252;berwachen empfehle ich zus&#228;tzlich zu den mitgelieferten Tools die Programme der Performance Tools  CD. Hier ein paar &#8220;real life&#8221;-Ausgaben der Systemlast auf einem Sun Fire 6800-System (Oracle-DB-Import w&#228;hrend Unicode-Migration eines mySAP.ERP2005-Systems). Im Beispiel wird &#8230; <a href="http://otmanix.de/2009/01/18/performanceueberwachung-unter-solaris/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Will man bei Solaris die Performance &#252;berwachen empfehle ich zus&#228;tzlich zu den mitgelieferten Tools die Programme der <a title="Performance Tools CD" href="http://blogs.sun.com/partnertech/entry/update_solaris_performance_toolscd_3" target="_self">Performance Tools  CD</a>. Hier ein paar &#8220;real life&#8221;-Ausgaben der Systemlast auf einem Sun Fire 6800-System (Oracle-DB-Import w&#228;hrend Unicode-Migration eines mySAP.ERP2005-Systems). Im Beispiel wird eine auf Disk exportierte DB in eine leere DB importiert. Dabei wird auch auf Unicode konvertiert.</p>
<p>Die Tools cpubar und iobar in Aktion:</p>
<p><a href="http://otmanix.de/wp-content/uploads/2009/01/unicode1.jpg"><img class="alignnone size-full wp-image-946" title="cpubar und iobar" src="http://otmanix.de/wp-content/uploads/2009/01/unicode1.jpg" alt="cpubar und iobar" width="50%" height="50%" /></a></p>
<p>Im linken Bereich von cpubar sieht man die Auslastung der CPU-cores. Der deutlich gr&#246;&#223;te Teil der Last (g&#252;n) wird vom R3load und den Oracle-Prozessen verbraucht. Die vom Betriebssystem selbst bzw. vom Kernel verursachte Last wird rot dargestellt. Der orange Teil stellt dar, dass die cores mehr oder weniger auf IO warten mussten, d.h. von Disk lesen und auf Disk schreiben. Deutlicher wird das am zweiten roten Balken rechts daneben. In der &#8220;blocked queue&#8221; sieht man wie viele Prozesse aktuell auf IO warten.  Der Speicherverbrauch wird au&#223;erdem weiter rechts angezeigt.</p>
<p>iotop Statistik:</p>
<p><a href="http://otmanix.de/wp-content/uploads/2009/01/unicode2.jpg"><img class="alignnone size-full wp-image-947" title="iotop" src="http://otmanix.de/wp-content/uploads/2009/01/unicode2.jpg" alt="iotop" width="336" height="207" /></a></p>
<p>Diese iotop-statistik zeigt eines deutlich: Es gibt bei Zugriffen auf Speichermedien mehr relevante Werte als den Durchsatz in MB/s. Interessant ist vor allem auch <a title="iops" href="http://en.wikipedia.org/wiki/IOPS" target="_blank">IOPS</a> (Schreib- und Lesevorg&#228;nge). Datenbanken wie Oracle schreiben und lesen i.d.R. in 8kB gro&#223;en B&#246;cken.</p>
<p>In diesem Beispiel sind die Disks per Multipathing-Software (hier EMC Powerpath) an ein Storagesystem angebunden (hier EMC DMX4). Dabei stehen 2 Dual-Channel 2Gb/s Fibrechannel-HBAs vom Typ Emulex LP9002-DC zur Verf&#252;gung. Der HBA-Typ bzw. der daruf verbaute <a title="asic" href="http://de.wikipedia.org/wiki/Anwendungsspezifische_Integrierte_Schaltung" target="_blank">ASIC</a> entscheidet &#252;ber dessen Leistungsf&#228;higkeit.</p>
<p>F&#252;r die Administration unter Windows kann <a title="putty und xming" href="http://sourceforge.net/project/showfiles.php?group_id=156984" target="_blank">Portable Putty und XMing</a> empfehlen (ssh-Client und X-Server).</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2009/01/18/performanceueberwachung-unter-solaris/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Einrichtung Tape Library im EMC Networker inc. DDS &#8211; Teil 6</title>
		<link>http://otmanix.de/2008/08/21/einrichtung-tape-library-im-emc-networker-inc-dds-teil-6/</link>
		<comments>http://otmanix.de/2008/08/21/einrichtung-tape-library-im-emc-networker-inc-dds-teil-6/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 07:47:21 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[Netapp]]></category>
		<category><![CDATA[SAN]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[DDS]]></category>
		<category><![CDATA[IBM 3583]]></category>
		<category><![CDATA[Networker]]></category>
		<category><![CDATA[Tape Library]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=709</guid>
		<description><![CDATA[Einrichtung der Tape Library im EMC Networker &#8211; 2. Versuch Bei der automatischen Erkennung st&#252;rzte zuletzt das Programm jbconfig ab, deshalb folgt nun die manuelle Variante (bei Sun/STK Librarys habe ich den Absturz noch nicht erlebt). Zun&#228;chst einmal noch ein &#8230; <a href="http://otmanix.de/2008/08/21/einrichtung-tape-library-im-emc-networker-inc-dds-teil-6/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Einrichtung der Tape Library im EMC Networker &#8211; 2. Versuch</h3>
<p>Bei der automatischen Erkennung st&#252;rzte zuletzt das Programm jbconfig ab, deshalb folgt nun die manuelle Variante (bei Sun/STK Librarys habe ich den Absturz noch nicht erlebt).</p>
<p>Zun&#228;chst einmal noch ein paar Grundlagen f&#252;r das Einrichten der Jukebox und Dynamic Drive Sharing:</p>
<p>F&#252;r ein Tape drive werden am Host jede Menge Devices angelegt. F&#252;r Backup-Programme wird i.d.R. das no rewind &#8211; device inc. Hardwarekomprimierung bevorzugt, das die max. Kapizit&#228;t nutzt. Bei den verwendeten LTO-3-drives k&#246;nnte man z.B. LTO-2-Kompatibilit&#228;t nutzen, was aber nur ggf. bei einem gemischten Betrieb von Drives Sinn ergibt.</p>
<p>Beim Dynamic Drive Sharing (DDS) &#252;bernimmt der Networker Server (oder ein Storage Node) die Steuerung der Jukebox (Controlpath/Changer/Robotik). Andere Hosts, z.B. auch NDMP-Tapeserver, k&#246;nnen auch auf die Drives der Jukebox zugreifen. F&#252;r jedes gesharte Drive wird eine DDS-Lizenz ben&#246;tigt. Die Jukebox wird gestaffelt nach Anzahl Slots lizensiert. Sollen au&#223;er dem Networker Server weitere Rechner direkt die Drives nutzen wird daf&#252;r eine Dedicated Storage Node &#8211; Lizenz ben&#246;tigt. NAS-Systeme wie Netapp ben&#246;tigen eine NDMP-Lizenz, die gestaffelt nach Tieren abgerechnet wird.</p>
<p>Aufgrund der vorherigen Auswertung auf dem Backup Server und den NAS-Ger&#228;ten l&#228;&#223;t sich sich eine Zuordnung zwischen WW(P)N und Tape-Device erstellen:</p>
<p>Changer: WWPN 50:03:08:c1:43:97:b0:02 / Lun 1<br />
senbackup1: /dev/scsi/changer/c5t500308C14397B002d1</p>
<p>Tape drive 1: WWPN 50:03:08:c1:43:97:b0:02 / Lun 0<br />
senbackup1: /dev/rmt/6cbn<br />
filer1: nrst16a<br />
sennst1: nrst7a</p>
<p>Tape drive 2: WWPN 50:03:08:c1:43:97:b0:05 / Lun 0<br />
senbackup1: /dev/rmt/7cbn<br />
filer1: nrst17a<br />
sennst1: nrst4a</p>
<p>Tape drive 3: WWPN 50:03:08:c1:43:97:b0:08 / Lun 0<br />
senbackup1: /dev/rmt/8cbn</p>
<p>Mit diesem Wissen kann nun die Jukebox f&#252;r den EMC Networker konfiguriert werden:</p>
<p>root@senbackup1 # <strong>jbconfig</strong></p>
<p>Jbconfig is running on host senbackup1 (SunOS 5.10),<br />
and is using senbackup1 as the NetWorker server.</p>
<p>1) Configure an AlphaStor Library.<br />
2) Configure an Autodetected SCSI Jukebox.<br />
3) Configure an Autodetected NDMP SCSI Jukebox.<br />
4) Configure an SJI Jukebox.<br />
5) Configure an STL Silo.</p>
<p>What kind of Jukebox are you configuring? [1] <strong>4</strong><br />
Enter the number corresponding to the type of jukebox you are installing:<br />
1) ADIC-1200c/ADIC-1200d 20) Exabyte 690D          39) HP-Optical<br />
2) ADIC-VLS              21) Exabyte Jukebox       40) Sony TSL-7000<br />
3) ARC DiamondBack       22) Hitachi ML010 Series  41) Sony TSL-A500C<br />
4) Sun 20Gb 4mm Tape Loader 23) HP-C1553A/Surestore 12000e 42) Sony TSL-AIT<br />
5) Breece Hill Saguaro   24) HP-C1557A/Surestore 12000e 43) Digital 4mm DAT TLZ9L<br />
6) Breece Hill           25) HP C5713A             44) Digital 4mm DAT (TLZxx)<br />
7) Philips Blackjack     26) Hewlett-Packard A4853A 45) Digital TL800 Series<br />
 <img src='http://otmanix.de/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> DLI Libra Series      27) Metrum (SCSI)         46) Digital TL810 Series<br />
9) Quantum DLT/Digital DLT 28) Qualstar              47) Digital TL820 Series<br />
10) Exabyte 10e or 10h    29) Spectralogic          48) Digital TL893<br />
11) Exabyte 10i           30) STK 9704/Lago 340     49) Digital TL893<br />
12) Exabyte 18D           31) STK 9708/Lago 380 (SCSI) Datawheel 50) Digital TL896<br />
13) Exabyte 60            32) StorageTek 9730       51) Digital TL896<br />
14) Exabyte 120           33) StorageTek 9738       52) Digital TL899<br />
15) Exabyte 210           34) STK 9708/Lago 380 (SCSI) Datawheel 53) Digital TL899<br />
16) Exabyte 218           35) Dell PowerVault 130T  54) Digital Optical<br />
17) Exabyte 220           36) IBM 3570              55) Digital TK Series<br />
18) Exabyte 230D          37) IBM 7331/IBM 9427     56) Standard SCSI Jukebox<br />
19) Exabyte 400 Series    38) ATL/Odetics SCSI</p>
<p>Choice? <strong>56</strong><br />
Installing an &#8216;Standard SCSI Jukebox&#8217; jukebox.</p>
<p>What name do you want to assign to this jukebox device? senlib2<br />
39744:jbconfig: Enter the control port of the jukebox in the following format:</p>
<p>scsidev@3.0.0 Pathname of the control port for the jukebox device? <strong>/dev/scsi/changer/c5t500308C14397B002d1</strong><br />
15814:jbconfig: Attempting to detect serial numbers on the jukebox and drives &#8230;</p>
<p>15815:jbconfig: Will try to use SCSI information returned by jukebox to configure drives.</p>
<p>Turn NetWorker auto-cleaning on (yes / no) [yes]? <strong>no</strong><br />
The drives in this jukebox cannot be auto-configured with the available<br />
information. You will need to provide the path for the drives.<br />
Is (any path of) any drive intended for NDMP use? (yes / no) [no] <strong>yes</strong><br />
Is any drive going to have more than one path defined? (yes / no) [no] <strong>yes</strong></p>
<p>You will be prompted for multiple paths for each drive.<br />
Pressing &lt;Enter&gt; on a null default advances to the next drive.</p>
<p>Please enter the device path information in one of the following formats:</p>
<p>/dev/rmt/1cbn &#8211;for local path or<br />
host:device-path &#8211;for remote node or NDMP device(s) or<br />
host:drive-letter:directory path &#8211;for Windows disk file</p>
<p>After you have entered a device path, you will be prompted for an NDMP<br />
user name for that path&#8217;s host. If this device path is not an NDMP device,<br />
press the enter key to advance to the next device path.  For NDMP devices,<br />
you need to enter the user name and password the first time we encounter<br />
that NDMP host. Pressing the enter key for the NDMP user name for any<br />
subsequent device path on the same host will set the user name and password<br />
to those defined the first time. You will not be prompted for the password<br />
in such a case.</p>
<p>Drive  1, element 1<br />
Device path 1 ? <strong>/dev/rmt/6cbn</strong><br />
Device path 2 ? <strong>filer1:nrst16a</strong><br />
Is this device configured as NDMP? (yes / no) [no]<strong>yes</strong><br />
Device path 3 ? sennst1:<strong>nrst7a</strong><br />
Is this device configured as NDMP? (yes / no) [no]<strong>yes</strong><br />
Device path 4 ?</p>
<p>Drive  2, element 2<br />
Device path 1 ? <strong>/dev/rmt/7cbn</strong><br />
Device path 2 ? <strong>filer1:nrst17a</strong><br />
Is this device configured as NDMP? (yes / no) [no]<strong>yes</strong><br />
Device path 3 ? <strong>sennst1:nrst4a</strong><br />
Is this device configured as NDMP? (yes / no) [no]<strong>yes</strong><br />
Device path 4 ?</p>
<p>Drive  3, element 3<br />
Device path 1 ? <strong>/dev/rmt/8cbn</strong><br />
Device path 2 ?</p>
<p>Please select the appropriate drive type number:<br />
1) 3480                  24) 9840b                 47) optical<br />
2) 3570                  25) 9840C                 48) qic<br />
3) 3590                  26) 9940                  49) SAIT-1<br />
4) 3592                  27) 9940B                 50) SD3<br />
5) 4890                  28) adv_file              51) sdlt<br />
6) 4mm                   29) dlt                   52) sdlt320<br />
7) 4mm 12GB              30) dlt vs160             53) sdlt600<br />
 <img src='http://otmanix.de/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> 4mm 20GB              31) dlt-s4                54) SLR<br />
9) 4mm 4GB               32) dlt-v4                55) T10000<br />
10) 4mm 8GB               33) dlt1                  56) tkz90<br />
11) 4mm DAT160            34) dlt7000               57) travan10<br />
12) 4mm DAT72             35) dlt8000               58) TS1120<br />
13) 8mm                   36) dst                   59) tz85<br />
14) 8mm 20GB              37) dst (NT)              60) tz86<br />
15) 8mm 5GB               38) dtf                   61) tz87<br />
16) 8mm AIT               39) dtf2                  62) tz88<br />
17) 8mm AIT-2             40) file                  63) tz89<br />
18) 8mm AIT-3             41) himt                  64) tz90<br />
19) 8mm AIT-4             42) logical               65) tzs20<br />
20) 8mm AIT-5             43) LTO Ultrium           66) VXA<br />
21) 8mm Mammoth-2         44) LTO Ultrium-2         67) VXA-172<br />
22) 9490                  45) LTO Ultrium-3         68) VXA-2<br />
23) 9840                  46) LTO Ultrium-4         69) VXA-320</p>
<p>Enter the drive type of drive 1? <strong>45</strong><br />
Are all the drives the same model? (yes / no) [yes] <strong>yes</strong></p>
<p>Jukebox has been added successfully</p>
<p>The following configuration options have been set:</p>
<p>&gt; Autocleaning off.<br />
&gt; At least one drive was defined with multiple paths.  All such drives are<br />
defined with a hardware identification as well as a path value to avoid<br />
confusion by uniquely identifying the drive.  The hardware identification<br />
for all drives which have one is always &#8216;autochanger_name &#8211; Drive #&#8217; where<br />
&#8220;autochanger_name&#8221; is the name you gave to the autochanger that was<br />
just defined, and the # symbol is the drive number.<br />
&gt; Barcode reading to on.<br />
&gt; Volume labels that match the barcodes.</p>
<p>You can review and change the characteristics of the autochanger and its<br />
associated devices using the NetWorker Management Console.</p>
<p>Would you like to configure another jukebox? (yes/no) [no]<strong>no</strong></p>
<p>Das manuelle Erstellen der Jukebox hat also geklappt.</p>
<p>Hinweise:</p>
<p>Beim erstmaligen Anlegen eines NDMP-Devices wird ein User/Pa&#223;wort f&#252;r die Authentifizierung am NAS-Ger&#228;t abgefragt. In diesem Beispiel sind bereits NDMP-Devices einer anderen Jukebox angelegt, deshalb entfiel die Frage.</p>
<p>Das Autocleaning im Networker sollte wenn m&#246;glich nicht benutzt werden und besser die Funtionalit&#228;t der Tape Library zum Einsatz kommen. Der Networker reinigt nach fest eingestellten Intervallen, auch wenn die Laufwerke ggf. keine Reinigung ben&#246;tigen. zu h&#228;ufige Reinigungen verringern die Lebensdauer der Drives.</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2008/08/21/einrichtung-tape-library-im-emc-networker-inc-dds-teil-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Einrichtung Tape Library im EMC Networker inc. DDS &#8211; Teil 4</title>
		<link>http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-4/</link>
		<comments>http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-4/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 17:43:11 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[SAN]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[DDS]]></category>
		<category><![CDATA[IBM 3583]]></category>
		<category><![CDATA[Netapp]]></category>
		<category><![CDATA[Networker]]></category>
		<category><![CDATA[Tape Library]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=699</guid>
		<description><![CDATA[Pr&#252;fen der Tape Library devices am Networker Server Der Networker Server l&#228;uft auf Solaris 10 Update 5. Zun&#228;chst einmal l&#228;&#223;t man die Ger&#228;teerkennung laufen: root@senbackup1 # devfsadm Jetzt die Konfiguration des gezonten HBA-Ports abfragen: root@senbackup1 # fcinfo hba-port -l &#8230; &#8230; <a href="http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Pr&#252;fen der Tape Library devices am Networker Server</h3>
<p>Der Networker Server l&#228;uft auf Solaris 10 Update 5. Zun&#228;chst einmal l&#228;&#223;t man die Ger&#228;teerkennung laufen:</p>
<p>root@senbackup1 # <strong>devfsadm</strong></p>
<p>Jetzt die Konfiguration des gezonten HBA-Ports abfragen:</p>
<p>root@senbackup1 # <strong>fcinfo hba-port -l</strong><br />
&#8230;<br />
HBA Port WWN: 210100e08bb2d018<br />
OS Device Name: /dev/cfg/c5<br />
Manufacturer: QLogic Corp.<br />
Model: 375-3356-01<br />
Firmware Version: 4.2.2<br />
FCode/BIOS Version:  BIOS: 1.24; fcode: 1.26; EFI: 1.8;<br />
Type: N-port<br />
State: online<br />
Supported Speeds: 1Gb 2Gb 4Gb<br />
Current Speed: 4Gb<br />
Node WWN: 200100e08bb2d018</p>
<p>Danach pr&#252;fen, welche Ger&#228;te auf diesem HBA-Port sichtbar sind:</p>
<p>root@senbackup1 # <strong>fcinfo remote-port -p 210100e08bb2d018 -s</strong><br />
&#8230;<br />
Remote Port WWN: 500308c14397b002<br />
Active FC4 Types: SCSI<br />
SCSI Target: yes<br />
Node WWN: 500308c14397b001<br />
LUN: 0<br />
Vendor: IBM<br />
Product: ULT3580-TD3<br />
OS Device Name: /dev/rmt/6n<br />
LUN: 1<br />
Vendor: IBM<br />
Product: ULT3583-TL<br />
OS Device Name: /devices/pci@7c0/pci@0/pci@9/SUNW,qlc@0,1/fp@0,0/sgen@w500308c14397b002,1<br />
Remote Port WWN: 500308c14397b005<br />
Active FC4 Types: SCSI<br />
SCSI Target: yes<br />
Node WWN: 500308c14397b004<br />
LUN: 0<br />
Vendor: IBM<br />
Product: ULT3580-TD3<br />
OS Device Name: /dev/rmt/7n<br />
Remote Port WWN: 500308c14397b008<br />
Active FC4 Types: SCSI<br />
SCSI Target: yes<br />
Node WWN: 500308c14397b007<br />
LUN: 0<br />
Vendor: IBM<br />
Product: ULT3580-TD3<br />
OS Device Name: /dev/rmt/8n<br />
&#8230;</p>
<p>Alle 3 Tape drives sind sichtbar (Lun 0 am jeweiligen Target), ebenso der Changer (Lun 1 am ersten Target).</p>
<p>Nun mit dem Networker-Kommando inquire bzw. inquire -l die Ger&#228;teerkennung starten:</p>
<p>root@senbackup1 # <strong>inquire</strong><br />
&#8230;<br />
scsidev@5.7.1:IBM     ULT3583-TL      6.10|Autochanger (Jukebox), /dev/scsi/changer/c5t500308C14397B002d1<br />
S/N: 0000013254351000<br />
ATNN=IBM     ULT3583-TL      0000013254351000<br />
scsidev@5.9.0:IBM     ULT3580-TD3     73P5|Tape, /dev/rmt/6cbn<br />
S/N: 1210029684<br />
ATNN=IBM     ULT3580-TD3     1210029684<br />
WWNN=500308C14397B001<br />
WWPN=500308C14397B002<br />
PORT=00000001<br />
scsidev@5.10.0:IBM     ULT3580-TD3     73P5|Tape, /dev/rmt/7cbn<br />
S/N: 1210029712<br />
ATNN=IBM     ULT3580-TD3     1210029712<br />
WWNN=500308C14397B004<br />
WWPN=500308C14397B005<br />
PORT=00000001<br />
scsidev@5.13.0:IBM     ULT3580-TD3     73P5|Tape, /dev/rmt/8cbn<br />
S/N: 1210029552<br />
ATNN=IBM     ULT3580-TD3     1210029552<br />
WWNN=500308C14397B007<br />
WWPN=500308C14397B008<br />
PORT=00000001</p>
<p>F&#252;r die Tape drives wurden also Devices mit dem st-Treiber erzeugt. Der Changer wurde mit dem sgen-Treiber erzeugt.</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Einrichtung Tape Library im EMC Networker inc. DDS &#8211; Teil 3</title>
		<link>http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-3/</link>
		<comments>http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-3/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 17:23:16 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[SAN]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[DDS]]></category>
		<category><![CDATA[IBM 3583]]></category>
		<category><![CDATA[Netapp]]></category>
		<category><![CDATA[Networker]]></category>
		<category><![CDATA[Tape Library]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=697</guid>
		<description><![CDATA[Pr&#252;fen der Tape drive &#8211; Konfiguration auf den Netapp NAS-Systemen Dazu zun&#228;chst auf den beiden Systemen auf der Shell anmelden. storage show tape zeigt die einzelnen erkannten Tape devices an. Dabei gibt es als Auskunft die WWN des Ger&#228;ts an &#8230; <a href="http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Pr&#252;fen der Tape drive &#8211; Konfiguration auf den Netapp NAS-Systemen</h3>
<p>Dazu zun&#228;chst auf den beiden Systemen auf der Shell anmelden.</p>
<p><strong>storage show tape</strong> zeigt die einzelnen erkannten Tape devices an. Dabei gibt es als Auskunft die WWN des Ger&#228;ts an (die letzte Stelle ist 1 niedriger als die WWPN!). Damit kann eine Zuordnung zwischen Netapp-Devicenamen und tats&#228;chlichen Tape drive erfolgen (wird sp&#228;ter beim Anlegen der Jukebox im Networker ben&#246;tigt!).</p>
<p>Hier kann man auch eine Eigenart von Netapp-Ger&#228;ten erkennen. Im Hardwarepfad (Feld Tape Drive) ist der Name des SAN-Switches mit vermerkt. Ein Umh&#228;ngen der Tape drives an Ports eines anderen Switches in der selben Fabric erzeugt damit neue Devices!!! Das bedeutet eine Umkonfiguration der Jukebox im Networker&#8230;</p>
<p><strong>sysconfig -t</strong> listet zu allen erkannten Tape drives die erzeugten Devices.</p>
<p><strong>ndmpd status</strong> zeigt an ob NDMP auf dem Netapp-NAS-System aktiviert ist und gibt u.a. auch die benutzte NDMP-Version an.</p>
<p>sennst1*&gt; <strong>storage show tape</strong><br />
&#8230;<br />
Tape Drive:         sansw14:5.2<br />
Description:        IBM     ULT3580-TD3<br />
Serial Number:      1210029712<br />
World Wide Name:    WWN[5:003:08c143:97b004]<br />
Alias Name(s):      st4<br />
Device State:       available</p>
<p>Tape Drive:         sansw14:4.1<br />
Description:        IBM     ULT3580-TD3<br />
Serial Number:      1210029684<br />
World Wide Name:    WWN[5:003:08c143:97b001]<br />
Alias Name(s):      st7<br />
Device State:       available</p>
<p>sennst1*&gt; <strong>sysconfig -t</strong><br />
&#8230;<br />
Tape drive (sansw14:5.2)  IBM     ULT3580-TD3<br />
rst4l  -  rewind device,        format is: LTO rd only 200GB cmp<br />
nrst4l -  no rewind device,     format is: LTO rd only 200GB cmp<br />
urst4l -  unload/reload device, format is: LTO rd only 200GB cmp<br />
rst4m  -  rewind device,        format is: LTO 2 400GB cmp<br />
nrst4m -  no rewind device,     format is: LTO 2 400GB cmp<br />
urst4m -  unload/reload device, format is: LTO 2 400GB cmp<br />
rst4h  -  rewind device,        format is: LTO 3 400GB<br />
nrst4h -  no rewind device,     format is: LTO 3 400GB<br />
urst4h -  unload/reload device, format is: LTO 3 400GB<br />
rst4a  -  rewind device,        format is: LTO 3 800GB cmp<br />
nrst4a -  no rewind device,     format is: LTO 3 800GB cmp<br />
urst4a -  unload/reload device, format is: LTO 3 800GB cmp</p>
<p>Tape drive (sansw14:4.1)  IBM     ULT3580-TD3<br />
rst7l  -  rewind device,        format is: LTO rd only 200GB cmp<br />
nrst7l -  no rewind device,     format is: LTO rd only 200GB cmp<br />
urst7l -  unload/reload device, format is: LTO rd only 200GB cmp<br />
rst7m  -  rewind device,        format is: LTO 2 400GB cmp<br />
nrst7m -  no rewind device,     format is: LTO 2 400GB cmp<br />
urst7m -  unload/reload device, format is: LTO 2 400GB cmp<br />
rst7h  -  rewind device,        format is: LTO 3 400GB<br />
nrst7h -  no rewind device,     format is: LTO 3 400GB<br />
urst7h -  unload/reload device, format is: LTO 3 400GB<br />
rst7a  -  rewind device,        format is: LTO 3 800GB cmp<br />
nrst7a -  no rewind device,     format is: LTO 3 800GB cmp<br />
urst7a -  unload/reload device, format is: LTO 3 800GB cmp</p>
<p>sennst1*&gt; <strong>ndmpd status</strong><br />
ndmpd ON.<br />
No ndmpd sessions active.</p>
<p>filer1*&gt; <strong>storage show tape</strong><br />
&#8230;<br />
Tape Drive:         sansw14:4.1<br />
Description:        IBM     ULT3580-TD3<br />
Serial Number:      1210029684<br />
World Wide Name:    WWN[5:003:08c143:97b001]<br />
Alias Name(s):      st16<br />
Device State:       available</p>
<p>Tape Drive:         sansw14:5.2<br />
Description:        IBM     ULT3580-TD3<br />
Serial Number:      1210029712<br />
World Wide Name:    WWN[5:003:08c143:97b004]<br />
Alias Name(s):      st17<br />
Device State:       available</p>
<p>filer1*&gt; <strong>sysconfig -t</strong><br />
&#8230;<br />
Tape drive (sansw14:4.1)  IBM     ULT3580-TD3<br />
rst16l  -  rewind device,        format is: LTO rd only 200GB cmp<br />
nrst16l -  no rewind device,     format is: LTO rd only 200GB cmp<br />
urst16l -  unload/reload device, format is: LTO rd only 200GB cmp<br />
rst16m  -  rewind device,        format is: LTO 2 400GB cmp<br />
nrst16m -  no rewind device,     format is: LTO 2 400GB cmp<br />
urst16m -  unload/reload device, format is: LTO 2 400GB cmp<br />
rst16h  -  rewind device,        format is: LTO 3 400GB<br />
nrst16h -  no rewind device,     format is: LTO 3 400GB<br />
urst16h -  unload/reload device, format is: LTO 3 400GB<br />
rst16a  -  rewind device,        format is: LTO 3 800GB cmp<br />
nrst16a -  no rewind device,     format is: LTO 3 800GB cmp<br />
urst16a -  unload/reload device, format is: LTO 3 800GB cmp</p>
<p>Tape drive (sansw14:5.2)  IBM     ULT3580-TD3<br />
rst17l  -  rewind device,        format is: LTO rd only 200GB cmp<br />
nrst17l -  no rewind device,     format is: LTO rd only 200GB cmp<br />
urst17l -  unload/reload device, format is: LTO rd only 200GB cmp<br />
rst17m  -  rewind device,        format is: LTO 2 400GB cmp<br />
nrst17m -  no rewind device,     format is: LTO 2 400GB cmp<br />
urst17m -  unload/reload device, format is: LTO 2 400GB cmp<br />
rst17h  -  rewind device,        format is: LTO 3 400GB<br />
nrst17h -  no rewind device,     format is: LTO 3 400GB<br />
urst17h -  unload/reload device, format is: LTO 3 400GB<br />
rst17a  -  rewind device,        format is: LTO 3 800GB cmp<br />
nrst17a -  no rewind device,     format is: LTO 3 800GB cmp<br />
urst17a -  unload/reload device, format is: LTO 3 800GB cmp</p>
<p>filer1*&gt; <strong>ndmpd status</strong><br />
ndmpd ON.<br />
Session: 36<br />
Active<br />
version:                4<br />
Operating on behalf of primary host.<br />
tape device:    nrst19a<br />
mover state:    Active<br />
data state:     Active<br />
data operation: Backup</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Einrichtung Tape Library im EMC Networker inc. DDS &#8211; Teil 2</title>
		<link>http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-2/</link>
		<comments>http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-2/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 17:03:41 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[SAN]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[DDS]]></category>
		<category><![CDATA[IBM 3583]]></category>
		<category><![CDATA[Netapp]]></category>
		<category><![CDATA[Networker]]></category>
		<category><![CDATA[Tape Library]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=695</guid>
		<description><![CDATA[Konfiguration des FC-SAN / Zoning Die 3 Ports der IBM 3583 werden &#252;ber Multimode-LWL-Kabel mit LC-Steckern an einen Brocade-Fibrechannel-Switch angeschlo&#223;en. Dieser ist Bestandteil einer Fabric. Die Switches sind mit ISLs (Interswitchlinks) verbunden. Zun&#228;chst einmal sollte man pr&#252;fen ob das Fabric-Login &#8230; <a href="http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Konfiguration des FC-SAN / Zoning</h3>
<p>Die 3 Ports der IBM 3583 werden &#252;ber Multimode-LWL-Kabel mit LC-Steckern an einen Brocade-Fibrechannel-Switch angeschlo&#223;en. Dieser ist Bestandteil einer Fabric. Die Switches sind mit ISLs (Interswitchlinks) verbunden.</p>
<p>Zun&#228;chst einmal sollte man pr&#252;fen ob das Fabric-Login geklappt hat und die Ports der Tape drives sichtbar sind. Dazu am Switch anmelden:</p>
<p>Fabric OS (sansw14)<br />
Fabos Version 5.2.2<br />
sansw14 login: <strong>admin</strong><br />
Password:<br />
sansw14:admin&gt; <strong>switchshow</strong><br />
&#8230;<br />
Area Port Media Speed State     Proto<br />
=====================================<br />
&#8230;<br />
3   3   id    N4   No_Light<br />
<span style="color: #339966;"> 4   4   id    N2   Online           L-Port  1 public<br />
5   5   id    N2   Online           L-Port  1 public<br />
6   6   id    N2   Online           L-Port  1 public</span><br />
7   7   id    N4   No_Light<br />
&#8230;</p>
<p>sansw14:admin&gt;<strong> portshow 4</strong><br />
&#8230;<br />
portWwn:   20:04:00:05:1e:05:53:86<br />
portWwn of device(s) connected:<br />
<span style="color: #339966;">50:03:08:c1:43:97:b0:02</span><br />
Distance:  normal<br />
portSpeed: N2Gbps<br />
&#8230;<br />
sansw14:admin&gt; <strong>portshow 5</strong><br />
&#8230;<br />
portWwn:   20:05:00:05:1e:05:53:86<br />
portWwn of device(s) connected:<br />
<span style="color: #339966;"> 50:03:08:c1:43:97:b0:05</span><br />
Distance:  normal<br />
portSpeed: N2Gbps<br />
&#8230;<br />
sansw14:admin&gt;<strong> portshow 6</strong><br />
&#8230;<br />
portWwn:   20:06:00:05:1e:05:53:86<br />
portWwn of device(s) connected:<br />
<span style="color: #339966;"> 50:03:08:c1:43:97:b0:08</span><br />
Distance:  normal<br />
portSpeed: N2Gbps<br />
&#8230;</p>
<p>Das hat ja schon mal gut geklappt. Deshalb kann nun das Zoning erstellt werden. Im Zoning wird in einer Art ACL beschrieben welcher Port eines Hosts auf welchen Port eines Storagesystems zugreifen darf. Hilfreich ist es zun&#228;chst f&#252;r die einzelnen WWPNs (Adressen der Ports, &#228;hnlich MAC-Adressen bei NICs) Aliase zu erstellen und dann im Zoning mit den Aliasen zu arbeiten. Das Ergbnis sieht dann z.B. so aus:</p>
<p>sansw14:admin&gt; <strong>zoneshow</strong><br />
&#8230;<br />
zone:  filer1_0c_ibm3583_tape1<br />
filer1_0c; ibm3583_tape1<br />
zone:  filer1_0d_ibm3583_tape2<br />
filer1_0d; ibm3583_tape2<br />
zone:  senbackup1_hba1_port1_ibm3583_tape1<br />
ibm3583_tape1; senbackup1_hba1_port1<br />
zone:  senbackup1_hba1_port1_ibm3583_tape2<br />
ibm3583_tape2; senbackup1_hba1_port1<br />
zone:  senbackup1_hba1_port1_ibm3583_tape3<br />
ibm3583_tape3; senbackup1_hba1_port1<br />
zone:  sennst1_10a_ibm3583_tape1<br />
ibm3583_tape1; sennst1_10a<br />
zone:  sennst1_10b_ibm3583_tape2<br />
ibm3583_tape2; sennst1_10b<br />
&#8230;<br />
alias: filer1_0c<br />
50:0a:09:80:00:00:ed:cf<br />
alias: filer1_0d<br />
50:0a:09:81:00:00:ed:cf<br />
alias: ibm3583_tape1<br />
50:03:08:c1:43:97:b0:02<br />
alias: ibm3583_tape2<br />
50:03:08:c1:43:97:b0:05<br />
alias: ibm3583_tape3<br />
50:03:08:c1:43:97:b0:08<br />
alias: senbackup1_hba1_port1<br />
21:01:00:e0:8b:b2:d0:18<br />
alias: sennst1_10a<br />
20:00:00:e0:8b:87:d1:59<br />
alias: sennst1_10b<br />
20:01:00:e0:8b:a7:d1:59<br />
&#8230;<br />
Effective configuration:<br />
cfg:   zone1<br />
zone:  filer1_0c_ibm3583_tape1<br />
50:0a:09:80:00:00:ed:cf<br />
50:03:08:c1:43:97:b0:02<br />
zone:  filer1_0d_ibm3583_tape2<br />
50:0a:09:81:00:00:ed:cf<br />
50:03:08:c1:43:97:b0:05<br />
zone:  senbackup1_hba1_port1_ibm3583_tape1<br />
50:03:08:c1:43:97:b0:02<br />
21:01:00:e0:8b:b2:d0:18<br />
zone:  senbackup1_hba1_port1_ibm3583_tape2<br />
50:03:08:c1:43:97:b0:05<br />
21:01:00:e0:8b:b2:d0:18<br />
zone:  senbackup1_hba1_port1_ibm3583_tape3<br />
50:03:08:c1:43:97:b0:08<br />
21:01:00:e0:8b:b2:d0:18<br />
zone:  sennst1_10a_ibm3583_tape1<br />
50:03:08:c1:43:97:b0:02<br />
20:00:00:e0:8b:87:d1:59<br />
zone:  sennst1_10b_ibm3583_tape2<br />
50:03:08:c1:43:97:b0:05<br />
20:01:00:e0:8b:a7:d1:59<br />
&#8230;<br />
F&#252;r die beiden Netapp-Ger&#228;te sind nur 2 Ports gezont, da auch nur 2 DDS-Lizenzen verf&#252;gbar sind.</p>
<p>Achtung:</p>
<p>Das Aktivieren des Zonings kann zu einer kurzen Unterbrechung der Switch-Verbindung f&#252;hren. Deshalb solche Aktivit&#228;ten m&#246;glichst nicht bei laufenden Backups (auf Tape) durchf&#252;hren.</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Einrichtung Tape Library im EMC Networker inc. DDS &#8211; Teil 1</title>
		<link>http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-1/</link>
		<comments>http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-1/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 16:41:44 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[Netapp]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[DDS]]></category>
		<category><![CDATA[IBM 3583]]></category>
		<category><![CDATA[Networker]]></category>
		<category><![CDATA[Tape Library]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=684</guid>
		<description><![CDATA[Problemstellung Zus&#228;tzlich zur vorhandenen Tape Library im FC-SAN soll noch eine weitere in Betrieb genommen werden. Es handelt sich um eine IBM 3583 mit 3 LTO-3 FC-Tape drives. Die Tape Library soll im EMC Networker eingerichtet werden und zus&#228;tzlich zum &#8230; <a href="http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Problemstellung</h3>
<p>Zus&#228;tzlich zur vorhandenen Tape Library im FC-SAN soll noch eine weitere in Betrieb genommen werden. Es handelt sich um eine IBM 3583 mit 3 LTO-3 FC-Tape drives. Die Tape Library soll im EMC Networker eingerichtet werden und zus&#228;tzlich zum Backup-Server auf Basis Solaris 10 auch 2 Netapp NAS-Systemen zur Verf&#252;gung gestellt werden. Aus Performancegr&#252;nden sollen die Netapp-Ger&#228;te direkt auf die Tape drives zugreifen (also soll nicht der Networker-Server, sondern die NAS-Systeme selbst als NDMP-Tape-Server agieren). Deshalb stehen zus&#228;tzlich zur 64 Slot Autochanger-Lizenz noch 2 Dynamic Drive Sharing &#8211; Lizenzen (DDS) zur Verf&#252;gung.</p>
<h3>Einrichtung der Tape Library IBM 3583</h3>
<p>Ich zeige hier nur exemplarisch die wichtigsten Konfigurationsschritte.Die Library ist prinzipiell schon betriebsbereit, im LAN angeschlossen und konfiguriert.</p>
<p>&#214;ffnen der Weboberfl&#228;che:</p>
<p><a href="http://otmanix.de/wp-content/uploads/2008/08/dds01.jpg"><img class="alignnone size-full wp-image-685" title="dds01" src="http://otmanix.de/wp-content/uploads/2008/08/dds01.jpg" alt="" width="361" height="182" /></a></p>
<p>Auf der Weboberfl&#228;che stehen Links zur IBM-Homepage. Dort sollte man sich aktuelle Updates f&#252;r das Ger&#228;t besorgen (Firmware f&#252;r Tape drives, etc.) und diese installieren:</p>
<p><a href="http://otmanix.de/wp-content/uploads/2008/08/dds02.jpg"><img class="alignnone size-full wp-image-686" title="dds02" src="http://otmanix.de/wp-content/uploads/2008/08/dds02.jpg" alt="" width="236" height="189" /></a></p>
<p>F&#252;r diese Arbeit sollte man Geduld mitbringen&#8230;</p>
<p>Die Standardeinstellung bei den meisten Herstellern zur Barcode-Label-Erkennung l&#228;&#223;t die letzten beiden Zeichen (L2, L3, L4) bei LTO-B&#228;ndern aus. Diese kennzeichnen den Bandtyp (LTO-2, LTO-3, LTO-4). Bei IBM Tape Librarys ist das oft auf &#8220;Extended&#8221; eingestellt. Das verhindert sp&#228;ter die sinnvolle Nutzung der Medien in anderen Ger&#228;ten. Deshalb Volser auf &#8220;Default&#8221; stellen:</p>
<p><a href="http://otmanix.de/wp-content/uploads/2008/08/dds03.jpg"><img class="alignnone size-full wp-image-687" title="dds03" src="http://otmanix.de/wp-content/uploads/2008/08/dds03.jpg" alt="" width="247" height="234" /></a></p>
<p>Das Reinigen der Laufwerke sollte man besser der Tape Library &#252;berlassen, die das nach Bedarf automatisch durchf&#252;hren kann (statt im Networker feste Reinigungsintervalle):</p>
<p><a href="http://otmanix.de/wp-content/uploads/2008/08/dds04.jpg"><img class="alignnone size-full wp-image-688" title="dds04" src="http://otmanix.de/wp-content/uploads/2008/08/dds04.jpg" alt="" width="246" height="132" /></a></p>
<p>Die IBM 3583 hat keinen eigenen FC-Anschlu&#223; f&#252;r die Robotik. Deshalb mu&#223; der sog. Control Path auf eines der Tape drives gelegt werden (selbe Target-ID, aber drive = Lun 0, changer = Lun 1).</p>
<p><a href="http://otmanix.de/wp-content/uploads/2008/08/dds05.jpg"><img class="alignnone size-full wp-image-691" title="dds05" src="http://otmanix.de/wp-content/uploads/2008/08/dds05.jpg" alt="" width="247" height="132" /></a></p>
<p>Anschlie&#223;end die Library wieder in Betrieb nehmen:</p>
<p><a href="http://otmanix.de/wp-content/uploads/2008/08/dds06.jpg"><img class="alignnone size-full wp-image-689" title="dds06" src="http://otmanix.de/wp-content/uploads/2008/08/dds06.jpg" alt="" width="248" height="135" /></a></p>
<p><a href="http://otmanix.de/wp-content/uploads/2008/08/dds07.jpg"><img class="alignnone size-full wp-image-690" title="dds07" src="http://otmanix.de/wp-content/uploads/2008/08/dds07.jpg" alt="" width="247" height="132" /></a></p>
<p>Nun kann man die 3 FC-Tape drives mit dem FC-Switch verbinden.</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2008/08/20/einrichtung-tape-libary-im-emc-networker-inc-dds-teil-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

