<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.2" -->
<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/"
	>

<channel>
	<title>apaitu::server::configuration</title>
	<link>http://www.apaitu.com</link>
	<description>Optimization by error</description>
	<pubDate>Wed, 24 Nov 2010 02:31:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>
	<language>en</language>
			<item>
		<title>hello,world</title>
		<link>http://www.apaitu.com/2010/11/24/helloworld/</link>
		<comments>http://www.apaitu.com/2010/11/24/helloworld/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 02:31:25 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Zimbra]]></category>

		<guid isPermaLink="false">http://www.apaitu.com/2010/11/24/helloworld/</guid>
		<description><![CDATA[testing..	
]]></description>
			<content:encoded><![CDATA[<p>testing..<span style="white-space: pre" class="Apple-tab-span">	</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.apaitu.com/2010/11/24/helloworld/feed/</wfw:commentRss>
		</item>
		<item>
		<title>XenServer - Windows Guest TCP/IP not working properly after XenTools Update2 Installed</title>
		<link>http://www.apaitu.com/2010/03/11/xenserver-windows-guest-tcpip-not-working-properly-after-xentools-update2-installed/</link>
		<comments>http://www.apaitu.com/2010/03/11/xenserver-windows-guest-tcpip-not-working-properly-after-xentools-update2-installed/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 23:24:00 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.apaitu.com/2010/03/11/xenserver-windows-guest-tcpip-not-working-properly-after-xentools-update2-installed/</guid>
		<description><![CDATA[intermittent communication failure between computers
that are running Windows XP or Windows Server 2003
http://support.microsoft.com/kb/904946/
To work around this problem, turn off checksum offloading on the network adapter. To do this, follow these steps:
1. Click Start, click Run, type regedit, and then click OK.
2. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
3. In the right pane, make sure [...]]]></description>
			<content:encoded><![CDATA[<p>intermitten<wbr></wbr>t communicat<wbr></wbr>ion failure between computers<br />
that are running Windows XP or Windows Server 2003<br />
<a href="http://support.microsoft.com/kb/904946/" class="jive-link-external"><wbr></wbr>http://suppo<wbr></wbr>rt.microsoft<wbr></wbr>.com/kb/9049<wbr></wbr>46/</a><br />
To work around this problem, turn off checksum offloading<wbr></wbr> on the network adapter. To do this, follow these steps:<br />
1. Click Start, click Run, type regedit, and then click OK.<br />
2. Locate and then click the following registry subkey:<br />
HKEY_LOCAL<wbr></wbr>_MACHINE\SYS<wbr></wbr>TEM\CurrentC<wbr></wbr>ontrolSet\Se<wbr></wbr>rvices\Tcpip<wbr></wbr>\Parameters<br />
3. In the right pane, make sure that the DisableTas<wbr></wbr>kOffload registry entry exists. If this entry does not exist, follow these steps to add the entry:<br />
a. On the Edit menu, point to New, and then click DWORD Value.<br />
b. Type DisableTas<wbr></wbr>kOffload, and then press ENTER.<br />
4. Click DisableTas<wbr></wbr>kOffload.<br />
5. On the Edit menu, click Modify.<br />
6. Type 1 in the Value data box, and then press ENTER.<br />
7. Exit Registry Editor.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><span>2. Use the registry editor and locate the <strong>&#8220;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\xennet\nics&#8221;</strong> key. </span></p>
<p><span>3. Each key under <strong>nics</strong> will have an associated MAC address for each VIF.</span></p>
<p><span>4. Locate the <strong>&#8220;IPAddress&#8221;</strong> value and double click to edit. </span></p>
<p><span>5. The value contains two lines, one the IPv4 address of the interface and one an IPv6 address. </span></p>
<p><span>6. Delete the IPv6 address on the second line and leave the IPv4 address. </span></p>
<p><span>7. Under <strong>SubnetMask</strong> key, delete the corresponding subnet value for IPv6.</span></p>
<p><span>8. Reboot the VM.</span></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>1. Install the XenTools and reboot the VM.</p>
<p>2. Use the registry editor and locate the &#8220;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces&#8221; key.</p>
<p>3. Look at settings under each GUID to find the corresponding IPAddress and SubnetMask values.</p>
<p>4. Edit both the &#8220;IPAddress? and ?SubnetMask&#8221; value.</p>
<p><span>5. The value contains two lines, one the IPv4 address of the interface and one an IPv6 address. </span></p>
<p><span>6. Delete the IPv6 address on the second line and leave the IPv4 address.</span></p>
<p><span>7. Under <strong>SubnetMask</strong> key delete the corresponding subnet value for IPv6</span></p>
<p><span>8. Reboot the VM.</span></p>
<p><span>9. VM Networking, VIFs, and XenTools drivers should work as expected.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.apaitu.com/2010/03/11/xenserver-windows-guest-tcpip-not-working-properly-after-xentools-update2-installed/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Unable to Run Windows Update / Upgrade ServicePack sucessfully</title>
		<link>http://www.apaitu.com/2010/01/03/unable-to-run-windows-update-upgrade-servicepack-sucessfully/</link>
		<comments>http://www.apaitu.com/2010/01/03/unable-to-run-windows-update-upgrade-servicepack-sucessfully/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 09:56:53 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.apaitu.com/2010/01/03/unable-to-run-windows-update-upgrade-servicepack-sucessfully/</guid>
		<description><![CDATA[Check C:\Windows\Logs\CBS\CheckSUR.log
Identify the missing part
=================================
Checking System Update Readiness.
Binary Version 6.0.6002.22202
Package Version 6.0
2009-10-04 03:00
Checking Windows Servicing Packages
Checking Package Manifests and Catalogs
Checking Package Watchlist
Checking Component Watchlist
Checking Packages
(f)    CBS MUM Missing    0&#215;00000002    servicing\packages\Package_for_KB961260_server_0~31bf3856ad364e35~amd64~~6.0.1.3.mum
(f)    CBS MUM Missing    0&#215;00000002    servicing\packages\Package_for_KB961260_server~31bf3856ad364e35~amd64~~6.0.1.3.mum
(f)    CBS MUM Missing    0&#215;00000002    servicing\packages\Package_for_KB961260~31bf3856ad364e35~amd64~~6.0.1.3.mum
Checking Component Store
Summary:
Seconds executed: 793
Found 3 errors
CBS MUM Missing Total count: 3
Unavailable repair files:
servicing\packages\Package_for_KB961260_server_0~31bf3856ad364e35~amd64~~6.0.1.3.mum
servicing\packages\Package_for_KB961260_server~31bf3856ad364e35~amd64~~6.0.1.3.mum
servicing\packages\Package_for_KB961260~31bf3856ad364e35~amd64~~6.0.1.3.mum
servicing\packages\Package_for_KB961260_server_0~31bf3856ad364e35~amd64~~6.0.1.3.cat
servicing\packages\Package_for_KB961260_server~31bf3856ad364e35~amd64~~6.0.1.3.cat
servicing\packages\Package_for_KB961260~31bf3856ad364e35~amd64~~6.0.1.3.cat
Download KB961260
Expand the [...]]]></description>
			<content:encoded><![CDATA[<p>Check C:\Windows\Logs\CBS\CheckSUR.log</p>
<p>Identify the missing part<br />
=================================<br />
Checking System Update Readiness.<br />
Binary Version 6.0.6002.22202<br />
Package Version 6.0<br />
2009-10-04 03:00</p>
<p>Checking Windows Servicing Packages</p>
<p>Checking Package Manifests and Catalogs</p>
<p>Checking Package Watchlist</p>
<p>Checking Component Watchlist</p>
<p>Checking Packages<br />
(f)    CBS MUM Missing    0&#215;00000002    servicing\packages\Package_for_KB961260_server_0~31bf3856ad364e35~amd64~~6.0.1.3.mum<br />
(f)    CBS MUM Missing    0&#215;00000002    servicing\packages\Package_for_KB961260_server~31bf3856ad364e35~amd64~~6.0.1.3.mum<br />
(f)    CBS MUM Missing    0&#215;00000002    servicing\packages\Package_for_KB961260~31bf3856ad364e35~amd64~~6.0.1.3.mum</p>
<p>Checking Component Store</p>
<p>Summary:<br />
Seconds executed: 793<br />
Found 3 errors<br />
CBS MUM Missing Total count: 3</p>
<p>Unavailable repair files:<br />
servicing\packages\Package_for_KB961260_server_0~31bf3856ad364e35~amd64~~6.0.1.3.mum<br />
servicing\packages\Package_for_KB961260_server~31bf3856ad364e35~amd64~~6.0.1.3.mum<br />
servicing\packages\Package_for_KB961260~31bf3856ad364e35~amd64~~6.0.1.3.mum<br />
servicing\packages\Package_for_KB961260_server_0~31bf3856ad364e35~amd64~~6.0.1.3.cat<br />
servicing\packages\Package_for_KB961260_server~31bf3856ad364e35~amd64~~6.0.1.3.cat<br />
servicing\packages\Package_for_KB961260~31bf3856ad364e35~amd64~~6.0.1.3.cat</p>
<p>Download KB961260</p>
<p>Expand the MSU files by the following command</p>
<p>EXPAND -F:* IE8-Windows6.0-KB961260-x64.msu C:\temp</p>
<p>and Expand the CAB files</p>
<p>EXPAND -F: IE8-Windows6.0-KB961260-x64.cab C:\temp2</p>
<p>Copy all *.MUM to C:\Windows\servicing\Packages</p>
<p>And Restart again the the Windows Update</p>
]]></content:encoded>
			<wfw:commentRss>http://www.apaitu.com/2010/01/03/unable-to-run-windows-update-upgrade-servicepack-sucessfully/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Failure(&#8221;Error from xenguesthelper: caught exception: Failure(\\\&#8221;Subprocess failure: Failure(\\\\\\\&#8221;xc_dom_linux_build: [2] elf_xen_note_check: ERROR: Not a Xen-ELF image: No ELF \\\\\\\&#8221;)\\\&#8221;)&#8221;)</title>
		<link>http://www.apaitu.com/2009/11/07/failureerror-from-xenguesthelper-caught-exception-failuresubprocess-failure-failurexc_dom_linux_build-2-elf_xen_note_check-error-not-a-xen-elf-image-no-elf/</link>
		<comments>http://www.apaitu.com/2009/11/07/failureerror-from-xenguesthelper-caught-exception-failuresubprocess-failure-failurexc_dom_linux_build-2-elf_xen_note_check-error-not-a-xen-elf-image-no-elf/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 12:33:50 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[xen]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.apaitu.com/2009/11/07/failureerror-from-xenguesthelper-caught-exception-failuresubprocess-failure-failurexc_dom_linux_build-2-elf_xen_note_check-error-not-a-xen-elf-image-no-elf/</guid>
		<description><![CDATA[1) Retrieve the UUID on the GuestVM, say your GuestVM is drbd-01
[root@xenserver-home log]# xe vm-list name-label=drbd-01 params=uuid
uuid ( RO)    : da2a9648-732c-74d6-1cdf-a475a57acc88
2)  Enable the BIOS Order function
[root@xenserver-home log]# xe vm-param-set uuid=da2a9648-732c-74d6-1cdf-a475a57acc88 HVM-boot-policy=&#8221;BIOS order&#8221;
3)  Go to the General Tab of your GuestVM
a) click Properties
b) click Startup Options
c) adjust Boot Order For CentOS.iso in virtual drive you [...]]]></description>
			<content:encoded><![CDATA[<p>1) Retrieve the UUID on the GuestVM, say your GuestVM is drbd-01</p>
<p>[root@xenserver-home log]# xe vm-list name-label=drbd-01 params=uuid<br />
uuid ( RO)    : da2a9648-732c-74d6-1cdf-a475a57acc88</p>
<p>2)  Enable the BIOS Order function</p>
<p>[root@xenserver-home log]# xe vm-param-set uuid=da2a9648-732c-74d6-1cdf-a475a57acc88 HVM-boot-policy=&#8221;BIOS order&#8221;</p>
<p>3)  Go to the General Tab of your GuestVM<br />
a) click Properties<br />
b) click Startup Options<br />
c) adjust Boot Order For CentOS.iso in virtual drive you have mounted with option under the GUI for the xenserver console.</p>
<p>Do all you want inside the Recovery</p>
]]></content:encoded>
			<wfw:commentRss>http://www.apaitu.com/2009/11/07/failureerror-from-xenguesthelper-caught-exception-failuresubprocess-failure-failurexc_dom_linux_build-2-elf_xen_note_check-error-not-a-xen-elf-image-no-elf/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fixing “unsupported protocol”</title>
		<link>http://www.apaitu.com/2009/11/06/fixing-%e2%80%9cunsupported-protocol%e2%80%9d/</link>
		<comments>http://www.apaitu.com/2009/11/06/fixing-%e2%80%9cunsupported-protocol%e2%80%9d/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 08:24:04 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[DirectAdmin]]></category>

		<guid isPermaLink="false">http://www.apaitu.com/2009/11/06/fixing-%e2%80%9cunsupported-protocol%e2%80%9d/</guid>
		<description><![CDATA[cd `pear config-get php_dir`mv .channels .channels-brokenpear update-channels
]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: 'Courier New', Courier, Fixed; font-size: 20px; line-height: normal" class="Apple-style-span">cd `pear config-get php_dir`mv .channels .channels-brokenpear update-channels</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.apaitu.com/2009/11/06/fixing-%e2%80%9cunsupported-protocol%e2%80%9d/feed/</wfw:commentRss>
		</item>
		<item>
		<title>[crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock</title>
		<link>http://www.apaitu.com/2009/09/13/crit-28no-space-left-on-device-mod_rewrite-could-not-create-rewrite_log_lock/</link>
		<comments>http://www.apaitu.com/2009/09/13/crit-28no-space-left-on-device-mod_rewrite-could-not-create-rewrite_log_lock/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 06:51:44 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[DirectAdmin]]></category>

		<guid isPermaLink="false">http://www.apaitu.com/2009/09/13/crit-28no-space-left-on-device-mod_rewrite-could-not-create-rewrite_log_lock/</guid>
		<description><![CDATA[sometime, you can use ipcs and kill them, But this won&#8217;t work always for me.
try to edit your sysctl.conf, and add in this few command
kernel.msgmni = 1024
kernel.sem = 250 256000 32 1024
and sysctl -p
]]></description>
			<content:encoded><![CDATA[<p>sometime, you can use ipcs and kill them, But this won&#8217;t work always for me.</p>
<p>try to edit your sysctl.conf, and add in this few command</p>
<p>kernel.msgmni = 1024<br />
kernel.sem = 250 256000 32 1024</p>
<p>and sysctl -p</p>
]]></content:encoded>
			<wfw:commentRss>http://www.apaitu.com/2009/09/13/crit-28no-space-left-on-device-mod_rewrite-could-not-create-rewrite_log_lock/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Do this before removing a Domain from Plesk</title>
		<link>http://www.apaitu.com/2009/09/13/do-this-before-removing-a-domain-from-plesk/</link>
		<comments>http://www.apaitu.com/2009/09/13/do-this-before-removing-a-domain-from-plesk/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 06:49:58 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.apaitu.com/2009/09/13/do-this-before-removing-a-domain-from-plesk/</guid>
		<description><![CDATA[&#8220;%plesk_bin%\websrvmng.exe&#8221; &#8211;remove-sites-cache
And remove from the Plesk control panel
If that&#8217;s failed. Please run this command, and try delete again.
&#8220;%plesk_bin%\websrvmng.exe&#8221; &#8211;reconfigure-vhost &#8211;vhost-name=&#60;your_domain&#62;
]]></description>
			<content:encoded><![CDATA[<p>&#8220;%plesk_bin%\websrvmng.exe&#8221; &#8211;remove-sites-cache</p>
<p>And remove from the Plesk control panel</p>
<p>If that&#8217;s failed. Please run this command, and try delete again.</p>
<p>&#8220;%plesk_bin%\websrvmng.exe&#8221; &#8211;reconfigure-vhost &#8211;vhost-name=&lt;your_domain&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.apaitu.com/2009/09/13/do-this-before-removing-a-domain-from-plesk/feed/</wfw:commentRss>
		</item>
		<item>
		<title>mdadm</title>
		<link>http://www.apaitu.com/2009/09/04/mdadm/</link>
		<comments>http://www.apaitu.com/2009/09/04/mdadm/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 06:51:05 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.apaitu.com/2009/09/04/mdadm/</guid>
		<description><![CDATA[
Mdadm Cheat Sheet
Mdadm is the modern tool most Linux distributions use these days to manage software RAIDarrays; in the past raidtools was the tool we have used for this. This cheat sheet will show the most common usages of mdadm to manage software raid arrays; it assumes you have a good understanding of software RAID and Linux in general, and it [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Verdana; line-height: 24px; color: #333333" class="Apple-style-span"><br />
<h1 style="padding-top: 10px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; font-family: 'Trebuchet MS', Tahoma, Verdana, sans-serif; font-weight: bold; font-size: 25px; color: #75a54b; background-color: inherit; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #eff0f1; margin: 0px"><a href="http://www.ducea.com/2009/03/08/mdadm-cheat-sheet/" style="color: #75a54b; background-color: inherit; text-decoration: none; padding: 0px; margin: 0px" title="Permanent Link to Mdadm Cheat Sheet" rel="bookmark">Mdadm Cheat Sheet</a></h1>
<p style="padding: 5px; margin: 0px"><strong style="padding: 0px; margin: 0px">Mdadm </strong>is the modern tool most Linux distributions use these days to manage <strong style="padding: 0px; margin: 0px">software RAID</strong>arrays; in the past <em style="padding: 0px; margin: 0px">raidtools </em>was the tool we have used for this. This cheat sheet will show the most <em style="padding: 0px; margin: 0px">common usages of mdadm</em> to manage software raid arrays; it assumes you have a good understanding of software RAID and Linux in general, and it will just explain the commands line usage of mdadm. The examples bellow use RAID1, but they can be adapted for any RAID level the Linux kernel driver supports.</p>
<h3 style="font-family: 'Trebuchet MS', Tahoma, Verdana, sans-serif; font-weight: bold; font-size: 20px; color: #404040; padding: 5px; margin: 0px">1. Create a new RAID array</h3>
<p style="padding: 5px; margin: 0px">Create (mdadm –create) is used to create a new array:<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">mdadm --create --verbose /dev/md0 --level=1 /dev/sda1 /dev/sdb2</code><br style="padding: 0px; margin: 0px" /><span style="padding: 0px; margin: 0px" id="more-691"></span>or using the compact notation:<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">mdadm -Cv /dev/md0 -l1 -n2 /dev/sd[ab]1</code></p>
<h3 style="font-family: 'Trebuchet MS', Tahoma, Verdana, sans-serif; font-weight: bold; font-size: 20px; color: #404040; padding: 5px; margin: 0px">2. /etc/mdadm.conf</h3>
<p style="padding: 5px; margin: 0px">/etc/mdadm.conf or /etc/mdadm/mdadm.conf (on debian) is the main configuration file for mdadm. After we create our RAID arrays we add them to this file using:<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">mdadm --detail --scan &gt;&gt; /etc/mdadm.conf</code><br style="padding: 0px; margin: 0px" />or on debian<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">mdadm --detail --scan &gt;&gt; /etc/mdadm/mdadm.conf</code></p>
<h3 style="font-family: 'Trebuchet MS', Tahoma, Verdana, sans-serif; font-weight: bold; font-size: 20px; color: #404040; padding: 5px; margin: 0px">3. Remove a disk from an array</h3>
<p style="padding: 5px; margin: 0px">We can’t remove a disk directly from the array, unless it is failed, so we first have to fail it (if the drive it is failed this is normally already in failed state and this step is not needed):<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">mdadm --fail /dev/md0 /dev/sda1</code><br style="padding: 0px; margin: 0px" />and now we can remove it:<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">mdadm --remove /dev/md0 /dev/sda1</code></p>
<p style="padding: 5px; margin: 0px">This can be done in a single step using:<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">mdadm /dev/md0 --fail /dev/sda1 --remove /dev/sda1</code></p>
<h3 style="font-family: 'Trebuchet MS', Tahoma, Verdana, sans-serif; font-weight: bold; font-size: 20px; color: #404040; padding: 5px; margin: 0px">4. Add a disk to an existing array</h3>
<p style="padding: 5px; margin: 0px">We can add a new disk to an array (replacing a failed one probably):<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">mdadm --add /dev/md0 /dev/sdb1</code></p>
<h3 style="font-family: 'Trebuchet MS', Tahoma, Verdana, sans-serif; font-weight: bold; font-size: 20px; color: #404040; padding: 5px; margin: 0px">5. Verifying the status of the RAID arrays</h3>
<p style="padding: 5px; margin: 0px">We can check the status of the arrays on the system with:<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">cat /proc/mdstat</code><br style="padding: 0px; margin: 0px" />or<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">mdadm --detail /dev/md0</code></p>
<p style="padding: 5px; margin: 0px">The output of this command will look like:</p>
<pre style="text-align: left; display: block; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; padding: 5px; margin: 0px"><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sdb1[1] sda1[0] 104320 blocks [2/2] [UU]  md1 : active raid1 sdb3[1] sda3[0] 19542976 blocks [2/2] [UU]  md2 : active raid1 sdb4[1] sda4[0] 223504192 blocks [2/2] [UU]</code></pre>
<p style="padding: 5px; margin: 0px">here we can see both drives are used and working fine – <strong style="padding: 0px; margin: 0px">U</strong>. A failed drive will show as <strong style="padding: 0px; margin: 0px">F</strong>, while a degraded array will miss the second disk <strong style="padding: 0px; margin: 0px">-</strong></p>
<p style="padding: 5px; margin: 0px">Note: while monitoring the status of a RAID rebuild operation using watch can be useful:<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">watch cat /proc/mdstat</code></p>
<h3 style="font-family: 'Trebuchet MS', Tahoma, Verdana, sans-serif; font-weight: bold; font-size: 20px; color: #404040; padding: 5px; margin: 0px">6. Stop and delete a RAID array</h3>
<p style="padding: 5px; margin: 0px">If we want to completely remove a raid array we have to stop if first and then remove it:<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">mdadm --stop /dev/md0<br style="padding: 0px; margin: 0px" />mdadm &#8211;remove /dev/md0</code><br style="padding: 0px; margin: 0px" />and finally we can even delete the superblock from the individual drives:<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">mdadm --zero-superblock /dev/sda</code></p>
<p style="padding: 5px; margin: 0px">Finally in using RAID1 arrays, where we create <strong style="padding: 0px; margin: 0px">identical partitions</strong> on both drives this can be useful to copy the partitions from sda to sdb:<br style="padding: 0px; margin: 0px" /><code style="text-align: left; display: block; overflow-x: auto; overflow-y: auto; font: normal normal 500 1em/1.5em 'Lucida Console', 'courier new', monospace; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #fafafa; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 2px; border-top-color: #f2f2f2; border-right-color: #f2f2f2; border-bottom-color: #f2f2f2; border-left-color: #557799; border-style: solid; padding: 5px; margin: 0px">sfdisk -d /dev/sda | sfdisk /dev/sdb</code></p>
<p style="padding: 5px; margin: 0px">(this will dump the partition table of sda, removing completely the existing partitions on sdb, so be sure you want this before running this command, as it will not warn you at all).</p>
<p style="padding: 5px; margin: 0px">There are many other usages of <strong style="padding: 0px; margin: 0px">mdadm </strong>particular for each type of RAID level, and I would recommend to use the manual page (<em style="padding: 0px; margin: 0px">man mdadm</em>) or the help (<em style="padding: 0px; margin: 0px">mdadm –help</em>) if you need more details on its usage. Hopefully these quick examples will put you on the fast track with how mdadm works.</p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.apaitu.com/2009/09/04/mdadm/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Upgrade to PHP 5.3 at CentOS 5.3</title>
		<link>http://www.apaitu.com/2009/08/31/upgrade-to-php-53-at-centos-53/</link>
		<comments>http://www.apaitu.com/2009/08/31/upgrade-to-php-53-at-centos-53/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 18:16:55 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.apaitu.com/2009/08/31/upgrade-to-php-53-at-centos-53/</guid>
		<description><![CDATA[

rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy


cd /etc/yum.repos.d/
wget http://repo.webtatic.com/yum/webtatic.repo


yum --enablerepo=webtatic update php



]]></description>
			<content:encoded><![CDATA[<p class="wp_syntax">
<p class="code">
<pre class="sh" style="font-family: monospace">rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy</pre>
<p class="wp_syntax">
<p class="code">
<pre class="sh" style="font-family: monospace">cd /etc/yum.repos.d/
wget http://repo.webtatic.com/yum/webtatic.repo</pre>
<p class="wp_syntax">
<p class="code">
<pre class="sh" style="font-family: monospace">yum --enablerepo=webtatic update php</pre>
<pre class="sh" style="font-family: monospace"></pre>
<input id="gwProxy" type="hidden" /><!--Session data--><br />
<input onclick="jsCall();" id="jsProxy" type="hidden" />
]]></content:encoded>
			<wfw:commentRss>http://www.apaitu.com/2009/08/31/upgrade-to-php-53-at-centos-53/feed/</wfw:commentRss>
		</item>
		<item>
		<title>heartbeat tool - hb_gui</title>
		<link>http://www.apaitu.com/2009/08/22/heartbeat-tool-hb_gui/</link>
		<comments>http://www.apaitu.com/2009/08/22/heartbeat-tool-hb_gui/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 08:24:11 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.apaitu.com/2009/08/22/heartbeat-tool-hb_gui/</guid>
		<description><![CDATA[Very Good!


]]></description>
			<content:encoded><![CDATA[<p>Very Good!</p>
<input id="gwProxy" type="hidden" /><!--Session data--><br />
<input onclick="jsCall();" id="jsProxy" type="hidden" />
]]></content:encoded>
			<wfw:commentRss>http://www.apaitu.com/2009/08/22/heartbeat-tool-hb_gui/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

