<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;Ak8FSH89fSp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315</id><updated>2011-03-17T16:16:59.165+05:30</updated><title>Vision</title><subtitle type='html'>System Administrator's Corner....</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;D0EHR3ozcCp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-1716230904767523863</id><published>2011-03-14T14:25:00.002+05:30</published><updated>2011-03-17T15:23:56.488+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:23:56.488+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Override LVM Check'/><category scheme='http://www.blogger.com/atom/ns#' term='VG'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Quorum Lost'/><category scheme='http://www.blogger.com/atom/ns#' term='Activating LVM'/><category scheme='http://www.blogger.com/atom/ns#' term='vgchange'/><category scheme='http://www.blogger.com/atom/ns#' term='LVM'/><category scheme='http://www.blogger.com/atom/ns#' term='quick howto'/><category scheme='http://www.blogger.com/atom/ns#' term='Activating VG'/><title>Activating a VG when quorum is lost</title><content type='html'>&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: small; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #4d4b4c; font-family: &amp;quot;Arial&amp;quot;; font-size: 12px; line-height: 16px; text-align: justify;"&gt;Normally, volume groups are automatically activated during system startup. Unless you intentionally deactivate a volume group using vgchange, you will probably not need to reactivate a volume group.&lt;br style="margin: 0px; padding: 0px; text-decoration: none;" /&gt;However, LVM does require that a "quorum" of disks in a volume group be available. During normal system operation, LVM needs a quorum of more than half of the disks in a volume group for activation. If, during run time, a disk fails and causes quorum to be lost, LVM alerts you with a message to the console, but keeps the volume group active.&lt;br style="margin: 0px; padding: 0px; text-decoration: none;" /&gt;&lt;br style="margin: 0px; padding: 0px; text-decoration: none;" /&gt;If there is no other way to make a quorum available, the -q option to the vgchange command will override the quorum check.&lt;br style="margin: 0px; padding: 0px; text-decoration: none;" /&gt;&lt;br style="margin: 0px; padding: 0px; text-decoration: none;" /&gt;&lt;b style="margin: 0px; padding: 0px; text-decoration: none;"&gt;EXAMPLE:&lt;/b&gt;&lt;br style="margin: 0px; padding: 0px; text-decoration: none;" /&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=9015863716688284315&amp;amp;postID=1716230904767523863" name="more" style="border-bottom: 1px dotted rgb(204, 204, 204); margin: 0px; padding: 0px; text-decoration: none;"&gt;&lt;/a&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;vgchange -a y -q n /dev/vg01&lt;/span&gt;&lt;br style="margin: 0px; padding: 0px; text-decoration: none;" /&gt;&lt;br style="margin: 0px; padding: 0px; text-decoration: none;" /&gt;&amp;nbsp;When you replace a disk that was not online when you originally activated the volume group, use the activation command again to attach the now accessible disks to the volume group.&lt;br style="margin: 0px; padding: 0px; text-decoration: none;" /&gt;&lt;br style="margin: 0px; padding: 0px; text-decoration: none;" /&gt;&lt;b style="margin: 0px; padding: 0px; text-decoration: none;"&gt;EXAMPLE:&lt;/b&gt;&lt;br style="margin: 0px; padding: 0px; text-decoration: none;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;vgchange -a y /dev/vg01&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-1716230904767523863?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/1716230904767523863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2011/03/activating-vg-when-quorum-is-lost.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/1716230904767523863?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/1716230904767523863?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2011/03/activating-vg-when-quorum-is-lost.html' title='Activating a VG when quorum is lost'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;DkQMRXs7eSp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-8441394397890549551</id><published>2011-02-21T19:25:00.001+05:30</published><updated>2011-03-17T15:03:04.501+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:03:04.501+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Howto'/><category scheme='http://www.blogger.com/atom/ns#' term='WebServer'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title>Apache on Solaris 10</title><content type='html'>&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;The apache web server is included with solaris 10. Follow these steps to enable it.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h2 style="color: #222222; font-family: Arial, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step 1: Create a working default apache config file&lt;/span&gt;&lt;/h2&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;The apache server config files are in /etc/apache2. To quickly get up and running, you can just use the sample config file by doing the following:&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;cd /etc/apache2
cp httpd.conf-example httpd.conf&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h2 style="color: #222222; font-family: Arial, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step 2: Enable the apache/httpd service&lt;/span&gt;&lt;/h2&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;Check to see if apache is already running:&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;svcs -a | grep -i http&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;You will probably see the following, indicating that apache is NOT running:&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;disabled       Apr_20   svc:/network/http:apache2
&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;Use the svcadm command to start the webserver. This will also make it automatically start if your machine reboots.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;svcadm -v enable /network/http:apache2
&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;Use the following svcs command to make sure it worked:&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;svcs -p /network/http:apache2
STATE          STIME    FMRI
online         15:32:44 svc:/network/http:apache2
               15:32:44    28711 httpd
               15:32:45    28712 httpd
               15:32:45    28713 httpd
               15:32:45    28714 httpd
               15:32:45    28715 httpd
               15:32:45    28716 httpd&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;This is showing that the webserver is online and working.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;h2 style="color: #222222; font-family: Arial, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step 3: Add your web content&lt;/span&gt;&lt;/h2&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;Put your html webpage(index.html) in the /var/apache2/htdocs directory. If everything went OK, you should have a functioning apache webserver.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h2 style="color: #222222; font-family: Arial, sans-serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Debugging / Troubleshooting&lt;/span&gt;&lt;/h2&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;If the svcs -p command from the above step doesn't show a STATE of online, do the followig:&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;svcs -a | grep -i http
&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
You'll probably see that it's in maintenance mode:&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;maintenance    15:16:12 svc:/network/http:apache2&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;For more detailed info run:&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;pre style="font-family: Arial, sans-serif;"&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;svcs -l http&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;OR&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;svcs -x http
svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since May  8, 2007  3:16:12 PM EDT
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: httpd(8)
   See: /var/svc/log/network-http:apache2.log
Impact: This service is not running.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;Note that the second to last line tells you where the log file is, so take a look at that. Once you've fixed the problem, you can restart apache with:&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;svcadm restart /network/http:apache2&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: Arial, sans-serif;"&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;If for some reason you want to shut off apache, use this:&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;svcadm disable /network/http:apache2

svcs -p /network/http:apache2
STATE          STIME    FMRI
disabled       15:36:33 svc:/network/http:apache2
&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&lt;pre&gt;svcs -l http
fmri         svc:/network/http:apache2
name         Apache 2 HTTP server
enabled      false
state        disabled
next_state   none
state_time   May  8, 2007  3:36:33 PM EDT
logfile      /var/svc/log/network-http:apache2.log
restarter    svc:/system/svc/restarter:default
contract_id
dependency   require_all/error svc:/milestone/network:default (online)
dependency   require_all/none svc:/system/filesystem/local:default
(online)
dependency   optional_all/error svc:/system/filesystem/autofs:default
(online)&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-8441394397890549551?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/8441394397890549551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2011/02/apache-on-solaris-10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/8441394397890549551?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/8441394397890549551?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2011/02/apache-on-solaris-10.html' title='Apache on Solaris 10'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkMGQng9fCp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-3565330414299154271</id><published>2011-02-21T19:16:00.001+05:30</published><updated>2011-03-17T15:03:43.664+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:03:43.664+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Configuring SSH on Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='SSH'/><category scheme='http://www.blogger.com/atom/ns#' term='Howto'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title>SSH on Solaris 10</title><content type='html'>&lt;h2 style="color: #222222; font-family: Arial, sans-serif; font-size: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;To generate your keys:&lt;/h2&gt;&lt;div style="color: #666666; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 5px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;ssh-keygen -t dsa&lt;br /&gt;
ssh-keygen -t rda&lt;/span&gt;&lt;/div&gt;&lt;h2 style="color: #222222; font-family: Arial, sans-serif; font-size: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Then, save the public (NOT the private keys!) keys that you just generated.&lt;/h2&gt;&lt;div style="color: #666666; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 5px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;#cat &amp;nbsp;*.pub keys &amp;gt;&amp;gt; authorized_keys&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #666666; font-family: Arial, sans-serif; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 5px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;The newly created authorized_keys file can then be copied to the destination system. This will allow you to log in without providing a password.&lt;/div&gt;&lt;h2 style="color: #222222; font-family: Arial, sans-serif; font-size: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;To stop and start sshd:&lt;/h2&gt;&lt;div style="color: #666666; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 5px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;svcadm disable ssh&lt;br /&gt;
svcadm enable ssh&lt;/span&gt;&lt;/div&gt;&lt;h2 style="color: #222222; font-family: Arial, sans-serif; font-size: 16px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Debugging tips:&lt;/h2&gt;&lt;div style="color: #666666; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 5px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;Server side debugging - Once ssh service is disabled (&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;svcadm disable ssh&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;), you can start manually in debug mode:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;cd /usr/lib/ssh&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;./sshd -dd&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;./sshd -v will available command-line options&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;ssh -v will turn on client debugging&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;sshd config file for the entire server is in /etc/ssh/sshd_config&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, sans-serif;"&gt;permissions on your home directory MUST be 750&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-3565330414299154271?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/3565330414299154271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2011/02/ssh-on-solaris-10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/3565330414299154271?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/3565330414299154271?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2011/02/ssh-on-solaris-10.html' title='SSH on Solaris 10'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEYGQXYyeCp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-8085973802487289611</id><published>2011-02-14T14:38:00.002+05:30</published><updated>2011-03-17T15:32:00.890+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:32:00.890+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='choosing passwords'/><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='password hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='protect passwords'/><category scheme='http://www.blogger.com/atom/ns#' term='prevent passwords'/><title>Secure Your Passwords...</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-L-j_GUMuuJ0/TVjw8WNN-fI/AAAAAAAAAuU/bFW2390uQ0Q/s1600/110110-ZA-PASSWORD.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-L-j_GUMuuJ0/TVjw8WNN-fI/AAAAAAAAAuU/bFW2390uQ0Q/s1600/110110-ZA-PASSWORD.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-8085973802487289611?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/8085973802487289611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2011/02/secure-your-passwords.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/8085973802487289611?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/8085973802487289611?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2011/02/secure-your-passwords.html' title='Secure Your Passwords...'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-L-j_GUMuuJ0/TVjw8WNN-fI/AAAAAAAAAuU/bFW2390uQ0Q/s72-c/110110-ZA-PASSWORD.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEUFRHs9eSp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-1834654658654233214</id><published>2011-01-28T11:46:00.002+05:30</published><updated>2011-03-17T15:33:35.561+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:33:35.561+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='GRUB'/><category scheme='http://www.blogger.com/atom/ns#' term='Troubleshoot GRUB'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Reinstall GRUB'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='grub.cfg'/><title>Reinstall GRUB using Ubuntu 9.10 livecd or higher</title><content type='html'>Here assuming the Ubuntu partition is &lt;i&gt;sda7&lt;/i&gt;,and /boot partition is &lt;i&gt;sda6&lt;/i&gt; (if you have a separate /boot partition).&lt;br /&gt;
Boot up ubuntu from the livecd,open terminal and run:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;sudo -i
mount /dev/sda7 /mnt
mount /dev/sda6 /mnt/boot  #skip this one if not have a separate /boot partition
grub-install --root-directory=/mnt/ /dev/sda&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
If you miss “grub.cfg” file,use following to recreate:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt update-grub
umount /mnt/sys
umount /mnt/dev
umount /mnt/proc
exit&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-1834654658654233214?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/1834654658654233214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2011/01/reinstall-grub-using-ubuntu-910-livecd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/1834654658654233214?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/1834654658654233214?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2011/01/reinstall-grub-using-ubuntu-910-livecd.html' title='Reinstall GRUB using Ubuntu 9.10 livecd or higher'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEQERnc-eip7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-2439816031345136575</id><published>2010-12-05T13:57:00.001+05:30</published><updated>2011-03-17T15:35:07.952+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:35:07.952+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='OS Mirroring'/><category scheme='http://www.blogger.com/atom/ns#' term='Mirroring'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris Volume Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='RAID 1'/><category scheme='http://www.blogger.com/atom/ns#' term='SVM'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title>Boot Disk Mirroring Using Solaris Volume Manager Software</title><content type='html'>&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;Applicable OS Version: Solaris 9 Operating System (OS), Solaris 8 OS with Solstice DiskSuite 4.2.1 Software with Patch 108693-06 (SPARC Platform Edition)&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;Note: I do not guarantee that this will work as it is for every one. Please tweak as needed.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;The following steps might have used random controllers and targets. They might vary from host to host.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;Also, it's a good idea to mirror across controllers instead of mirroring across the same controller and still having the controller as a single point of failure.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;1) Important precaution:&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;Copy&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;/etc/vfstab&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;/etc/system&lt;/code&gt;&amp;nbsp;before you go ahead:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;cp -p /etc/system /etc/system.orig."date"

cp -p /etc/vfstab /etc/vfstab.orig."date"
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;In case&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;/etc/system&lt;/code&gt;&amp;nbsp;gets messed up, we can still use the command&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;boot -a&lt;/code&gt;&amp;nbsp;from the OK prompt and specify by using:&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;/etc/system.orig."date"
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;2) Make sure that you have an extra disk to mirror the root disk and there is no data on it.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;3) Create a small slice of 25 Mbyte (10 Mbyte is also fine) for storing volume databases on the "rootdisk" and label the disk.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;If you don't have any space on your root disk, create a small slice by deleting and re-adding swap space.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;Make sure that there is not a lot of activity on the box while you do this.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;3.1) To list your swap, use:&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;swap -l&lt;/code&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;(It's good if you have more than one slice configured as swap.)&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;3.2) Execute:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;swap -d swap-name ( /dev/dsk/c?ct?d?s?)
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;Change your partition table to incorporate a new slice by reducing the size or cylinder length of the swap partition.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;3.3) Execute:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;swap -a swap-name ( /dev/dsk/c?t?d?s?) 
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;4) The VTOC (volume table of contents) on the root disk and root mirror must be the same. Copy the VTOC using&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;prtvtoc&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;fmthard&lt;/code&gt;.&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;# prtvtoc /dev/rdsk/c?t?d?s2 | fmthard -s - /dev/rdsk/c?t?d?s2
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;5) Create metadatabases on the small slice created on rootdisk:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;# metadb -f -a -c3 c?t?d?s6 (Slice 6 is my small slice here)
# metadb -a -c3 c?t?d?s6 (Slice 6 on rootmirror)
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;6) Now we can create a mirror for each and every slice in the partition table.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;For root or / partition:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;# metainit -f d10 1 1 c?t?d?s? 

# metainit d20 1 1 c?t?d?s?

(create a md d0 and attach one submirror)
# metainit d0 -m d10 

(set up system files for root (/) metadevice, that is, 
     changes to /etc/system and /etc/vfstab)
# metaroot d0 

# lockfs -fa (clear improper file locks on all mounted UFS file systems) 
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;7) Naming convention for other metadisks follow. (Note for those who are new to this software: We will not do&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;metaroot&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;lockfs&lt;/code&gt;&amp;nbsp;steps on other file systems.)&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;The submirrors will be named&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;d10&lt;/code&gt;,&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;d20&lt;/code&gt;, and so on.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;In&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;d10&lt;/code&gt;, 1 is the submirror number, and 0 is the slice number.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;If we have swap on partition/slice 1, we would do this:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;# metainit -f d11 1 1 c?t?d?s1

# metainit d21 1 1 c?t?d?s1

# metainit d1 -m d11
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;8) Repeat for as many file systems you have on your boot disk.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;9) Make changes to your&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;/etc/vfstab&lt;/code&gt;. The&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;md&lt;/code&gt;&amp;nbsp;entry for root will already be updated by the&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;metaroot&lt;/code&gt;&amp;nbsp;command.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;A sample copy of&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;/etc/vfstab&lt;/code&gt;&amp;nbsp;looks like this:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
##/dev/dsk/c1t1d0s1 - - swap - no -
/dev/md/dsk/d1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
##/dev/dsk/c1t1d0s7 /dev/rdsk/c1t1d0s7 /export/home ufs 2 yes -
/dev/md/dsk/d7 /dev/md/rdsk/d7 /export/home ufs 2 yes -
##/dev/dsk/c1t1d0s3 /dev/rdsk/c1t1d0s3 /opt/uc4 ufs 2 yes -
/dev/md/dsk/d3 /dev/md/rdsk/d3 /opt/uc4 ufs 2 yes -
swap - /tmp tmpfs - yes -
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;10) Configure your dump device using&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;dumpadm&lt;/code&gt;.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;11) Make the following entry in the&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;/etc/system&lt;/code&gt;&amp;nbsp;file, in the&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;mdd&lt;/code&gt;&amp;nbsp;info section:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;set md:mirrored_root_flag=1
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;When the root disk becomes unavailable, the database copies stored on the root disk are also unavailable.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;Solaris Volume Manager software expects more than 50 percent of the databases to be available to boot up normally or else it may complain about the insufficient number of database replicas. The preceding change is made in order for Solaris Volume Manager software to boot up with at least 50 percent of the copies.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;12) Execute:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;sync; sync; init 6
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;13) Once the system comes up, attach the other submirror:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;# metattach d0 d20
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;(Note: It's "metattach" and not "metaattach")&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;# metattach d1 d21 
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;and so on.&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;14) To see whether the FS syncing is done or not, do this:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;metastat | grep progress 
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;15) Determine the device path to the boot devices for both the primary and mirror:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;ls -l /dev/dsk/c1t1d0s0 /dev/dsk/c1t0d0s0
lrwxrwxrwx 1 root root 43 Dec 23 17:51 /dev/dsk/c1t0d0s0 -&amp;gt; \
   ../../devices/pci@1c,600000/scsi@2/sd@0,0:a
lrwxrwxrwx 1 root root 43 Dec 23 17:51 /dev/dsk/c1t1d0s0 -&amp;gt; \
   ../../devices/pci@1c,600000/scsi@2/sd@1,0:a

# eeprom "nvramrc=devalias rootdisk /pci@1c,600000/scsi@2/disk@1,0 
devalias rootmirror /pci@1c,600000/scsi@2/disk@0,0"
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;(Please note the change "sd" to "disk" in using&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;ls -l&lt;/code&gt;&amp;nbsp;output.)&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;# eeprom "use-nvramrc?=true"
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;You can also change the boot-device values so that the system tries to boot from the mirror in case one of them is not available.&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;# eeprom boot-device="rootdisk rootmirror net"
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;16) Once the syncing is complete, test your system by removing the root disk.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-2439816031345136575?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/2439816031345136575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/12/boot-disk-mirroring-using-solaris.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/2439816031345136575?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/2439816031345136575?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/12/boot-disk-mirroring-using-solaris.html' title='Boot Disk Mirroring Using Solaris Volume Manager Software'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEQNSH88cCp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-9000559592608256677</id><published>2010-12-05T13:45:00.003+05:30</published><updated>2011-03-17T15:36:39.178+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:36:39.178+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Bad Sector'/><category scheme='http://www.blogger.com/atom/ns#' term='Recovering Bad Sectors'/><category scheme='http://www.blogger.com/atom/ns#' term='Disk'/><category scheme='http://www.blogger.com/atom/ns#' term='Soalris 9'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title>Recovering a Bad Sector Disk on the Solaris 9 OS</title><content type='html'>&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;A disk can start creating trouble if sectors on it are bad. We can try to verify and repair the defective sectors. For example, the following message shows that the block 100 is defective:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;WARNING: /io-unit@f,e0200000...
   Error for command 'read' Error Level: Retryable
   Requested Block 243, Error Block 100
   Sense Key: Media Error
   Vendor ...
   ASC = 0x11 (unrecovered read error) ...
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;We can try to take corrective action by performing a surface scan analysis. First we need to unmount all slices on the defective disk and then invoke the&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;format&lt;/code&gt;&amp;nbsp;utility. (Note: This example shows only&amp;nbsp;&lt;code class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;s0&lt;/code&gt;&amp;nbsp;mounted on target 2.)&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;# umount /dev/dsk/c0t2d0s0 
# format
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;When we are asked to select the disk, provide the number:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;Specify disk (enter its number): 1
selecting c0t2d0:
[disk formatted]
Warning: Current Disk has mounted partitions.
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;Now we should invoke the analyze menu and provide the parameters as asked:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;format&amp;gt; analyze
analyze&amp;gt; setup
Analyze entire disk [yes]? n
Enter starting block number [0, 0/0/0]: &lt;i class="small" style="font-weight: normal;"&gt;enter start block&lt;/i&gt;
Enter ending block number [2052287, 2035/13/71]: &lt;i class="small" style="font-weight: normal;"&gt;enter end block&lt;/i&gt;
Loop continuously [no]: y
Repair defective blocks [yes]: n
Stop after first error [no]: n
Use random bit patterns [no]: n
Enter number of blocks per transfer [126, 0/1/54]: 1
Verify media after formatting [yes]: y
Enable extended messages [no]: n
Restore defect list [yes]: y
Create defect label [yes]: y

analyze&amp;gt; read
Ready to analyze (won't harm SunOS). This takes a long time,
but is interruptible with Control-C. Continue? Y
   pass 0
   ...
   pass 1
   block 100, Corrected media error (hard data ecc)
   ...
   Total of 1 defective blocks repaired.
&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif;"&gt;Now we have found the absolute block number of the defective block on the disk, and we will repair it.&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, &amp;quot;FreeSans&amp;quot;, &amp;quot;Luxi-sans&amp;quot;, &amp;quot;Nimbus Sans L&amp;quot;, sans-serif;"&gt;&lt;pre class="small" style="color: #444444; font-family: Monaco, Courier, 'Courier New', monospace; font-weight: normal;"&gt;analyze&amp;gt; q
format&amp;gt; repair
Enter absolute block number of defect: 100
Ready to repair defect, continue? y
Repairing block 100 ...ok.
format&amp;gt; q&lt;/pre&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-9000559592608256677?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/9000559592608256677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/12/recovering-bad-sector-disk-on-solaris-9.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/9000559592608256677?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/9000559592608256677?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/12/recovering-bad-sector-disk-on-solaris-9.html' title='Recovering a Bad Sector Disk on the Solaris 9 OS'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEMCQ3Y5cCp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-7839126658334711309</id><published>2010-12-05T13:38:00.001+05:30</published><updated>2011-03-17T15:37:42.828+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:37:42.828+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='System Name'/><category scheme='http://www.blogger.com/atom/ns#' term='Change Hostname'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='RHEL'/><category scheme='http://www.blogger.com/atom/ns#' term='Redhat'/><title>Changing Hostname on RHEL</title><content type='html'>&lt;h2&gt;&lt;span class="Apple-style-span" style="font-size: small; font-weight: 400;"&gt;1. Change the&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small; font-weight: 400;"&gt;&lt;span style="font-family: monospace;"&gt;^HOSTNAME&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small; font-weight: 400;"&gt;&amp;nbsp;line in&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small; font-weight: 400;"&gt;&lt;span style="font-family: monospace;"&gt;/etc/sysconfig/network&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;2. Change the hostname (FQDN and alias) in&amp;nbsp;&lt;span style="font-family: monospace;"&gt;/etc/hosts&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
3. Run&amp;nbsp;&lt;span style="font-family: monospace; font-weight: 700;"&gt;/bin/hostname new_hostname&lt;/span&gt;&amp;nbsp;for the hostname change to take effect immediately.&lt;br /&gt;
&lt;br /&gt;
4. Run&amp;nbsp;&lt;span style="font-family: monospace; font-weight: 700;"&gt;/sbin/service syslog restart&lt;/span&gt;&amp;nbsp;for&amp;nbsp;&lt;span style="font-family: monospace;"&gt;syslog&lt;/span&gt;&amp;nbsp;to log using the new hostname.&lt;br /&gt;
&lt;br /&gt;
A reboot is not required to change the system hostname.&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-7839126658334711309?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/7839126658334711309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/12/changing-hostname-on-rhel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/7839126658334711309?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/7839126658334711309?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/12/changing-hostname-on-rhel.html' title='Changing Hostname on RHEL'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEEHQn84cSp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-3789237823667749809</id><published>2010-12-02T15:42:00.003+05:30</published><updated>2011-03-17T15:40:33.139+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:40:33.139+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='cpuinfo'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='CPU'/><category scheme='http://www.blogger.com/atom/ns#' term='RHEL'/><category scheme='http://www.blogger.com/atom/ns#' term='Redhat'/><title>Understanding /proc/cpuinfo</title><content type='html'>&amp;nbsp;Example:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: monospace;"&gt;$&amp;nbsp;uname -r&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: monospace;"&gt;2.6.18-8.el5&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;How many physical processors are there?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style="font-family: monospace;"&gt;$&amp;nbsp;grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: monospace;"&gt;2&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;How many virtual processors are there?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style="font-family: monospace;"&gt;$&amp;nbsp;grep ^processor /proc/cpuinfo | wc -l&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: monospace;"&gt;4&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Are the processors dual-core (or multi-core)?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style="font-family: monospace;"&gt;$&lt;/span&gt;&lt;span style="font-family: monospace;"&gt;&amp;nbsp;grep 'cpu cores' /proc/cpuinfo&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: monospace;"&gt;cpu cores&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: monospace;"&gt;cpu cores&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: monospace;"&gt;cpu cores&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: monospace;"&gt;cpu cores&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 2&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
"2" indicates&amp;nbsp;the two physical processors are dual-core, resulting in 4 virtual processors.&lt;br /&gt;
&lt;br /&gt;
If "1" was returned, the two physical processors are single-core. If the processors are single-core, and the number of virtual processors is greater than the number of physical processors, the CPUs are using hyper-threading. Hyper-threading is&amp;nbsp;supported if&amp;nbsp;&lt;span style="font-family: monospace;"&gt;ht&lt;/span&gt;&amp;nbsp;is present in the CPU&amp;nbsp;&lt;span style="font-family: monospace;"&gt;flags&lt;/span&gt;&amp;nbsp;and you are using an SMP kernel.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Are the processors 64-bit?&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;A 64-bit processor will have&amp;nbsp;&lt;span style="font-family: monospace;"&gt;lm&lt;/span&gt;&amp;nbsp;("long mode") in the&amp;nbsp;&lt;span style="font-family: monospace;"&gt;flags&lt;/span&gt;&amp;nbsp;section of&amp;nbsp;&lt;span style="font-family: monospace;"&gt;cpuinfo&lt;/span&gt;. A 32-bit processor will not.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;flags&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;lm&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&amp;nbsp;3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm stc&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-3789237823667749809?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/3789237823667749809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/12/understanding-proccpuinfo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/3789237823667749809?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/3789237823667749809?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/12/understanding-proccpuinfo.html' title='Understanding /proc/cpuinfo'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEAHQns7eCp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-8579236287792332473</id><published>2010-12-02T15:32:00.001+05:30</published><updated>2011-03-17T15:42:13.500+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:42:13.500+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Network Configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='Assign IP'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title>Changing IP address</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;The following steps may be used to change the IP address of a Solaris system.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;Change the host's IP&amp;nbsp;in&amp;nbsp;/etc/hosts&amp;nbsp;for the&amp;nbsp;change to take effect after reboot. If you are using Solaris 10, you must also change the host's IP in&amp;nbsp;/etc/inet/ipnodes&amp;nbsp;for the change to take effect after reboot.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;&amp;nbsp;Run&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;&lt;span style="font-weight: bold;"&gt;ifconfig&amp;nbsp;&lt;span style="font-style: italic;"&gt;interface ip_address&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;netmask broadcast_address&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;for the IP address change to take effect immediately. The&amp;nbsp;netmask&amp;nbsp;and&amp;nbsp;broadcast_address&amp;nbsp;should be specified if you are using variable length subnet masks (VLSM), but may be omitted otherwise.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;If you are using variable length subnet masks (VLSM), add the host's network number and subnet mask to&amp;nbsp;/etc/netmasks.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;If the new IP address places the system on a different network:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;Place the host's new default gateway in&amp;nbsp;/etc/defaultrouter&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;Run&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;&lt;span style="font-weight: bold;"&gt;route add default&amp;nbsp;&lt;span style="font-style: italic;"&gt;new_gateway&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;&amp;nbsp;for the new default gateway to take effect immediately.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;Run&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;&lt;span style="font-weight: bold;"&gt;route delete default&amp;nbsp;&lt;span style="font-style: italic;"&gt;old_gateway&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;&amp;nbsp;to delete the old default gateway from the routing table.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-8579236287792332473?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/8579236287792332473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/12/changing-ip-address.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/8579236287792332473?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/8579236287792332473?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/12/changing-ip-address.html' title='Changing IP address'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DE4HR3w9fip7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-4592830384345969622</id><published>2010-12-02T14:59:00.001+05:30</published><updated>2011-03-17T15:45:36.266+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:45:36.266+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Create Flash Archive'/><category scheme='http://www.blogger.com/atom/ns#' term='Veritas backup'/><category scheme='http://www.blogger.com/atom/ns#' term='backup solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Flar'/><category scheme='http://www.blogger.com/atom/ns#' term='Backups'/><title>Creating a Flash archive</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;1. If the root disk is encapsulated by Veritas Volume Manager (VxVM), unencapsulate it before continuing.&lt;br /&gt;
&lt;br /&gt;
2. I recommend booting to single-user mode, as you generally do not want to include NFS mounts or other file systems mounted in later run levels as part of your Flash archive.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;#reboot -- -s&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;3. Create the Flash archive&lt;/span&gt;.&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;flarcreate -n&amp;nbsp;&lt;span style="font-style: italic;"&gt;name&lt;/span&gt;&amp;nbsp;-a&amp;nbsp;&lt;span style="font-style: italic;"&gt;author&lt;/span&gt;&amp;nbsp;-S -c&amp;nbsp;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;archive_name&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;eg:&lt;/span&gt;&amp;nbsp;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;flarcreate -n "Solaris 9 image" -a "shiroy" /var/tmp/sol8.archive&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif; font-style: italic;"&gt;Notes:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;&lt;b&gt;flarcreate&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;&lt;i&gt;&amp;nbsp;will not determine the size of the archive beforehand when using the&lt;/i&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;&lt;b&gt;-S&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif; font-style: italic;"&gt;&amp;nbsp;flag. Personally, I have seen&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;&lt;b&gt;flarcreate&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif; font-style: italic;"&gt;&amp;nbsp;take an inordinate amount of time calculating the size of the archive.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;&lt;i&gt;The&lt;/i&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif; font-weight: 700;"&gt;-c&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;&amp;nbsp;&lt;i&gt;flag enables archive compression via the&lt;/i&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;&lt;b&gt;compress&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;&amp;nbsp;&lt;i&gt;command.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;4. If applicable, re-encapsulate the rootdisk with the&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;&lt;b&gt;vxdiskadm&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;&amp;nbsp;command. Reboot the system for the encapsulation to take effect.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-4592830384345969622?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/4592830384345969622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/12/creating-flash-archive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/4592830384345969622?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/4592830384345969622?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/12/creating-flash-archive.html' title='Creating a Flash archive'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DE4DSXY9eyp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-417524926470643838</id><published>2010-12-02T14:51:00.002+05:30</published><updated>2011-03-17T15:46:18.863+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:46:18.863+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='System Admin'/><category scheme='http://www.blogger.com/atom/ns#' term='Blogs'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux Admin'/><category scheme='http://www.blogger.com/atom/ns#' term='UNIX Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Sys admin'/><category scheme='http://www.blogger.com/atom/ns#' term='Others'/><title>NixCraft – Linux Administration</title><content type='html'>&lt;span style="color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 10pt;"&gt;Here is a great Linux Admin blog with plenty of content for the both the beginner and the advanced Linux Admin. The name of the blog is&amp;nbsp;&lt;a href="http://www.cyberciti.biz/"&gt;&lt;span style="color: #727248;"&gt;nixCraft&lt;/span&gt;&lt;/a&gt;&amp;nbsp;and it has been in my RSS reader for a while, and I wanted to share with you a couple of the scripts and links that I pulled out and have used.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style="color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 10pt;"&gt;The first is a quick and easy MySql database backup that you can put in cron to backup your MySql database. Many open source projects use MySql and it always pays to have a backup especially when upgrading, so take a look at this post called&amp;nbsp;&lt;a href="http://bash.cyberciti.biz/backup/backup-mysql-database-server-2/"&gt;&lt;span style="color: #727248;"&gt;backing up your mysql database server&lt;/span&gt;&lt;/a&gt;.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 10pt;"&gt;The second script is a rsync replication script that we can use between a couple of clustered web servers. The script is called&amp;nbsp;&lt;a href="http://bash.cyberciti.biz/backup/rsync-backup-replication-script/"&gt;&lt;span style="color: #727248;"&gt;resync backup replication script&lt;/span&gt;&lt;/a&gt;.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style="color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 10pt;"&gt;And the last example is for the beginner administrator. This post identifies a number of&amp;nbsp;&lt;a href="http://www.cyberciti.biz/tips/linux-unix-commands-cheat-sheets.html"&gt;&lt;span style="color: #727248;"&gt;Unix/Linux commands and cheat sheets&lt;/span&gt;&lt;/a&gt;&amp;nbsp;that was worthwhile to the new administrator.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style="color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 10pt;"&gt;If you are into Linux from a support or development perspective than I encourage you to take a look at the&amp;nbsp;&lt;a href="http://www.cyberciti.biz/"&gt;&lt;span style="color: #727248;"&gt;nixCraft&lt;/span&gt;&lt;/a&gt;&amp;nbsp;site as I am sure that you will find something useful.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-417524926470643838?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/417524926470643838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/12/nixcraft-linux-administration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/417524926470643838?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/417524926470643838?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/12/nixcraft-linux-administration.html' title='NixCraft – Linux Administration'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUcHQHs_cSp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-582788314450789832</id><published>2010-11-26T10:16:00.001+05:30</published><updated>2011-03-17T15:47:11.549+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:47:11.549+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='GPT in Redhat'/><category scheme='http://www.blogger.com/atom/ns#' term='Disk more than 2 TB'/><category scheme='http://www.blogger.com/atom/ns#' term='GPT in Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Parted'/><category scheme='http://www.blogger.com/atom/ns#' term='Disk Management'/><category scheme='http://www.blogger.com/atom/ns#' term='GUID Partition Table'/><title>How can I create a disk partition on a disk that is greater than 2TB in size?</title><content type='html'>&lt;h3 class="post-title entry-title"&gt;&lt;a href="http://shiroyp.blogspot.com/2010/03/how-can-i-create-disk-partition-on-disk.html"&gt;&lt;/a&gt; &lt;/h3&gt;&lt;div class="post-header"&gt;&lt;/div&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;The &lt;i&gt;&lt;b&gt;fdisk&lt;/b&gt;&lt;/i&gt; command only supports the legacy MBR partition table format (also known as msdos partition table)&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;MBR partition table do not support disks greater than 2.1TB, and therefore fdisk is also unable to create partition tables on these devices.&lt;/li&gt;
&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Note that some older versions of &lt;i&gt;&lt;b&gt;fdisk&lt;/b&gt;&lt;/i&gt; may permit a larger size to be created but the resulting partition table will be invalid.&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;The &lt;i&gt;&lt;b&gt;parted&lt;/b&gt;&lt;/i&gt; command can create disk labels using MBR (msdos), GUID Partition Table (GPT), SUN disk labels and many more types.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;The GPT disk label overcomes many of the limitations of the DOS MBR including restrictions on the size of the disk, the size of any one partition and the overall number of partitions.&lt;/li&gt;
&lt;li&gt;Note that booting from a GPT labelled volume requires firmware support and this is not commonly available on non-EFI platforms (including x86 and x86_64 architectures).&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;b&gt;Procedure: &lt;/b&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Use the parted tool to access the partition table of the device:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;# parted /dev/sdj
Using /dev/sdj
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)&lt;/code&gt;&lt;/pre&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Once at the &lt;i&gt;&lt;b&gt;parted&lt;/b&gt;&lt;/i&gt; prompt, create a GPT label on the disk:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;(parted) mklabel
Warning: The existing disk label on /dev/sdj will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? Yes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
New disk label type?&amp;nbsp; [gpt]? gpt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
(parted)&lt;/code&gt;&lt;/pre&gt;&lt;b&gt;Note:&lt;/b&gt; This will remove any existing partition table and partitions on the device. &lt;/li&gt;
&lt;/ul&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;Use the &lt;i&gt;&lt;b&gt;print&lt;/b&gt;&lt;/i&gt; command to show the size of the disk as reported by parted.&amp;nbsp; We need this later:&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;(parted) print&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

Model: Linux device-mapper (dm)
Disk /dev/sdj: 5662310.4MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number&amp;nbsp; Start&amp;nbsp; End&amp;nbsp; Size&amp;nbsp; File system&amp;nbsp; Name&amp;nbsp; Flags&lt;/code&gt;&lt;/pre&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Create a primary partition on the device.&amp;nbsp; In this example, the partition will encompass the entire disk (using size from the step above):&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;(parted) mkpart primary 0 5662310.4MB&lt;/code&gt;&lt;/pre&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Unlike fdisk, you do not have to write out the partition table changes with &lt;i&gt;&lt;b&gt;parted&lt;/b&gt;&lt;/i&gt;.&amp;nbsp; Display your new partition and quit.&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;(parted) print

Model: Linux device-mapper (dm)
Disk /dev/mapper/VolGroup00-gpttest: 5662310.4MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number&amp;nbsp; Start&amp;nbsp;&amp;nbsp; End&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File system&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flags
 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17.4kB&amp;nbsp; 5662310.4MB&amp;nbsp; 5662310.4MB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; primary&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

(parted) quit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
Information: Don't forget to update /etc/fstab, if necessary.&lt;/code&gt;&lt;/pre&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;You can now create a filesystem on the device /dev/sdj1&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-582788314450789832?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/582788314450789832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/03/how-can-i-create-disk-partition-on-disk_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/582788314450789832?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/582788314450789832?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/03/how-can-i-create-disk-partition-on-disk_30.html' title='How can I create a disk partition on a disk that is greater than 2TB in size?'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUcCRX84eip7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-8162064348894580404</id><published>2010-11-17T09:25:00.001+05:30</published><updated>2011-03-17T15:47:44.132+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:47:44.132+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='DNS'/><category scheme='http://www.blogger.com/atom/ns#' term='Concepts'/><category scheme='http://www.blogger.com/atom/ns#' term='Tech Cartoons'/><title>How a Web Browser Works?</title><content type='html'>&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_18DUHEX-OM8/TONR-PmNiQI/AAAAAAAAAq4/Y_e6laBcR7w/s1600/browser_cartoon3.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_18DUHEX-OM8/TONR-PmNiQI/AAAAAAAAAq4/Y_e6laBcR7w/s1600/browser_cartoon3.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Add caption&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-8162064348894580404?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/8162064348894580404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/11/how-web-browser-works.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/8162064348894580404?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/8162064348894580404?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/11/how-web-browser-works.html' title='How a Web Browser Works?'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_18DUHEX-OM8/TONR-PmNiQI/AAAAAAAAAq4/Y_e6laBcR7w/s72-c/browser_cartoon3.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUcNR348cSp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-1925907626353665519</id><published>2010-04-13T13:00:00.001+05:30</published><updated>2011-03-17T15:48:16.079+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:48:16.079+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='SEPM 11'/><category scheme='http://www.blogger.com/atom/ns#' term='Communication Ports'/><category scheme='http://www.blogger.com/atom/ns#' term='SEPM'/><category scheme='http://www.blogger.com/atom/ns#' term='Symantec'/><category scheme='http://www.blogger.com/atom/ns#' term='Antivirus'/><title>Which communication ports does Symantec Endpoint Protection 11.0 use?</title><content type='html'>&lt;span style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;The Symantec Endpoint Protection Manager (SEPM) use two web servers: Internet Information Services (IIS) and Tomcat. IIS uses port 80 (or 8014) and 443 - Tomcat uses port 9090 and 8443. The communication between IIS and Tomcat uses the HTTP protocol. IIS uses port 9090 to talk to Tomcat, Tomcat uses port 80 to talk to IIS.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style="font-family: Arial,Helvetica,sans-serif;"&gt;Client-Server Communication:&lt;/b&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt; For IIS SEP uses HTTP or HTTPS between the clients or Enforcers and the server. For the client server communication it uses port 80 (or 8014) and 443 by default. In addition, the Enforcers use RADIUS to communicate in real-time with the manager console for clients authentication. This is done on UDP port 1812.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style="font-family: Arial,Helvetica,sans-serif;"&gt;Remote Console:&lt;/b&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt; 9090 is used by the remote console to download .jar files and display the help pages.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt; 8443 is used by the remote console to communicate with SEPM and the Replication Partners to replicate data.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_18DUHEX-OM8/S7mjZvs74lI/AAAAAAAAAeA/3sjoGm6uoyg/s1600/untitled.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="513" src="http://1.bp.blogspot.com/_18DUHEX-OM8/S7mjZvs74lI/AAAAAAAAAeA/3sjoGm6uoyg/s640/untitled.JPG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b style="font-family: Arial,Helvetica,sans-serif;"&gt;Client-Enforcer Authentication:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt; The clients communicate with the Enforcer using a proprietary communication protocol. This communication uses a challenge-response to authenticate the clients. The default port for this is UDP 39,999. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-1925907626353665519?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/1925907626353665519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/04/which-communication-ports-does-symantec.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/1925907626353665519?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/1925907626353665519?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/04/which-communication-ports-does-symantec.html' title='Which communication ports does Symantec Endpoint Protection 11.0 use?'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_18DUHEX-OM8/S7mjZvs74lI/AAAAAAAAAeA/3sjoGm6uoyg/s72-c/untitled.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYGRXs_fCp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-8379121748182359292</id><published>2010-04-13T12:54:00.001+05:30</published><updated>2011-03-17T15:48:44.544+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T15:48:44.544+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='UNIX'/><category scheme='http://www.blogger.com/atom/ns#' term='syslog'/><category scheme='http://www.blogger.com/atom/ns#' term='AIX'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='system logs'/><title>View System Logs Live</title><content type='html'>&lt;span style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;If you want to monitor the system logs in a live environment, you can use the tail command with an option -f or -F.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;This will work in any Linux/UNIX environment.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;To exit from the view, you can use Ctrl + C. The same option can be used with any text based files to find the updation to the file in live environment.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;Usage:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;# tail -f /var/log/messages&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Times&amp;quot;;"&gt;or&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;# tail -F /var/adm/messages&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;tail -f will work as long as the underlying file we’re trying to read doesn’t change. If you’re trying to read a link to a file and the original file (and thus the link) changes, tail -f will not work.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;For that reason, its better to use tail -F for such files as described above … or tail -f –retry&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-8379121748182359292?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/8379121748182359292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/04/view-system-logs-live.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/8379121748182359292?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/8379121748182359292?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/04/view-system-logs-live.html' title='View System Logs Live'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkQFQ3w6eyp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-8773397471311579567</id><published>2010-04-13T12:50:00.001+05:30</published><updated>2011-03-17T16:08:32.213+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T16:08:32.213+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Network Access Control'/><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='NAC'/><category scheme='http://www.blogger.com/atom/ns#' term='NAC Working'/><title>How Network Access Controls Work?</title><content type='html'>&lt;span style="font-family: &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt;Network access control is the process of restricting the access to network resources by devices that are used by the end user. Network access controls implement a defined security policy for access which is supported by a network access server that performs the authentication and authorization. The server also restricts the data that each user can access, as well as the activities that can be performed by the end user once they gain access to the network.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;How Network Access Controls Work&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt; There are several different types of network access controls that perform different functions according to the needs of the organization and the level of security that is required for performing daily functions.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt; •Agent-Based Network Access Control: An agent-based network access control operates through the endpoint device (user's device) which provides a higher level of security and ensures that the end-user is complying with security policies. The unit continually operates in the background of the device to monitor security compliance and then sends periodic updates to the policy server.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt; •Agentless Network Access Control: An agentless network access control does not require any added installations. Instead this type of network access control assesses compliancy on both endpoints before the user is allowed to access the network. The problem with this type of network access control is that authorization is provided through the assessment of network traffic. This makes the application easier to exploit to gain unauthorized access to the network system.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt; •Hardware-Based Network Access Control: A hardware-based network access control works through an appliance that is installed on the network and functions in conjunction with the network traffic. This type of network access control requires changes in the infrastructure and operational practices to allow for defined access by the end user. Because implementation requires significant server configuration changes, the chances of failure are greater than other network access control systems.•Dynamic Network Access Control: Dynamic network access control is the easiest form of deployment for controlling access by end users. This is because the system does not require any software or hardware appliance installation or changes in the network configuration. Instead a dynamic network access control works on specific computers that are connected to a local area network and are considered to be trusted systems. When an unauthorized user attempts to access the network, the trusted systems will restrict access and then communicate the action to the main policy server.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;, sans-serif;"&gt; The type of network access control you choose for your organization depends upon your network configuration and set up. Before choosing an option that suits your organization, it is necessary to evaluate the network configuration and the different reasons for defining access by the end users.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-8773397471311579567?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/8773397471311579567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/04/how-network-access-controls-work.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/8773397471311579567?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/8773397471311579567?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/04/how-network-access-controls-work.html' title='How Network Access Controls Work?'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkMER38zfCp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-6601020479756283491</id><published>2010-04-13T09:38:00.002+05:30</published><updated>2011-03-17T16:10:06.184+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T16:10:06.184+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Irix Runlevels'/><category scheme='http://www.blogger.com/atom/ns#' term='SYSV'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux Runlevels'/><category scheme='http://www.blogger.com/atom/ns#' term='OpenBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='UNIX'/><category scheme='http://www.blogger.com/atom/ns#' term='OPenBSD Runlevels'/><category scheme='http://www.blogger.com/atom/ns#' term='AIX'/><category scheme='http://www.blogger.com/atom/ns#' term='Irix'/><category scheme='http://www.blogger.com/atom/ns#' term='ULTRIX'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Digital UNIX / Tru64'/><category scheme='http://www.blogger.com/atom/ns#' term='Run Levels'/><category scheme='http://www.blogger.com/atom/ns#' term='AIX Runlevels'/><title>Run Levels of various Operating Systems</title><content type='html'>The term runlevel refers to a mode of operation in one of the computer operating systems that implement Unix System V-style initialization. Conventionally, seven runlevels exist, numbered from zero to six; though up to ten, from zero to nine, may be used. S is sometimes used as a synonym for one of the levels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In standard practice, when a computer enters runlevel zero, it halts, and when it enters runlevel six, it reboots. The intermediate runlevels (1-5) differ in terms of which drives are mounted, and which network services are started. Lower run levels are useful for maintenance or emergency repairs, since they usually don’t offer any network services at all. The particular details of runlevel configuration differ widely among operating systems, and slightly among system administrators.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The runlevel system replaced the traditional /etc/rc script used in Version 7 Unix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-size: large;"&gt;Run Levels in Solaris&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
S, s&lt;br /&gt;
&lt;br /&gt;
Single user mode. Doesn’t require properly formated /etc/inittab. Filesystems required for basic system operation are mounted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
0&lt;br /&gt;
&lt;br /&gt;
Go into firmware (sparc)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1&lt;br /&gt;
&lt;br /&gt;
System Administrator mode. All local filesystems are mounted. Small set of essential system processes are running. Also a single user mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2&lt;br /&gt;
&lt;br /&gt;
Put the system in multi-user mode. All multi-user environment terminal processes and daemons are spawned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3&lt;br /&gt;
&lt;br /&gt;
Extend multi-user mode by making local resources available over the network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4&lt;br /&gt;
&lt;br /&gt;
Is available to be defined as an alternative multi-user environment configuration. It is not necessary for system operation and is usually not used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5&lt;br /&gt;
&lt;br /&gt;
Shut the machine down so that it is safe to remove the power. Have the machine remove power, if possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6&lt;br /&gt;
&lt;br /&gt;
Reboot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a, b, c&lt;br /&gt;
&lt;br /&gt;
Process only those /etc/inittab entries having the a, b, or c run level set. These are pseudo-states, which may be defined to run certain commands, but which do not cause the current run level to change.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q, q&lt;br /&gt;
&lt;br /&gt;
Re-examine /etc/inittab.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-size: large;"&gt;Run Levels in HP-UX&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
0&lt;br /&gt;
&lt;br /&gt;
System is completely shut down. All processes are terminated and all file systems are unmounted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1,s,S&lt;br /&gt;
&lt;br /&gt;
Single-user mode. All system services and daemons are terminated and all file systems are unmounted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2&lt;br /&gt;
&lt;br /&gt;
Multi-user mode, except NFS is not enabled.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3&lt;br /&gt;
&lt;br /&gt;
Multi-user mode. This is the normal operational default state. NFS is enabled.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4&lt;br /&gt;
&lt;br /&gt;
Multi-user mode with NFS and VUE. (VUE is HP’s desktop, kinda like CDE)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6&lt;br /&gt;
&lt;br /&gt;
Reboot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-size: large;"&gt;Run Levels in OpenBSD&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
-1&lt;br /&gt;
&lt;br /&gt;
Permanently insecure mode – always run system in level 0 mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
0&lt;br /&gt;
&lt;br /&gt;
Insecure mode – immutable and append-only flags may be changed. All devices may be read or written subject to their permissions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1&lt;br /&gt;
&lt;br /&gt;
Secure mode – system immutable and append-only flags may not be turned off; disks for mounted filesystems, /dev/mem, and /dev/kmem are read-only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2&lt;br /&gt;
&lt;br /&gt;
Highly secure mode – same as secure mode, plus disks are always read-only whether mounted or not and the settimeofday(2) system call can only advance the time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-size: large;"&gt;Run Levels in ULTRIX, Digital UNIX / Tru64&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
0&lt;br /&gt;
&lt;br /&gt;
System is completely shut down. All processes are terminated and all file systems are unmounted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1&lt;br /&gt;
&lt;br /&gt;
Single-user mode. All system services and daemons are terminated and all file systems are unmounted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2&lt;br /&gt;
&lt;br /&gt;
Multi-user mode, except NFS is not enabled.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3&lt;br /&gt;
&lt;br /&gt;
Multi-user mode. This is the normal operational default state. NFS is enabled.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4&lt;br /&gt;
&lt;br /&gt;
Not Used&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5&lt;br /&gt;
&lt;br /&gt;
Not Used&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6&lt;br /&gt;
&lt;br /&gt;
Reboot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-size: large;"&gt;Run Levels in Irix&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
0&lt;br /&gt;
&lt;br /&gt;
Shut the machine down so it is safe to remove the power. Have the machine remove power if it can.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1&lt;br /&gt;
&lt;br /&gt;
Put the system into system administrator mode. All filesystems are mounted. Only a small set of essential kernel processes run. This mode is for administrative tasks such as installing optional utilities packages. All files are accessible and no users are logged in on the system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2&lt;br /&gt;
&lt;br /&gt;
Put the system into multi-user state. All multi-user environment terminal processes and daemons are spawned. Default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3&lt;br /&gt;
&lt;br /&gt;
Start the remote file sharing processes and daemons. Mount and advertise remote resources. Run level 3 extends multi-user mode and is known as the remote-file-sharing state.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4&lt;br /&gt;
&lt;br /&gt;
Define a configuration for an alternative multi-user environment. This state is not necessary for normal system operations; it is usually not used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5&lt;br /&gt;
&lt;br /&gt;
Stop the IRIX system and enter firmware mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6&lt;br /&gt;
Stop the IRIX system and reboot to the state defined by the initdefault entry in inittab.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
a,b,c&lt;br /&gt;
&lt;br /&gt;
Process only those inittab entries for which the run level is set to a, b, or c. These are pseudo-states that can be defined to run certain commands but do not cause the current run level to change.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q,q&lt;br /&gt;
&lt;br /&gt;
Re-examine inittab.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S,s&lt;br /&gt;
&lt;br /&gt;
Enter single-user mode. When the system changes to this state as the result of a command, the terminal from which the command was executed becomes the system console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-size: large;"&gt;Run Levels in SYSV&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The following is from a SYSV text book, it’s the generally used run level for SYSV systems.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
0&lt;br /&gt;
&lt;br /&gt;
Power-down state. Shuts machine down gracefully so that it can be turned off. Some models turn off automatically.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
s&lt;br /&gt;
&lt;br /&gt;
Single user state. This run level should be used when installing or removing software utilities, checking file systems, or using Maintenance (/install) file system. It is similar to run level 1; however, in run level s, multi-user file systems are unmounted and daemons are stopped. The terminal issuing the init s becomes the console.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1&lt;br /&gt;
&lt;br /&gt;
Administrative state. In run level 1, file systems required for multi-user operations are mounted. And loggias requiring access to multi-user file systems can be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2&lt;br /&gt;
&lt;br /&gt;
Multi-user state. File systems are mounted and normal user services are started.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3&lt;br /&gt;
&lt;br /&gt;
Network File System (NFS) state. Prepares your system to use NFS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4&lt;br /&gt;
&lt;br /&gt;
User-defined&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5&lt;br /&gt;
&lt;br /&gt;
Virtually the same as System State 6. See /sbin/rc0 script for details. Early versions of UNIX used this as an entry to a firmware interface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6&lt;br /&gt;
&lt;br /&gt;
Power-down and reboot to the state defined by the initdefault entry in the /etc/inittab file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-size: large;"&gt;Run Levels in Linux&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
0&lt;br /&gt;
&lt;br /&gt;
Halt the system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1&lt;br /&gt;
&lt;br /&gt;
Single-user mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2-4&lt;br /&gt;
&lt;br /&gt;
Multi-user modes. Usually identical. Level 2 or 3 is default (dependent on distro).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5&lt;br /&gt;
&lt;br /&gt;
Multi-user with graphical environment. This applies to most (but not all) distros.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6&lt;br /&gt;
&lt;br /&gt;
Reboot the system and return to default run level.&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-6601020479756283491?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/6601020479756283491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/04/run-levels-of-various-operating-systems.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/6601020479756283491?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/6601020479756283491?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/04/run-levels-of-various-operating-systems.html' title='Run Levels of various Operating Systems'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkIHQHs-cCp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-4561840650567172872</id><published>2010-04-13T09:32:00.003+05:30</published><updated>2011-03-17T16:12:11.558+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T16:12:11.558+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='MicroChannel Systems'/><category scheme='http://www.blogger.com/atom/ns#' term='Booting'/><category scheme='http://www.blogger.com/atom/ns#' term='AIX Booting'/><category scheme='http://www.blogger.com/atom/ns#' term='AIX'/><category scheme='http://www.blogger.com/atom/ns#' term='Service Mode'/><category scheme='http://www.blogger.com/atom/ns#' term='P Series Booting'/><category scheme='http://www.blogger.com/atom/ns#' term='Booting Service Mode'/><category scheme='http://www.blogger.com/atom/ns#' term='IBM Server'/><category scheme='http://www.blogger.com/atom/ns#' term='IBM Hardware'/><title>Booting microchannel systems into Service mode</title><content type='html'>To boot microchannel systems into Service mode, turn the key to the Maintenance position and press the yellow reset button twice. You must boot from bootable media, such as an installation CD-ROM, installation tape, or a bootable backup tape made via the mksysb command or the Sysback product of the correct level for this machine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For AIX Version 3.2, you may use bootable bosboot diskettes. To boot from these, insert the first bosboot diskette into the diskette drive. When you see LED c07, insert the next diskette, which is usually the display extensions diskette. After this diskette is read, you should receive a menu prompting you for the installation diskette.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For information on accessing your rootvg volume group, see the section entitled “Accessing rootvg and mounting file systems”.&lt;br /&gt;
&lt;br /&gt;
The preceding discussion assumes that the Service mode bootlist has not been modified from the default bootlist. If the bootlist has been modified, it must be reset such that one of the boot media types from the preceding selections is before the standard boot media, such asthe hard disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the machine is an SMP model (7012-Gxx, 7013-Jxx, and 7015-Rxx) and the Autoservice IPL flag is disabled, then a menu like the following will display when it is booting in Service mode:&lt;br /&gt;
&lt;br /&gt;
MAINTENANCE MENU (Rev. 04.03)&lt;br /&gt;
&lt;br /&gt;
0&amp;gt; DISPLAY CONFIGURATION&lt;br /&gt;
&lt;br /&gt;
1&amp;gt; DISPLAY BUMP ERROR LOG&lt;br /&gt;
&lt;br /&gt;
2&amp;gt; ENABLE SERVICE CONSOLE&lt;br /&gt;
&lt;br /&gt;
3&amp;gt; DISABLE SERVICE CONSOLE&lt;br /&gt;
&lt;br /&gt;
4&amp;gt; RESET&lt;br /&gt;
&lt;br /&gt;
5&amp;gt; POWER OFF&lt;br /&gt;
&lt;br /&gt;
6&amp;gt; SYSTEM BOOT&lt;br /&gt;
&lt;br /&gt;
7&amp;gt; OFF-LINE TESTS&lt;br /&gt;
&lt;br /&gt;
8&amp;gt; SET PARAMETERS&lt;br /&gt;
&lt;br /&gt;
9&amp;gt; SET NATIONAL LANGUAGE&lt;br /&gt;
&lt;br /&gt;
SELECT:&lt;br /&gt;
&lt;br /&gt;
You can boot these machines into Service mode or even Normal mode with the Fast IPL Flag set. If you do not, the machine can take anywhere from 30 to 60 minutes to boot up. There are a few ways to set the Fast IPL Flag for these machines.&lt;br /&gt;
&lt;br /&gt;
NOTE: The console must be an ASCII type and connected to the S1 port of the system. Graphic monitors will not work.&lt;br /&gt;
&lt;br /&gt;
Use the following instructions to boot SMP machines into service with Fast IPL set.&lt;br /&gt;
&lt;br /&gt;
1. Insert the bootable media of the same OS Level. Use the mksysb/cd-rom command.&lt;br /&gt;
&lt;br /&gt;
2. Turn off the machine by pressing the white button on front.&lt;br /&gt;
&lt;br /&gt;
3. Turn the key to the Wrench or Service position.&lt;br /&gt;
&lt;br /&gt;
4. The LCD should read STAND-BY.&lt;br /&gt;
&lt;br /&gt;
5. Press the Enter key on the console.&lt;br /&gt;
&lt;br /&gt;
6. A greater-than prompt (&amp;gt;) should display on the monitor.&lt;br /&gt;
&lt;br /&gt;
7. Type in sbb followed by the Enter key.&lt;br /&gt;
&lt;br /&gt;
8. The menu Stand By Menu should now display.&lt;br /&gt;
&lt;br /&gt;
9. Select 1 Set Flags. This will take you to another set of menus.&lt;br /&gt;
&lt;br /&gt;
10. Select 6 Fast IPL. This should change to enable after it is selected.&lt;br /&gt;
&lt;br /&gt;
11. Enter x to exit the second set of menus.&lt;br /&gt;
&lt;br /&gt;
12. Enter x to exit the first menu.&lt;br /&gt;
&lt;br /&gt;
13. At a blank screen, press the Enter key to obtain the greater-than prompt (&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
14. Type in the word power followed by the Enter key.&lt;br /&gt;
&lt;br /&gt;
15. Turn the machine back on. It should start to boot up. A prompt may display asking if you want to update the firmware. Do not respond; let it continue.&lt;br /&gt;
&lt;br /&gt;
16. Now you may be at the Maintenance Menu with 10 options displayed, 0 through 9. If that is the case, select option 6, System Boot. This will take you to another menu. Select option 0, Boot from the list.&lt;br /&gt;
&lt;br /&gt;
17. The Standard Maintenance Menu should display. System recovery and maintenance can be completed from here.&lt;br /&gt;
&lt;br /&gt;
18. After system recovery and maintenance has been performed, the system is ready to be rebooted into Normal mode. Enter the command mpcfg -cf 11 1 at the command line prompt, then press Enter. This will set the Fast IPL Flag. The system is ready to reboot.&lt;br /&gt;
&lt;br /&gt;
19. Turn the key back to the OK/Normal position.&lt;br /&gt;
&lt;br /&gt;
20. Enter shutdown -Fr, followed by the Enter key.&lt;br /&gt;
&lt;br /&gt;
________________________________________&lt;br /&gt;
&lt;br /&gt;
Booting PCI-based systems into Service mode&lt;br /&gt;
&lt;br /&gt;
When booting a PowerPC into Service mode, cd0 or rmt0 must be before the hdisk in the bootlist. If not, change the bootlist at boot time. On some models, you can set the machine to use a default bootlist that includes both cd0 and rmt0. If a bootable CD or tape is in the CD-ROM or tape drive, the machine will boot from this device.&lt;br /&gt;
&lt;br /&gt;
For most of the newer PCI-based models, selecting the default bootlist, with a bootable tape or CD loaded in the machine, causes the system to automatically boot from that device. Generally, the next menu on the screen asks the administrator to define the system console.&lt;br /&gt;
&lt;br /&gt;
For all machines discussed here, if you are using a graphical terminal, you will use a function key such as F5. If you are using an ASCII terminal, use an equivalent number key such as 5. Use the numbers across the top of the keyboard, not the numbers on the numeric keypad. On ASCII terminals, the icons may not be displayed on the screen; the number can be pressed between the second and third beeps, the second beep being a series of three clicks.&lt;br /&gt;
&lt;br /&gt;
________________________________________&lt;br /&gt;
&lt;br /&gt;
PCI machine-specific information&lt;br /&gt;
&lt;br /&gt;
The following systems all use the F5 or 5 key to read from the default boot list, which is written into the system firmware:&lt;br /&gt;
&lt;br /&gt;
MODEL 7017 7024 7025 7026 7043 7137&lt;br /&gt;
&lt;br /&gt;
——- ——- ——- ——- ——- ——- ——-&lt;br /&gt;
&lt;br /&gt;
TYPE S70 E20 F30 H10 43P-140 F3L&lt;br /&gt;
&lt;br /&gt;
S7A E30 F40 H50 43P-150&lt;br /&gt;
&lt;br /&gt;
S80 F50 H70 43P-240&lt;br /&gt;
&lt;br /&gt;
B80 43P-260&lt;br /&gt;
&lt;br /&gt;
On these machines, use 5 (on the keyboard, not the keypad) if you are using an ASCII terminal. On a locally attached graphics console, use the F5 function key. The F5 or 5 key must be pressed just after the keyboard icon or message is displayed on the console. If you have either a 7026-M80, 7026-H80 or a 7025-F80, then the 5 key will be the default whether you have an ascii or graphics console.&lt;br /&gt;
&lt;br /&gt;
The following systems use the F1 key to enter System Management Services mode (SMS):&lt;br /&gt;
&lt;br /&gt;
MODEL 6040 7042 7247 7249&lt;br /&gt;
&lt;br /&gt;
——- ——- ——- ——- ——-&lt;br /&gt;
&lt;br /&gt;
TYPE 620 850 82x 860&lt;br /&gt;
&lt;br /&gt;
You should be in an Easy-Setup menu. Select the Start Up menu. Clear the current bootlist settings and then select the CD-ROM for choice 1 and hdd (the hard disk) for choice 2. Select OK. Insert the CD-ROM and select the EXIT icon. The machine should now boot from the CD-ROM.&lt;br /&gt;
&lt;br /&gt;
The following systems use the F2 key to enter SMS:&lt;br /&gt;
&lt;br /&gt;
MODEL 6015 6050 6070 7020 7248&lt;br /&gt;
&lt;br /&gt;
——- ——- ——- ——- ——- ——-&lt;br /&gt;
&lt;br /&gt;
TYPE 440 830 850 40P 43P&lt;br /&gt;
&lt;br /&gt;
Select Select Boot Device from the initial menu on the screen, and then select Restore Default Settings from the list. Press the Esc key to exit all the menus, and then reboot the machine. The system should boot from your bootable media.&lt;br /&gt;
&lt;br /&gt;
For information on accessing the rootvg volume group, see the next section in this document.&lt;br /&gt;
&lt;br /&gt;
________________________________________&lt;br /&gt;
&lt;br /&gt;
Accessing rootvg and mounting file systems&lt;br /&gt;
&lt;br /&gt;
For AIX Version 3, choose the limited function maintenance shell (option 5 for AIX 3.1, option 4 for AIX 3.2).&lt;br /&gt;
&lt;br /&gt;
If you only have one disk on the system, then hdisk0 will be used in the execution of the getrootfs or /etc/continue commands, which follow. If you have more than one disk, determine which disk contains the boot logical volume in this manner:&lt;br /&gt;
&lt;br /&gt;
AIX 3.2.4 or AIX 3.2.5:&lt;br /&gt;
&lt;br /&gt;
Run getrootfs; the output will indicate which disk contains the hd5 logical volume.&lt;br /&gt;
&lt;br /&gt;
AIX 3.1 to AIX 3.2.3e:&lt;br /&gt;
&lt;br /&gt;
Run lqueryvg -Ltp hdisk# for each hdisk. You can obtain a listing of these with the command lsdev -Cc disk. Repeat this command until you get output similar to the following:&lt;br /&gt;
&lt;br /&gt;
00005264feb3631c.2 hd5 1&lt;br /&gt;
&lt;br /&gt;
If more than one disk contains this output, use any disk when running getrootfs.&lt;br /&gt;
&lt;br /&gt;
Now, access the rootvg volume group by running one of the following commands, using the disk you obtained in the preceding step:&lt;br /&gt;
&lt;br /&gt;
AIX 3.1: /etc/continue hdisk#&lt;br /&gt;
&lt;br /&gt;
AIX 3.2.0-3.2.3e: getrootfs -f hdisk#&lt;br /&gt;
&lt;br /&gt;
AIX 3.2.4-3.2.5: getrootfs hdisk#&lt;br /&gt;
&lt;br /&gt;
NOTE: If you want to leave the primary OS file systems (/, /usr, /tmp, and /var) unmounted after this command has completed, to run fsck, for instance, place a space and the letters sh after the hdisk in the preceding command. For example:&lt;br /&gt;
&lt;br /&gt;
getrootfs hdisk0 sh&lt;br /&gt;
&lt;br /&gt;
For AIX Versions 4 and 5, choose Start Maintenance Mode for System Recovery , option 3. The next screen will be called Maintenance; select option 1, Access a Root Volume Group. At the next screen, type 0 to continue, and select the appropriate volume group by typing the number next to it. A screen like the following will display.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Access a Root Volume Group&lt;br /&gt;
&lt;br /&gt;
Type the number for a volume group to display the logical volume information and press Enter.&lt;br /&gt;
&lt;br /&gt;
1) Volume Group 0073656f2608e46a contains these disks:&lt;br /&gt;
&lt;br /&gt;
hdisk0 2063 04-C0-00-4,0&lt;br /&gt;
&lt;br /&gt;
Once a volume group has been selected, information will be displayed about that volume group.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Volume Group Information&lt;br /&gt;
&lt;br /&gt;
——————————————————————————&lt;br /&gt;
&lt;br /&gt;
Volume Group ID 0073656f2608e46a includes the following logical volumes:&lt;br /&gt;
&lt;br /&gt;
hd6 hd5 hd8 hd4 hd2 hd9var&lt;br /&gt;
&lt;br /&gt;
hd3 hd1&lt;br /&gt;
&lt;br /&gt;
——————————————————————————&lt;br /&gt;
&lt;br /&gt;
Type the number of your choice and press Enter.&lt;br /&gt;
&lt;br /&gt;
1) Access this Volume Group and start a shell&lt;br /&gt;
&lt;br /&gt;
2) Access this Volume Group and start a shell before mounting filesystems&lt;br /&gt;
&lt;br /&gt;
99) Previous Menu&lt;br /&gt;
&lt;br /&gt;
If the logical volumes listed do not include logical volumes like hd4, hd2, hd3, and so on, you may have selected the wrong volume group. Press 99 to back up one screen and select again.&lt;br /&gt;
&lt;br /&gt;
Now you may select one of two options: Access this volume group and start a shell , option 1, or Access this volume group and start a shell before mounting file systems , option 2. Option 2 allows you to perform file system maintenance on /, /usr, /tmp, and /var before mounting them.&lt;br /&gt;
&lt;br /&gt;
NOTE: If you intend to use SMIT or vi, set your terminal type in preparation for editing the file. xxx stands for a terminal type such as lft, ibm3151, or vt100.&lt;br /&gt;
&lt;br /&gt;
TERM=&lt;br /&gt;
&lt;br /&gt;
export TERM&lt;br /&gt;
&lt;br /&gt;
Errors from these steps may indicate failed or corrupt disks in rootvg. These problems should be corrected. For additional assistance, contact your vendor, your local branch office, or your AIX support center.&lt;br /&gt;
&lt;br /&gt;
________________________________________&lt;br /&gt;
&lt;br /&gt;
Known problems&lt;br /&gt;
&lt;br /&gt;
NOTE: Ensure you are using an original AIX base media to boot from, rather than a burned copy.&lt;br /&gt;
&lt;br /&gt;
You may receive the following error when trying to access rootvg in service mode at AIX 5.1:&lt;br /&gt;
&lt;br /&gt;
Examine .loader section symbols with the ‘dump -Tv’ command.&lt;br /&gt;
&lt;br /&gt;
Could not load program /usr/bin/ksh: Symbol resolution failed for /usr/lib/libc.a (shr.o)&lt;br /&gt;
&lt;br /&gt;
because: OID Symbol getvtid (number 258) is not exported from dependent RS4&lt;br /&gt;
&lt;br /&gt;
module /unix.&lt;br /&gt;
&lt;br /&gt;
This error is likely due to a mismatch of the boot media and the system’s AIX level.&lt;br /&gt;
&lt;br /&gt;
Solution&lt;br /&gt;
&lt;br /&gt;
Use a non-auto install mksysb from the same system, or use AIX CD media labeled LCD4-1061-04 or higher (9/23/2002, integranted ML03)&lt;br /&gt;
&lt;br /&gt;
________________________________________&lt;br /&gt;
&lt;br /&gt;
Related documentation&lt;br /&gt;
&lt;br /&gt;
For more in-depth coverage of this subject, the following IBM publication is recommended:&lt;br /&gt;
&lt;br /&gt;
AIX Version 4.3 System Management Guide: Operating System and Devices&lt;br /&gt;
&lt;br /&gt;
AIX Version 5.1 System Management Guide: Operating System and Devices&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-4561840650567172872?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/4561840650567172872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/04/booting-microchannel-systems-into.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/4561840650567172872?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/4561840650567172872?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/04/booting-microchannel-systems-into.html' title='Booting microchannel systems into Service mode'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkMCRXYyeip7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-2989749111070621831</id><published>2010-04-13T09:07:00.001+05:30</published><updated>2011-03-17T16:11:04.892+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T16:11:04.892+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='AIX'/><category scheme='http://www.blogger.com/atom/ns#' term='Tape Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Installing AIX from Tape'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Tape backup'/><title>Installing AIX from Tape Backup</title><content type='html'>The AIX operating system can be installed from a system backup tape created using smitty mksysb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To install AIX from a system backup:&lt;br /&gt;
&lt;br /&gt;
1. Make sure that the tape drive is turned ON.&lt;br /&gt;
&lt;br /&gt;
2. Make sure that the server is turned ON.&lt;br /&gt;
&lt;br /&gt;
3. Open the tape drive door.&lt;br /&gt;
&lt;br /&gt;
4. Turn the key to “Service”.&lt;br /&gt;
&lt;br /&gt;
5. Insert the AIX Operating System backup tape into the tape drive.&lt;br /&gt;
&lt;br /&gt;
6. Close the tape drive door.&lt;br /&gt;
&lt;br /&gt;
7. On the server, press the “Reset” button twice.&lt;br /&gt;
&lt;br /&gt;
If the TESTING COMPLETED screen displays, press [[Enter]] to continue.&lt;br /&gt;
&lt;br /&gt;
Note: For a few minutes the system might appear idle. Do not open the tape drive door. Wait for the next screen to display.&lt;br /&gt;
&lt;br /&gt;
8. The following message displays: “Please define the system Console”&lt;br /&gt;
&lt;br /&gt;
Press [[F1]] to define the system console and then press [[Enter]]. The INSTALLATION AND MAINTENANCE screen appears.&lt;br /&gt;
&lt;br /&gt;
9. Select Install a System that was created with SMIT “Backup The System” function or the “mksysb” command&lt;br /&gt;
&lt;br /&gt;
Press [[Enter]] to install the operating system from the backup tape. The CURRENT SYSTEM SETTINGS screen displays.&lt;br /&gt;
&lt;br /&gt;
10. Verify that the system settings are correct. If the correct settings are displayed, select Install a SMIT “Backup The System” image with the current setting. Press [[Enter]]. The Final Warning screen displays.&lt;br /&gt;
&lt;br /&gt;
11. Select Continue with installation. Press [[Enter]].&lt;br /&gt;
&lt;br /&gt;
12. Press [[Enter]] to start the tape. The installation takes 45 minutes to 1.5 hours.&lt;br /&gt;
&lt;br /&gt;
13. Turn the key to “Normal” before the installation completes. When the installation is complete, a screen displays indicating that the AIX Base Operating System installation is complete.&lt;br /&gt;
&lt;br /&gt;
14. Remove the AIX Operating System backup tape from the tape drive.&lt;br /&gt;
&lt;br /&gt;
15. Press [[Enter]] to reboot the server.&lt;br /&gt;
&lt;br /&gt;
16. During rebooting ignore the following error messages:&lt;br /&gt;
&lt;br /&gt;
The System Resouce Controler daemon is not active. Machine not identical previous configuration. Shutdown, rebooting&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: If the system used to create the backup tape is not the same as the system on which it is now being installed, the server might reboot two or three times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each time the server reboots, the system reconfigures. When the server reboots successfully, a login prompt displays.&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-2989749111070621831?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/2989749111070621831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/04/installing-aix-for-tape-backup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/2989749111070621831?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/2989749111070621831?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/04/installing-aix-for-tape-backup.html' title='Installing AIX from Tape Backup'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkEHRH4zfyp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-5738871833445282223</id><published>2010-04-08T12:10:00.005+05:30</published><updated>2011-03-17T16:13:55.087+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T16:13:55.087+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Software RAID'/><category scheme='http://www.blogger.com/atom/ns#' term='RAID 10'/><category scheme='http://www.blogger.com/atom/ns#' term='Redhat Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Redhat'/><title>Manage a Linux RAID 10 Storage Server</title><content type='html'>&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&lt;span style="color: black;"&gt;Linux Software RAID10&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&lt;span style="color: black;"&gt;Creating&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, sans-serif;"&gt; RAID Arrays in Linux during installation is an easy task (using the disk druid or any such graphical installers).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b style="font-family: Verdana,sans-serif;"&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;it's best to keep your root filesystem out of both RAID and LVM for easier management and recovery.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;Linux RAID and Hardware&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;I've seen a lot of confusion about Linux RAID, so let's clear that up. Linux software RAID has nothing to do with hardware RAID controllers. You don't need an add-on controller, and you don't need the onboard controllers that come on most motherboards. In fact, the lower-end PCI controllers and virtually all the onboard controllers are not true hardware controllers at all, but software-assisted, or fake RAID. There is no advantage to using these, and many disadvantages. If you have these, make sure they are disabled.&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;Ordinary PC motherboards support up to six SATA drives, and PCI SATA controllers provide an easy way to add more. Don't forget to scale up your power and cooling as you add drives.&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;If you're using PATA disks, only use one per IDE controller. If you have both a master/slave on a single IDE controller, performance will suffer and any failure risks bringing down both the controller and the second disk.&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;GRUB Follies&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: x-small;"&gt;G&lt;span style="font-size: small;"&gt;RUB Legacy's (v. 0.9x) lack of support for RAID is why we have to jump through hoops just to boot the darned thing. Beware your Linux's default boot configuration, because GRUB must be installed to the MBRs of at least the first two drives in your RAID1 array, assuming you want it to boot when there is a drive failure. Most likely your Linux installer only installs it to the MBR of the drive that is first in the BIOS order, so you'll need to manually install it on a secondary disk.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;First open the GRUB command shell. This example installs it to &lt;i&gt;/dev/sdb&lt;/i&gt;, which GRUB sees as &lt;b&gt;hd1&lt;/b&gt; because it is the second disk on the system:&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: large;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;   &lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: large;"&gt;&lt;tt&gt; &lt;span style="font-size: small;"&gt;root@uberpc ~# &lt;b&gt;grub&lt;/b&gt;&lt;br /&gt;
GNU GRUB  version 0.97  (640K lower / 3072K upper memory) &lt;br /&gt;
&lt;br /&gt;
Minimal BASH-like line editing is supported.  For the first word, TAB    lists possible command completions.  Anywhere else TAB lists the possible    completions of a device/filename. &lt;br /&gt;
&lt;br /&gt;
grub&amp;amp;gt; &lt;b&gt;root (hd1,0)&lt;/b&gt;&lt;br /&gt;
Filesystem type is ext2fs, partition type 0xfd &lt;br /&gt;
&lt;br /&gt;
grub&amp;amp;gt; &lt;b&gt;setup (hd1)&lt;/b&gt;&lt;br /&gt;
Checking if "/boot/grub/stage1" exists... yes&lt;br /&gt;
Checking if "/boot/grub/stage2" exists... yes&lt;br /&gt;
Checking if "/boot/grub/e2fs_stage1_5" exists... yes&lt;br /&gt;
Running "embed /boot/grub/e2fs_stage1_5 (hd1)"...  17 sectors are embedded. succeeded&lt;br /&gt;
Running "install /boot/grub/stage1 (hd1) (hd1)1+17 p (hd1,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded&lt;br /&gt;
Done.&amp;nbsp;&lt;/span&gt;   &lt;/tt&gt;&lt;/span&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;   &lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;You can do this to every disk in your RAID 1 array. &lt;i&gt;/boot/grub/menu.lst&lt;/i&gt; should have a default entry that looks like something like this:&lt;/span&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;   &lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: large;"&gt;&lt;tt&gt; &lt;span style="font-size: small;"&gt;title           Ubuntu 7.10, kernel 2.6.22-14-generic, default root            (hd0,0)&lt;br /&gt;
kernel          /boot/vmlinuz-2.6.22-14-generic root=/dev/md0  ro&lt;br /&gt;
initrd          /boot/initrd.img-2.6.22-14-generic&amp;nbsp;&lt;/span&gt;&lt;/tt&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;   &lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;Let's say &lt;i&gt;hd0,0&lt;/i&gt; is really &lt;i&gt;/dev/sda1&lt;/i&gt;. If this disk fails, the next drive in line becomes &lt;i&gt;hd0,0&lt;/i&gt;, so you only need this single default entry.&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;GRUB sees PATA drives first, SATA drives second. Let's say you have two PATA disks and two SATA disks:&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;/dev/hda
/dev/hdb
/dev/sda
/dev/sdb&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;GRUB numbers them this way:&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;hd0
hd1
hd2
hd3&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;If you have one of each, &lt;i&gt;/dev/hda&lt;/i&gt;=hd0, and &lt;i&gt;/dev/sda&lt;/i&gt;=hd1. The safe way to test your boot setup is to power off your system and disconnect your drives one at a time.&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;Managing Linux RAID With mdadm&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;There are still a lot of howtos on the Web that teach the old &lt;b&gt;md&lt;/b&gt; command and &lt;i&gt;raidtab&lt;/i&gt; file. Don't use these. They still work, but the &lt;b&gt;mdadm&lt;/b&gt; command does more and is easier.&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;Creating and Testing New Arrays&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;Use this command to create a new array:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;# &lt;b&gt;mdadm -v --create /dev/md1 --level=raid10 --raid-devices=2 /dev/hda2 /dev/sda2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;You may want to have a hot spare. This is a partitioned, formatted hard disk that is connected but unused until an active drive fails, then &lt;b&gt;mdadm&lt;/b&gt; (if it is running in daemon mode, see the Monitoring section) automatically replaces the failed drive with the hot spare. This example includes one hot spare:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;# &lt;b&gt;mdadm -v --create /dev/md1 --level=raid10 --raid-devices=2 /dev/hda2 /dev/sda2 --hot-spares=1 /dev/sdb2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;You can test this by "failing" and removing a partition manually:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;# &lt;b&gt;mdadm /dev/md1 --fail /dev/sda2 --remove /dev/sda2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;Then run some querying commands to see what happens.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;When you have more than one array, they can share a hot spare. You should have some lines in &lt;i&gt;/etc/mdadm.conf&lt;/i&gt; that list your arrays. All you do is create a share group by adding lines as shown in bold:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;ARRAY /dev/md0 level=raid1 num-devices=2 UUID=004e8ffd:05c50a71:a20c924c:166190b6&lt;br /&gt;
&lt;b&gt;shared-group=share1&lt;/b&gt;&lt;br /&gt;
ARRAY /dev/md1 level=raid10 num-devices=2 UUID=38480e56:71173beb:2e3a9d03:2fa3175d&lt;br /&gt;
&lt;b&gt;shared-group=share1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;View the status of all RAID arrays on the system:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;$ &lt;b&gt;cat /proc/mdstat&lt;/b&gt;&lt;br /&gt;
Personalities : 'linear' 'multipath' 'raid0' 'raid1' 'raid6' 'raid5' 'raid4' 'raid10'&lt;br /&gt;
md1 : active raid10 hda2'0' sda2'1'&lt;br /&gt;
6201024 blocks 2 near-copies '2/2' 'UU'&lt;br /&gt;
&lt;br /&gt;
md0 : active raid1 hda1'0' sda1'1'&lt;br /&gt;
3076352 blocks '2/2' 'UU'&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;The "personalities" line tells you what RAID levels the kernel supports. In this example you see two separate arrays: md1 and md0, that are both active, their names and BIOS order, and the size and RAID type of each one. 2/2 means two of two devices are in use, and UU means two up devices.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;You can get detailed information on individual arrays:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;# &lt;b&gt;mdadm --detail /dev/md0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;Is this partition part of a RAID array? This displays the contents of the md superblock, which marks it as a member of a RAID array:&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;# &lt;b&gt;mdadm --examine /dev/hda1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;You can also use wildcards, like &lt;b style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mdadm --examine /dev/hda*&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="ewlocal" style="font-weight: normal;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;Monitoring&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="ewlocal" style="font-weight: normal;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&lt;b&gt;mdadm&lt;/b&gt; itself can run in daemon mode and send you email when an active disk fails, when a spare fails, or when it detects a degraded array. Degraded means a new array that has not yet been populated with all of its disks, or an array with a failed disk:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;# &lt;b&gt; mdadm --monitor --scan --mail=shiroy.p@hcl.in --delay=2400 /dev/md0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;Your distribution may start the &lt;b&gt;mdadm&lt;/b&gt; daemon automatically, so you won't need to run this command. Kubuntu controls it with &lt;i&gt;/etc/init.d/mdadm, /etc/default/mdadm&lt;/i&gt;, and &lt;i&gt;/etc/mdadm/mdadm.conf&lt;/i&gt;, so all you need to do is add your email address to &lt;i&gt;/etc/mdadm/mdadm.conf&lt;/i&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;Starting, Stopping, and Deleting RAID&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;Your Linux distribution should start your arrays automatically at boot, and &lt;b&gt;mdadm&lt;/b&gt; starts them at creation.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;This command starts an array manually:&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&amp;nbsp;# &lt;b&gt;mdadm -A /dev/md0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;This command stops it:&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;# &lt;b&gt;mdadm --stop /dev/md0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;You'll need to unmount all filesystems on the array before you can stop it.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;To remove devices from an array, they must first be failed. You can fail a healthy device manually:&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;# &lt;b&gt;mdadm /dev/md1 --fail /dev/sda2 --remove /dev/sda2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;If you're removing a healthy device and want to use it for something else, or just want to wipe everything out and start over, you have to zero out the superblock on each device or it will continue to think it belongs to a RAID array:&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;# &lt;b&gt;mdadm --zero-superblock  /dev/sda2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;Adding Devices&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;You can add disks to a live array with this command:&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;# &lt;b&gt; mdadm /dev/md1 --add /dev/scd2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: x-small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;This will take some time to rebuild, just like when you create a new array.&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;That wraps up ourtour of RAID 10 and &lt;b&gt;mdadm&lt;/b&gt;. &lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;Resources&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;ul class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;
&lt;li&gt;man mdadm&lt;/li&gt;
&lt;li&gt;&lt;a href="http://linux-ata.org/"&gt;Serial ATA (SATA) for Linux&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.gnu.org/software/grub/manual/grub.html"&gt;GRUB manual&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.miracleas.com/BAARF/BAARF2.html"&gt;BAARF: Battle Against Any RAID Five&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.ecs.umass.edu/ece/koren/architecture/Raid/basicRAID.html"&gt;Basic RAID&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/ul&gt;&lt;ul class="ewlocal"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/ul&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Verdana&amp;quot;, &amp;quot;Arial&amp;quot;, &amp;quot;Helvetica&amp;quot;; font-size: small;"&gt;&lt;b style="color: blue;"&gt;&lt;a href="http://shiroyp.blogspot.com/"&gt;Visit my BLOG&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-5738871833445282223?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/5738871833445282223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/04/manage-linux-raid-10-storage-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/5738871833445282223?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/5738871833445282223?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/04/manage-linux-raid-10-storage-server.html' title='Manage a Linux RAID 10 Storage Server'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkEASHk6eyp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-1250478820643118744</id><published>2010-04-08T10:10:00.001+05:30</published><updated>2011-03-17T16:14:09.713+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T16:14:09.713+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Wine'/><category scheme='http://www.blogger.com/atom/ns#' term='AndLinux'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title>andLinux, an opposite of WINE</title><content type='html'>andLinux is a complete Ubuntu Linux system running seamlessly in Windows 2000 based systems (2000, XP, 2003, Vista, 7; 32-bit versions only). This project was started for Dynamism for the GP2X community, but its userbase far exceeds its original design. andLinux is free and will remain so, but donations are greatly needed.&lt;br /&gt;
andLinux uses coLinux as its core which is confusing for many people. coLinux is a port of the Linux kernel to Windows. Although this technology is a bit like running Linux in a virtual machine, coLinux differs itself by being more of a merger of Windows and the Linux kernel and not an emulated PC, making it more efficient. Xming is used as X server and PulseAudio as sound server.&lt;br /&gt;
andLinux is not just for development and runs almost all Linux applications without modification.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_18DUHEX-OM8/S71dBx6PlZI/AAAAAAAAAek/-L_dpMLPd2M/s1600/screenshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/_18DUHEX-OM8/S71dBx6PlZI/AAAAAAAAAek/-L_dpMLPd2M/s400/screenshot.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
To start Linux applications, you may either use the XFCE Panel:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_18DUHEX-OM8/S71dXqaZ4pI/AAAAAAAAAes/I_Q7bbl1QKc/s1600/xfce_panel.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_18DUHEX-OM8/S71dXqaZ4pI/AAAAAAAAAes/I_Q7bbl1QKc/s320/xfce_panel.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="noskip"&gt;Or, you may choose to use the andLinux Launcher, which ships with andLinux since Beta 1. It consists of:&lt;/div&gt;&lt;ul&gt;&lt;li class="noskip"&gt;quicklaunch icons (e.g. for the file manager or the terminal)     &lt;/li&gt;
&lt;li class="noskip"&gt;a start menu in the system tray (next to the clock) which can be adapted to your own needs     &lt;/li&gt;
&lt;li class="noskip"&gt;so-called Explorer shell extensions, i.e. context menu item, with which you can open a folder in the file manager / terminal or open a file with the text editor &lt;/li&gt;
&lt;li class="noskip"&gt;file type associations at your choice (e.g. for KOffice files, .tex / .dvi / .ps / .pdf files)     &lt;/li&gt;
&lt;li class="noskip"&gt;&lt;tt&gt;andCmd.exe&lt;/tt&gt; to run linux commands from Windows scripts&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;Download:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;andLinux Beta 2 (final)&lt;/h2&gt;&lt;div class="noskip"&gt;KDE version, 537 MB:&lt;/div&gt;&lt;ul&gt;&lt;li class="noskip"&gt;SourceForge.net [&lt;a href="http://downloads.sourceforge.net/andlinux/andlinux-beta2-kde.exe"&gt;http&lt;/a&gt;]     &lt;/li&gt;
&lt;li class="noskip"&gt;md5: 3bbe8a0ae67e189ef9ff787d6d184b64     &lt;/li&gt;
&lt;li class="noskip"&gt;sha1: 5f411810553d4472cf6f1c36f75bd732c90f84d7    &lt;/li&gt;
&lt;/ul&gt;&lt;div class="noskip"&gt;minimal / XFCE version, 200 MB:&lt;/div&gt;&lt;ul&gt;&lt;li class="noskip"&gt;SourceForge.net [&lt;a href="http://downloads.sourceforge.net/andlinux/andlinux-beta2-minimal.exe"&gt;http&lt;/a&gt;]     &lt;/li&gt;
&lt;li class="noskip"&gt;md5: 4ec330df10af572274ec3b83d45d0ea7     &lt;/li&gt;
&lt;li class="noskip"&gt;sha1: ca21f1c917d44574ec13525da457bf6bf4d9405e    &lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;Note:&lt;/b&gt; You need to run the installer with administrator privileges.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="color: red;"&gt;Security warning:&lt;/span&gt;&lt;/b&gt; It is recommended to use andLinux only on single-user-PCs or in a trustworthy environment because the communication with the X-Server and the launcher is not secured, i.e., every user who can login to Windows can access andLinux.&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-1250478820643118744?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/1250478820643118744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/04/andlinux-opposite-of-wine.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/1250478820643118744?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/1250478820643118744?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/04/andlinux-opposite-of-wine.html' title='andLinux, an opposite of WINE'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_18DUHEX-OM8/S71dBx6PlZI/AAAAAAAAAek/-L_dpMLPd2M/s72-c/screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkENQ344cCp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-3155202850573417631</id><published>2010-03-30T17:38:00.001+05:30</published><updated>2011-03-17T16:14:52.038+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T16:14:52.038+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='GPT in Redhat'/><category scheme='http://www.blogger.com/atom/ns#' term='GPT in Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='GPT'/><category scheme='http://www.blogger.com/atom/ns#' term='2TB Disk on Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Disk greater than 2TB'/><title>How can I create a disk partition on a disk that is greater than 2TB in size?</title><content type='html'>&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;The &lt;i&gt;&lt;b&gt;fdisk&lt;/b&gt;&lt;/i&gt; command only supports the legacy MBR partition table format (also known as msdos partition table)&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;MBR partition table do not support disks greater than 2.1TB, and therefore fdisk is also unable to create partition tables on these devices.&lt;/li&gt;
&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Note that some older versions of &lt;i&gt;&lt;b&gt;fdisk&lt;/b&gt;&lt;/i&gt; may permit a larger size to be created but the resulting partition table will be invalid.&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;The &lt;i&gt;&lt;b&gt;parted&lt;/b&gt;&lt;/i&gt; command can create disk labels using MBR (msdos), GUID Partition Table (GPT), SUN disk labels and many more types.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;The GPT disk label overcomes many of the limitations of the DOS MBR including restrictions on the size of the disk, the size of any one partition and the overall number of partitions.&lt;/li&gt;
&lt;li&gt;Note that booting from a GPT labelled volume requires firmware support and this is not commonly available on non-EFI platforms (including x86 and x86_64 architectures).&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;b&gt;Procedure: &lt;/b&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Use the parted tool to access the partition table of the device:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;# parted /dev/sdj
Using /dev/sdj
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)&lt;/code&gt;&lt;/pre&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Once at the &lt;i&gt;&lt;b&gt;parted&lt;/b&gt;&lt;/i&gt; prompt, create a GPT label on the disk:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;(parted) mklabel
Warning: The existing disk label on /dev/sdj will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? Yes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
New disk label type?&amp;nbsp; [gpt]? gpt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
(parted)&lt;/code&gt;&lt;/pre&gt;&lt;b&gt;Note:&lt;/b&gt; This will remove any existing partition table and partitions on the device. &lt;/li&gt;
&lt;/ul&gt;&lt;ul style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;li&gt;Use the &lt;i&gt;&lt;b&gt;print&lt;/b&gt;&lt;/i&gt; command to show the size of the disk as reported by parted.&amp;nbsp; We need this later:&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;(parted) print&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

Model: Linux device-mapper (dm)
Disk /dev/sdj: 5662310.4MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number&amp;nbsp; Start&amp;nbsp; End&amp;nbsp; Size&amp;nbsp; File system&amp;nbsp; Name&amp;nbsp; Flags&lt;/code&gt;&lt;/pre&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Create a primary partition on the device.&amp;nbsp; In this example, the partition will encompass the entire disk (using size from the step above):&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;(parted) mkpart primary 0 5662310.4MB&lt;/code&gt;&lt;/pre&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Unlike fdisk, you do not have to write out the partition table changes with &lt;i&gt;&lt;b&gt;parted&lt;/b&gt;&lt;/i&gt;.&amp;nbsp; Display your new partition and quit.&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;(parted) print

Model: Linux device-mapper (dm)
Disk /dev/mapper/VolGroup00-gpttest: 5662310.4MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number&amp;nbsp; Start&amp;nbsp;&amp;nbsp; End&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File system&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flags
 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17.4kB&amp;nbsp; 5662310.4MB&amp;nbsp; 5662310.4MB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; primary&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

(parted) quit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
Information: Don't forget to update /etc/fstab, if necessary.&lt;/code&gt;&lt;/pre&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;You can now create a filesystem on the device /dev/sdj1&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-3155202850573417631?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/3155202850573417631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/03/how-can-i-create-disk-partition-on-disk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/3155202850573417631?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/3155202850573417631?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/03/how-can-i-create-disk-partition-on-disk.html' title='How can I create a disk partition on a disk that is greater than 2TB in size?'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkAFRH0ycSp7ImA9WhZTE0g.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-7307978487029935463</id><published>2010-03-29T14:26:00.002+05:30</published><updated>2011-03-17T16:15:15.399+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-17T16:15:15.399+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Security'/><category scheme='http://www.blogger.com/atom/ns#' term='Network Hack'/><category scheme='http://www.blogger.com/atom/ns#' term='MAC Spoofing'/><category scheme='http://www.blogger.com/atom/ns#' term='Spoof MAC'/><title>How to spoof a MAC address?</title><content type='html'>&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;MAC address filtering for wireless networking isn’t real “security”. Anyone who pays any attention to current trends in wireless security at all should know that MAC filtering is less effective than WEP — and that WEP can be cracked almost instantly these days with commonly available tools.&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;This doesn’t mean MAC filtering is useless. Its resource consumption is almost unmeasurable, and even if it doesn’t keep out any reasonably knowledgeable security crackers willing to spend a few moments gaining access, it does keep out a lot of automated opportunistic attacks that are aiming solely for the absolute lowest-hanging fruit on the security tree. Since that lowest-hanging fruit consists of the majority of wireless access points, MAC filtering can be of value as a way of turning away the majority of opportunistic attackers.&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;Don’t rely on MAC filtering alone, however. Please, just don’t. It’s a bad idea. People seem to think “Oh, well, sure a determined attacker can get past it, but not anyone else.” It doesn’t take much determination at all to spoof a MAC address. In fact, I’ll tell you how:&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;1.“Listen” in on network traffic. Pick out the MAC address. This can be done with a plethora of freely available security tools, including Nmap.&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;2.Change your MAC address.&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;You can spoof a MAC address when using Nmap with nothing more than a –spoof-mac command line option for Nmap itself to hide the true source of Nmap probes. If you give it a MAC address argument of “0″, it will even generate a random MAC address for you.&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;For more general MAC address spoofing, your MAC address is trivially reset with tools available in default installs of most operating systems. Here are some examples:&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;&lt;b&gt;Linux&lt;/b&gt;: &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;ifconfig eth0 hw ether 03:a0:04:d3:00:11&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;&lt;b&gt;FreeBSD&lt;/b&gt;: &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;"&gt;ifconfig bge0 link 03:a0:04:d3:00:11&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;&lt;b&gt;MS Windows:&lt;/b&gt; On Microsoft Windows systems, the MAC address is stored in a registry key. The location of that key varies from one MS Windows version to the next, but find that and you can just edit it yourself. There are, of course, numerous free utilities you can download to make this change for you as well (such as Macshift for MS Windows XP).&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;"&gt;All of these techniques can of course be automated by self-propagating malware, and the creation of the malware can even be automated to some extent by existing malware creation “kits”. If that doesn’t convince you that MAC filtering does not provide real security, I don’t know what will.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-7307978487029935463?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/7307978487029935463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/03/how-to-spoof-mac-address.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/7307978487029935463?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/7307978487029935463?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/03/how-to-spoof-mac-address.html' title='How to spoof a MAC address?'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;CUQMRng-eip7ImA9WxBbEUw.&quot;'><id>tag:blogger.com,1999:blog-9015863716688284315.post-1358938247798966322</id><published>2010-03-09T11:03:00.003+05:30</published><updated>2010-03-09T11:13:07.652+05:30</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-03-09T11:13:07.652+05:30</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title>View Config Files Without Comments</title><content type='html'>&lt;span style="font-family:arial;"&gt;I've been using this grep invocation to trim comments out of config files.Comments are useful, but when you want to just get the active configuration entries alone from a long file ( may be of 1000 lines where the config entries will be around 50 lines only ), use the below technique.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ grep ^[^#] /etc/httpd/conf/httpd.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The regex ^[^#] matches the first character of any line, as long as that character that is not a #. Because blank lines don't have a first character they're not matched either, resulting in a nice compact output of just the active configuration lines.&lt;div class="blogger-post-footer"&gt;========================================================
By
Shiroy Pigarez&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9015863716688284315-1358938247798966322?l=shiroyp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shiroyp.blogspot.com/feeds/1358938247798966322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shiroyp.blogspot.com/2010/03/something-interesting.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/1358938247798966322?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9015863716688284315/posts/default/1358938247798966322?v=2'/><link rel='alternate' type='text/html' href='http://shiroyp.blogspot.com/2010/03/something-interesting.html' title='View Config Files Without Comments'/><author><name>Shiroy</name><uri>http://www.blogger.com/profile/10634978155543860214</uri><email>shiroy4ever@gmail.com</email><gd:extendedProperty name='OpenSocialUserId' value='12402815172575164397'/></author><thr:total>1</thr:total></entry></feed>