<?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; UFS</title>
	<atom:link href="http://otmanix.de/tag/ufs/feed/" rel="self" type="application/rss+xml" />
	<link>http://otmanix.de</link>
	<description>Wissenswertes und Belangloses aus dem Leben eines Admins</description>
	<lastBuildDate>Wed, 28 Jul 2010 18:37:11 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<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[VMware]]></category>
		<category><![CDATA[Virtualisierung]]></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/">Weiterlesen <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>heureka! ZFS Boot auf Sparc betriebsbereit&#8230;</title>
		<link>http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/</link>
		<comments>http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 12:28:37 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[Jumpstart]]></category>
		<category><![CDATA[sxce]]></category>
		<category><![CDATA[UFS]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=550</guid>
		<description><![CDATA[Wie berichtet wurden die notwendigen &#196;nderungen f&#252;r ZFS Boot auf Sparc und Integration in den Installer (nur im Text-Modus!) im build90 integriert. Heute habe ich das auf meiner Sun Blade 1000 erfolgreich getestet: Im Installer ist kein RAID1 m&#246;glich &#8211; &#8230; <a href="http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wie berichtet wurden die notwendigen &#196;nderungen f&#252;r ZFS Boot auf Sparc und Integration in den Installer (nur im Text-Modus!) im build90 integriert. Heute habe ich das auf meiner Sun Blade 1000 erfolgreich getestet:</p>

<a href='http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/attachment/07062008001/' title='07062008001'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/06/07062008001-150x150.jpg" class="attachment-thumbnail" alt="07062008001" title="07062008001" /></a>
<a href='http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/attachment/07062008002/' title='07062008002'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/06/07062008002-150x150.jpg" class="attachment-thumbnail" alt="07062008002" title="07062008002" /></a>
<a href='http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/attachment/07062008003/' title='07062008003'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/06/07062008003-150x150.jpg" class="attachment-thumbnail" alt="07062008003" title="07062008003" /></a>
<a href='http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/attachment/07062008004/' title='07062008004'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/06/07062008004-150x150.jpg" class="attachment-thumbnail" alt="07062008004" title="07062008004" /></a>
<a href='http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/attachment/07062008005/' title='07062008005'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/06/07062008005-150x150.jpg" class="attachment-thumbnail" alt="07062008005" title="07062008005" /></a>
<a href='http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/attachment/07062008006/' title='07062008006'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/06/07062008006-150x150.jpg" class="attachment-thumbnail" alt="07062008006" title="07062008006" /></a>
<a href='http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/attachment/07062008007/' title='07062008007'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/06/07062008007-150x150.jpg" class="attachment-thumbnail" alt="07062008007" title="07062008007" /></a>
<a href='http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/attachment/07062008008/' title='07062008008'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/06/07062008008-150x150.jpg" class="attachment-thumbnail" alt="07062008008" title="07062008008" /></a>
<a href='http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/attachment/07062008009/' title='07062008009'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/06/07062008009-150x150.jpg" class="attachment-thumbnail" alt="07062008009" title="07062008009" /></a>
<a href='http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/attachment/07062008010/' title='07062008010'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/06/07062008010-150x150.jpg" class="attachment-thumbnail" alt="07062008010" title="07062008010" /></a>
<a href='http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/attachment/07062008013/' title='07062008013'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/06/07062008013-150x150.jpg" class="attachment-thumbnail" alt="07062008013" title="07062008013" /></a>
<a href='http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/attachment/07062008014/' title='07062008014'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/06/07062008014-150x150.jpg" class="attachment-thumbnail" alt="07062008014" title="07062008014" /></a>

<p>Im Installer ist kein RAID1 m&#246;glich &#8211; aber nachtr&#228;glich:</p>
<pre>bash-3.2# zpool status
  Pool: rpool
 Status: ONLINE
 scrub: Keine erforderlich
config:</pre>
<pre>        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
          c1t1d0s0  ONLINE       0     0     0</pre>
<pre>Fehler: Keine bekannten Datenfehler</pre>
<pre>bash-3.2# zpool attach -f rpool c1t1d0s0 c1t2d0s0
bash-3.2# zpool status
  Pool: rpool
 Status: ONLINE
Zustand: Mindestens ein Ger&#228;t wird derzeit neu gespiegelt.  Der Pool funktioniert,
        m&#246;glicherweise in herabgestuftem Zustand, weiter.
Aktion: Warten Sie, bis die neue Spiegelung abgeschlossen ist.
 scrub: resilver in progress for 0h0m, 4,56% done, 0h3m to go
config:</pre>
<pre>        NAME          STATE     READ WRITE CKSUM
        rpool         ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c1t1d0s0  ONLINE       0     0     0
            c1t2d0s0  ONLINE       0     0     0</pre>
<pre>Fehler: Keine bekannten Datenfehler
</pre>
<p>Update:</p>
<p>Das ZFS-Handbuch f&#252;r OpenSolaris gibt es <a title="zfs" href="http://opensolaris.org/os/community/zfs/docs/zfsadmin.pdf" target="_self">hier</a>. Darin sind die Neuerungen f&#252;r ZFS Boot beschrieben und Auswirkungen auf die Liveupgrade Funktionalit&#228;t. Ebenso wird die Migration von UFS Boot auf ZFS Boot beschrieben. Dar&#252;ber hinaus wird auch die Integration von ZFS Boot f&#252;r Jumpstart erkl&#228;rt.</p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2008/06/07/heureka-zfs-boot-auf-sparc-betriebsbereit/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Solaris als Storageserver</title>
		<link>http://otmanix.de/2008/04/21/solaris-als-storageserver/</link>
		<comments>http://otmanix.de/2008/04/21/solaris-als-storageserver/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 20:34:21 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[EMC]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[Netapp]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[SAN]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[CIFS]]></category>
		<category><![CDATA[fc]]></category>
		<category><![CDATA[fcoe]]></category>
		<category><![CDATA[iscsi]]></category>
		<category><![CDATA[iSNS]]></category>
		<category><![CDATA[mpxio]]></category>
		<category><![CDATA[multipathing]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[svm]]></category>
		<category><![CDATA[UFS]]></category>

		<guid isPermaLink="false">http://otmanix.de/?p=487</guid>
		<description><![CDATA[&#8220;Wo liegt der Reiz an Solaris?&#8221; werde ich immer wieder gefragt. Eines der Sahnest&#252;cke von Solaris ist meiner Meinung nach der Einsatz als universelle Storageplattform auf LowCost-Hardware, z.B. als g&#252;nstiger Ersatz f&#252;r einen Netapp-Filer. Wer die Opensolaris-Entwicklung etwas mitverfolgt erlebt &#8230; <a href="http://otmanix.de/2008/04/21/solaris-als-storageserver/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>&#8220;Wo liegt der Reiz an Solaris?&#8221; werde ich immer wieder gefragt. Eines der Sahnest&#252;cke von Solaris ist meiner Meinung nach der Einsatz als universelle Storageplattform auf LowCost-Hardware, z.B. als g&#252;nstiger Ersatz f&#252;r einen Netapp-Filer. Wer die Opensolaris-Entwicklung etwas mitverfolgt erlebt hier beinahe monatlich neue Features im Storageumfeld. Hier ist bei weitem noch kein Ende der Entwicklung in Sicht.</p>
<p><a href="http://www.opensolaris.org/os/community/storage/" target="_self">http://www.opensolaris.org/os/community/storage/</a></p>
<p><strong>SVM, UFS, ZFS &#8211; Volumemanager, Filesysteme, Volumes, Snapshots, uvm.<br />
</strong></p>
<p>Traditionell wird unter Solaris der SVM als Volumemanager benutzt, UFS ist das Standard-Filesystem. Mit Multiterabyte-Support und Journaling per SVM wurde UFS im Nachhinein aufgebohrt. UFS-Snapshots funktionieren, wirken aber irgendwie wie ein angest&#252;ckelter Fremdk&#246;rper. Das Handling von SVM ist sehr gew&#246;hnungsbed&#252;rftig, Freunde gewinnt man so sicherlich nicht. SVM/UFS ist heute nach wie vor f&#252;r die Spiegelung von lokalen Bootdevices &#252;blich.</p>
<p>Der gro&#223;e Wurf gelang Sun mit ZFS. ZFS ist Volumemanager und Filesystem zugleich. Damit ist die Liste der Features aber noch lange nicht ersch&#246;pft. Prinzipiell werden Platten oder Slices (Partitionen) einem Pool zugewiesen, ein entsprechender RAID-Level gesetzt (Striping, Mirroring, RAID-Z) und diverse Parameter wie z.B. Blocksize gesetzt. In einem Pool k&#246;nnen dann ZFS-Filesysteme oder Volumes (&#228;hnlich RAW-devices) angelegt und mit Parametern, wie z.B. Quota und Reservierung, versehen werden. Auf Volumes k&#246;nnen beliebige Filesysteme aufgebracht werden.</p>
<p>Auf ZFS-Pools, -Filesysteme und -Volumes k&#246;nnen Snapshots angewendet werden. Diese k&#246;nnen auch geclont und damit beschreibbar wiederverwendet werden.</p>
<p>Mit zfs send/receive k&#246;nnen ZFS-Daten &#252;ber IP repliziert werden.</p>
<p>ZFS Pools k&#246;nnen exportiert und auf einem anderen Rechner wieder importiert werden. Ge&#228;nderte Hardwarepfade, etc. spielen keine Rolle &#8211; so lange alle Platten eines Pools zur Verf&#252;gung stehen klappt der Import.</p>
<p>ZFS ist (noch?) nicht als Shared Filesystem geeignet. D.h. im Cluster kann es nur f&#252;r Failoverszenarien eingesetzt werden.</p>
<p>Die Performance von ZFS ist abh&#228;ngig vom Szenario, wo es zum Einsatz kommen soll. Mittlerweile in den meisten Bereichen UFS ebenb&#252;rtig gibt es noch Potential zu VxFS. Tuning ist oft sinnvoll. Je h&#246;her das Solaris-Release, desto mehr M&#246;glichkeiten zur Optimierung gibt es.</p>
<p>ZFS bietet neben der eing&#228;ngen Shell-Kommandos auch ein Webgui.</p>

<a href='http://otmanix.de/2008/04/21/solaris-als-storageserver/zfs-admin-pool/' title='zfs-admin-pool'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/04/zfs-admin-pool-150x150.gif" class="attachment-thumbnail" alt="zfs-admin-pool" title="zfs-admin-pool" /></a>
<a href='http://otmanix.de/2008/04/21/solaris-als-storageserver/zfs-admin/' title='zfs-admin'><img width="150" height="150" src="http://otmanix.de/wp-content/uploads/2008/04/zfs-admin-150x150.gif" class="attachment-thumbnail" alt="zfs-admin" title="zfs-admin" /></a>

<p>ZFS hat eingebaute Mechanismen wie &#8220;Self Healing&#8221; und Schutz gegen &#8220;silent data corruption&#8221;.</p>
<p><a href="http://blogs.sun.com/chrisg/entry/latency_bubble_in_your_io" target="_self">http://blogs.sun.com/chrisg/entry/latency_bubble_in_your_io</a></p>
<p><a href="http://przemol.blogspot.com/2008/02/zfs-vs-vxfs-vs-ufs-on-x4500-thumper.html" target="_self">http://przemol.blogspot.com/2008/02/zfs-vs-vxfs-vs-ufs-on-x4500-thumper.html</a></p>
<p><a href="http://blogs.sun.com/SC/entry/why_sunw_nfs_is_required" target="_self">http://blogs.sun.com/SC/entry/why_sunw_nfs_is_required</a></p>
<p><a href="http://www.solarisinternals.com//wiki/index.php?title=Category:ZFS" target="_self">http://www.solarisinternals.com//wiki/index.php?title=Category:ZFS</a></p>
<p><a href="http://www.opensolaris.org/os/community/zfs/docs/" target="_self">http://www.opensolaris.org/os/community/zfs/docs/</a></p>
<p><a href="http://wiki.edv-widhalm.com/index.php/Solaris_Volume_Manager_%28HowTo%29" target="_self">http://wiki.edv-widhalm.com/index.php/Solaris_Volume_Manager_%28HowTo%29</a></p>
<p><a href="http://wiki.edv-widhalm.com/index.php/Zfs_%28HowTo%29" target="_self">http://wiki.edv-widhalm.com/index.php/Zfs_%28HowTo%29</a></p>
<p><a href="http://www.learning-solaris.com/index.php/category/unix-solaris-storage-volume-management/" target="_self">http://www.learning-solaris.com/index.php/category/unix-solaris-storage-volume-management/</a></p>
<p><a href="http://www.osnews.com/story/19665/Solaris_Filesystem_Choices" target="_self">http://www.osnews.com/story/19665/Solaris_Filesystem_Choices</a></p>
<p><a title="zfs cache flush" href="http://blogs.digitar.com/jjww/?itemid=52" target="_self">http://blogs.digitar.com/jjww/?itemid=52</a></p>
<p><strong>NAS &#8211; iSCSI</strong></p>
<p>Solaris beherrscht iSCSI Initiator (Zugriff auf iSCSI-Volume) und iSCSI Target (Bereitstellen<br />
eines iSCSI Volumes). Dabei kann z.B. ein ZFS Volume als iSCSI Target genutzt werden. Das kann man z.B. nutzen um einem Windows- oder VMware-ESX-Server Diskspace zur Verf&#252;gung zu stellen. Von den ZFS Volumes k&#246;nnen dann Snapshots erstellt werden.</p>
<p><a href="http://blogs.sun.com/mhuff/entry/introduction_to_iscsi_in_solaris" target="_self">http://blogs.sun.com/mhuff/entry/introduction_to_iscsi_in_solaris</a></p>
<p><a href="http://www.opensolaris.org/os/project/iscsitgt/" target="_self">http://www.opensolaris.org/os/project/iscsitgt/</a></p>
<p><a href="http://www.opensolaris.org/os/project/isns/" target="_self">http://www.opensolaris.org/os/project/isns/</a></p>
<p><a href="http://blogs.sun.com/lokibear/entry/download_isns_web_based_management" target="_self">http://blogs.sun.com/lokibear/entry/download_isns_web_based_management</a></p>
<p><strong>NAS Freigaben &#8211; NFS und CIFS</strong></p>
<p>ZFS-Filesysteme beherrschen UNIX- und Windows-ACLs (W2K kompatibel) &#8211; damit entfallen viele H&#252;rden als Netzwerkspeicher. Dar&#252;ber hinaus k&#246;nnen in ZFS-Filesystemen NFS- und CIFS-Freigaben als Eigenschaften eingerichtet werden. Eine ADS-Integration ist auch m&#246;glich. Der brandneue CIFS-Server mit ZFS-Integration d&#252;rfte unter Solaris eine ernsthafte Konkurrenz zu Samba werden.</p>
<p><a href="http://blogs.sun.com/timthomas/entry/opensolaris_as_a_storageos_the" target="_self">http://blogs.sun.com/timthomas/entry/opensolaris_as_a_storageos_the</a></p>
<p><a href="http://blogs.sun.com/dougm/" target="_self">http://blogs.sun.com/dougm/</a></p>
<p><a href="http://blogs.sun.com/amw/entry/cifs_in_solaris" target="_self">http://blogs.sun.com/amw/entry/cifs_in_solaris</a></p>
<p><strong>SAN &#8211; Fibrechannel, FCoE<br />
</strong></p>
<p>Im Bereich Fibrechannel wurde zuletzt in erster Linie in leichtere Administration auf der Shell investiert. Interessant sind die OpenSolaris-Projekte Comstar und FC over Ethernet. Hier bewegt sich einiges, gerade auch im Bereich Virtualisierung mit NPIV (virtuelle FC-HBAs).</p>
<p><a href="http://www.opensolaris.org/os/project/comstar/" target="_self">http://www.opensolaris.org/os/project/comstar/</a></p>
<p><a href="http://www.opensolaris.org/os/project/fcoe/" target="_self">http://www.opensolaris.org/os/project/fcoe/</a></p>
<p><a href="http://www.opensolaris.org/os/project/npiv/" target="_self">http://www.opensolaris.org/os/project/npiv/</a></p>
<p><strong>mpxio &#8211; Multipathing</strong></p>
<p>Solaris unterst&#252;tzt mit mpxio Multipathing f&#252;r SCSI-, FC-, SAS- und iSCSI-Disks. Speichersysteme mit SCSI SPC-2/3 werrden automatisch erkannt, eine manuelle Zuordnung in der Konfigurationsdatei durch Vendor und Product ist auch m&#246;glich, z.B. &#8220;EMC     SYMMETRIX&#8221;. Es wird Failover und Roundrobin als Verfahren unterst&#252;tzt. Mit dem mpathadm-Kommando ist die Administration sehr eing&#228;ngig. Durch mpxio wird aus den verschiedenen Hardwarepfaden (verschiedene Controller/Targets, gleiche LUN) ein virtueller Pfad erstellt, der dann f&#252;r die Konfiguration im Volumemanager benutzt wird.</p>
<p><a href="http://www.opensolaris.org/os/project/mpxio/" target="_self">http://www.opensolaris.org/os/project/mpxio/</a></p>
<p>last but not least: ZFS in der Praxis &#8230; (Achtung! US-Propaganda)<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/CN6iDzesEs0&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/CN6iDzesEs0&amp;hl=en" wmode="transparent"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2008/04/21/solaris-als-storageserver/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Links am 25.03.08</title>
		<link>http://otmanix.de/2008/03/25/links-am-250308/</link>
		<comments>http://otmanix.de/2008/03/25/links-am-250308/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 11:28:58 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Cluster]]></category>
		<category><![CDATA[Indiana]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtualisierung]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[exchange 2007]]></category>
		<category><![CDATA[Finanzkrise]]></category>
		<category><![CDATA[Humor]]></category>
		<category><![CDATA[KDE 4.1]]></category>
		<category><![CDATA[radeonhd]]></category>
		<category><![CDATA[UFS]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[VxFS]]></category>
		<category><![CDATA[windows 2008]]></category>

		<guid isPermaLink="false">http://otmanix.de/2008/03/25/links-am-250308/</guid>
		<description><![CDATA[MS Exchange 2007 auf Windows 2008 Server als VMware ESX Gast &#8211; der Blog informiert umfassend &#252;ber Exchange 2007 und andere Produkte aus dem M$-Lager Workstation-Performance mit NVidia Quadro FX1700 und OpenGL: Ubuntu Linux vs. Solaris Express vs. Windows Vista &#8230; <a href="http://otmanix.de/2008/03/25/links-am-250308/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://telnetport25.wordpress.com/2008/02/16/vmware-server-installing-exchange-2007-sp-1-using-ccr-on-windows-2008-rtm-part-1/" title="exchange 2007" target="_blank">MS Exchange 2007 auf Windows 2008 Server als VMware ESX Gast</a> &#8211; der Blog informiert umfassend &#252;ber Exchange 2007 und andere Produkte aus dem M$-Lager</li>
<li><a href="http://www.phoronix.com/scan.php?page=article&amp;item=nvidia_workstation_perf&amp;num=1" title="cross platfform performance" target="_blank">Workstation-Performance mit NVidia Quadro FX1700 und OpenGL:</a> Ubuntu Linux vs. Solaris Express vs. Windows Vista &#8211; wen wundert das Ergebnis? DirectX l&#228;&#223;t sich aber leider nicht vergleichen&#8230;</li>
<li><a href="http://www.phoronix.com/scan.php?page=article&amp;item=kde_41_early&amp;num=1" title="KDE 4.1" target="_blank">Vorschau auf KDE 4.1</a> &#8211; es ist auch eine Portierung auf OpenSolaris geplant <img src='http://otmanix.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li><a href="http://blogs.sun.com/ChinaExperience/entry/sub_prime_recession_depression_credit" title="sub prime" target="_blank">Amiram Hayardenys Kommentar zum Thema Finanzkrise</a> &#8211; Ich finde hier wird kurz und b&#252;ndig das Thema ohne besch&#246;nigende Worte beschrieben.</li>
<li><a href="http://przemol.blogspot.com/2008/02/zfs-vs-vxfs-vs-ufs-on-x4500-thumper.html" title="oltp performance" target="_blank">Filesystem/Volumemanager-OLTP-Performance auf Sun Fire X4500 mit Solaris 10 08/07:</a> SVM/UFS vs. VVM/VxFS vs. ZFS &#8211; ZFS hat gewaltig aufgeholt</li>
<li><a href="http://blogs.sun.com/chrisg/entry/latency_bubble_in_your_io" title="disk I/O" target="_blank">Latenzzeiten beim Disk-I/O unter Solaris, was tun?</a> -Chris Gerhard kl&#228;rt auf</li>
<li><a href="http://blogs.sun.com/jenswagener/entry/windows_2008_creating_a_cluster" title="windows 2008 cluster" target="_blank">Windows 2008 und Cluster</a></li>
<li><a href="http://blogs.sun.com/phantom/entry/gui_based_package_manager_for" title="indiana ipsgui" target="_blank">OpenSolaris Developer Preview / Project Indiana und Virtualbox sowie grafischer Paketmanager (ipsGUI)</a></li>
<li><a href="http://blogs.sun.com/thebentzone/entry/compiling_radeonhd_from_git_on" title="radeonhd solaris" target="_blank">radeonHD-Treiber unter Solaris f&#252;r Heimwerker</a></li>
<li><a href="http://weblogs.java.net/blog/lucastorri/archive/2008/03/triboot_system.html" title="Multiboot" target="_blank">Multiboot:</a> Solaris, Linux und Windows</li>
<li><a href="http://blogs.sun.com/SC/entry/upgrade_methods" title="sun cluster upgrade" target="_blank">Sun Cluster &#8211; verschiedene Upgrade-Szenarien</a></li>
<li><a href="http://blogs.sun.com/AlokChakrabarty/entry/pppoe_broadband_internet_in_solaris" title="PPPoE SXCE" target="_blank">PPPoE ab Solaris Express build72</a> &#8211; DSL-Modem unter Solaris Express</li>
<li><a href="http://blogs.sun.com/JeffV/entry/high_availability_networking_for_solaris" title="ipmp" target="_blank">IPMP und Solaris Container/Zones</a> &#8211; NIC-Failover und Solaris-Virtualisierung</li>
<li><a href="http://blogs.sun.com/terrygardner/entry/i_ll_be_bach" title="I'll be Bach" target="_blank">I&#8217;ll be Bach</a> &#8211; Bach vs. Terminator</li>
<li><a href="http://blogs.sun.com/gasselin/entry/installing_solaris_nevada_b84_to" title="sxce virtualbox" target="_blank">Installation von Solaris Express build83 in Virtualbox</a></li>
<li><a href="http://blogs.sun.com/kevin/entry/top_annoying_sci_fi_kids" title="scifi kids" target="_blank">die 7 nervigsten SciFi-Kids</a> &#8211; das mu&#223;te einmal gesagt werden!</li>
<li><a href="http://www.photoshoptalent.com/blog/2008/03/08/40-body-enhancement-photoshop-tutorials/" title="33x photoshop" target="_blank">33x Photoshop-Retusche</a> &#8211; so kann jeder jut aussehen <img src='http://otmanix.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li><a href="http://cubo.cc/" title="xeyes" target="_blank">xeyes 2008</a> &#8211; das mu&#223; der nachfolger sein <img src='http://otmanix.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2008/03/25/links-am-250308/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
