<?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-5166386293107314524</id><updated>2024-09-15T22:17:33.276-07:00</updated><category term="AIX Storage"/><category term="SMIT"/><category term="AIX Filesystem"/><category term="AIX Installation"/><category term="AIX tips"/><category term="AIX Backup-Restore"/><category term="AIX Boot Process"/><category term="AIX Devices"/><category term="AIX Documentation"/><category term="AIX Fix Repository"/><category term="AIX Function Keys"/><category term="AIX Paging Space"/><category term="AIX Software Installation"/><category term="AIX Software Maintenance"/><category term="AIX basics"/><title type='text'>AIX Guide For System Admins</title><subtitle type='html'>This guide will be helpful to all the budding AIX admins who want to get IBM certification. This blog has step by step approach to achieve the certification.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://aix-guide.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5166386293107314524/posts/default?max-results=3'/><link rel='alternate' type='text/html' href='http://aix-guide.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5166386293107314524/posts/default?start-index=4&amp;max-results=3'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/10723877357907699472</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>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>3</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5166386293107314524.post-3714599493966964856</id><published>2011-09-09T07:09:00.000-07:00</published><updated>2011-09-09T07:09:17.129-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIX Backup-Restore"/><title type='text'>AIX Backup and Restore- Part 1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;i&gt;BACKUP and RESTORE for AIX Explained in detail.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Objectives for the module&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;•Understand the various different backup methods supported in AIX.&lt;br /&gt;
•Identify points to remember about media to use while backup, frequency of backup and type of backup.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Necessity of Backup&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
•Disaster Recovery Plan: Hardware failure, damages due to repair, installation, Accidental deletion&lt;br /&gt;
•Data is important and very expensive to recreate.&lt;br /&gt;
•System Image for installation&lt;br /&gt;
•Transfer of Data between Systems&lt;br /&gt;
•Long Term archive&lt;br /&gt;
•Before and After upgrade&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
•Backups are very much in the Disaster Recovery plan of the organization. In case there is a hardware failure, some damage to the data due to repair or installation, or due to accidental deletion, to get back the data, you need to have a backup plan.&lt;br /&gt;
•Data is very expensive and important. Sometimes data is far more important and expensive to replace than the hardware.&lt;br /&gt;
•If you are going to install a number of similar machines, system backup is one of the best options that you can have.&lt;br /&gt;
•One easiest way to transfer a number of files from one machine to another is to back those files onto the media and restore it on the target machine where you want to transfer the data.&lt;br /&gt;
•Its also recommended that before and after a system upgrade, in terms of hardware upgrade or software upgrade (operating system upgrade), its better to have a backup of your system.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Necessity of Restore&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
•Recover a deleted file&lt;br /&gt;
•Recover from a complete system crash&lt;br /&gt;
•Use old or archived data&lt;br /&gt;
•Compare versions of files&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Types of Backup&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLztVjDhAfNiMdpAYdjgAjWyV8EPqD7J3E_5fRkzXXSw1O_mnCzYsUpmdOD5L7BQlLqSeO_dUAOY3E80Wwbj0Vc9b9kvcME5iDPlmH-tzBOMOU9YAazek7Q8dSm4nXqlfZoexrNM6LTjA/s1600/Types-of-Backup.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;273&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLztVjDhAfNiMdpAYdjgAjWyV8EPqD7J3E_5fRkzXXSw1O_mnCzYsUpmdOD5L7BQlLqSeO_dUAOY3E80Wwbj0Vc9b9kvcME5iDPlmH-tzBOMOU9YAazek7Q8dSm4nXqlfZoexrNM6LTjA/s400/Types-of-Backup.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
There are mainly &lt;b&gt;3 kinds of backup&lt;/b&gt;. They are:-&lt;br /&gt;
&lt;b&gt;a&lt;/b&gt;.&lt;i&gt;System backup&lt;/i&gt;: In system backup, it records image backup of the whole operating system.&lt;br /&gt;
&lt;b&gt;b.&lt;/b&gt;&lt;i&gt;Full backup&lt;/i&gt;: In Full backup, it preserves all user data and configuration files.&lt;br /&gt;
&lt;b&gt;c.&lt;/b&gt;&lt;i&gt;Incremental backup&lt;/i&gt;: In &lt;b&gt;Incremental backup there are 2 kinds&lt;/b&gt;:-&lt;br /&gt;
•&lt;b&gt;&amp;gt;a.&lt;/b&gt; first method: Do a full backup on a particular day and rest of the week, only backup the files that have changed from the previous day. Advantage of this method of backup is, its faster but the disadvantage could be it could use up lots of tapes and if one of the tapes also is missing you may have problems to restore the data.&lt;br /&gt;
•&lt;b&gt;&amp;gt;b.&lt;/b&gt; second method: Do a full backup on a particular day and other days take a backup of changes made since the previous full backup. This may take slightly longer time compared to the first method. The advantage is that the restoration procedure does not depend on the tape from the previous day.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Strategy for Backup&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ8ghMKI_DOSdV7gCbB_mKAkF-dExOMjALfQoClWB9UgUn2Clr52DBa1PllpqY_MWlwnqiLz4qECTeEVtj1SXw0M0r9d2BaWMYe0yhhv783yN6m7DmLMyxtevVWVtqC403j1n5-b1e6Y4/s1600/Strategy-for-Backup.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;370&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ8ghMKI_DOSdV7gCbB_mKAkF-dExOMjALfQoClWB9UgUn2Clr52DBa1PllpqY_MWlwnqiLz4qECTeEVtj1SXw0M0r9d2BaWMYe0yhhv783yN6m7DmLMyxtevVWVtqC403j1n5-b1e6Y4/s400/Strategy-for-Backup.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above picture shows one example of a backup strategy that can be followed by an organization.&lt;br /&gt;
&lt;br /&gt;
According to the slide, There is a system backup taken , then a full backup is taken on a periodic basis. Lets say on a weekly basis. On each day they may be taking an incremental backup ( either using the first method or the second method).&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Devices for Backup -Floppy&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;/dev/fd0&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6u11PzHcXQQ-g0PYTp6rARDkyfs9s4mdVbS24w0JRmybSq94m1rGxlIssEWjYnFp8nbTYmRdhbjw6hXkh_B1VJpIgarIgEtl7jzUXFF2mKIfyVZtu3m1Z8ILXF3HKy6lQRtZSW_-aRm4/s1600/Device-For-Backup.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6u11PzHcXQQ-g0PYTp6rARDkyfs9s4mdVbS24w0JRmybSq94m1rGxlIssEWjYnFp8nbTYmRdhbjw6hXkh_B1VJpIgarIgEtl7jzUXFF2mKIfyVZtu3m1Z8ILXF3HKy6lQRtZSW_-aRm4/s320/Device-For-Backup.JPG&quot; width=&quot;315&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
One of the devices that can be used for backup is the floppy or the diskette.&lt;br /&gt;
This device is suitable if the size of the data that you are backing up is small.&lt;br /&gt;
The logical device name for the diskette drive is &lt;b&gt;/dev/fdx&lt;/b&gt;. Most of the systems will have a single floppy disk drive so the name of the device would be mostly fd0.&lt;br /&gt;
There are lot of commands that can be used in AIX to work with the diskette.&lt;br /&gt;
&lt;br /&gt;
They are:-&lt;br /&gt;
a.&lt;b&gt;format &lt;/b&gt;command: Can be used to format a diskette. You can use the –l option with the command to format at low density.&lt;br /&gt;
b.&lt;b&gt;flcopy&lt;/b&gt; command: Can be used to copy diskettes. ( diskcopycommand in DOS)&lt;br /&gt;
c.&lt;b&gt;dosformat&lt;/b&gt; command: format the diskette using DOS formatting.&lt;br /&gt;
d.dosread: to read form the diskette (DOS diskettes)&lt;br /&gt;
e.&lt;b&gt;doswrite&lt;/b&gt;: to write to a diskette (DOS diskettes)&lt;br /&gt;
f.&lt;b&gt;dosdir&lt;/b&gt;: to list / view the contents of the diskette.&lt;br /&gt;
For all the dos related command to run, the fileset bos.dosutil has to be installed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Devices for Backup - Tape&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;/dev/rmt0&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
•4 mm DAT&lt;br /&gt;
•8 mm&lt;br /&gt;
•1/2 – inch cartridge&lt;br /&gt;
•DLT&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: cyan;&quot;&gt;Low Capacity &amp;nbsp;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: cyan;&quot;&gt;&amp;nbsp;Retention on Open&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: cyan;&quot;&gt;Rewind on Close&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg06CpGqXq8B-KSmlo9w6zIPipgrm_dQSwRhyphenhyphenkkQ1QVXoIBO4WxFIjmMqsTU0wQHv8TnHSnAayqfMH6_UAsvsJoW0abovQwuPxGK1Yi_aag3PlMDuZy8DKb36LAGJI9ykhtqqsNtlfZhNQ/s1600/Devices-for-backup-Tape.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;218&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg06CpGqXq8B-KSmlo9w6zIPipgrm_dQSwRhyphenhyphenkkQ1QVXoIBO4WxFIjmMqsTU0wQHv8TnHSnAayqfMH6_UAsvsJoW0abovQwuPxGK1Yi_aag3PlMDuZy8DKb36LAGJI9ykhtqqsNtlfZhNQ/s320/Devices-for-backup-Tape.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
•The most common device used now a days for backup is the tape. There are various types of tapes available:&lt;br /&gt;
a.4mm DAT (Digital Audio Tape)–can hold up to 40 GB of data and transfer rate of 6 MB/sec&lt;br /&gt;
b.8 mm Tape–can hold up to 40 GB of data with a data transfer rate of 6 MB/sec.&lt;br /&gt;
c.1/4 inch cartridge: can hold up to 4 GB of data and transfer rate of 380 kb/sec&lt;br /&gt;
d.DLT (Digital Linear Tape)–can hold up to 70 GB at a transfer rate of 10 MB/sec&lt;br /&gt;
•The tape devices use the logical device name of rmtx( raw magnetic tape).&lt;br /&gt;
•There may be additional logical names assigned to each tape device depending on the device characteristics in terms of Write at Low Capacity, Retensionthe tape (fast forward and rewind before starting the operation) and Rewind the tape at the finish of the operation.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Devices for Backup –r / w Optical Drive&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkT_Xt9UnTd7w6WWadFjIpXVCqOqs-IVCJuFdqZYN_8Vfu3YRpfL-JweKCL7B0oRbokvbUmhe0fn4mId-FofgRJ6GTCQGtEVch1Sd2qrbEqThU-9Qjq_Tc9lLgs7fIfFYdQjeOpDlyrf8/s1600/Devices-for-backup-Optical-Drive.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkT_Xt9UnTd7w6WWadFjIpXVCqOqs-IVCJuFdqZYN_8Vfu3YRpfL-JweKCL7B0oRbokvbUmhe0fn4mId-FofgRJ6GTCQGtEVch1Sd2qrbEqThU-9Qjq_Tc9lLgs7fIfFYdQjeOpDlyrf8/s1600/Devices-for-backup-Optical-Drive.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;You can use JFS file system for read/write operations&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;You can use CD-ROM file system (cdrfs) for read only options&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
•Another device that is widely used now a days for backup is the read/write optical drive. AIX supports both, the optical drive as well as standard CD-ROM.&lt;br /&gt;
•The steps to access the data on the r/w optic drive like a standard read only CD-ROM drive are:-&lt;br /&gt;
•a. Create the file system (&lt;b&gt;smit crcdrfs or crfs–v cdrfs –p ro –d &amp;lt;device name&amp;gt;&lt;/b&gt;)&lt;br /&gt;
•b. Mount the file system (mount &amp;lt;mount-point&amp;gt;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;To use the optic drive as r/w optic drive, the steps are:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Make the vg and add this device to it. (&lt;b&gt;smit mkvg&lt;/b&gt; or &lt;b&gt;mkvg –f –y vgname –d 1 device-name&lt;/b&gt;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Create a file system (smit &lt;b&gt;crfs&lt;/b&gt; or&amp;nbsp;&lt;b&gt;crfs –v jfs –g vgname –a size=sizefilesystem -m mountpoint –A automaticmount –p rw&lt;/b&gt;&lt;br /&gt;
•c. Mount the file system.&lt;br /&gt;
&lt;br /&gt;
#############################CONTINUED##############################&lt;br /&gt;
&lt;br /&gt;
We will see more about AIX BACKUP and RESTORE in Part -2 . Stay Tuned!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;&lt;u&gt;Incoming search results&lt;/u&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;aix backup&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;aix backup methods&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;aix restores&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;aix backup commands&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;types in aix backup&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;aix backup explanation&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aix-guide.blogspot.com/feeds/3714599493966964856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aix-guide.blogspot.com/2011/09/aix-backup-and-restore-part-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5166386293107314524/posts/default/3714599493966964856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5166386293107314524/posts/default/3714599493966964856'/><link rel='alternate' type='text/html' href='http://aix-guide.blogspot.com/2011/09/aix-backup-and-restore-part-1.html' title='AIX Backup and Restore- Part 1'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/10723877357907699472</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLztVjDhAfNiMdpAYdjgAjWyV8EPqD7J3E_5fRkzXXSw1O_mnCzYsUpmdOD5L7BQlLqSeO_dUAOY3E80Wwbj0Vc9b9kvcME5iDPlmH-tzBOMOU9YAazek7Q8dSm4nXqlfZoexrNM6LTjA/s72-c/Types-of-Backup.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5166386293107314524.post-6951364716138333665</id><published>2011-08-09T09:55:00.000-07:00</published><updated>2011-08-09T09:55:46.802-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIX Paging Space"/><title type='text'>Paging Space in AIX</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;AIX Paging Space with Diagrams.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Objectives for the module&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;• What is Paging Space ?&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;• Define the requirement of Paging Space&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;• Maintain paging space&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;• Troubleshoot paging space problems&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Introduction: Paging Space&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;
&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNM8e7VjSaAh6zvXd9AnGNM9xKCAGYde2Xy28yNX_9Yy_tYO92rB2YbIpF6RHgnYZlOKBoyhNxw-U5HBPs3PA7ksJGhI3JXrt2V2xT5t5GRz01PLruoHE8f5CRd30DM4Uh1_18Ntkt9AQ/s1600/paging_space.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;261&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNM8e7VjSaAh6zvXd9AnGNM9xKCAGYde2Xy28yNX_9Yy_tYO92rB2YbIpF6RHgnYZlOKBoyhNxw-U5HBPs3PA7ksJGhI3JXrt2V2xT5t5GRz01PLruoHE8f5CRd30DM4Uh1_18Ntkt9AQ/s400/paging_space.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;
&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Virtual Memory Manager (VMM) manages paging and virtual storage related issues on your AIX.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•A running application is called as a &lt;b&gt;process&lt;/b&gt; and these processes have to be loaded on the memory. These processes occupy 4 kb blocks on the memory called pages. As more and more processes increase on your system, the pages on the memory may not be enough for the processes to be loaded. At this juncture the inactive pages belonging to a process is moved out of the memory into the disk space called “&lt;b&gt;Paging Space&lt;/b&gt;”, this process is called &lt;b&gt;Page Out&lt;/b&gt;. And when-ever these inactive pages are required again by the process, they have to moved back again onto the RAM, this process is called &lt;b&gt;Page In&lt;/b&gt;.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•The Paging Space is nothing but a area on your hard disk that contains these moved in inactive pages of the memory.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Paging Space&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Is a logical partition on the hard disk&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Acts as a temporary storage place for the “&lt;b&gt;&lt;i&gt;pages&lt;/i&gt;&lt;/b&gt;”&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Cannot be used as RAM&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Paging Space holds the inactive memory frames.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Paging space just acts as a temporary storage area for the in-active pages and cannot be treated as a substitute for RAM. If enough memory is not available on your machine, you may get into a scenario called &lt;b&gt;thrashing&lt;/b&gt;.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•&lt;b&gt;Thrashing&lt;/b&gt;: Trashing is a state of paging when you do not have enough memory. When the VMM attempts to make place for a new process in the memory by moving an in-active page into the paging area, the process will need that page again in the memory wherein now VMM has to perform Page-In activity to put back the page again into the memory. Your machine is too busy only doing Page-Out and Page-In activity and no real work is done on your machine.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•In a scenario where there is thrashing, you may not be able to solve the problem just by increasing the paging space but you may have to increase your RAM to solve this problem.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Paging Space –Criteria&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Thumb rule –twice the size of RAM&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Recommendations:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;–Have only one paging space per disk.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;–Do not stretch paging space logical volume to spread across more than one physical volume.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;–The size of paging space should be roughly same.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;–Do not create paging space on a busy hard disk.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Paging Space is created during the AIX installation. As a thumb rule usually the paging space is set twice of your RAM, but actually this calculation of the size of the paging space actually depends on the amount of RAM available on your system.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•If the RAM is greater than or equal to 64MB, the paging space is RAM+16 MB. If RAM is less than 64 MB, paging space is twice the size of RAM.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•When you are running low on paging space, you may get some errors like this:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;#&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;Ksh: cannot fork no swap space&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•At this point you will not be able to start any new processes until some processes are terminated.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&lt;i&gt;&lt;u&gt;Recommendations:&lt;/u&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Do not have more than one paging space per hard disk as paging space is allocated in a round robin manner and will use all paging areas equally. If you have two paging spaces on one disk, then you are no longer utilizing the other disks for paging activity. Do not have paging space on an already burdened hard disk. Roughly the paging spaces should be of the same size so that paging activity is balanced and faster. The paging space as a recommendation, should not span multiple hard disks.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Managing Paging Space&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Use the&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: lime;&quot;&gt;&lt;b&gt; # lsps –a&lt;/b&gt;&lt;/span&gt; command to check the paging activity.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Paging space information is stored in the file &lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: lime;&quot;&gt;/etc/ swapspaces&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: lime;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;u&gt;&lt;b&gt;Explanation:&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;•Monitoring the paging activity can be done with the command lsps–a.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;•This command shows you the page spaces, on which hard disk they have been created, which volume group they belong to , their size, usage, whether active or not etc.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;•The file /etc/ swapspaceswill hold details about the paging spaces. This file contains information about the paging areas, their logical devices names etc.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;&lt;u&gt;Creating a Paging space&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwliEPEQlZNu-rTfzw2uDACe87X0ObGJO3qJwOuagQYaqVDumHeYkbt3ZXKkRpY2DO6L6DjucGEOmrQxbPubU0KMxQumaXV1x8IXNdMbeWDn8IJG5j2DWDSAKeCDTmAlwobs94ozX-_EA/s1600/creating_paging_space_aix.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;349&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwliEPEQlZNu-rTfzw2uDACe87X0ObGJO3qJwOuagQYaqVDumHeYkbt3ZXKkRpY2DO6L6DjucGEOmrQxbPubU0KMxQumaXV1x8IXNdMbeWDn8IJG5j2DWDSAKeCDTmAlwobs94ozX-_EA/s640/creating_paging_space_aix.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;•During the installation of AIX itself , system defined paging space is created. If its required you can use the &lt;b&gt;smit fastpath mkps&lt;/b&gt; to create a new paging space&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp;&lt;b&gt;# smit mkps&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;•You may have to specify the volume group name where you are planning to create the paging space, size of the paging space and the hard disk on which you are planning to create it.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;•You can use the option Start using this paging space &lt;b&gt;NOW&lt;/b&gt; to activate the paging space immediately for use and you can use the option Use this paging space each time system is &lt;b&gt;RESTARTED&lt;/b&gt; to activate the paging space at the next restart.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Modifying Paging Space settings&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;
&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjyEeD8JvOZR3SGWwOSHce6FNVfYqP0g30eIMPjTagHb7WD7K4w9GRjmUE1cyFFs0IO3awtwgfcZVJalKDCQP-2EyxTmYKZ6G6fhUO2gqZSnjk1o1Osi8RBSHml9mdzjMdgC4ZSzDwUpA/s1600/Modifying_Paging_space.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;347&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjyEeD8JvOZR3SGWwOSHce6FNVfYqP0g30eIMPjTagHb7WD7K4w9GRjmUE1cyFFs0IO3awtwgfcZVJalKDCQP-2EyxTmYKZ6G6fhUO2gqZSnjk1o1Osi8RBSHml9mdzjMdgC4ZSzDwUpA/s640/Modifying_Paging_space.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•If you want to change the settings of the paging space, you can do that by using the smit fast path chps.&lt;br /&gt;
&lt;b&gt;&amp;nbsp;#smit chps&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
•You can decrease the paging space or you can increase the paging space. The option of decreasing the paging space is newly added in AIX Ver5.1 and it internally uses a high level command called &lt;b&gt;shrinkps&lt;/b&gt; o do the same.&lt;br /&gt;
&lt;br /&gt;
•The system default paging space i.e. hd6 cannot be decreased below 32 MB.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Remove Paging Space&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
To Remove Paging space,&lt;br /&gt;
a. Make the paging space inactive by using the swapoff command&lt;br /&gt;
&lt;b&gt;# swapoff /dev/paging01&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
b. Remove inactive paging space&lt;br /&gt;
&lt;b&gt;# rmps paging01&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•If you have too much of paging space and the usage is low, extra paging space can be deleted.&lt;br /&gt;
&lt;br /&gt;
•Active paging spaces has to be deactivated ( which is possible dynamically from AIX Ver5.1) before you delete it.&lt;br /&gt;
&lt;br /&gt;
•&lt;b&gt;Swapoff &lt;/b&gt;command along with the paging space logical name can be used to deactivate a paging space and then you can use the rmpscommand to remove the paging space.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Problems with Paging Space&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
•Paging space too small:&lt;br /&gt;
&lt;br /&gt;
Dynamically increase the size by allocating more partitions&lt;br /&gt;
&lt;b&gt;&lt;i&gt;chps -s LogicalPartitions PagingSpace&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
Example:&lt;br /&gt;
&lt;b&gt;# chps -s 1 paging00&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
•Paging space too large:&lt;br /&gt;
Dynamically decrease the size by deallocating partitions&lt;br /&gt;
&lt;b&gt;&lt;i&gt;chps -d LogicalPartitions PagingSpace&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
Example:&lt;br /&gt;
&lt;b&gt;# chps -d 1 paging00&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
•If the paging space is too small, it can be dynamically increased like any other logical volume.&lt;br /&gt;
&lt;br /&gt;
•If the paging space is too large, then you can use the chpscommand to decrease the paging space.&lt;br /&gt;
&amp;nbsp;&lt;b&gt;# chps –d 2 paging01&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp;-d 2&lt;/b&gt;-&amp;gt; delete 2 logical partitions&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;b&gt;Paging01&lt;/b&gt;-&amp;gt; paging space name&lt;br /&gt;
&lt;br /&gt;
#######################END#######################&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #999999;&quot;&gt;Incoming Search Terms:&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cccccc;&quot;&gt;Paging space for AIX&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cccccc;&quot;&gt;Paging Space&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cccccc;&quot;&gt;Paging Space in Unix&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cccccc;&quot;&gt;AIX paging space commands&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cccccc;&quot;&gt;Paging space commands for AIX&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cccccc;&quot;&gt;Complete list of AIX paging space commands&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cccccc;&quot;&gt;chps command in AIX&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aix-guide.blogspot.com/feeds/6951364716138333665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aix-guide.blogspot.com/2011/08/paging-space-in-aix.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5166386293107314524/posts/default/6951364716138333665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5166386293107314524/posts/default/6951364716138333665'/><link rel='alternate' type='text/html' href='http://aix-guide.blogspot.com/2011/08/paging-space-in-aix.html' title='Paging Space in AIX'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/10723877357907699472</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNM8e7VjSaAh6zvXd9AnGNM9xKCAGYde2Xy28yNX_9Yy_tYO92rB2YbIpF6RHgnYZlOKBoyhNxw-U5HBPs3PA7ksJGhI3JXrt2V2xT5t5GRz01PLruoHE8f5CRd30DM4Uh1_18Ntkt9AQ/s72-c/paging_space.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5166386293107314524.post-4765607502935545191</id><published>2011-07-28T05:09:00.000-07:00</published><updated>2011-07-28T23:40:15.497-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIX Filesystem"/><title type='text'>Working with AIX filesystem PART 3</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Today we shall see something about managing file-systems in IBM AIX.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Managing File Systems&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Objective:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
•File system integrity&lt;br /&gt;
•Manage/Monitor&lt;br /&gt;
–File system growth&lt;br /&gt;
–File growth&lt;br /&gt;
–File system space usage&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;How/Why Space Management ?&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;How ?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
•Find the causes&lt;br /&gt;
•keep track of growing files&lt;br /&gt;
•check file system space usage&lt;br /&gt;
•check disk space&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•If a File System reaches its full capacity, that means it cannot take any more data onto it. The filesystem size in these cases has to be increased because the file system size doesn‟t automatically increase.&lt;br /&gt;
&lt;br /&gt;
•Our duty as system administrators is to use commands and techniques to find the causes for the increase in the file system size. This may involve tasks like keeping track of the growing files in the file system. Keep checking the file system space usage and decide whether to increase the size or not.&lt;br /&gt;
&lt;br /&gt;
•The files that could keep growing at high speed are:&lt;br /&gt;
&lt;br /&gt;
a./var/adm/wtmp-&amp;gt; Which keeps track of successful login information&lt;br /&gt;
b./etc/security/failedlogin-&amp;gt; which keeps track of failed login attempts.&lt;br /&gt;
c./var/spool-&amp;gt; directory which keeps cronentries, mails etc&lt;br /&gt;
d.$HOME/smit.log and smit.script-&amp;gt; smitrelated log files&lt;br /&gt;
e.$HOME/websm.log and websm.script-&amp;gt; WSM related log files&lt;br /&gt;
f./var/adm/sulog-&amp;gt; Keeps track of sucommand usage.&lt;br /&gt;
&lt;br /&gt;
•Many of the above files are required files as they contain very useful information of activities going performed on the system. Completely removing them of may not be a recommended strategy but keeping eye on their increasing size and timely cropping them and removing old entries would be the maintenance task that could be done by the Administrators.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Free Disk Space&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv9ovzKzMazwZeYCQxFA3J99QiKI8ueb-3YSiu_yaKPPv9AkNK5BHNXlJ7kibCibF4iONMqWhYAoGp6BqesXjW842Ppt33pZOe2QMrO24BXVMZ78b6aXDe1zOoxjqFxVe-r7ko2aaulsQ/s1600/Free-disk-space-in-aix.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv9ovzKzMazwZeYCQxFA3J99QiKI8ueb-3YSiu_yaKPPv9AkNK5BHNXlJ7kibCibF4iONMqWhYAoGp6BqesXjW842Ppt33pZOe2QMrO24BXVMZ78b6aXDe1zOoxjqFxVe-r7ko2aaulsQ/s400/Free-disk-space-in-aix.JPG&quot; width=&quot;500&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•You can use the dfcommand to display useful information about the statistics pertaining to the free disk information. The output of this command would show all the file systems, their sizes and out of the total size, how much is used and how much is free.&lt;br /&gt;
&lt;br /&gt;
•Please refer to the man pages on &lt;b&gt;df &lt;/b&gt;command to look at some useful options that you could use with df.&lt;br /&gt;
&lt;br /&gt;
•There is also a very useful command called &lt;b&gt;skulker&lt;/b&gt;.The &lt;b&gt;skulker&lt;/b&gt; command is under /usr/sbin.&lt;br /&gt;
&lt;br /&gt;
•The skulker command can be used to clean up the file systems by removing unwanted or old files. You can modify this skulker shell script by using an editor and configure it according to your environment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Disk Usage&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDBJQjUPT5wqGKC4hoBLldUsCNlpKrE2wg3tBzPdsvHCUNOES-AI7o2enLwe-F4I_XW47KQaRCDVNUdjX7IXWNAXqpmqGIThIpF1wEF1SUrqLlVEK8QwizE4NEGsmOBu7tN0MM2pCxEVs/s1600/disk-usage.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDBJQjUPT5wqGKC4hoBLldUsCNlpKrE2wg3tBzPdsvHCUNOES-AI7o2enLwe-F4I_XW47KQaRCDVNUdjX7IXWNAXqpmqGIThIpF1wEF1SUrqLlVEK8QwizE4NEGsmOBu7tN0MM2pCxEVs/s400/disk-usage.JPG&quot; width=&quot;500&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
•The Disk Usage command (du) can be used to list the files and how many number of data blocks are utilized by them.&lt;br /&gt;
&lt;br /&gt;
•If you look at the above example, the du command is giving the information of the file name, and how many number of 512 byte blocks has been allocated to that particular file. So by looking at this output you can make out as to which files are using more data blocks and take actions if required.&lt;br /&gt;
&lt;br /&gt;
•du command comes with lots of very useful options like –x , -k etc. If you want more details on the various options that can be used with the du command, please look at the man pages for the same.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Control Growing Files&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #c27ba0;&quot;&gt;•/var/adm/wtmp&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #c27ba0;&quot;&gt;•/etc/security/failedlogin&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #c27ba0;&quot;&gt;•/var/adm/sulog&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #c27ba0;&quot;&gt;•/var/spool/*/*&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #c27ba0;&quot;&gt;•$HOME/smit.log&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #c27ba0;&quot;&gt;•$HOME/smit.script&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #c27ba0;&quot;&gt;•$HOME/websm.log&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #c27ba0;&quot;&gt;•$HOME/websm.script&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;The &lt;i&gt;skulker&lt;/i&gt; Command&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
•The skulker command cleans up file systems by removing unwanted or obsolete files&lt;br /&gt;
&lt;br /&gt;
•Candidate files include:&lt;br /&gt;
–Files older than a selected age&lt;br /&gt;
–Files in the /tmp directory&lt;br /&gt;
–a.outfiles&lt;br /&gt;
–corefiles&lt;br /&gt;
–ed.hupfiles&lt;br /&gt;
&lt;br /&gt;
•skulker is normally invoked daily by the cron command as part of the crontab file of the root user&lt;br /&gt;
&lt;br /&gt;
•Modify the skulkershell script to suit local needs for the removal of files&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;u&gt;&lt;b&gt;Listing Disk Usage&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
•The ducommand can be used to list the number of blocks used by a file or a directory&lt;br /&gt;
&lt;br /&gt;
# du /home | sort -r -n&lt;br /&gt;
624 /home&lt;br /&gt;
392 /home/fred&lt;br /&gt;
98 /home/tom&lt;br /&gt;
54 /home/mary&lt;br /&gt;
52 /home/liz&lt;br /&gt;
23 /home/suzy&lt;br /&gt;
2 /home/guest&lt;br /&gt;
1 /home/steve&lt;br /&gt;
&lt;br /&gt;
•To view individual file sizes, use the ls -l command.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;Fragmentation Considerations&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiroq8LBWdoyATrInCBpkM6s_YVIKEasY3nnYbGDhYZp2GaEbmvHqTsEQFmp6TVTGQYKw2BAtqMco6OV6mz9fxQTHct7Qcs20qBrvTphaasfJ-3BCkEwMfXSGF99RNaFOj4iQcgzkMvy6I/s1600/fragmentation-consideration.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiroq8LBWdoyATrInCBpkM6s_YVIKEasY3nnYbGDhYZp2GaEbmvHqTsEQFmp6TVTGQYKw2BAtqMco6OV6mz9fxQTHct7Qcs20qBrvTphaasfJ-3BCkEwMfXSGF99RNaFOj4iQcgzkMvy6I/s1600/fragmentation-consideration.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;Without fragmentation&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
File size = 2000 bytes&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;With fragmentation&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
File size = 2000 bytes&lt;br /&gt;
Fragment size = 1024 bytes&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;Considerations to be made:&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
Disk space allocation&lt;br /&gt;
Disk space utilization&lt;br /&gt;
I/O activity&lt;br /&gt;
Free space fragmentation&lt;br /&gt;
Fragment allocation map&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;u&gt;Explanation:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•In AIX the filesystem is broken into blocks called as data blocks. These data blocks by default are 4 kb in size i.e. 4096 bytes in size.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Lets imagine you have a file called file1 which is about 1900 bytes. To store this file in the filesystem, you will require a data block (4 kb). That means file1 occupies 1900 bytes of the data block and the rest of the space in the 4 kb data block is empty. But even though rest of the space is empty, this space cannot be utilized by the file system to allocate it any other file. So in these circumstances, potentially you could have more amount of unused or wasted space.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Here is where we can get an intro to the concept of &amp;nbsp;“Fragmentation”.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Fragmentation is a concept wherein a single data block can be broken logically into smaller fragments of size ranging from 512 bytes to 4 kb. Lets say I choose a fragment size of 1kb, that means the data block of 4 kb size is broken into 4 fragments.This would ensure that if there was a small file lets say about 1900 bytes, to store this particular file, I would potentially use up only 2 fragments of the data block and the other two fragments can be allocated to files if necessary. Thus reducing the amount of unused and wasted space in your filesystems.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Defragmenting a File System&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•The &lt;b&gt;defragfs&lt;/b&gt; command increases a file system&#39;s contiguous free space&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•The file system must be mounted&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;defragfs [-q | -r | -s] filesystem&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Options:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;-q Reports the current state of the file system&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;-r Reports the current state of the file system and the state that would result if the defragfs command is run without either -q, -r or -s&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;-s Gives short report regarding the current stateof the file system&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Explanation:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Although fragmenting decreases the amount of unused or wasted space, this can actually cause some performance related problems also.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•For example: Lets imagine that the fragment size is 4 kb. There is file of 4 kb size. So 1 data block (fragment) would be assigned to the file. If I want to read this file there would be 1 I/O operating that needs to be done to read the content of the file (disk I/O happens in terms of fragment size).&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Lets say I have the same 4 kb file, but the fragment size instead of 4 kb, I‟ve changed it to 1 kb. That means to allocate space to this particular file I may require 4 1kb blocks. That means if I want to read the same file now there would be 4 disk I/O operations that needs to happen. Which would be time consuming.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Defragmentation of the filesystemincreases the file systems contigous free space by rearranging the fragments in such a way that files get more contigousspace for allocation.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•The command:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•# /usr/bin/defragfs (-q –r ) filesystem&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•can be used to report the current status of the file system and also report what would be the state of the file system after defragmentation is done.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•The file system should be mounted when you run this command.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Verify a File System&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Command syntax:&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;background-color: #0b5394;&quot;&gt;fsck [-p | -y | -n] [-f] [ file system ]&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Checks journal log&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Checks inodes, indirect blocks, data blocks, free lists&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•If no file system name is specified, the fsck command checks all file systems which have the check=true attribute set in the /etc/filesystems&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Orphan files are placed in the lost+found directory&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•Unmount the file system before running fsck&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Complete explanation:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•File system check or fsckcan be used to verify a file system and check for its consistency. It basically checks the journal log to determine if any activity was pending, it checks the inodes, direct and indirect data block against the free lists.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•fsck command comes with lots of options:-&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•-p-&amp;gt; stands for „preen‟. That means do not ask for any confirmation, do any minor changes required. Some people also call this option “silent” that is don‟t disturb me….&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•-y-&amp;gt; The answer would be yes for all the questions asked during fsck&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•-n-&amp;gt; The answer would be No for all the questions asked during fsck&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•-f-&amp;gt; to specify the file system to conduct fsck.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;•If no filesystemname is specified with the fsckcommand, all the file systems that have the option check=truespecified in the configuration file /etc/ filesystemswill be checked.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;++++++++++++END++++++++++++++&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&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://aix-guide.blogspot.com/feeds/4765607502935545191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aix-guide.blogspot.com/2011/07/working-with-aix-filesystem-part-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5166386293107314524/posts/default/4765607502935545191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5166386293107314524/posts/default/4765607502935545191'/><link rel='alternate' type='text/html' href='http://aix-guide.blogspot.com/2011/07/working-with-aix-filesystem-part-3.html' title='Working with AIX filesystem PART 3'/><author><name>Vinod</name><uri>http://www.blogger.com/profile/10723877357907699472</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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv9ovzKzMazwZeYCQxFA3J99QiKI8ueb-3YSiu_yaKPPv9AkNK5BHNXlJ7kibCibF4iONMqWhYAoGp6BqesXjW842Ppt33pZOe2QMrO24BXVMZ78b6aXDe1zOoxjqFxVe-r7ko2aaulsQ/s72-c/Free-disk-space-in-aix.JPG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>