<?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/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5145637012062540661</id><updated>2024-10-02T21:48:57.570+05:30</updated><title type='text'>UNIX World</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.crazyunix.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://www.crazyunix.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Renjith</name><uri>http://www.blogger.com/profile/13109686767660271479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5145637012062540661.post-6270868623008509180</id><published>2011-03-17T18:56:00.000+05:30</published><updated>2011-03-17T18:56:49.137+05:30</updated><title type='text'>What is a shell script?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
There will be many occasions, where the system administrators need to execute the commands in series. For example, you may require providing some input and based on the input you have provided, some command should be executed. In this case, a few commands will be executed in sequence. Those commands can be saved in the same sequence in a plain text file. This sequence of commands kept in a plain text file is called as a shell script. &lt;br /&gt;
&lt;br /&gt;
As we know, there is no importance for the extension of a file (like .xls, .doc). However, administrators usually keep the extension of a shell script file as .sh. For example, file will be named as hello.sh. This is only for the understanding that the file is script file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;&lt;strong&gt;A simple example for shell script is given below.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
=============================&lt;br /&gt;
&lt;br /&gt;
echo “Enter Your name”&lt;br /&gt;
&lt;br /&gt;
read name&lt;br /&gt;
&lt;br /&gt;
echo “Good Morning, $name” &lt;br /&gt;
&lt;br /&gt;
=============================&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: lime;&quot;&gt;When we execute the script,&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
==============================&lt;br /&gt;
&lt;br /&gt;
Enter Your name&lt;br /&gt;
&lt;br /&gt;
Renjith&lt;br /&gt;
&lt;br /&gt;
Good Morning, Renjith&lt;br /&gt;
&lt;br /&gt;
==============================&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.crazyunix.com/feeds/6270868623008509180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5145637012062540661/6270868623008509180?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/6270868623008509180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/6270868623008509180'/><link rel='alternate' type='text/html' href='http://www.crazyunix.com/2011/03/what-is-shell-script.html' title='What is a shell script?'/><author><name>Renjith</name><uri>http://www.blogger.com/profile/13109686767660271479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5145637012062540661.post-3008496864588996460</id><published>2011-03-12T02:06:00.000+05:30</published><updated>2011-03-12T02:06:14.984+05:30</updated><title type='text'>What is a Shell</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
The user who uses a UNIX OS may know English. However the kernel, the heart of the OS, which processes the user request could not understand the normal English, and will know only machine language. So there should a mediator between the user and kernel to translate the language between them. In UNIX related Operating systems, shell is the utility which will do this task. That is, when the user enters the commands to shell prompt, the shell will accept the same and will interpret to kernel, the meaning of the same. The kernel will understand the same and will process the data and will revert to shell with the results. The same results will be conveyed to user by the shell in human readable form. In other words, Shell the interpreter between User and Kernel (The Usual definition). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: lime;&quot;&gt;Below are the common shells available in UNIX.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
1. Bourne Shell – sh&lt;br /&gt;
&lt;br /&gt;
2. Bourne again shell – bash&lt;br /&gt;
&lt;br /&gt;
3. Korn Shell – ksh&lt;br /&gt;
&lt;br /&gt;
4. C Shell – csh&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: lime;&quot;&gt;1. How to know your current shell?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
You can issue the below command to find out the current working shell.&lt;br /&gt;
&lt;br /&gt;
#echo $SHELL&lt;br /&gt;
&lt;br /&gt;
Here, SHELL is an environment variable.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;&lt;strong&gt;2. How to change your current shell?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
You can change the current shell by executing the below command.&lt;br /&gt;
&lt;br /&gt;
#chsh&lt;br /&gt;
&lt;br /&gt;
You can change the login shell in /etc/passwd also.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.crazyunix.com/feeds/3008496864588996460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5145637012062540661/3008496864588996460?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/3008496864588996460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/3008496864588996460'/><link rel='alternate' type='text/html' href='http://www.crazyunix.com/2011/03/what-is-shell.html' title='What is a Shell'/><author><name>Renjith</name><uri>http://www.blogger.com/profile/13109686767660271479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5145637012062540661.post-5826430287781461000</id><published>2011-03-11T22:54:00.000+05:30</published><updated>2011-03-11T22:54:00.505+05:30</updated><title type='text'>Notes on Inode</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: lime;&quot;&gt;What is Inode:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inode can be defined as a data structure which stores information about the file, directory, devices, filesystem object etc. Any file does have an inode number. All the files can be identified by its inode number. Let us see how to find out inode number. &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;&lt;strong&gt;Below are the contents of inode:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1. Ownership&lt;br /&gt;
&lt;br /&gt;
2. File permissions&lt;br /&gt;
&lt;br /&gt;
3. Type of file&lt;br /&gt;
&lt;br /&gt;
4. File length&lt;br /&gt;
&lt;br /&gt;
5. No. of links to file&lt;br /&gt;
&lt;br /&gt;
6. Access privileges &lt;br /&gt;
&lt;br /&gt;
7. Last modification time&lt;br /&gt;
&lt;br /&gt;
8. Time of last inode change&lt;br /&gt;
&lt;br /&gt;
9. Pointers to the files data&lt;br /&gt;
&lt;br /&gt;
10. File allocation information &lt;br /&gt;
&lt;br /&gt;
11. Direct and indirect extent information&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: lime;&quot;&gt;How to find out the inode number of the file:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
By using the option i along with ls command, we can find out inode of the file or directories &lt;br /&gt;
&lt;br /&gt;
[root@MAYURA ~]&lt;span style=&quot;color: blue;&quot;&gt;# ls -ilrt&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
total 124&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;1056239&lt;/span&gt; drwxrwxr-x 4 distcache 141 4096 Aug 4 2005 xen-2.0-install&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;1056721&lt;/span&gt; drwxrwxr-x 6 root root 4096 Jan 8 2008 bridge-utils-1.4&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;1056003&lt;/span&gt; -rw-r--r-- 1 root root 5177 Nov 2 04:22 install.log.syslog&lt;br /&gt;
&lt;br /&gt;
inode number is highlighted in blue color.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.crazyunix.com/feeds/5826430287781461000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5145637012062540661/5826430287781461000?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/5826430287781461000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/5826430287781461000'/><link rel='alternate' type='text/html' href='http://www.crazyunix.com/2011/03/notes-on-inode_11.html' title='Notes on Inode'/><author><name>Renjith</name><uri>http://www.blogger.com/profile/13109686767660271479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5145637012062540661.post-5664863581526363604</id><published>2011-03-11T20:23:00.000+05:30</published><updated>2011-03-11T20:23:42.974+05:30</updated><title type='text'>Hard Link and Soft Link</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
All the files have a data structure called i-node which stores the information about the file. We use the name of the file to refer to the i-node of the file. Link is a way to refer the data in a file. There are 2 types of links which are mentioned below.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: magenta;&quot;&gt;Hard Links:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
1. Hard link is a pointer to files inode. &lt;br /&gt;
&lt;br /&gt;
2. Original file and hard link will have the same i-node number.&lt;br /&gt;
&lt;br /&gt;
3. Hard link can be used only to link the files and not the directory.&lt;br /&gt;
&lt;br /&gt;
4. If we remove the original file, then also hard link file will be there.&lt;br /&gt;
&lt;br /&gt;
5. Hard link can span only within the filesystem.&lt;br /&gt;
&lt;br /&gt;
6. The command to create hard link is,&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;#ln sourcefile destinationfile&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: magenta;&quot;&gt;&lt;strong&gt;Soft Links:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1. Also known as symbolic link is a file containing the name of another file.&lt;br /&gt;
&lt;br /&gt;
2. Original file and the soft link file will have different i-node number.&lt;br /&gt;
&lt;br /&gt;
3. Soft link can be used to link both files and directories.&lt;br /&gt;
&lt;br /&gt;
4. If we remove the original file, then there will not be any use with the link.&lt;br /&gt;
&lt;br /&gt;
5. Soft link can span across different file systems.&lt;br /&gt;
&lt;br /&gt;
6. The command to create the soft link is,&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;#ln –s sourcefile destinationfile&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.crazyunix.com/feeds/5664863581526363604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5145637012062540661/5664863581526363604?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/5664863581526363604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/5664863581526363604'/><link rel='alternate' type='text/html' href='http://www.crazyunix.com/2011/03/hard-link-and-soft-link.html' title='Hard Link and Soft Link'/><author><name>Renjith</name><uri>http://www.blogger.com/profile/13109686767660271479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5145637012062540661.post-4650760216845106571</id><published>2011-03-09T01:21:00.001+05:30</published><updated>2011-03-09T01:24:41.037+05:30</updated><title type='text'>Root Password Recovery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
It is the responsibility of the system administrator to keep the password safe. However, there are chances that you may forget to update the root password in your password sheet when working with multiple servers (sometimes, even servers of multiple customers). Below are the steps to recover the forgotten root password, which will cause the downtime of at least 15 minutes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Insert a recovery media (AIX OS CD/Tape containing the OS image) and reboot the system. (Your boot list should be set in such a way that the system will boot from the inserted media)&lt;br /&gt;
&lt;br /&gt;
2. Press F1 or 1 on hearing the beep sound. &lt;br /&gt;
&lt;br /&gt;
3. Go to boot options&lt;br /&gt;
&lt;br /&gt;
4. Configure Boot device order&lt;br /&gt;
&lt;br /&gt;
5. Set the proper boot device&lt;br /&gt;
&lt;br /&gt;
6. On saving the same, system will reboot automatically from the new boot device&lt;br /&gt;
&lt;br /&gt;
7. Define the system console and select the language&lt;br /&gt;
&lt;br /&gt;
8. You will get a menu from where you need to select the option “Start the maintenance mode for System Recovery”&lt;br /&gt;
&lt;br /&gt;
9. Then, “Access a Root Volume Group”&lt;br /&gt;
&lt;br /&gt;
10. This will list the all the VGs. Select the rootvg. You can list the VG information and confirm which one is rootvg.&lt;br /&gt;
&lt;br /&gt;
11. Select “Access this Volume Group and start Shell”&lt;br /&gt;
&lt;br /&gt;
12. Change the password using the passwd command&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;# passwd&lt;br /&gt;
&lt;br /&gt;
13. Restart the system and login with the new password &lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.crazyunix.com/feeds/4650760216845106571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5145637012062540661/4650760216845106571?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/4650760216845106571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/4650760216845106571'/><link rel='alternate' type='text/html' href='http://www.crazyunix.com/2011/03/root-password-recovery.html' title='Root Password Recovery'/><author><name>Renjith</name><uri>http://www.blogger.com/profile/13109686767660271479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5145637012062540661.post-4034653237056701064</id><published>2011-03-09T00:55:00.001+05:30</published><updated>2011-03-09T01:24:17.239+05:30</updated><title type='text'>Changing the corrupted Boot Order</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
If the boot order is corrupted, or the boot order is wrong, then the system will not boot. We need to correct the boot order from maintenance mode. Below are the steps to change the corrupted boot order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Insert a recovery media (AIX OS CD/Tape containing the OS image) and reboot the system. (Your boot list should be set in such a way that the system will boot from the inserted media)&lt;br /&gt;
&lt;br /&gt;
2. Press F1 or 1 on hearing the beep sound. &lt;br /&gt;
&lt;br /&gt;
3. Go to boot options&lt;br /&gt;
&lt;br /&gt;
4. Configure Boot device order&lt;br /&gt;
&lt;br /&gt;
5. Set the proper boot device&lt;br /&gt;
&lt;br /&gt;
6. On saving the same, system will reboot automatically from the new boot device&lt;br /&gt;
&lt;br /&gt;
7. Define the system console and select the language&lt;br /&gt;
&lt;br /&gt;
8. You will get a menu from where you need to select the option “Start the maintenance mode for System Recovery”&lt;br /&gt;
&lt;br /&gt;
9. Then, “Access a Root Volume Group”&lt;br /&gt;
&lt;br /&gt;
10. This will list the all the VGs. Select the rootvg. You can list the VG information and confirm which one is rootvg.&lt;br /&gt;
&lt;br /&gt;
11. Select “Access this Volume Group and start Shell”&lt;br /&gt;
&lt;br /&gt;
12. Change the boot order using the command &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;# bootlist –m normal –o hdisk0 hdisk1 cd0&lt;br /&gt;
&lt;br /&gt;
13. Restart the system to boot with the new order&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.crazyunix.com/feeds/4034653237056701064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5145637012062540661/4034653237056701064?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/4034653237056701064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/4034653237056701064'/><link rel='alternate' type='text/html' href='http://www.crazyunix.com/2011/03/changing-corrupted-boot-order.html' title='Changing the corrupted Boot Order'/><author><name>Renjith</name><uri>http://www.blogger.com/profile/13109686767660271479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5145637012062540661.post-1392115989458140198</id><published>2011-03-09T00:45:00.002+05:30</published><updated>2011-03-09T01:23:54.642+05:30</updated><title type='text'>Recovering from a corrupted BLV</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Impact of corrupted BLV and its recovery:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As we know, Boot Logical Volume (BLV) have AIX kernel, reduced ODM, boot commands, rc.boot scripts which are required to boot the AIX system. There are chances that BLV can get corrupted, due to bad blocks in the disk. Possibility is there the LV hd5 which corresponds to the BLV is deleted by mistake. Suppose, we are trying to boot a system which lacks the BLV, the system will not boot up.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: cyan;&quot;&gt;Below are the steps to recreate the BLV:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Insert a recovery media (AIX OS CD/Tape containing the OS image) and start the system.&lt;br /&gt;
&lt;br /&gt;
2. Press F1 or 1 on hearing the beep sound. &lt;br /&gt;
&lt;br /&gt;
3. Go to boot options&lt;br /&gt;
&lt;br /&gt;
4. Go to Configure Boot device order&lt;br /&gt;
&lt;br /&gt;
5. Go to Set the proper boot device&lt;br /&gt;
&lt;br /&gt;
6. On saving the same, system will reboot automatically from the new boot device&lt;br /&gt;
&lt;br /&gt;
7. Define the system console and select the language&lt;br /&gt;
&lt;br /&gt;
8. You will get a menu from where you need to select the option “Start the maintenance mode for System Recovery”&lt;br /&gt;
&lt;br /&gt;
9. Then, “Access a Root Volume Group”&lt;br /&gt;
&lt;br /&gt;
10. This will list the all the VGs. Select the rootvg. You can list the VG information and confirm which one is rootvg.&lt;br /&gt;
&lt;br /&gt;
11. Select “Access this Volume Group and start Shell”&lt;br /&gt;
&lt;br /&gt;
12. Recreate the BLV using the command &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;# bosboot –ad /dev/hdiskX&lt;br /&gt;
&lt;br /&gt;
13. You can set the boot order with the proper disks using the command &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;# bootlist –m normal –o hdisk0 hdisk1&lt;br /&gt;
&lt;br /&gt;
14. Reboot the system.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.crazyunix.com/feeds/1392115989458140198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5145637012062540661/1392115989458140198?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/1392115989458140198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/1392115989458140198'/><link rel='alternate' type='text/html' href='http://www.crazyunix.com/2011/03/recovering-from-corrupted-blv.html' title='Recovering from a corrupted BLV'/><author><name>Renjith</name><uri>http://www.blogger.com/profile/13109686767660271479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5145637012062540661.post-3132321845541154560</id><published>2011-03-09T00:32:00.002+05:30</published><updated>2011-03-09T01:23:15.619+05:30</updated><title type='text'>BLV and Its contents</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
BLV stands for Boot Logical Volume (hd5). When an AIX system is powered on, system firmware will check the bootlist to find out the device from where the system has to boot up. Here bootlist is a part of system firmware. Once the boot device is found out from bootlist, system firmware will load the first 512 bytes of the boot device which will have the information about the BLV. This first 512 block is known as boot strap image. Boot strap code will locate the BLV from the boot device and the same will be loaded to the primary memory.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: yellow;&quot;&gt;Below are the contents of the BLV:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
1. AIX Kernel: AIX kernel is the core of AIX OS which will do the functions like process management, memory management, device management etc. There will be copy of AIX kernel under hd4 with name of the file as /unix, it will always be loaded from the BLV (hd5). This copy of the kernel will be used for rebuilding the kernel in BLV&lt;br /&gt;
&lt;br /&gt;
2. Boot Commands: There will be many programs which will be called during the boot process. Those are known as boot commands. The commands bootinfo, cfgmgr etc are some examples.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Reduced ODM: In order to activate the rootvg, we should have many devices to be activated. Corresponding devices’ ODM files should be available in BLV. &lt;br /&gt;
&lt;br /&gt;
4. rc.boot: Once the kernel is started, rc.boot scripts will be controlling the entire boot process. The same will be stored in BLV. The rc.boot scripts are rc.boot1, rc.boot2 and rc.boot3.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.crazyunix.com/feeds/3132321845541154560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5145637012062540661/3132321845541154560?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/3132321845541154560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/3132321845541154560'/><link rel='alternate' type='text/html' href='http://www.crazyunix.com/2011/03/blv-and-its-contents-blv-stands-for.html' title='BLV and Its contents'/><author><name>Renjith</name><uri>http://www.blogger.com/profile/13109686767660271479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5145637012062540661.post-4249622517423033646</id><published>2011-03-09T00:20:00.003+05:30</published><updated>2011-03-09T01:22:50.248+05:30</updated><title type='text'>Boot Process In AIX</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;strong&gt;AIX Boot Process &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
AIX Booting Process explained below.&lt;br /&gt;
&lt;br /&gt;
Phases of the Boot Process:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: cyan;&quot;&gt;I. Read Only Storage Kernel Init Phase&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
1. Motherboard is Checked - Power On Self Test &lt;br /&gt;
&lt;br /&gt;
2. Bootlist is found - System Read Only Storage detects the first boot device in the bootlist spacified.&lt;br /&gt;
&lt;br /&gt;
3. Boot image is read into memory - First 512 bytes - the bootstrap code - of the Hdisk is loaded into the RAM.&lt;br /&gt;
&lt;br /&gt;
4. Initialization starts - Bootstrap code locates the BLV (hd5) from hdisk. &lt;br /&gt;
&lt;br /&gt;
- BLV contains AIX Kernel, rc.boot scripts, reduced ODM, and boot commands.&lt;br /&gt;
&lt;br /&gt;
- BLV get uncompressed in RAM and kernel gets released from it. &lt;br /&gt;
&lt;br /&gt;
- Then AIX kernel gets the control&lt;br /&gt;
&lt;br /&gt;
- AIX Kernel creates a RAMFS&lt;br /&gt;
&lt;br /&gt;
- Kernel Starts the init process from BLV&lt;br /&gt;
&lt;br /&gt;
- init executes rc.boot script from the BLV in the RAM&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: cyan;&quot;&gt;II. Base Device Configuration Phase&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
1. All devices are configured with cfgmgr command - init process from RAMFS executes rc.boot 1&lt;br /&gt;
&lt;br /&gt;
- restbase command copies ODM from BLV to RAMFS&lt;br /&gt;
&lt;br /&gt;
- cfgmgr will run and configure all the base devices&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: cyan;&quot;&gt;III. System Boot Phase&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
1. Logical volumes are varied on - rc.boot 2 is executed.&lt;br /&gt;
&lt;br /&gt;
- ipl_varyon will varyon the rootvg&lt;br /&gt;
&lt;br /&gt;
- run fsck on / and mount the same to RAMFS&lt;br /&gt;
&lt;br /&gt;
- run fsck on /usr and mount the same to RAMFS&lt;br /&gt;
&lt;br /&gt;
- run fsck on /var and mount the same to RAMFS &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Paging is started - copycore command checks the occurrunce of the dump and copies the same from primary dump device to /var/ras/adm&lt;br /&gt;
&lt;br /&gt;
- unmount /var and activate the paging space&lt;br /&gt;
&lt;br /&gt;
- mount /var&lt;br /&gt;
&lt;br /&gt;
- Now /, /usr and /var are mounted in rootvg in hdisk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. /etc/inittab is processed - Kernal remove RAMFS&lt;br /&gt;
&lt;br /&gt;
- init process is started from / in rootvg&lt;br /&gt;
&lt;br /&gt;
- in rc.boot3, init processes /etc/inittab and remaining devices are configured.&lt;br /&gt;
&lt;br /&gt;
- /etc/init starts /etc/inittab and runs /sbin/rc.boot 3&lt;br /&gt;
&lt;br /&gt;
- run fsck on /tmp and mount the same.&lt;br /&gt;
&lt;br /&gt;
- syncvg for rootvg and reports the stale PPs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Relevant Services according to run level starts. srcmstr daemon controls this - starts the deamons like errdaemon, syncd etc..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.crazyunix.com/feeds/4249622517423033646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5145637012062540661/4249622517423033646?isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/4249622517423033646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/4249622517423033646'/><link rel='alternate' type='text/html' href='http://www.crazyunix.com/2011/03/boot-process-in-aix-aix-boot-process.html' title='Boot Process In AIX'/><author><name>Renjith</name><uri>http://www.blogger.com/profile/13109686767660271479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5145637012062540661.post-624053177126464097</id><published>2010-06-23T02:04:00.003+05:30</published><updated>2011-03-04T19:37:06.861+05:30</updated><title type='text'>What is AIX?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;strong&gt;&lt;u&gt;SOME FACTS ABOUT AIX:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;AIX stands for &lt;span style=&quot;color: #33cc00;&quot;&gt;&lt;strong&gt;&lt;em&gt;A&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;dvanced &lt;span style=&quot;color: #33cc00;&quot;&gt;&lt;strong&gt;&lt;em&gt;I&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;nteractive e&lt;span style=&quot;color: #33cc00;&quot;&gt;&lt;strong&gt;&lt;em&gt;X&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;ecutive&lt;/li&gt;
&lt;li&gt;It is an IBM flavour of UNIX&lt;/li&gt;
&lt;li&gt;Initial version was released in 1986&lt;/li&gt;
&lt;li&gt;First Stable AIX OS was launched in 1990 for RS/6000&lt;/li&gt;
&lt;li&gt;It was released for IBM 6150 RISC workstation initially&lt;/li&gt;
&lt;li&gt;Now it supports RS/6000 series and later IBM POWER and PowerPC - based systems, IBM system i, System/370 mainframes, PS/2 personal computers and the Apple Network Server&lt;/li&gt;
&lt;li&gt;AIX is based on Unix Systtem V&lt;/li&gt;
&lt;li&gt;Latest stable AIX version is 7.1&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.crazyunix.com/feeds/624053177126464097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5145637012062540661/624053177126464097?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/624053177126464097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/624053177126464097'/><link rel='alternate' type='text/html' href='http://www.crazyunix.com/2010/06/what-is-aix.html' title='What is AIX?'/><author><name>Renjith</name><uri>http://www.blogger.com/profile/13109686767660271479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5145637012062540661.post-2433772722656417034</id><published>2010-06-17T17:05:00.001+05:30</published><updated>2011-03-12T02:19:04.255+05:30</updated><title type='text'>Purpose of the Site</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;Dear All,&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: lime; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;&lt;em&gt;Hearty Welcome to &quot;UNIX World&quot;!!!!!&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;This site is meant for those who are interested to learn on different flavour of UNIX.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Currently, we have the categories Basic UNIX, IBM AIX, Shell Scripting. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;We will be introducing more topics one by one.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Your suggestions are invited!!!!!&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.crazyunix.com/feeds/2433772722656417034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5145637012062540661/2433772722656417034?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/2433772722656417034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5145637012062540661/posts/default/2433772722656417034'/><link rel='alternate' type='text/html' href='http://www.crazyunix.com/2010/06/what-is-this-regarding-purpose-of-blog.html' title='Purpose of the Site'/><author><name>Renjith</name><uri>http://www.blogger.com/profile/13109686767660271479</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>