<?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>IT Support Blog &#187; Ubuntu</title>
	<atom:link href="http://www.aionsolution.com/blog/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aionsolution.com/blog</link>
	<description>[IT Problem Resolved]</description>
	<lastBuildDate>Mon, 12 Dec 2011 10:34:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Linux log files</title>
		<link>http://www.aionsolution.com/blog/linux/linux-log-files/</link>
		<comments>http://www.aionsolution.com/blog/linux/linux-log-files/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 04:29:02 +0000</pubDate>
		<dc:creator>aionman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.aionsolution.com/blog/?p=345</guid>
		<description><![CDATA[Linux Log files and usage =&#62; /var/log/messages : General log messages =&#62; /var/log/boot : System boot log =&#62; /var/log/debug : Debugging log messages =&#62; /var/log/auth.log : User login and authentication logs =&#62; /var/log/daemon.log : Running services such as squid, ntpd and others log message to this file =&#62; /var/log/dmesg : Linux kernel ring buffer log [...]]]></description>
			<content:encoded><![CDATA[<p>Linux Log files and usage</p>
<p>=&gt; /var/log/messages : General log messages</p>
<p>=&gt; /var/log/boot : System boot log</p>
<p>=&gt; /var/log/debug : Debugging log messages</p>
<p>=&gt; /var/log/auth.log : User login and authentication logs</p>
<p>=&gt; /var/log/daemon.log : Running services such as squid, ntpd and others log message to this file</p>
<p>=&gt; /var/log/dmesg : Linux kernel ring buffer log</p>
<p>=&gt; /var/log/dpkg.log : All binary package log includes package installation and other information</p>
<p>=&gt; /var/log/faillog : User failed login log file</p>
<p>=&gt; /var/log/kern.log : Kernel log file</p>
<p>=&gt; /var/log/lpr.log : Printer log file</p>
<p>=&gt; /var/log/mail.* : All mail server message log files</p>
<p>=&gt; /var/log/mysql.* : MySQL server log file</p>
<p>=&gt; /var/log/user.log : All userlevel logs</p>
<p>=&gt; /var/log/xorg.0.log : X.org log file</p>
<p>=&gt; /var/log/apache2/* : Apache web server log files directory</p>
<p>=&gt; /var/log/lighttpd/* : Lighttpd web server log files directory</p>
<p>=&gt; /var/log/fsck/* : fsck command log</p>
<p>=&gt; /var/log/apport.log : Application crash report / log file</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aionsolution.com/blog/linux/linux-log-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ssh takes a long time to connect or log in</title>
		<link>http://www.aionsolution.com/blog/linux/ssh-takes-a-long-time-to-connect-or-log-in/</link>
		<comments>http://www.aionsolution.com/blog/linux/ssh-takes-a-long-time-to-connect-or-log-in/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 01:07:24 +0000</pubDate>
		<dc:creator>aionman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.aionsolution.com/blog/?p=332</guid>
		<description><![CDATA[Large delays (more than 10 seconds) are typically caused by a problem with name resolution: Some versions of glibc (notably glibc 2.1 shipped with Red Hat 6.1) can take a long time to resolve &#8220;IPv6 or IPv4&#8243; addresses from domain names. This can be worked around with by specifying AddressFamily inet option in ssh_config. There may be [...]]]></description>
			<content:encoded><![CDATA[<p>Large delays (more than 10 seconds) are typically caused by a problem with name resolution:</p>
<ul>
<li>Some versions of glibc (notably glibc 2.1 shipped with Red Hat 6.1) can take a long time to resolve &#8220;IPv6 or IPv4&#8243; addresses from domain names. This can be worked around with by specifying <strong>AddressFamily inet</strong> option in <em>ssh_config</em>.</li>
<li>There may be a DNS lookup problem, either at the client or server. You can use the <code>nslookup</code> command to check this on both client and server by looking up the other end&#8217;s name and IP address. In addition, on the server look up the name returned by the client&#8217;s IP-name lookup. You can disable most of the server-side lookups by setting <strong>UseDNS no</strong> in <em>sshd_config</em>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.aionsolution.com/blog/linux/ssh-takes-a-long-time-to-connect-or-log-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04 vnc-based login server</title>
		<link>http://www.aionsolution.com/blog/ubuntu/ubuntu-10-04-vnc-based-login-server/</link>
		<comments>http://www.aionsolution.com/blog/ubuntu/ubuntu-10-04-vnc-based-login-server/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 14:51:27 +0000</pubDate>
		<dc:creator>aionman</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.aionsolution.com/blog/?p=322</guid>
		<description><![CDATA[Ubuntu 10.04 vnc-based login server This recipe is for setting up a VNC login server. This allows you to use a VNC client to access a full GUI on a remote server. If instead you want to get VNC access to your desktop (or share with other users) you need to enable remote desktop. VNC [...]]]></description>
			<content:encoded><![CDATA[<h3>Ubuntu 10.04 vnc-based login server</h3>
<div>This recipe is for setting up a VNC login server. This allows you to use a VNC client to access a full GUI on a remote server. If instead you want to get VNC access to your desktop (or share with other users) you need to enable remote desktop.</p>
<p>VNC connections are not encrypted so if you connect directly to the VNC server any login details will be sent in the clear.</p>
<p>Install the required packages:</p>
<p><code>sudo apt-get install vnc4server xinetd gdm<br />
</code></p>
<p>Restrict GDM to only listening to localhost by adding the following to<tt>/etc/hosts.allow</tt>:</p>
<p><code>gdm: ip6-localhost<br />
</code></p>
<p>Enable XDMCP in GDM by setting up <tt>/etc/gdm/custom.conf</tt> as:</p>
<p><code># GDM configuration storage</p>
<p>[daemon]</p>
<p>[security]</p>
<p>[xdmcp]<br />
Enable=true<br />
HonorIndirect=false<br />
# following line fixes a problem with login/logout<br />
DisplaysPerHost=2</p>
<p>[greeter]</p>
<p>[chooser]</p>
<p>[debug]<br />
</code></p>
<p>Create a new xinetd service <tt>/etc/xinetd.d/Xvnc</tt> (adjust geometry to get different screen sizes):</p>
<p><code>service Xvnc<br />
{<br />
type = UNLISTED<br />
disable = no<br />
socket_type = stream<br />
protocol = tcp<br />
wait = no<br />
user = nobody<br />
server = /usr/bin/Xvnc<br />
server_args = -inetd -query ip6-localhost -geometry 1280x800 -depth 16 -cc 3 -once -SecurityTypes=none<br />
port = 5901<br />
}<br />
</code></p>
<p>Restart gdm (which will close any current logins!) and xinetd:</p>
<p><code>sudo service gdm restart<br />
sudo /etc/init.d/xinetd restart<br />
</code></p>
<p>You can then connect to the VNC server using:</p>
<p><code>vncviewer localhost:5901</code></div>
]]></content:encoded>
			<wfw:commentRss>http://www.aionsolution.com/blog/ubuntu/ubuntu-10-04-vnc-based-login-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Java Plugin on Firefox 3.6</title>
		<link>http://www.aionsolution.com/blog/linux/enable-java-plugin-on-firefox-3-6/</link>
		<comments>http://www.aionsolution.com/blog/linux/enable-java-plugin-on-firefox-3-6/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 08:50:27 +0000</pubDate>
		<dc:creator>aionman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.aionsolution.com/blog/?p=299</guid>
		<description><![CDATA[Pre-requisites. I don’t know how much of it its really needed, but I install the whole Sun’s Java 6 packages, $ sudo apt-get install sun-java6-jdk sun-java-6-jre sun-java6-pluging sun-java6-source sun-java6-bin For sure you’ll need the jdk and plugin one… If your internet connection is slow you might try installing these two first and try the above [...]]]></description>
			<content:encoded><![CDATA[<h2>Pre-requisites.</h2>
<p>I don’t know how much of it its really needed, but I install the whole Sun’s Java 6 packages,</p>
<blockquote>
<pre>$ sudo apt-get install sun-java6-jdk sun-java-6-jre sun-java6-pluging
   sun-java6-source sun-java6-bin</pre>
</blockquote>
<p>For sure you’ll need the jdk and plugin one… If your internet  connection is slow you might try installing these two first and try the  above command.</p>
<h2>Configuration of Java for Mozilla.</h2>
<p>For  enable Java plugin on Firefox 3.6,</p>
<blockquote>
<pre>$ sudo update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so \
   mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so 50</pre>
</blockquote>
<p>Now it’s time to restart your browser.</p>
<p>For checking that the plugin is enabled, open your Firefox browser and type</p>
<blockquote>
<pre>about:plugins</pre>
</blockquote>
<p>in the address line, there must be the Java application enabled.</p>
<p>﻿</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aionsolution.com/blog/linux/enable-java-plugin-on-firefox-3-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Query an IBM ServeRAID adapter on the CLI</title>
		<link>http://www.aionsolution.com/blog/ubuntu/query-an-ibm-serveraid-adapter-on-the-cli/</link>
		<comments>http://www.aionsolution.com/blog/ubuntu/query-an-ibm-serveraid-adapter-on-the-cli/#comments</comments>
		<pubDate>Tue, 11 May 2010 15:53:48 +0000</pubDate>
		<dc:creator>aionman</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.aionsolution.com/blog/?p=280</guid>
		<description><![CDATA[I quickly needed to determine the status of a RAID array that sat on an IBM ServeRAID adapter. The boxen was running Ubuntu 8.04 x86_32, I didnt want to install RaidManager nor did I want to install a debian package. Here&#8217;s how. $ wget http://hwraid.le-vert.net/debian/pool-lenny/arcconf_6.10.18451-1_i386.deb $ ar -x arcconf_6.10.18451-1_i386.deb $ tar zxvf data.tar.gz $ sudo [...]]]></description>
			<content:encoded><![CDATA[<p>I quickly needed to determine the status of a RAID array that sat on an IBM ServeRAID adapter. The boxen was running Ubuntu 8.04 x86_32, I didnt want to install RaidManager nor did I want to install a debian package. Here&#8217;s how.</p>
<p>$ wget http://hwraid.le-vert.net/debian/pool-lenny/arcconf_6.10.18451-1_i386.deb<br />
$ ar -x arcconf_6.10.18451-1_i386.deb<br />
$ tar zxvf data.tar.gz<br />
$ sudo ./usr/sbin/arcconf GETCONFIG 1</p>
<p>you may need to install binutils package to run &#8220;ar&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aionsolution.com/blog/ubuntu/query-an-ibm-serveraid-adapter-on-the-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install ioncube in ubuntu</title>
		<link>http://www.aionsolution.com/blog/linux/install-ioncube-in-ubuntu/</link>
		<comments>http://www.aionsolution.com/blog/linux/install-ioncube-in-ubuntu/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 02:39:27 +0000</pubDate>
		<dc:creator>aionman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.aionsolution.com/blog/?p=276</guid>
		<description><![CDATA[IonCube protects software written using the PHP programming language from being viewed, changed, and run on unlicensed computers. 1. Download ionCube loaders sudo wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz 2. Extract sudo tar zxvf ioncube_loaders_lin_x86.tar.gz 3. Move to a permanent location sudo mv ioncube /usr/local/ 4. Add reference to your php.ini file (sudo pico /etc/php5/apache2/php.ini) zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so There [...]]]></description>
			<content:encoded><![CDATA[<div class="post-header">IonCube protects software written using the PHP programming language from being viewed, changed, and run on unlicensed computers.</div>
<p>1. Download ionCube loaders</p>
<p><code>sudo wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz<br />
</code></p>
<p>2. Extract</p>
<p><code>sudo tar zxvf ioncube_loaders_lin_x86.tar.gz<br />
</code></p>
<p>3. Move to a permanent location</p>
<p><code>sudo mv ioncube /usr/local/<br />
</code></p>
<p>4. Add reference to your php.ini file (sudo pico /etc/php5/apache2/php.ini)</p>
<p><code>zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so<br />
</code></p>
<p><em>There are a few versions of the loader in the tar archive. Use the one that matches your PHP version.</em></p>
<p>5. Restart apache</p>
<p><code>sudo /etc/init.d/apache2 restart</code></p>
<p>6. check installation using following command:<br />
php -v<br />
you should see following output:</p>
<p>PHP 5.1.6 (cli) (built: Apr 7 2009 08:00:04)<br />
Copyright (c) 1997-2006 The PHP Group<br />
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies<br />
with the ionCube PHP Loader v3.1.34, Copyright (c) 2002-2009, by ionCube Ltd.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aionsolution.com/blog/linux/install-ioncube-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cloning VMs on Linux Hosts with VMWare Server 2.0</title>
		<link>http://www.aionsolution.com/blog/ubuntu/cloning-vms-on-linux-hosts-with-vmware-server-20/</link>
		<comments>http://www.aionsolution.com/blog/ubuntu/cloning-vms-on-linux-hosts-with-vmware-server-20/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 15:05:38 +0000</pubDate>
		<dc:creator>aionman</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.aionsolution.com/blog/?p=266</guid>
		<description><![CDATA[think it&#8217;s a MAJOR pain not having a &#8220;clone&#8221; feature in VMWare Server without using Virtual Infrastructure, so I made my own Linux shell scripts to do it. The clone script does a straight clone of a VM. It copies the directory, renames the files and tweaks all the text inside the files by using [...]]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 12px;"><span class="Apple-converted-space"> </span>think it&#8217;s a MAJOR pain not having a &#8220;clone&#8221; feature in VMWare Server without using Virtual Infrastructure, so I made my own Linux shell scripts to do it.</span></span></p>
<p>The clone script does a straight clone of a VM. It copies the directory, renames the files and tweaks all the text inside the files by using sed to replace the old name with the new one, then sets all the permissions to what they would be if you created a new VM.</p>
<p>The rename script basically does all but copy it. This is handy for if you tried to rename a directory manually or attempted a manual copy and then found it still shows up under the old name in the web console. Remember this one assumes you have already renamed the directory to the new name and it MUST be the same as what you intend for the new name to be.</p>
<p>Both work the same way&#8230; scriptname &lt;old name&gt; &lt;new name&gt;</p>
<p>You can use quotes around the names if there are spaces, I went to great lengths to make sure it would still work with spaces in names (although I personally hate spaces).</p>
<p>Save the scripts to the base directory where your VM&#8217;s are, &#8220;standard&#8221; location is &#8220;/var/lib/vmware/Virtual Machines&#8221;. Make executable with chmod +x &lt;scriptname&gt;.</p>
<p>Once ran, add the new/renamed VM to the web console and choose &#8220;I copied it&#8221; or &#8220;I moved it&#8221; as appropriate.</p>
<p>These scripts are offered free to everyone to use, modify, or do anything else you want with except take credit for the original version. Absolutely no warranty or guarantee of any kind on the part of anyone that they won&#8217;t hose your VMs or even your whole system.</p>
<p style="line-height: 18px; margin: 0px 0px 18px; padding: 0px 0px 15px;">If I understand correctly how the split disks work, the 3rd file attached (clone-split-disk.sh) should work for those VM&#8217;s. I have not tested it myself and will likely not get a chance anytime soon, so I will rely on feedback from the community for any near-future tweaking. This is really just a change to one line (line 34) in the file &#8211; in the original we exclude the binary .vmdk file from parsing to find-and-replace since this is how single-disk-file versions are saved; in this version we exclude -f???.vmdk where &#8220;?&#8221; is a number between 0-9 (i.e. files like -f001.vmdk, -f002.vmdk, etc) while we parse the .vmdk file since with split disks, the .vmdk is a text file describing the -f???.vmdk binary disk files.<span class="Apple-converted-space"> </span><strong>IF</strong><span class="Apple-converted-space"> </span>you use a combination of split disks and single-file disks, probably neither one of these will work &#8211; maybe in a future version I will be able to merge the two scripts and add logic to tell the disk types apart.</p>
<p style="line-height: 18px; margin: 0px 0px 18px; padding: 0px 0px 15px;"><a href="http://www.aionsolution.com/blog/wp-content/uploads/2010/04/change_name.sh"><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family:  Arial; font-style: normal; font-variant: normal; font-weight: normal;  letter-spacing: normal; line-height: normal; orphans: 2; text-indent:  0px; text-transform: none; white-space: normal; widows: 2; word-spacing:  0px; font-size: medium;"><span class="Apple-style-span" style="color: #333333; font-family:  Arial,Helvetica,sans-serif; font-size: 12px;"></span></span></a><a href="http://www.aionsolution.com/blog/wp-content/uploads/2010/04/clone_vm.sh"><a href="http://www.aionsolution.com/blog/wp-content/uploads/2010/04/clone_vm.sh">clone_vm</a><br />
</a><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family:  Arial; font-style: normal; font-variant: normal; font-weight: normal;  letter-spacing: normal; line-height: normal; orphans: 2; text-indent:  0px; text-transform: none; white-space: normal; widows: 2; word-spacing:  0px; font-size: medium;"><span class="Apple-style-span" style="color: #333333; font-family:  Arial,Helvetica,sans-serif; font-size: 12px;"><span class="Apple-converted-space"><a href="http://www.aionsolution.com/blog/wp-content/uploads/2010/04/change_name.sh">change_name</a><br />
<a href="http://www.aionsolution.com/blog/wp-content/uploads/2010/04/clone-split-disk.sh">clone-split-disk</a><br />
</span></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aionsolution.com/blog/ubuntu/cloning-vms-on-linux-hosts-with-vmware-server-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup Ubuntu + pureftpd + pureAdmin</title>
		<link>http://www.aionsolution.com/blog/ubuntu/setup-ubuntu-pureftpd-pureadmin/</link>
		<comments>http://www.aionsolution.com/blog/ubuntu/setup-ubuntu-pureftpd-pureadmin/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 02:39:49 +0000</pubDate>
		<dc:creator>aionman</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.aionsolution.com/blog/?p=240</guid>
		<description><![CDATA[# sudo -s # apt-get install pure-ftpd pureadmin Create the user and group accounts: sudo groupadd ftpgroup sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser sudo mkdir /home/ftpusers sudo chown -R ftpuser:ftpgroup /home/ftpusers # pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe Type in the password when prompted for the new user twice. Create the [...]]]></description>
			<content:encoded><![CDATA[<p># sudo -s<br />
# apt-get install pure-ftpd pureadmin</p>
<p>Create the user and group accounts:</p>
<p>sudo groupadd ftpgroup<br />
sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser</p>
<p>sudo mkdir /home/ftpusers<br />
sudo chown -R ftpuser:ftpgroup /home/ftpusers</p>
<p># pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe<br />
Type in the password when prompted for the new user twice.</p>
<p>Create the database and make sure that the pure-ftpd configuration strictly uses the pdb file for managing accounts:</p>
<p># pure-pw mkdb<br />
# ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB<br />
# gedit /etc/pure-ftpd/conf/PAMAuthentication<br />
Change yes into no (or yes to allow system users to logon)</p>
<p>Make sure that a backup file (.PAMAuthentication~) isn&#8217;t created because it will create a conflict when trying to restart service. Using PAM can allow public access to administrative accounts using pure-ftpd, that&#8217;s why I disable it within pure-ftpd. I prefer it off so I can strictly use virtual accounts maintained within the pdb file.</p>
<p>Finally it&#8217;s time to enable the pdb file and yes you do have to stop the server in order to avoid errors stating that the port is already in use.</p>
<p># /etc/init.d/pure-ftpd stop<br />
# /usr/sbin/pure-ftpd -j -lpuredb:/etc/pure-ftpd/pureftpd.pdb &amp;<br />
# /etc/init.d/pure-ftpd start</p>
<p>It works great and is very simple to administer with PureAdmin. Most of the virtual user creation can be done there. Saves a lot of time. The visual log helps out a bit too.</p>
<p>Later you can use<br />
#pure-ftpd-control restart<br />
May need to add<br />
# ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/50PureDB to allow it to point to .pdb</p>
<p><span class="Apple-style-span" style="background-color: transparent; border-collapse: separate; color: #000000; font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="font-family: Verdana,Arial,Tahoma; font-size: 12px;">Restarting ftp server: Running: /usr/sbin/pure-ftpd -l puredb:/etc/pure-ftpd/pureftpd.pdb -u 1000 -E -O clf:/var/log/pure-ftpd/transfer.log -j -B</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aionsolution.com/blog/ubuntu/setup-ubuntu-pureftpd-pureadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing A Failed Hard Drive In A Software RAID1/5 Array</title>
		<link>http://www.aionsolution.com/blog/linux/replacing-a-failed-hard-drive-in-a-software-raid15-array/</link>
		<comments>http://www.aionsolution.com/blog/linux/replacing-a-failed-hard-drive-in-a-software-raid15-array/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 01:05:20 +0000</pubDate>
		<dc:creator>aionman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.aionsolution.com/blog/?p=238</guid>
		<description><![CDATA[Replacing A Failed Hard Drive In A Software RAID1 Array Version 1.0 Author: Falko Timme &#60;ft [at] falkotimme [dot] com&#62; Last edited 01/21/2007 This guide shows how to remove a failed hard drive from a Linux RAID1/5 array (software RAID), and how to add a new hard disk to the RAID1/5 array without losing data. [...]]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="background-color: #ffffff; border-collapse: separate; color: #000000; font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="border-collapse: collapse; font-family: verdana,sans-serif; font-size: 12px; line-height: 18px;"></p>
<h2 style="border-bottom: 1px solid #cccccc; margin: 1em 0px 0.2em; padding: 0px 0px 0.1em; font-family: arial,verdana,sans-serif; font-weight: normal; font-size: 19px; color: #000000;">Replacing A Failed Hard Drive In A Software RAID1 Array</h2>
<p style="margin: 0px 0px 0.8em; padding: 0px;">Version 1.0<span class="Apple-converted-space"> </span><br style="margin: 0px; padding: 0px;" />Author: Falko Timme &lt;ft [at] falkotimme [dot] com&gt;<span class="Apple-converted-space"> </span><br style="margin: 0px; padding: 0px;" />Last edited 01/21/2007</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">This guide shows how to remove a failed hard drive from a Linux RAID1/5 array (software RAID), and how to add a new hard disk to the RAID1/5 array without losing data.</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">Take RAID1 as an example.</p>
<h3 style="border-bottom: 1px solid #cccccc; margin: 1em 0px 0px; padding: 0px 0px 0.2em; font-family: arial,verdana,sans-serif; font-weight: bold; font-size: 14px;">1 Preliminary Note</h3>
<p style="margin: 0px 0px 0.8em; padding: 0px;">I have two hard drives,<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sda</span><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb</span>, with the partitions<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sda1</span><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sda2</span><span class="Apple-converted-space"> </span>as well as<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb1</span><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb2</span>.</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;"><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sda1</span><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb1</span><span class="Apple-converted-space"> </span>make up the RAID1 array<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/md0</span>.</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;"><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sda2</span><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb2</span><span class="Apple-converted-space"> </span>make up the RAID1 array<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/md1</span>.</p>
<p class="system" style="margin: 0px 0px 0.8em; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sda1 + /dev/sdb1 = /dev/md0</p>
<p class="system" style="margin: 0px 0px 0.8em; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sda2 + /dev/sdb2 = /dev/md1</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;"><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb</span><span class="Apple-converted-space"> </span>has failed, and we want to replace it.</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">
<h3 style="border-bottom: 1px solid #cccccc; margin: 1em 0px 0px; padding: 0px 0px 0.2em; font-family: arial,verdana,sans-serif; font-weight: bold; font-size: 14px;">2 How Do I Tell If A Hard Disk Has Failed?</h3>
<p style="margin: 0px 0px 0.8em; padding: 0px;">If a disk has failed, you will probably find a lot of error messages in the log files, e.g.<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/var/log/messages</span><span class="Apple-converted-space"> </span>or<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/var/log/syslog</span>.</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">You can also run</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">cat /proc/mdstat</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">and instead of the string<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">[UU]</span><span class="Apple-converted-space"> </span>you will see<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">[U_]</span><span class="Apple-converted-space"> </span>if you have a degraded RAID1 array.</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">
<h3 style="border-bottom: 1px solid #cccccc; margin: 1em 0px 0px; padding: 0px 0px 0.2em; font-family: arial,verdana,sans-serif; font-weight: bold; font-size: 14px;">3 Removing The Failed Disk</h3>
<p style="margin: 0px 0px 0.8em; padding: 0px;">To remove<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb</span>, we will mark<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb1</span><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb2</span><span class="Apple-converted-space"> </span>as failed and remove them from their respective RAID arrays (<span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/md0</span><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/md1</span>).</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">First we mark<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb1</span><span class="Apple-converted-space"> </span>as failed:</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">mdadm &#8211;manage /dev/md0 &#8211;fail /dev/sdb1</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">The output of</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">cat /proc/mdstat</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">should look like this:</p>
<p class="system" style="margin: 0px 0px 0.8em; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">server1:~# cat /proc/mdstat<br style="margin: 0px; padding: 0px;" />Personalities : [linear] [multipath] [raid0] [raid1] [raid5] [raid4] [raid6] [raid10]<br style="margin: 0px; padding: 0px;" />md0 : active raid1 sda1[0] sdb1[2](F)<br style="margin: 0px; padding: 0px;" /> 24418688 blocks [2/1] [U_]<br style="margin: 0px; padding: 0px;" /><br style="margin: 0px; padding: 0px;" />md1 : active raid1 sda2[0] sdb2[1]<br style="margin: 0px; padding: 0px;" /> 24418688 blocks [2/2] [UU]<br style="margin: 0px; padding: 0px;" /><br style="margin: 0px; padding: 0px;" />unused devices: &lt;none&gt;</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">Then we remove<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb1</span><span class="Apple-converted-space"> </span>from<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/md0</span>:</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">mdadm &#8211;manage /dev/md0 &#8211;remove /dev/sdb1</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">The output should be like this:</p>
<p class="system" style="margin: 0px 0px 0.8em; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">server1:~# mdadm &#8211;manage /dev/md0 &#8211;remove /dev/sdb1<br style="margin: 0px; padding: 0px;" />mdadm: hot removed /dev/sdb1</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">And</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">cat /proc/mdstat</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">should show this:</p>
<p class="system" style="margin: 0px 0px 0.8em; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">server1:~# cat /proc/mdstat<br style="margin: 0px; padding: 0px;" />Personalities : [linear] [multipath] [raid0] [raid1] [raid5] [raid4] [raid6] [raid10]<br style="margin: 0px; padding: 0px;" />md0 : active raid1 sda1[0]<br style="margin: 0px; padding: 0px;" /> 24418688 blocks [2/1] [U_]<br style="margin: 0px; padding: 0px;" /><br style="margin: 0px; padding: 0px;" />md1 : active raid1 sda2[0] sdb2[1]<br style="margin: 0px; padding: 0px;" /> 24418688 blocks [2/2] [UU]<br style="margin: 0px; padding: 0px;" /><br style="margin: 0px; padding: 0px;" />unused devices: &lt;none&gt;</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">Now we do the same steps again for<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb2</span><span class="Apple-converted-space"> </span>(which is part of<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/md1</span>):</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">mdadm &#8211;manage /dev/md1 &#8211;fail /dev/sdb2</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">cat /proc/mdstat</p>
<p class="system" style="margin: 0px 0px 0.8em; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">server1:~# cat /proc/mdstat<br style="margin: 0px; padding: 0px;" />Personalities : [linear] [multipath] [raid0] [raid1] [raid5] [raid4] [raid6] [raid10]<br style="margin: 0px; padding: 0px;" />md0 : active raid1 sda1[0]<br style="margin: 0px; padding: 0px;" /> 24418688 blocks [2/1] [U_]<br style="margin: 0px; padding: 0px;" /><br style="margin: 0px; padding: 0px;" />md1 : active raid1 sda2[0] sdb2[2](F)<br style="margin: 0px; padding: 0px;" /> 24418688 blocks [2/1] [U_]<br style="margin: 0px; padding: 0px;" /><br style="margin: 0px; padding: 0px;" />unused devices: &lt;none&gt;</p>
<div id="adrectangleb" style="border-width: 0px; margin: 0px; padding: 0px; height: 250px;">
<div id="defer-adrectangleb" style="border-width: 0px; margin: 0px; padding: 0px;">
<div style="border-width: 0px; margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; color: #003399; text-decoration: underline;" href="http://ad.doubleclick.net/click;h=v8/38e3/0/0/%2a/d;44306;0-0;0;39511760;4307-300/250;0/0/0;u=idgt-32375414_1257987117,1129898e4009900,none,idgt.apple_L;~aopt=2/1/53/0;~sscs=%3f" target="_blank"><img style="border-width: 0px; margin: 0px; padding: 0px;" src="http://static.2mdn.net/viewad/817-grey.gif" border="0" alt="Click here to find out more!" /></a></div>
</div>
</div>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">mdadm &#8211;manage /dev/md1 &#8211;remove /dev/sdb2</p>
<p class="system" style="margin: 0px 0px 0.8em; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">server1:~# mdadm &#8211;manage /dev/md1 &#8211;remove /dev/sdb2<br style="margin: 0px; padding: 0px;" />mdadm: hot removed /dev/sdb2</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">cat /proc/mdstat</p>
<p class="system" style="margin: 0px 0px 0.8em; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">server1:~# cat /proc/mdstat<br style="margin: 0px; padding: 0px;" />Personalities : [linear] [multipath] [raid0] [raid1] [raid5] [raid4] [raid6] [raid10]<br style="margin: 0px; padding: 0px;" />md0 : active raid1 sda1[0]<br style="margin: 0px; padding: 0px;" /> 24418688 blocks [2/1] [U_]<br style="margin: 0px; padding: 0px;" /><br style="margin: 0px; padding: 0px;" />md1 : active raid1 sda2[0]<br style="margin: 0px; padding: 0px;" /> 24418688 blocks [2/1] [U_]<br style="margin: 0px; padding: 0px;" /><br style="margin: 0px; padding: 0px;" />unused devices: &lt;none&gt;</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">Then power down the system:</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">shutdown -h now</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">and replace the old<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb</span><span class="Apple-converted-space"> </span>hard drive with a new one (<span class="highlight" style="margin: 0px; padding: 0px; color: #ff0000; font-family: Georgia,'Times New Roman',Times,serif; font-size: 12px; text-decoration: underline;">it must have at least the same size as the old one &#8211; if it&#8217;s only a few MB smaller than the old one then rebuilding the arrays will fail</span>).</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">
<h3 style="border-bottom: 1px solid #cccccc; margin: 1em 0px 0px; padding: 0px 0px 0.2em; font-family: arial,verdana,sans-serif; font-weight: bold; font-size: 14px;">4 Adding The New Hard Disk</h3>
<p style="margin: 0px 0px 0.8em; padding: 0px;">After you have changed the hard disk<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb</span>, boot the system.</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">The first thing we must do now is to create the exact same partitioning as on<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sda</span>. We can do this with one simple command:</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">sfdisk -d /dev/sda | sfdisk /dev/sdb</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">You can run</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">fdisk -l</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">to check if both hard drives have the same partitioning now.</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">Next we add<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb1</span><span class="Apple-converted-space"> </span>to<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/md0</span><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb2</span><span class="Apple-converted-space"> </span>to<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/md1</span>:</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">mdadm &#8211;manage /dev/md0 &#8211;add /dev/sdb1</p>
<p class="system" style="margin: 0px 0px 0.8em; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">server1:~# mdadm &#8211;manage /dev/md0 &#8211;add /dev/sdb1<br style="margin: 0px; padding: 0px;" />mdadm: re-added /dev/sdb1</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">mdadm &#8211;manage /dev/md1 &#8211;add /dev/sdb2</p>
<p class="system" style="margin: 0px 0px 0.8em; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">server1:~# mdadm &#8211;manage /dev/md1 &#8211;add /dev/sdb2<br style="margin: 0px; padding: 0px;" />mdadm: re-added /dev/sdb2</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">Now both arays (<span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/md0</span><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/md1</span>) will be synchronized. Run</p>
<p class="command" style="border: 1px dashed #2f6fab; margin: 0px 0px 0.8em; padding: 1em; color: black; background-color: #f9f9f9; line-height: 1.1em; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">cat /proc/mdstat</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">to see when it&#8217;s finished.</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">During the synchronization the output will look like this:</p>
<p class="system" style="margin: 0px 0px 0.8em; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">server1:~# cat /proc/mdstat<br style="margin: 0px; padding: 0px;" />Personalities : [linear] [multipath] [raid0] [raid1] [raid5] [raid4] [raid6] [raid10]<br style="margin: 0px; padding: 0px;" />md0 : active raid1 sda1[0] sdb1[1]<br style="margin: 0px; padding: 0px;" /> 24418688 blocks [2/1] [U_]<br style="margin: 0px; padding: 0px;" /> [=&gt;...................]  recovery =  9.9% (2423168/24418688) finish=2.8min speed=127535K/sec<br style="margin: 0px; padding: 0px;" /><br style="margin: 0px; padding: 0px;" />md1 : active raid1 sda2[0] sdb2[1]<br style="margin: 0px; padding: 0px;" /> 24418688 blocks [2/1] [U_]<br style="margin: 0px; padding: 0px;" /> [=&gt;...................]  recovery =  6.4% (1572096/24418688) finish=1.9min speed=196512K/sec<br style="margin: 0px; padding: 0px;" /><br style="margin: 0px; padding: 0px;" />unused devices: &lt;none&gt;</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">When the synchronization is finished, the output will look like this:</p>
<p class="system" style="margin: 0px 0px 0.8em; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">server1:~# cat /proc/mdstat<br style="margin: 0px; padding: 0px;" />Personalities : [linear] [multipath] [raid0] [raid1] [raid5] [raid4] [raid6] [raid10]<br style="margin: 0px; padding: 0px;" />md0 : active raid1 sda1[0] sdb1[1]<br style="margin: 0px; padding: 0px;" /> 24418688 blocks [2/2] [UU]<br style="margin: 0px; padding: 0px;" /><br style="margin: 0px; padding: 0px;" />md1 : active raid1 sda2[0] sdb2[1]<br style="margin: 0px; padding: 0px;" /> 24418688 blocks [2/2] [UU]<br style="margin: 0px; padding: 0px;" /><br style="margin: 0px; padding: 0px;" />unused devices: &lt;none&gt;</p>
<p style="margin: 0px 0px 0.8em; padding: 0px;">That&#8217;s it, you have successfully replaced<span class="Apple-converted-space"> </span><span class="system" style="margin: 0px; padding: 0px; color: black; font-family: 'Courier New',Courier,mono; font-size: 12px; font-style: italic;">/dev/sdb</span>!</p>
<p></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aionsolution.com/blog/linux/replacing-a-failed-hard-drive-in-a-software-raid15-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade Ubuntu Dapper / Edgy / Hardy</title>
		<link>http://www.aionsolution.com/blog/ubuntu/upgrade-ubuntu-dapper-edgy-hardy/</link>
		<comments>http://www.aionsolution.com/blog/ubuntu/upgrade-ubuntu-dapper-edgy-hardy/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 08:07:29 +0000</pubDate>
		<dc:creator>aionman</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.aionsolution.com/blog/?p=211</guid>
		<description><![CDATA[Today you might have release Ubuntu 6.04 or 6.1 .The common name given to this release from the time of its early development was Dapper or Edgy. Now we will see how to upgrade your Ubuntu to 7.04 or 8.04 (Hardy) First thing i would suggest is backup all your important data and start upgrade [...]]]></description>
			<content:encoded><![CDATA[<h2><span style="font-weight: normal; font-size: 13px;">Today you might have release Ubuntu 6.04 or 6.1 .The common name given to this release from the time of its early development was Dapper or Edgy.</span></h2>
<div class="entrytext">
<div class="KonaBody">
<p>Now we will see how to upgrade your Ubuntu to 7.04 or 8.04 (Hardy)</p>
<p>First thing i would suggest is backup all your important data and start upgrade process and you can use any one of the method to udgrade to ubuntu edgy eft.</p>
<p>We can Use Two methods to upgrade Ubuntu Dapper to Edgy</p>
<p>1) Using GUI</p>
<p>2) Using apt-get</p>
<p><strong>Upgrading Ubuntu </strong></p>
<p><strong>Method 1</strong></p>
<p><strong>Using GUI</strong></p>
<p>If you want to upgrade using GUI use the following command</p>
<p>gksu “update-manager -c ”</p>
<p>“-c” switch tells it to look for upgrades at all.You should see the following screen here Now you can see 6.10 is available for upgrade click on upgrade<br />
<img src="http://www.debianadmin.com/images/edgy/1.png" alt="" align="middle" /></p>
<p>Now you can see the following screen with the no.of packages available for download here click on start upgrade</p>
<p><img src="http://www.debianadmin.com/images/edgy/5.png" alt="" align="middle" /></p>
<p>Here it starts preparing the upgrade<br />
<img src="http://www.debianadmin.com/images/edgy/4.png" alt="" align="middle" /></p>
<p>You can see in this screen downloading required packages is in progress<br />
<img src="http://www.debianadmin.com/images/edgy/6.png" alt="" align="middle" /><br />
Installing all the required packages in progress</p>
<p><img src="http://www.debianadmin.com/images/edgy/7.png" alt="" align="middle" /></p>
<p>After installing these packes you should see the following screen and here you need to click on restart and it will reboot your machine to take your new ubuntu 6.10 installation to effect all changes.</p>
<p><img src="http://www.debianadmin.com/images/edgy/8.png" alt="" align="middle" /></p>
<p>You can check the ubuntu version installed using the following command</p>
<p>sudo lsb_release -a</p>
<p>Output Looks like below</p>
<p>Distributor ID: Ubuntu<br />
Description: Ubuntu edgy<br />
Release: 6.10<br />
Codename: edgy</p>
<p><strong>Method 2</strong></p>
<p><strong>Using apt-get</strong></p>
<p>Edit your /etc/apt/sources.list as root. Change every occurrence of dapper to edgy.</p>
<p>Use any prefered editor. If you have a CD-ROM line in your file, then remove it.</p>
<p>sudo vi /etc/apt/sources.list</p>
<p>or</p>
<p>use the following Simple command</p>
<p>sudo sed -e ’s/\sdapper/ edgy/g’ -i /etc/apt/sources.list</p>
<p>Now you need to update the source list using the following command</p>
<p>sudo apt-get update</p>
<p>Upgrade using the following command</p>
<p>sudo apt-get dist-upgrade</p>
<p>Double check your process was finished properly using the following commd</p>
<p>sudo apt-get -f install</p>
<p><code>sudo dpkg --configure -a</code></p>
<p>Now you need to Reboot your machine to take your new ubuntu 6.10 installation to effect all changes.</p>
<p>I hope you will enjoy your new Ubuntu Edgy Eft</p>
<p>_________</p>
<p>Another post regarding how to upgrade from Dapper to Hardy</p>
<p><span><span>Here is how I did it:</span></span></p>
<p><strong><span><span><span class="IL_SPAN">Ubuntu</span> 6.06 to <span class="IL_SPAN">Ubuntu</span> 8.04 </span><span class="IL_SPAN">Upgrade</span><span> (<span class="IL_SPAN">Server</span>)</span></span></strong></p>
<p><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: Arial; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: Georgia; font-size: 13px; line-height: 19px;"><span>I verified that my current install was completely <span class="IL_SPAN">up to date</span>:</span></p>
<blockquote><p><code>sudo aptitude update<br />
<span>sudo aptitude <span class="IL_SPAN">upgrade</span></span><br />
sudo aptitude dist-upgrade</code></p></blockquote>
<p>Also, to be thorough, this is what my sources.list looked like (each ‘deb’ entry should be one single line):</p>
<blockquote><p><code><span><span>deb http://archive.<span class="IL_SPAN">ubuntu</span>.com/ubuntu dapper main restricted universe<span class="Apple-converted-space"> </span></span><span class="IL_SPAN">multiverse</span></span><br />
<span><span>deb http://archive.<span class="IL_SPAN">ubuntu</span>.com/ubuntu dapper-updates main restricted universe</span><span class="IL_LINK_STYLE">multiverse</span></span><br />
<span><span>deb http://archive.<span class="IL_SPAN">ubuntu</span>.com/ubuntu dapper-security main restricted universe</span><span class="IL_SPAN">multiverse</span></span><br />
<span><span>deb http://archive.<span class="IL_SPAN">ubuntu</span>.com/ubuntu dapper-proposed main restricted universe</span><span class="IL_SPAN">multiverse</span></span><br />
<span><span>deb http://archive.<span class="IL_SPAN">ubuntu</span>.com/ubuntu dapper-backports main restricted universe</span><span class="IL_SPAN">multiverse</span></span></code></p></blockquote>
<p><span>Once I had applied all updates (if you’re already <span class="IL_LINK_STYLE">up to date</span>, you don’t need a reboot) I then installed the server-based update utility:</span></p>
<blockquote><p><code>sudo aptitude install update-manager-core</code></p></blockquote>
<p><span>Once this is installed you’re ready to begin the <span class="IL_SPAN">upgrade</span><span class="Apple-converted-space"> </span>process.  You can start the <span class="IL_SPAN">upgrade</span><span class="Apple-converted-space"> </span>using:</span></p>
<blockquote><p><code>sudo do-release-upgrade</code></p>
<p><br class="Apple-interchange-newline" /></p></blockquote>
<p></span></span></p>
<p><span>Or use CD-ROM</span><br />
$ mount -t iso9660 -o loop ~bvi/ubuntu-8.04-server-i386.iso /cdrom<br />
$ apt-cdrom add</p>
<p>This should show output similar to the following as the CDROM is added to the Repo list.</p>
<p>Using CD-ROM mount point /cdrom/<br />
Unmounting CD-ROM<br />
Waiting for disc&#8230;<br />
Please insert a Disc in the drive and press enter<br />
Mounting CD-ROM&#8230;<br />
Identifying.. [b36baea778d37bbf48a3c8bd75b5cffb-2]<br />
Scanning disc for index files..<br />
Found 2 package indexes, 0 source indexes and 1 signatures<br />
Found label &#8216;Ubuntu-Server 8.04 _Hardy Heron_ &#8211; Release i386 (20080423.2)&#8217;<br />
&#8230;</p>
<p>And should add a to the top of your /etc/apt/sources.list similar to the following:</p>
<p>deb cdrom:[Ubuntu-Server 8.04 _Hardy Heron_ - Release i386 (20080423.2)]/ hardy main restricted</p>
<p>Finally the update can be performed</p>
<p>do-release-update</p>
<p><span><br />
</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.aionsolution.com/blog/ubuntu/upgrade-ubuntu-dapper-edgy-hardy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

