<?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>x83.net &#187; raid</title>
	<atom:link href="http://www.x83.net/tag/raid/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x83.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 13:53:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Convert from instance store to EBS</title>
		<link>http://www.x83.net/convert-from-instance-store-to-ebs/</link>
		<comments>http://www.x83.net/convert-from-instance-store-to-ebs/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 13:21:53 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[ebs]]></category>
		<category><![CDATA[ec2-register]]></category>
		<category><![CDATA[IO]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[snapshot]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=827</guid>
		<description><![CDATA[Convert from instance store to EBS One client that was running a older EC2 instance was using instance store. From my point of view the only benefit for instance store is that it has better IO..though if you build a RAID using several EBS volumes. Anyway steps are : 1. create 1 EBS volume 2. [...]]]></description>
			<content:encoded><![CDATA[<pre>Convert from instance store to EBS

One client that was running a older EC2 instance was using instance store.</pre>
<pre>From my point of view the only benefit for instance store is that it has</pre>
<pre>better IO..though if you build a RAID using several EBS volumes.</pre>
<pre>Anyway steps are : 

1. create 1 EBS volume
2. attach this volume to your EC2 instance store 

3. format it as ext3
mkfs.ext3 /dev/sdf

4. mount it
mkdir /mnt/ebs
mount /dev/sdf /mnt/ebs

5. sync the instance with the volume
rsync -avHx / /mnt/ebs
rsync -avHx /dev /mnt/ebs

(you can edit /mnt/ebs/fstab and delete the reference towards the /mnt partition)

6. sync &amp;&amp; umount /mnt/ebs

7. create a snapshot of that volume

8. register the ami based on that snapshot</pre>
<pre><strong>ec2-register -s snap-ID -name "EBS instance" -description "EBS instance" -architecture i386</strong></pre>
<pre><strong> -ramdisk ari-d23cd6bb -kernel aki-c43cd6ad</strong>

As a result it should show something like:

IMAGE   ami-newID</pre>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/convert-from-instance-store-to-ebs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WARNING: mismatch_cnt is not 0</title>
		<link>http://www.x83.net/warning-mismatch_cnt-is-not-0/</link>
		<comments>http://www.x83.net/warning-mismatch_cnt-is-not-0/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 11:30:40 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[md0]]></category>
		<category><![CDATA[md1]]></category>
		<category><![CDATA[mismatch_cnt]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[repair]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=810</guid>
		<description><![CDATA[I got an email regarding this issue saying something like : &#160; WARNING: mismatch_cnt is not 0 on /dev/md1 The /dev/mdX can vary depending on how many raid partitions you have. This mismatch_cnt value is the value of the blocks, that are not synchronized between RAID-1 (mirrored) drives.  On my server it looked something like [...]]]></description>
			<content:encoded><![CDATA[<p>I got an email regarding this issue saying something like :</p>
<p>&nbsp;</p>
<p>WARNING: mismatch_cnt is not 0 on /dev/md1</p>
<p>The /dev/mdX can vary depending on how many raid partitions you have. This mismatch_cnt value is the value of the blocks,</p>
<p>that are not synchronized between RAID-1 (mirrored) drives.  On my server it looked something like :</p>
<pre>[root@ns ~]# cat /sys/block/md1/md/mismatch_cnt
4910080</pre>
<p>To fix :</p>
<pre>echo repair &gt;/sys/block/md0/md/sync_action
watch cat /proc/mdstat</pre>
<p>And after the repair is completed:</p>
<pre>echo check &gt;/sys/block/md1/md/sync_action
watch cat /proc/mdstat</pre>
<pre></pre>
<p>Then check to see what this returns:</p>
<pre>cat /sys/block/md1/md/mismatch_cnt</pre>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/warning-mismatch_cnt-is-not-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LVM and Raid</title>
		<link>http://www.x83.net/lvm-and-raid/</link>
		<comments>http://www.x83.net/lvm-and-raid/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 06:28:13 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[raid]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=189</guid>
		<description><![CDATA[Show attributes of Logical Volume: node0001:/etc/lvm# lvdisplay &#8212; Logical volume &#8212; LV Name /dev/lvm1/usr VG Name lvm1 LV UUID Be0rAE-Y3q8-1aHM-WUDN-pDXU-57B2-sNHYmg LV Write Access read/write LV Status available # open 1 LV Size 4.66 GB Current LE 1192 Segments 1 Allocation inherit Read ahead sectors auto &#8211; currently set to 256 Block device 253:0 &#8212; Logical [...]]]></description>
			<content:encoded><![CDATA[<p>Show attributes of Logical Volume:</p>
<blockquote><p>node0001:/etc/lvm# lvdisplay<br />
  &#8212; Logical volume &#8212;<br />
  LV Name                /dev/lvm1/usr<br />
  VG Name                lvm1<br />
  LV UUID                Be0rAE-Y3q8-1aHM-WUDN-pDXU-57B2-sNHYmg<br />
  LV Write Access        read/write<br />
  LV Status              available<br />
  # open                 1<br />
  LV Size                4.66 GB<br />
  Current LE             1192<br />
  Segments               1<br />
  Allocation             inherit<br />
  Read ahead sectors     auto<br />
  &#8211; currently set to     256<br />
  Block device           253:0</p>
<p>  &#8212; Logical volume &#8212;<br />
  LV Name                /dev/lvm1/var<br />
  VG Name                lvm1<br />
  LV UUID                ttng8k-54zQ-Rr5M-OjlW-gopL-fPzQ-0Frd3o<br />
  LV Write Access        read/write<br />
  LV Status              available<br />
  # open                 1<br />
  LV Size                14.90 GB<br />
  Current LE             3814<br />
  Segments               1<br />
  Allocation             inherit<br />
  Read ahead sectors     auto<br />
  &#8211; currently set to     256<br />
  Block device           253:1</p>
<p>  &#8212; Logical volume &#8212;<br />
  LV Name                /dev/lvm1/tmp<br />
  VG Name                lvm1<br />
  LV UUID                ZuhigP-u3iE-JGQn-biWR-c5It-QivP-LJqXz9<br />
  LV Write Access        read/write<br />
  LV Status              available<br />
  # open                 1<br />
  LV Size                952.00 MB<br />
  Current LE             238<br />
  Segments               1<br />
  Allocation             inherit<br />
  Read ahead sectors     auto<br />
  &#8211; currently set to     256<br />
  Block device           253:2</p>
<p>  &#8212; Logical volume &#8212;<br />
  LV Name                /dev/lvm1/root<br />
  VG Name                lvm1<br />
  LV UUID                pF0GYz-KyhM-H9Gm-rDEs-zmo1-hyj7-I8XO74<br />
  LV Write Access        read/write<br />
  LV Status              available<br />
  # open                 1<br />
  LV Size                46.56 GB<br />
  Current LE             11920<br />
  Segments               1<br />
  Allocation             inherit<br />
  Read ahead sectors     auto<br />
  &#8211; currently set to     256<br />
  Block device           253:3</p>
<p>  &#8212; Logical volume &#8212;<br />
  LV Name                /dev/lvm1/swap<br />
  VG Name                lvm1<br />
  LV UUID                LyLQSt-HiVw-Yh84-WB0Y-uhLI-Z0p3-3sZiBf<br />
  LV Write Access        read/write<br />
  LV Status              available<br />
  # open                 1<br />
  LV Size                7.45 GB<br />
  Current LE             1907<br />
  Segments               1<br />
  Allocation             inherit<br />
  Read ahead sectors     auto<br />
  &#8211; currently set to     256<br />
  Block device           253:4
   </p></blockquote>
<p>Show attributes of physical volume:</p>
<blockquote><p>node0001:~# pvdisplay<br />
  &#8212; Physical volume &#8212;<br />
  PV Name               /dev/md2<br />
  VG Name               lvm1<br />
  PV Size               923.36 GB / not usable 896.00 KB<br />
  Allocatable           yes<br />
  PE Size (KByte)       4096<br />
  Total PE              236380<br />
  Free PE               196579<br />
  Allocated PE          39801<br />
  PV UUID               W5Iaek-T5zk-rAjd-J2qI-CNt1-nan2-1k6xsK
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/lvm-and-raid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

