<?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>Sys-Admin Information&#039;s &#187; SVM</title>
	<atom:link href="http://sysinfo.bascomp.org/category/solaris/svm/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysinfo.bascomp.org</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 09:43:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mirroring/Unmirroring on Solaris 10</title>
		<link>http://sysinfo.bascomp.org/2009/04/mirroring-on-solaris-10/</link>
		<comments>http://sysinfo.bascomp.org/2009/04/mirroring-on-solaris-10/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 07:49:43 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[SVM]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[raid1]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/?p=202</guid>
		<description><![CDATA[Post kali ini dengan bahasa indonesia tentunya, akan membahas mengenai membuat mirror dan melepaskan mirror di solaris 10 x86.
sekedar informasi, RAID-1 yang dikenal dengan mirror ini sangat populer untuk tingkat data redudansi juga faster writeable performance,
RAID-1 biasanya digunakan untuk system operasi ditempatkan, dan juga untuk aplikasi dengan tingkat penulisan yang tinggi, contoh Redolog.
Memang sangat di [...]]]></description>
			<content:encoded><![CDATA[<p>Post kali ini dengan bahasa indonesia tentunya, akan membahas mengenai membuat mirror dan melepaskan mirror di solaris 10 x86.<br />
sekedar informasi, RAID-1 yang dikenal dengan mirror ini sangat populer untuk tingkat data redudansi juga faster writeable performance,<br />
RAID-1 biasanya digunakan untuk system operasi ditempatkan, dan juga untuk aplikasi dengan tingkat penulisan yang tinggi, contoh Redolog.<br />
Memang sangat di yakinin bahwa untuk pembahasan mengenai RAID-1 ini sangat-sangat banyak bertebaran di internet, tapi apalah daya untuk kepentingan dokumentasi kita bahas disini.<br />
Postingan RAID-1 ini menggunakan solaris volume manager (SVM), dan 2 disk dengan size yang sama.</p>
<p>Magic code here.<br />
Dibawah ini adalah kondisi awal sebelum 2 disk baru diinstallasi di system.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> cfgadm <span style="color: #660033;">-al</span>
Ap_Id                          Type         Receptacle   Occupant     Condition
sata0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0</span>::dsk<span style="color: #000000; font-weight: bold;">/</span>c1t0d0            disk         connected    configured   ok</pre></div></div>

<p>Kita lanjut untuk rekonfigur boot proses dan updating /dev dan /devices.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> devfsadm <span style="color: #660033;">-C</span>
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> cfgadm <span style="color: #660033;">-al</span>
Ap_Id                          Type         Receptacle   Occupant     Condition
sata0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0</span>::dsk<span style="color: #000000; font-weight: bold;">/</span>c1t0d0            disk         connected    configured   ok
sata0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span>::dsk<span style="color: #000000; font-weight: bold;">/</span>c1t1d0            disk         connected    configured   ok
sata0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2</span>::dsk<span style="color: #000000; font-weight: bold;">/</span>c1t2d0            disk         connected    configured   ok</pre></div></div>

<p>Oke setelah semua persiapan selesai, kita lanjut dengan membuat RAID-1nya.</p>
<p><span id="more-202"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> format c1t1d0</pre></div></div>

<p>lalu buat 2 partisi, satu untuk data dan satulagi untuk metadatanya disimpan, biasanya di slice 7.<br />
Setelahnya kita salin format partisi dari disk primary ke disk secondary, dan dilanjut dengan membuat state databasenya.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> prtvtoc <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>c1t1d0s2 <span style="color: #000000; font-weight: bold;">|</span>fmthard <span style="color: #660033;">-s</span> - <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>c1t2d0s2
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metadb <span style="color: #660033;">-a</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-c</span> <span style="color: #000000;">3</span> c1t1d0s7 c1t2d0s7</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metadb
        flags           first blk       block count
     a m  pc luo        <span style="color: #000000;">16</span>              <span style="color: #000000;">8192</span>            <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t1d0s7
     a    pc luo        <span style="color: #000000;">8208</span>            <span style="color: #000000;">8192</span>            <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t1d0s7
     a    pc luo        <span style="color: #000000;">16400</span>           <span style="color: #000000;">8192</span>            <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t1d0s7
     a    pc luo        <span style="color: #000000;">16</span>              <span style="color: #000000;">8192</span>            <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t2d0s7
     a    pc luo        <span style="color: #000000;">8208</span>            <span style="color: #000000;">8192</span>            <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t2d0s7
     a    pc luo        <span style="color: #000000;">16400</span>           <span style="color: #000000;">8192</span>            <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t2d0s7</pre></div></div>

<p>Setelah konfirm, lanjut dengan membuat raid 1 nya.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metainit <span style="color: #660033;">-f</span> d70 <span style="color: #000000;">1</span> <span style="color: #000000;">1</span> c1t1d0s3
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metainit <span style="color: #660033;">-f</span> d71 <span style="color: #000000;">1</span> <span style="color: #000000;">1</span> c1t2d0s3
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metainit d69 <span style="color: #660033;">-m</span> d70
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metattach d69 d71</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metastat d69
d69: Mirror
    Submirror <span style="color: #000000;">0</span>: d70
      State: Okay         
    Submirror <span style="color: #000000;">1</span>: d71
      State: Resyncing    
    Resync <span style="color: #000000; font-weight: bold;">in</span> progress: <span style="color: #000000;">35</span> <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">done</span>
    Pass: <span style="color: #000000;">1</span>
    Read option: roundrobin <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Write option: parallel <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Size: <span style="color: #000000;">4194304</span> blocks <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2.0</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
d70: Submirror of d69
    State: Okay         
    Size: <span style="color: #000000;">4194304</span> blocks <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2.0</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Stripe <span style="color: #000000;">0</span>:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s3          <span style="color: #000000;">0</span>     No            Okay   Yes 
&nbsp;
&nbsp;
d71: Submirror of d69
    State: Resyncing    
    Size: <span style="color: #000000;">4194304</span> blocks <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2.0</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Stripe <span style="color: #000000;">0</span>:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t2d0s3          <span style="color: #000000;">0</span>     No            Okay   Yes</pre></div></div>

<p>Terlihat sedang dalam proses resync (Resync in progress: 35 % done),<br />
kita lanjut dengan membuat mount pointnya.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> newfs <span style="color: #660033;">-f</span> <span style="color: #000000;">4096</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>d69
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>apps
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>vfstab
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>d69 <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>d69 <span style="color: #000000; font-weight: bold;">/</span>apps ufs <span style="color: #000000;">2</span> <span style="color: #c20cb9; font-weight: bold;">yes</span> -</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">shell<span style="color: #000000; font-weight: bold;">&gt;</span> mountall
shell<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-F</span> ufs -h<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> apps
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>d69        1.9G   2.0M   1.9G     <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">%</span>    <span style="color: #000000; font-weight: bold;">/</span>apps</pre></div></div>

<p>Oke lanjut dengan Unmirroringnya, biar komplit.<br />
Lakukan "metadetach" untuk membuat one-way mirror.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>apps
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metadetach d69 d71
d69: submirror d71 is detached</pre></div></div>

<p>Verfiy...</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metastat d69
d69: Mirror
    Submirror <span style="color: #000000;">0</span>: d70
      State: Okay         
    Pass: <span style="color: #000000;">1</span>
    Read option: roundrobin <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Write option: parallel <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Size: <span style="color: #000000;">4194304</span> blocks <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2.0</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
d70: Submirror of d69
    State: Okay         
    Size: <span style="color: #000000;">4194304</span> blocks <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2.0</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Stripe <span style="color: #000000;">0</span>:
        Device     Start Block  Dbase        State Reloc Hot Spare</pre></div></div>

<p>Tahap akhir adalah, "metaclear" untuk meng-clear mirror dan submirrornya.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metaclear <span style="color: #660033;">-r</span> d69
d69: Mirror is cleared
d70: Concat<span style="color: #000000; font-weight: bold;">/</span>Stripe is cleared
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metaclear d71
d71: Concat<span style="color: #000000; font-weight: bold;">/</span>Stripe is cleared</pre></div></div>

<p>Jangan lupa untuk menghilangkan "/apps" dari /etc/vfstabnya.</p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2009/04/mirroring-on-solaris-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assign External Disk With Softpartition</title>
		<link>http://sysinfo.bascomp.org/2008/01/assign-external-disk-with-softpartition/</link>
		<comments>http://sysinfo.bascomp.org/2008/01/assign-external-disk-with-softpartition/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 05:34:15 +0000</pubDate>
		<dc:creator>Gun nee</dc:creator>
				<category><![CDATA[SVM]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/01/28/assaign-external-disk-with-softpartition/</guid>
		<description><![CDATA[For the example, i will assign disk 1 Terra byte to existing disk
Note :
The disk will be allocation to :
 /ora/datafile7   500  MB
/ora/datafile8   200  MB
/ora/datafile9   150  MB
/datasqlload    150  MB
first, how to knowing new disk added in system?
# format &#62; old_disk.txt
for the crosscheck [...]]]></description>
			<content:encoded><![CDATA[<p>For the example, i will assign disk 1 Terra byte to existing disk</p>
<p>Note :<br />
The disk will be allocation to :<br />
<strong> /ora/datafile7   500  MB<br />
/ora/datafile8   200  MB<br />
/ora/datafile9   150  MB<br />
/datasqlload    150  MB</strong></p>
<p>first, how to knowing new disk added in system?<br />
<code># format &gt; old_disk.txt</code><br />
for the crosscheck disk existing with new disk, save list disk existing to file</p>
<p>after team storage has allocated disk,now we have task to assign disk in system<br />
look HBA connected with :<br />
<code># luxadm -e port</code><br />
<code># luxadm -e forcelip [name device connected in HBA] *only device connected</code><br />
<code># devfsadm -C</code><br />
<code># format</code></p>
<p>check the added disk, compare with the file <strong>old_disk.txt</strong>.<br />
sometime disk sequence which have been added not successive.</p>
<p><span id="more-38"></span></p>
<p>create d5 for mains and<br />
d25 for /ora/datafile7,<br />
d26 for /ora/data8,<br />
d27 for /ora/data9,<br />
d28 for /datasqlload</p>
<p><code># metainit d5 1 5 c9t60060E80042AB00000002AB00000082Bd0s6 c9t60060E80042AB00000002AB00000082Fd0s6<br />
c9t60060E80042AB00000002AB000000823d0s6<br />
c9t60060E80042AB00000002AB000000827d0s6<br />
c9t60060E80042AB00000002AB000000833d0s6</code></p>
<p><code># metainit d25 -p d5 500g</code><br />
<code># metainit d26 -p d5 200g</code><br />
<code># metainit d27 -p d5 150g</code><br />
<code># metainit d28 -p d5 150g</code></p>
<p><code># newfs /dev/md/rdsk/d25</code><br />
<code># newfs /dev/md/rdsk/d26</code><br />
<code># newfs /dev/md/rdsk/d27</code><br />
<code># newfs /dev/md/rdsk/d28</code></p>
<p><code># vi /etc/vfstab</code><br />
add line for new mount point <strong>/ora/datafile7</strong>, <strong>/ora/datafile8</strong>, <strong>/ora/datafile9</strong>, <strong>/datasqlload</strong></p>
<p>try mount one by one the new mount point, and...done !</p>
<p>Note :<br />
<em>c9t60060E80042AB00000002AB00000082Bd0s6 : new disk use slice 6</em></p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/01/assign-external-disk-with-softpartition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
