<?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; raid1</title>
	<atom:link href="http://sysinfo.bascomp.org/tag/raid1/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>
	</channel>
</rss>
