<?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; RAID</title>
	<atom:link href="http://otmanix.de/tag/raid/feed/" rel="self" type="application/rss+xml" />
	<link>http://otmanix.de</link>
	<description>Wissenswertes und Belangloses aus dem Leben eines Admins</description>
	<lastBuildDate>Sat, 11 Feb 2012 00:58:23 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>1x Tagesablauf im B&#252;ro</title>
		<link>http://otmanix.de/2007/11/22/1x-tagesablauf-im-buero/</link>
		<comments>http://otmanix.de/2007/11/22/1x-tagesablauf-im-buero/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 21:57:53 +0000</pubDate>
		<dc:creator>otmanix</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Container]]></category>
		<category><![CDATA[Liveupgrade]]></category>
		<category><![CDATA[lsi]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[zones]]></category>

		<guid isPermaLink="false">http://otmanix.de/2007/11/22/1x-tagesablauf-im-buero/</guid>
		<description><![CDATA[Wer sich daf&#252;r interessiert, was ich au&#223;erhalb meiner Freizeit treibe &#8211; hier ein Beispiel, n&#228;mlich mein heutiger Tag: Einrichtung Testsystem (Sun Fire T2000) f&#252;r Neuentwicklung einer Branchensoftware (auf Basis Oracle 10g DB und Container/Zones) P.S. Ich bin allerdings heute nicht &#8230; <a href="http://otmanix.de/2007/11/22/1x-tagesablauf-im-buero/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wer sich daf&#252;r interessiert, was ich au&#223;erhalb meiner Freizeit treibe &#8211; hier ein Beispiel, n&#228;mlich mein heutiger Tag:</p>
<p>Einrichtung Testsystem (Sun Fire T2000) f&#252;r Neuentwicklung einer Branchensoftware (auf Basis Oracle 10g DB und Container/Zones)</p>
<p>P.S.</p>
<p>Ich bin allerdings heute nicht ganz fertig geworden <img src='http://otmanix.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<pre></pre>
<pre></pre>
<h6><strong>Installation Testsystem</strong></h6>
<pre>
Hardware: Sun Fire T2000</pre>
<pre>8x 1,2GHz T1-CPU</pre>
<pre>16GB RAM</pre>
<pre>2x 72GB SAS (RAID1)</pre>
<pre>2x 146GB SAS (RAID1)</pre>
<pre><strong>
ALOM konfigurieren</strong></pre>
<pre>
seriell per Notebook:</pre>
<pre>
setsc netsc_dhcp false</pre>
<pre>setsc netsc_ipaddr x.x.x.x</pre>
<pre>setsc netsc_ipnetmask x.x.x.x</pre>
<pre>setsc netsc_ipgateway x.x.x.x</pre>
<pre>
userpassword admin</pre>
<pre>useradd root</pre>
<pre>userperm cuar</pre>
<pre>userpassword root</pre>
<pre>
resetsc</pre>
<pre>poweron</pre>
<pre>break</pre>
<pre>console -f</pre>
<pre></pre>
<h6><strong>Hardware-RAID1 fuer Boot-Disk</strong></h6>
<pre>
OBP: boot -s cdrom</pre>
<pre>raidctl -c c0t0d0 c0t1d0</pre>
<pre>bash-3.00# raidctl -l c0t0d0</pre>
<pre>Volume                  Size    Stripe  Status   Cache  RAID</pre>
<pre>        Sub                     Size                    Level</pre>
<pre>                Disk</pre>
<pre>----------------------------------------------------------------</pre>
<pre>c0t0d0                  68.3G   N/A     OPTIMAL  N/A    RAID1</pre>
<pre>                0.3.0   68.3G           GOOD</pre>
<pre>                0.2.0   68.3G           GOOD</pre>
<pre></pre>
<h6><strong>Installation Solaris 10u4</strong></h6>
<pre>
Hostname: xxxtest</pre>
<pre>IP: x.x.x.x</pre>
<pre>Mask: x.x.x.x</pre>
<pre>GW: x.x.x.x</pre>
<pre>DNS: x.x.x.x</pre>
<pre>DNS-Suffix: xyz</pre>
<pre>DNS-Suche: xyz, zyx</pre>
<pre>NFSv4-Domain: dynamisch (default)</pre>
<pre>
Locales:</pre>
<pre>C (Default)</pre>
<pre>de_DE.ISO8859-1</pre>
<pre>de_DE.ISO8859-15</pre>
<pre>de_DE.UTF-8</pre>
<pre>en_US.ISO8859-1</pre>
<pre>en_US.ISO8859-15</pre>
<pre>en_US.UTF-8</pre>
<pre>
Software-Cluster: gesamte Gruppe</pre>
<pre>
Partitionierung:</pre>
<pre>s0 / 15G</pre>
<pre>s1 swap 8GB</pre>
<pre>s2 backup (gesamte Disk)</pre>
<pre>s3 (Liveupgrade) 15GB</pre>
<pre>s4 (Reserve fuer ZFS) restl. GB</pre>
<pre>s7 (Reserve fuer SVM/SDS-MetaDB)</pre>
<pre></pre>
<pre><strong>Inst-Vz per NFS</strong></pre>
<pre>
vi /etc/vfstab</pre>
<pre>...</pre>
<pre># Installationsverzeichnis</pre>
<pre>abc:/vol/vol1/instux -      /instux nfs     -       yes     rw,soft</pre>
<pre>
mkdir /instux</pre>
<pre>mount /instux</pre>
<pre><strong>
</strong></pre>
<h6><strong>Upgrade ALOM</strong></h6>
<pre>
cd /tmp</pre>
<pre>mkdir images</pre>
<pre>cd images</pre>
<pre>cp /instux/os/solaris/treiber/sun/t2000/firmware/127576-02/sysfwdownload .</pre>
<pre>cp /instux/os/solaris/treiber/sun/t2000/firmware/127576-02/Sun_System_Firmware-6_5_5-Sun_Fire_T2000.bin .</pre>
<pre>./sysfwdownload Sun_System_Firmware-6_5_5-Sun_Fire_T2000.bin</pre>
<pre>
.......... (10%).......... (20%).......... (30%).......... (41%).......... (51%)</pre>
<pre>.......... (61%).......... (71%).......... (82%).......... (92%)........ (100%)</pre>
<pre>Download completed successfully.</pre>
<pre>
init 0</pre>
<pre>#.</pre>
<pre>poweroff</pre>
<pre>flashupdate -s 127.0.0.1</pre>
<pre>
...</pre>
<pre>Update complete. Reset device to use new software.</pre>
<pre>
resetsc</pre>
<pre></pre>
<h6><strong>Installation Patch-Cluster</strong></h6>
<pre>
ssh -X xxxtest</pre>
<pre>xterm</pre>
<pre>lu</pre>
<pre>&gt; Einrichten des BE sol10u4</pre>
<pre>Erstellen des neuen BE sol10u4recpatch auf s3</pre>
<pre>
luupgrade -n sol10u4recpatch -s /instux/os/solaris/recommended_patches/s10/sparc/10_Recommended/ -t `cat patch_order`</pre>
<pre>luactivate sol10u4recpatch</pre>
<pre>
LSI-RAID1-Volumes nehmen die Identitt der ersten Disk an (Name und Hardwarepfad)</pre>
<pre>Als Default wird Slice0 gebootet, bei Liveupgrade muss der OBP unter Sparc angepasst werden.</pre>
<pre>
bash-3.00# ls -l /dev/dsk/c0t0d0s0</pre>
<pre>lrwxrwxrwx   1 root     root          49 Nov 22 11:45 /dev/dsk/c0t0d0s0 -&gt; ../../devices/pci@780/pci@0/pci@9/scsi@0/sd@0,0:a</pre>
<pre>bash-3.00# ls -l /dev/dsk/c0t0d0s3</pre>
<pre>lrwxrwxrwx   1 root     root          49 Nov 22 11:45 /dev/dsk/c0t0d0s3 -&gt; ../../devices/pci@780/pci@0/pci@9/scsi@0/sd@0,0:d</pre>
<pre>
init 0</pre>
<pre>
OBP:</pre>
<pre>ok devalias</pre>
<pre>ttya                     /pci@7c0/pci@0/pci@1/pci@0/isa@2/serial@0,3f8</pre>
<pre>nvram                    /virtual-devices/nvram@3</pre>
<pre>net3                     /pci@7c0/pci@0/pci@2/network@0,1</pre>
<pre>net2                     /pci@7c0/pci@0/pci@2/network@0</pre>
<pre>net1                     /pci@780/pci@0/pci@1/network@0,1</pre>
<pre>net0                     /pci@780/pci@0/pci@1/network@0</pre>
<pre>net                      /pci@780/pci@0/pci@1/network@0</pre>
<pre>ide                      /pci@7c0/pci@0/pci@1/pci@0/ide@8</pre>
<pre>cdrom                    /pci@7c0/pci@0/pci@1/pci@0/ide@8/cdrom@0,0:f</pre>
<pre>disk3                    /pci@780/pci@0/pci@9/scsi@0/disk@3</pre>
<pre>disk2                    /pci@780/pci@0/pci@9/scsi@0/disk@2</pre>
<pre>disk1                    /pci@780/pci@0/pci@9/scsi@0/disk@1</pre>
<pre>disk0                    /pci@780/pci@0/pci@9/scsi@0/disk@0</pre>
<pre>disk                     /pci@780/pci@0/pci@9/scsi@0/disk@0</pre>
<pre>scsi                     /pci@780/pci@0/pci@9/scsi@0</pre>
<pre>virtual-console          /virtual-devices/console@1</pre>
<pre>name                     aliases</pre>
<pre>
ok nvalias disk0-slice3 /pci@780/pci@0/pci@9/scsi@0/disk@0,0:d</pre>
<pre>ok nvalias disk0-slice0 /pci@780/pci@0/pci@9/scsi@0/disk@0,0:a</pre>
<pre>ok nvstore</pre>
<pre>ok setenv boot-device disk0-slice3</pre>
<pre>
ok printenv</pre>
<pre>Variable Name           Value                          Default Value</pre>
<pre>
ttya-rts-dtr-off        false                          false</pre>
<pre>ttya-ignore-cd          true                           true</pre>
<pre>keyboard-layout</pre>
<pre>reboot-command</pre>
<pre>security-mode           none                           No default</pre>
<pre>security-password                                      No default</pre>
<pre>security-#badlogins     0                              No default</pre>
<pre>verbosity               min                            min</pre>
<pre>pci-mem64?              false                          false</pre>
<pre>diag-switch?            true                           false</pre>
<pre>local-mac-address?      true                           true</pre>
<pre>fcode-debug?            false                          false</pre>
<pre>scsi-initiator-id       7                              7</pre>
<pre>oem-logo                                               No default</pre>
<pre>oem-logo?               false                          false</pre>
<pre>oem-banner                                             No default</pre>
<pre>oem-banner?             false                          false</pre>
<pre>ansi-terminal?          true                           true</pre>
<pre>screen-#columns         80                             80</pre>
<pre>screen-#rows            34                             34</pre>
<pre>ttya-mode               9600,8,n,1,-                   9600,8,n,1,-</pre>
<pre>output-device           virtual-console                virtual-console</pre>
<pre>input-device            virtual-console                virtual-console</pre>
<pre>auto-boot-on-error?     false                          false</pre>
<pre>load-base               16384                          16384</pre>
<pre>auto-boot?              true                           true</pre>
<pre>network-boot-arguments</pre>
<pre>boot-command            boot                           boot</pre>
<pre>boot-file</pre>
<pre>boot-device             disk0-slice3                   disk net</pre>
<pre>multipath-boot?         false                          false</pre>
<pre>boot-device-index       0                              0</pre>
<pre>use-nvramrc?            true                           false</pre>
<pre>nvramrc                 devalias disk0-slice0 /p ...</pre>
<pre>error-reset-recovery    boot                           boot</pre>
<pre>
ok boot</pre>
<pre></pre>
<h6><strong>NTP</strong></h6>
<pre>
bash-3.00# vi /etc/inet/ntp.conf</pre>
<pre>#</pre>
<pre>#       This is for /etc/inet/ntp.conf on domains</pre>
<pre>#       Solaris 8 (uses XNTP Vn 3.5)</pre>
<pre>#</pre>
<pre>
server ntp1</pre>
<pre>server ntp2</pre>
<pre>server 127.127.1.0</pre>
<pre>fudge 127.127.1.0 stratum 10</pre>
<pre>disable auth</pre>
<pre>driftfile /var/ntp/ntp.drift</pre>
<pre>requestkey 1</pre>
<pre>controlkey 1</pre>
<pre>
touch /var/ntp/ntp.drift</pre>
<pre>svadm restart svc:/network/ntp:default</pre>
<pre></pre>
<pre><strong>Automounter ausschalten</strong></pre>
<pre>
bash-3.00# vi /etc/auto_master</pre>
<pre>#</pre>
<pre># Copyright 2003 Sun Microsystems, Inc.  All rights reserved.</pre>
<pre># Use is subject to license terms.</pre>
<pre>#</pre>
<pre># ident "@(#)auto_master        1.8     03/04/28 SMI"</pre>
<pre>#</pre>
<pre># Master map for automounter</pre>
<pre>#</pre>
<pre>+auto_master</pre>
<pre>/net            -hosts          -nosuid,nobrowse</pre>
<pre>#/home          auto_home       -nobrowse</pre>
<pre>
bash-3.00# svcadm restart svc:/system/filesystem/autofs:default</pre>
<pre></pre>
<h6><strong>Hardware RAID1 fuer Solaris-Container/Zones</strong></h6>
<pre>bash-3.00# raidctl -c c0t2d0 c0t3d0
bash-3.00# raidctl -l c0t2d0</pre>
<pre>Volume                  Size    Stripe  Status   Cache  RAID</pre>
<pre>        Sub                     Size                    Level</pre>
<pre>                Disk</pre>
<pre>----------------------------------------------------------------</pre>
<pre>c0t2d0                  136.6G  N/A     OPTIMAL  N/A    RAID1</pre>
<pre>                0.3.0   136.6G          GOOD</pre>
<pre>                0.2.0   136.6G          GOOD</pre>
<pre></pre>
<h6><strong>ZFS-Pools anlegen</strong></h6>
<pre>
bash-3.00# rmdir /home</pre>
<pre>bash-3.00# zpool create home c0t0d0s4</pre>
<pre>bash-3.00# zpool create xxx-pool c0t2d0</pre>
<pre>bash-3.00# zpool list</pre>
<pre>NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT</pre>
<pre>home                   30.8G     88K   30.7G     0%  ONLINE     -</pre>
<pre>xxx-pool                136G     88K    136G     0%  ONLINE     -</pre>
<pre></pre>
<h6><strong>Oracle in Solaris Zones</strong></h6>
<h6><strong>Vorbereitung</strong></h6>
<pre>
<a href="http://metalink.oracle.com" title="metalink" target="_blank">Metalink</a>: DocID Note:317257.1</pre>
<pre>Dateien laut Metalink-Artikel unter /batch anlegen</pre>
<pre></pre>
<pre>bash-3.00# zfs create xxx-pool/xxxtestdb</pre>
<pre>bash-3.00# zfs set quota=50GB xxx-pool/xxxtestdb</pre>
<pre>bash-3.00# zfs list</pre>
<pre>NAME                         USED  AVAIL  REFER  MOUNTPOINT</pre>
<pre>home                          85K  30.3G  24.5K  /home</pre>
<pre>xxx-pool                     116K   134G  26.5K  /xxx-pool</pre>
<pre>xxx-pool/xxxtestdb          24.5K  50.0G  24.5K  /xxx-pool/xxxtestdb</pre>
<pre>
Kopie der Dateien unter /batch fuer DB in /batch/xxxtestdb erstellen</pre>
<pre>
bash-3.00# vi setenv.sh</pre>
<pre>#!/usr/bin/sh</pre>
<pre>
#host name for the zone</pre>
<pre>
ZONE_NAME=xxxtestdb</pre>
<pre>
#directory where to place root dir for the zone</pre>
<pre>
ZONE_DIR=/xxx-pool/xxxtestdb</pre>
<pre>
#IP for the zone (make sure netmask can be resolved for this IP according to</pre>
<pre># the databases defined in nsswitch.conf)</pre>
<pre>
NET_IP=x.x.x.x</pre>
<pre>
#interface used by the zone</pre>
<pre>
NET_PHYSICAL=e1000g0</pre>
<pre>
#min and max CPUs for the pool bound to the zone</pre>
<pre>
NUM_CPUS_MIN=4</pre>
<pre>NUM_CPUS_MAX=8</pre>
<pre>
# do not make changes beyond this point</pre>
<pre>
POOL_NAME=pool_$ZONE_NAME</pre>
<pre>PSET_NAME=ps_$ZONE_NAME</pre>
<pre>export ZONE_NAME ZONE_DIR NET_IP NET_PHYSICAL</pre>
<pre>export POOL_NAME PSET_NAME NUM_CPUS_MIN NUM_CPUS_MAX</pre>
<pre></pre>
<h6><strong>Erstellung der Zone fuer DB</strong></h6>
<pre>
cd /batch/xxxtestdb</pre>
<pre>bash-3.00# ./create_container.sh</pre>
<pre>xxxtestdb was configured with this information:</pre>
<pre>---------------------------------------------------------</pre>
<pre>zonename: xxxtestdb</pre>
<pre>zonepath: /xxx-pool/xxxtestdb/xxxtestdb</pre>
<pre>brand: native</pre>
<pre>autoboot: true</pre>
<pre>bootargs:</pre>
<pre>pool: pool_xxxtestdb</pre>
<pre>limitpriv:</pre>
<pre>scheduling-class:</pre>
<pre>ip-type: shared</pre>
<pre>inherit-pkg-dir:</pre>
<pre>        dir: /lib</pre>
<pre>inherit-pkg-dir:</pre>
<pre>        dir: /platform</pre>
<pre>inherit-pkg-dir:</pre>
<pre>        dir: /sbin</pre>
<pre>inherit-pkg-dir:</pre>
<pre>        dir: /usr</pre>
<pre>fs:</pre>
<pre>        dir: /usr/local</pre>
<pre>        special: /opt/xxxtestdb/local</pre>
<pre>        raw not specified</pre>
<pre>        type: lofs</pre>
<pre>        options: []</pre>
<pre>net:</pre>
<pre>        address: x.x.x.x</pre>
<pre>        physical: e1000g0</pre>
<pre>---------------------------------------------------------</pre>
<pre>Preparing to install zone &lt;xxxtestdb&gt;.</pre>
<pre>Creating list of files to copy from the global zone.</pre>
<pre>Copying &lt;2561&gt; files to the zone.</pre>
<pre>Initializing zone product registry.</pre>
<pre>Determining zone package initialization order.</pre>
<pre>Preparing to initialize &lt;1108&gt; packages on the zone.</pre>
<pre>Initializing package &lt;589&gt; of &lt;1108&gt;: percent complete: 53% ...</pre>
<pre>Initialized &lt;1108&gt; packages on zone.</pre>
<pre>Zone &lt;xxxtestdb&gt; is initialized.</pre>
<pre>The file &lt;/xxx-pool/xxxtestdb/xxxtestdb/root/var/sadm/system/logs/install_log&gt; contains a log of the zone installation.</pre>
<pre>to finish configuring your container please run: zlogin -C xxxtestdb</pre>
<pre>
Dauer: ca. 10min</pre>
<pre>
bash-3.00#  zfs list</pre>
<pre>NAME                         USED  AVAIL  REFER  MOUNTPOINT</pre>
<pre>home                          85K  30.3G  24.5K  /home</pre>
<pre>xxx-pool                     155M   134G  26.5K  /xxx-pool</pre>
<pre>xxx-pool/xxxtestdb           155M  49.8G   155M  /xxx-pool/xxxtestdb</pre>
<pre><strong>
</strong></pre>
<h6><strong>Erstes Einloggen in der Zone</strong></h6>
<pre>
bash-3.00# zlogin -C xxxtestdb</pre>
<pre>[Connected to zone 'xxxtestdb' console]</pre>
<pre>
Select a Language</pre>
<pre>
  0. English</pre>
<pre>  1. German</pre>
<pre>  2. es</pre>
<pre>  3. fr</pre>
<pre>
Please make a choice (0 - 3), or press h or ? for help: 0</pre>
<pre>
Select a Locale</pre>
<pre>
   0. English (C - 7-bit ASCII)</pre>
<pre>   1. Canada (English) (UTF-8)</pre>
<pre>   2. Canada-English (ISO8859-1)</pre>
<pre>   3. Czech Republic (ISO8859-2)</pre>
<pre>   4. Czech Republic (UTF-8 + euro)</pre>
<pre>   5. Czech Republic (UTF-8)</pre>
<pre>   6. Hungary (ISO8859-2)</pre>
<pre>   7. Hungary (UTF-8)</pre>
<pre>   8. Poland (ISO8859-2)</pre>
<pre>   9. Poland (UTF-8)</pre>
<pre>  10. Slovakia (ISO8859-2)</pre>
<pre>  11. Slovakia (UTF-8)</pre>
<pre>  12. U.S.A. (UTF-8)</pre>
<pre>  13. U.S.A. (en_US.ISO8859-1)</pre>
<pre>  14. U.S.A. (en_US.ISO8859-15)</pre>
<pre>  15. Go Back to Previous Screen</pre>
<pre>
Please make a choice (0 - 15), or press h or ? for help: 0</pre>
<pre>
...</pre>
<pre>Abfragen zur Solaris-Konfiguration</pre>
<pre>...</pre>
<pre>
System identification is completed.</pre>
<pre>
rebooting system due to change(s) in /etc/default/init</pre>
<pre></pre>
<pre>[NOTICE: Zone rebooting]</pre>
<pre></pre>
<pre>SunOS Release 5.10 Version Generic_127111-03 64-bit Copyright 1983-2007 Sun Microsystems, Inc.  All rights reserved.</pre>
<pre>Use is subject to license terms.</pre>
<pre>Hostname: xxxtestdb</pre>
<pre>
xxxtestdb console login: root</pre>
<pre>Password:</pre>
<pre>Nov 22 19:37:57 xxxtestdb login: ROOT LOGIN /dev/console</pre>
<pre>Sun Microsystems Inc.   SunOS 5.10      Generic January 2005</pre>
<pre>#</pre>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://otmanix.de/2007/11/22/1x-tagesablauf-im-buero/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

