<?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: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-2257139272424697307</id><updated>2012-01-04T00:15:27.826+05:30</updated><title type='text'>::AIX BLOG::</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://aixduniya.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://aixduniya.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Chetan Jain</name><uri>http://www.blogger.com/profile/09210260405695619919</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2257139272424697307.post-3421829639807092770</id><published>2007-12-01T09:38:00.001+05:30</published><updated>2007-12-01T09:38:17.163+05:30</updated><title type='text'>IBM System p 570 with POWER 6</title><content type='html'>&lt;p&gt;*   Advanced IBM POWER6™ processor cores for enhanced performance and reliability&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   * Building block architecture delivers flexible scalability and modular growth&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   * Advanced virtualization features facilitate highly efficient systems utilization&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   * Enhanced RAS features enable improved application availability&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The IBM POWER6 processor-based System p™ 570 mid-range server delivers outstanding price/performance, mainframe-inspired reliability and availability features, flexible capacity upgrades and innovative virtualization technologies. This powerful 19-inch rack-mount system, which can handle up to 16 POWER6 cores, can be used for database and application serving, as well as server consolidation. The modular p570 is designed to continue the tradition of its predecessor, the IBM POWER5+™ processor-based System p5™ 570 server, for resource optimization, secure and dependable performance and the flexibility to change with business needs. Clients have the ability to upgrade their current p5-570 servers and know that their investment in IBM Power Architecture™ technology has again been rewarded.&lt;br /&gt;&lt;br /&gt;The p570 is the first server designed with POWER6 processors, resulting in performance and price/performance advantages while ushering in a new era in the virtualization and availability of UNIX® and Linux® data centers. POWER6 processors can run 64-bit applications, while concurrently supporting 32-bit applications to enhance flexibility. They feature simultaneous multithreading,1 allowing two application “threads” to be run at the same time, which can significantly reduce the time to complete tasks.&lt;br /&gt;&lt;br /&gt;The p570 system is more than an evolution of technology wrapped into a familiar package; it is the result of “thinking outside the box.” IBM’s modular symmetric multiprocessor (SMP) architecture means that the system is constructed using 4-core building blocks. This design allows clients to start with what they need and grow by adding additional building blocks, all without disruption to the base system.2 Optional Capacity on Demand features allow the activation of dormant processor power for times as short as one minute. Clients may start small and grow with systems designed for continuous application availability.&lt;br /&gt;&lt;br /&gt;Specifically, the System p 570 server provides:&lt;br /&gt;&lt;br /&gt;Common features   Hardware summary&lt;br /&gt;&lt;br /&gt;   * 19-inch rack-mount packaging&lt;br /&gt;   * 2- to 16-core SMP design with building block architecture&lt;br /&gt;   * 64-bit 3.5, 4.2 or 4.7 GHz POWER6 processor cores&lt;br /&gt;   * Mainframe-inspired RAS features&lt;br /&gt;   * Dynamic LPAR support&lt;br /&gt;   * Advanced POWER Virtualization1 (option)&lt;br /&gt;         o IBM Micro-Partitioning™ (up to 160 micro-partitions)&lt;br /&gt;         o Shared processor pool&lt;br /&gt;         o Virtual I/O Server&lt;br /&gt;         o Partition Mobility2&lt;br /&gt;   * Up to 32 optional I/O drawers&lt;br /&gt;   * IBM HACMP™ software support for near continuous operation*&lt;br /&gt;* Supported by AIX 5L (V5.2 or later) and Linux® distributions from Red Hat (RHEL 4 Update 5 or later) and SUSE Linux (SLES 10 SP1 or later) operating systems&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   * 4U 19-inch rack-mount packaging&lt;br /&gt;   * One to four building blocks&lt;br /&gt;   * Two, four, eight, 12 or 16 3.5 GHz, 4.2 GHz or 4.7 GHz 64-bit POWER6 processor cores&lt;br /&gt;   * L2 cache: 8 MB to 64 MB (2- to 16-core)&lt;br /&gt;   * L3 cache: 32 MB to 256 MB (2- to 16-core)&lt;br /&gt;* 2 GB to 192 GB of 667 MHz buffered DDR2 or 16 GB to 384 GB of 533 MHz buffered DDR2 or 32 GB to 768 GB of 400 MHz buffered DDR2 memory3&lt;br /&gt;   * Four hot-plug, blind-swap PCI Express 8x and two hot-plug, blind-swap PCI-X DDR adapter slots per building block&lt;br /&gt;   * Six hot-swappable SAS disk bays per building block provide up to 7.2 TB of internal disk storage&lt;br /&gt;   * Optional I/O drawers may add up to an additional 188 PCI-X slots and up to 240 disk bays (72 TB additional)4&lt;br /&gt;   * One SAS disk controller per building block (internal)&lt;br /&gt;* One integrated dual-port Gigabit Ethernet per building block standard; One quad-port Gigabit Ethernet per building block available as optional upgrade; One dual-port 10 Gigabit Ethernet per building block available as optional upgrade&lt;br /&gt;   * Two GX I/O expansion adapter slots&lt;br /&gt;   * One dual-port USB per building block&lt;br /&gt;   * Two HMC ports (maximum of two), two SPCN ports per building block&lt;br /&gt;   * One optional hot-plug media bay per building block&lt;br /&gt;   * Redundant service processor for multiple building block systems2&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257139272424697307-3421829639807092770?l=aixduniya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aixduniya.blogspot.com/feeds/3421829639807092770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257139272424697307&amp;postID=3421829639807092770' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/3421829639807092770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/3421829639807092770'/><link rel='alternate' type='text/html' href='http://aixduniya.blogspot.com/2007/11/ibm-system-p-570-with-power-6.html' title='IBM System p 570 with POWER 6'/><author><name>Chetan Jain</name><uri>http://www.blogger.com/profile/09210260405695619919</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257139272424697307.post-1035617601658314245</id><published>2007-12-01T09:37:00.001+05:30</published><updated>2007-12-01T09:37:47.667+05:30</updated><title type='text'>IBM System p5 570</title><content type='html'>&lt;p&gt;*   Up to 16-core scalability with modular architecture and leadership POWER5+ technology&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   * IBM Advanced POWER™ Virtualization features increase system utilization and reduce the number of overall systems required&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   * Capacity on Demand features enable quick response to spikes in processing requirements&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The IBM System p5 570 mid-range server is a powerful 19-inch rack mount system that can be used for database and application serving, as well as server consolidation. IBM’s modular symmetric multiprocessor (SMP) architecture means you can start with a 2-core system and easily add additional building blocks when needed for more processing power (up to 16-cores) I/O and storage capacity. The p5-570 includes IBM mainframe-inspired reliability, availability and serviceability features.&lt;br /&gt;&lt;br /&gt;The System p5 570 server is designed to be a cost-effective, flexible server for the on demand environment. Innovative virtualization technologies and Capacity on Demand (CoD) options help increase the responsiveness of the server to variable computing demands. These features also help increase the systems utilization of processors and system components allowing businesses to meet their computing requirements with a smaller system. By combining IBM’s most advanced leading-edge technology for enterprise-class performance and flexible adaptation to changing market conditions, the p5-570 can deliver the key capabilities medium-sized companies need to survive in today’s highly competitive world.&lt;br /&gt;&lt;br /&gt;Specifically, the System p5 570 server provides:&lt;br /&gt;&lt;br /&gt;Common features   Hardware summary&lt;br /&gt;&lt;br /&gt;   * 19-inch rack-mount packaging&lt;br /&gt;   * 2- to 16-core SMP design with unique building block architecture&lt;br /&gt;   * 64-bit 1.9 or 2.2 GHz POWER5+ processor cores&lt;br /&gt;   * Mainframe-inspired RAS features&lt;br /&gt;   * Dynamic LPAR support&lt;br /&gt;   * Advanced POWER Virtualization1 (option)&lt;br /&gt;         o IBM Micro-Partitioning™ (up to 160 micro- partitions)&lt;br /&gt;         o Shared processor pool&lt;br /&gt;         o Virtual I/O Server&lt;br /&gt;         o Partition Load Manager (IBM AIX 5L™ only)&lt;br /&gt;   * Up to 20 optional I/O drawers&lt;br /&gt;   * IBM HACMP™ software support for near continuous operation*&lt;br /&gt;* Supported by AIX 5L (V5.2 or later) and Linux® distributions from Red Hat (RHEL AS 4 or later) and SUSE Linux (SLES 9 or later) operating systems&lt;br /&gt;   * System Cluster 1600 support with Cluster Systems Management software*&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   * 4U 19-inch rack-mount packaging&lt;br /&gt;   * One to four building blocks&lt;br /&gt;   * Two, four, eight, 12, 16 1.9 or 2.2 GHz 64-bit POWER5+ processor cores&lt;br /&gt;   * L2 cache: 1.9MB to 15.2MB (2- to 16-core)&lt;br /&gt;   * L3 cache: 36MB to 288MB (2- to 16-core)&lt;br /&gt;* 1.9 GHz systems: 2GB to 256GB of 533 MHz DDR2 memory; 2.2 GHz systems: 2GB to 256GB of 533 MHz or 32GB to 512GB of 400 MHz DDR2 memory&lt;br /&gt;   * Six hot-plug PCI-X adapter slots per building block&lt;br /&gt;   * Six hot-swappable disk bays per building block provide up to 7.2TB of internal disk storage&lt;br /&gt;* Optional I/O drawers may add up to an additional 139 PCI-X slots (for a maximum of 163) and 240 disk bays (72TB additional)&lt;br /&gt;   * Dual channel Ultra320 SCSI controller per building block (internal; RAID optional)&lt;br /&gt;   * One integrated 2-port 10/100/1000 Ethernet per building block&lt;br /&gt;   * Optional 2 Gigabit Fibre Channel, 10 Gigabit Ethernet and 4x GX adapters&lt;br /&gt;   * One 2-port USB per building block&lt;br /&gt;   * Two HMC, two system ports&lt;br /&gt;   * Two hot-plug media bays per building block&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257139272424697307-1035617601658314245?l=aixduniya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aixduniya.blogspot.com/feeds/1035617601658314245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257139272424697307&amp;postID=1035617601658314245' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/1035617601658314245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/1035617601658314245'/><link rel='alternate' type='text/html' href='http://aixduniya.blogspot.com/2007/11/ibm-system-p5-570.html' title='IBM System p5 570'/><author><name>Chetan Jain</name><uri>http://www.blogger.com/profile/09210260405695619919</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257139272424697307.post-8551103700754594365</id><published>2007-12-01T09:36:00.002+05:30</published><updated>2007-12-01T09:37:13.107+05:30</updated><title type='text'>AIX command</title><content type='html'>AIX Control Book Creation&lt;br /&gt;&lt;p&gt;List the licensed program productslslpp -L&lt;br /&gt;List the defined devices lsdev -C -H&lt;br /&gt;List the disk drives on the system lsdev -Cc disk&lt;br /&gt;List the memory on the system lsdev -Cc memory (MCA)&lt;br /&gt;List the memory on the system lsattr -El sys0 -a realmem (PCI)&lt;br /&gt;lsattr -El mem0&lt;br /&gt;List system resources lsattr -EHl sys0&lt;br /&gt;List the VPD (Vital Product Data) lscfg -v&lt;br /&gt;Document the tty setup lscfg or smit screen capture F8&lt;br /&gt;Document the print queues qchk -A&lt;br /&gt;Document disk Physical Volumes (PVs) lspv&lt;br /&gt;Document Logical Volumes (LVs) lslv&lt;br /&gt;Document Volume Groups (long list) lsvg -l vgname&lt;br /&gt;Document Physical Volumes (long list) lspv -l pvname&lt;br /&gt;Document File Systems lsfs fsname&lt;br /&gt;/etc/filesystems&lt;br /&gt;Document disk allocation df&lt;br /&gt;Document mounted file systems mount&lt;br /&gt;Document paging space (70 - 30 rule) lsps -a&lt;br /&gt;Document paging space activation /etc/swapspaces&lt;br /&gt;Document users on the system /etc/passwd&lt;br /&gt;lsuser -a id home ALL&lt;br /&gt;Document users attributes /etc/security/user&lt;br /&gt;Document users limits /etc/security/limits&lt;br /&gt;Document users environments /etc/security/environ&lt;br /&gt;Document login settings (login herald) /etc/security/login.cfg&lt;br /&gt;Document valid group attributes /etc/group&lt;br /&gt;lsgroup ALL&lt;br /&gt;Document system wide profile /etc/profile&lt;br /&gt;Document system wide environment /etc/environment&lt;br /&gt;Document cron jobs /var/spool/cron/crontabs/*&lt;br /&gt;Document skulker changes if used /usr/sbin/skulker&lt;br /&gt;Document system startup file /etc/inittab&lt;br /&gt;Document the hostnames /etc/hosts&lt;br /&gt;Document network printing /etc/hosts.lpd&lt;br /&gt;Document remote login host authority /etc/hosts.equiv&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257139272424697307-8551103700754594365?l=aixduniya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aixduniya.blogspot.com/feeds/8551103700754594365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257139272424697307&amp;postID=8551103700754594365' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/8551103700754594365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/8551103700754594365'/><link rel='alternate' type='text/html' href='http://aixduniya.blogspot.com/2007/11/aix-command.html' title='AIX command'/><author><name>Chetan Jain</name><uri>http://www.blogger.com/profile/09210260405695619919</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257139272424697307.post-6523207812027761005</id><published>2007-12-01T09:36:00.001+05:30</published><updated>2007-12-01T09:36:47.210+05:30</updated><title type='text'>BASH CHEAT SHEETS</title><content type='html'>&lt;strong&gt;Checking strings:&lt;/strong&gt; &lt;pre&gt;s1 = s2     Check if s1 equals s2.&lt;br /&gt;s1 != s2    Check if s1 is not equal to s2.&lt;br /&gt;-z s1       Check if s1 has size 0.&lt;br /&gt;-n s1       Check if s2 has nonzero size.&lt;br /&gt;s1          Check if s1 is not the empty string.&lt;/pre&gt; &lt;p&gt;Example:&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;[&lt;/span&gt; &lt;span style="color: rgb(0, 120, 0);"&gt;$myvar&lt;/span&gt; = &lt;span style="color: rgb(255, 0, 0);"&gt;"hello"&lt;/span&gt; &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;]&lt;/span&gt; ; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;"We have a match"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;fi&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;&lt;strong&gt;Checking numbers:&lt;/strong&gt;&lt;br /&gt;Note that a shell variable could contain a string that represents a number. If you want to check the numerical value use one of the following:&lt;/p&gt; &lt;pre&gt;n1 -eq n2      Check to see if n1 equals n2.&lt;br /&gt;n1 -ne n2      Check to see if n1 is not equal to n2.&lt;br /&gt;n1 -lt n2      Check to see if n1 &lt; n2.&lt;br /&gt;n1 -le n2      Check to see if n1 &lt;= n2.&lt;br /&gt;n1 -gt n2      Check to see if n1 &gt; n2.&lt;br /&gt;n1 -ge n2      Check to see if n1 &gt;= n2.&lt;/pre&gt; &lt;p&gt;Example:&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;[&lt;/span&gt; &lt;span style="color: rgb(0, 120, 0);"&gt;$#&lt;/span&gt; -gt &lt;span style="color: rgb(0, 0, 0);"&gt;1&lt;/span&gt; &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;then&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;"ERROR: should have 0 or 1 command-line parameters"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;fi&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;&lt;strong&gt;Boolean operators:&lt;/strong&gt;&lt;/p&gt; &lt;pre&gt;!     not&lt;br /&gt;-a    and&lt;br /&gt;-o    or&lt;/pre&gt; &lt;p&gt;Example:&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;[&lt;/span&gt; &lt;span style="color: rgb(0, 120, 0);"&gt;$num&lt;/span&gt; -lt &lt;span style="color: rgb(0, 0, 0);"&gt;10&lt;/span&gt; -o &lt;span style="color: rgb(0, 120, 0);"&gt;$num&lt;/span&gt; -gt &lt;span style="color: rgb(0, 0, 0);"&gt;100&lt;/span&gt; &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;then&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;"Number $num is out of range"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;elif&lt;/span&gt; &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;[&lt;/span&gt; ! -&lt;span style="color: rgb(194, 12, 185); font-weight: bold;"&gt;w&lt;/span&gt; &lt;span style="color: rgb(0, 120, 0);"&gt;$filename&lt;/span&gt; &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;then&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;"Cannot write to $filename"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;fi&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;Note that ifs can be nested.  For example:&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;[&lt;/span&gt; &lt;span style="color: rgb(0, 120, 0);"&gt;$myvar&lt;/span&gt; = &lt;span style="color: rgb(255, 0, 0);"&gt;"y"&lt;/span&gt; &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;then&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;"Enter count of number of items"&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: rgb(194, 12, 185); font-weight: bold;"&gt;read&lt;/span&gt; num&lt;br /&gt;  &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;[&lt;/span&gt; &lt;span style="color: rgb(0, 120, 0);"&gt;$num&lt;/span&gt; -le &lt;span style="color: rgb(0, 0, 0);"&gt;0&lt;/span&gt; &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;]&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;then&lt;/span&gt;&lt;br /&gt;      &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;"Invalid count of $num was given"&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;#... &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;do&lt;/span&gt; whatever ...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;fi&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;The above example also illustrates the use of read to read a string from the keyboard and place it into a shell variable. Also note that most UNIX commands return a true (nonzero) or false (0) in the shell variable status to indicate whether they succeeded or not. This return value can be checked. At the command line echo $status. In a shell script use something like this:&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: rgb(194, 12, 185); font-weight: bold;"&gt;grep&lt;/span&gt; -q shell bshellref&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;then&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;"true"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;else&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;"false"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;fi&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;Note that -q is the quiet version of grep. It just checks whether it is true that the string shell occurs in the file bshellref. It does not print the matching lines like grep would otherwise do.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;I/O Redirection:&lt;/strong&gt;&lt;/p&gt; &lt;pre&gt;pgm &gt; file     Output of pgm is redirected to file.&lt;br /&gt;pgm &lt; file     Program pgm reads its input from file.&lt;br /&gt;pgm &gt;&gt; file    Output of pgm is appended to file.&lt;br /&gt;pgm1 | pgm2    Output of pgm1 is piped into pgm2 as the input to pgm2.&lt;br /&gt;n &gt; file       Output from stream with descriptor n redirected to file.&lt;br /&gt;n &gt;&gt; file      Output from stream with descriptor n appended to file.&lt;br /&gt;n &gt;&amp;amp; m         Merge output from stream n with stream m.&lt;br /&gt;n &lt;&amp;amp; m         Merge input from stream n with stream m.&lt;br /&gt;&lt;&lt;&gt; &lt;p&gt;Note that file descriptor 0 is normally standard input, 1 is standard output, and 2 is standard error output.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Shell Built-in Variables:&lt;/strong&gt;&lt;/p&gt; &lt;pre&gt;$0             Name of this shell script itself.&lt;br /&gt;$1             Value of first command line parameter (similarly $2, $3, etc)&lt;br /&gt;$#             In a shell script, the number of command line parameters.&lt;br /&gt;$*             All of the command line parameters.&lt;br /&gt;$-             Options given to the shell.&lt;br /&gt;$?             Return the exit status of the last command.&lt;br /&gt;$$             Process id of script (really id of the shell running the script)&lt;/pre&gt; &lt;p&gt;&lt;strong&gt;Pattern Matching:&lt;/strong&gt;&lt;/p&gt; &lt;pre&gt;*              Matches 0 or more characters.&lt;br /&gt;?              Matches 1 character.&lt;br /&gt;[AaBbCc]       Example: matches any 1 char from the list.&lt;br /&gt;[^RGB]         Example: matches any 1 char not in the list.&lt;br /&gt;[a-g]          Example: matches any 1 char from this range.&lt;/pre&gt; &lt;p&gt;&lt;strong&gt;Quoting:&lt;/strong&gt;&lt;/p&gt; &lt;pre&gt;\c             Take character c literally.&lt;br /&gt;`cmd`          Run cmd and replace it in the line of code with its output.&lt;br /&gt;"whatever"     Take whatever literally, after first interpreting $, `...`, \&lt;br /&gt;'whatever'     Take whatever absolutely literally.&lt;/pre&gt; &lt;p&gt;Example:&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash"&gt;&lt;span style="color: rgb(0, 120, 0);"&gt;match=&lt;/span&gt;`&lt;span style="color: rgb(194, 12, 185); font-weight: bold;"&gt;ls&lt;/span&gt; *.bak`        &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;#Puts names of .bak files into shell variable match.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;echo&lt;/span&gt; \*                 &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;#Echos * to screen, not all filename &lt;span style="color: rgb(194, 12, 185); font-weight: bold;"&gt;as&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;in&lt;/span&gt;:  &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;echo&lt;/span&gt; *&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;'$1$2hello'&lt;/span&gt;        &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;#Writes literally $&lt;span style="color: rgb(0, 0, 0);"&gt;1&lt;/span&gt;$2hello on screen.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;"$1$2hello"&lt;/span&gt;        &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;#Writes value of parameters &lt;span style="color: rgb(0, 0, 0);"&gt;1&lt;/span&gt; and &lt;span style="color: rgb(0, 0, 0);"&gt;2&lt;/span&gt; and string hello.&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;&lt;strong&gt;Grouping:&lt;/strong&gt;&lt;br /&gt;Parentheses may be used for grouping, but must be preceded by backslashes&lt;br /&gt;since parentheses normally have a different meaning to the shell (namely&lt;br /&gt;to run a command or commands in a subshell).  For example, you might use:&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;if&lt;/span&gt; &lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;test&lt;/span&gt; \&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;(&lt;/span&gt; -r &lt;span style="color: rgb(0, 120, 0);"&gt;$file1&lt;/span&gt; -a -r &lt;span style="color: rgb(0, 120, 0);"&gt;$file2&lt;/span&gt; \&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;)&lt;/span&gt; -o \&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;(&lt;/span&gt; -r $&lt;span style="color: rgb(0, 0, 0);"&gt;1&lt;/span&gt; -a -r $&lt;span style="color: rgb(0, 0, 0);"&gt;2&lt;/span&gt; \&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;then&lt;/span&gt;&lt;br /&gt;  &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;#do whatever&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;fi&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;&lt;strong&gt;Case statement:&lt;/strong&gt;&lt;br /&gt;Here is an example that looks for a match with one of the characters a, b, c. If $1 fails to match these, it always matches the * case. A case statement can also use more advanced pattern matching.&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;case&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;"$1"&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;in&lt;/span&gt;&lt;br /&gt;  a&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;)&lt;/span&gt; cmd1 ;;&lt;br /&gt;  b&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;)&lt;/span&gt; cmd2 ;;&lt;br /&gt;  c&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;)&lt;/span&gt; cmd3 ;;&lt;br /&gt;  *&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;)&lt;/span&gt; cmd4 ;;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;esac&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;&lt;strong&gt;Shell Arithmetic:&lt;/strong&gt;&lt;br /&gt;In the original Bourne shell arithmetic is done using the expr command as in:&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash"&gt;&lt;span style="color: rgb(0, 120, 0);"&gt;result=&lt;/span&gt;`&lt;span style="color: rgb(194, 12, 185); font-weight: bold;"&gt;expr&lt;/span&gt; $&lt;span style="color: rgb(0, 0, 0);"&gt;1&lt;/span&gt; + &lt;span style="color: rgb(0, 0, 0);"&gt;2&lt;/span&gt;`&lt;br /&gt;&lt;span style="color: rgb(0, 120, 0);"&gt;result2=&lt;/span&gt;`&lt;span style="color: rgb(194, 12, 185); font-weight: bold;"&gt;expr&lt;/span&gt; $&lt;span style="color: rgb(0, 0, 0);"&gt;2&lt;/span&gt; + $&lt;span style="color: rgb(0, 0, 0);"&gt;1&lt;/span&gt; / &lt;span style="color: rgb(0, 0, 0);"&gt;2&lt;/span&gt;`&lt;br /&gt;&lt;span style="color: rgb(0, 120, 0);"&gt;result=&lt;/span&gt;`&lt;span style="color: rgb(194, 12, 185); font-weight: bold;"&gt;expr&lt;/span&gt; $&lt;span style="color: rgb(0, 0, 0);"&gt;2&lt;/span&gt; \* &lt;span style="color: rgb(0, 0, 0);"&gt;5&lt;/span&gt;`               &lt;span style="color: rgb(128, 128, 128); font-style: italic;"&gt;#note the \ on the * symbol&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;With bash, an expression is normally enclosed using [ ] and can use the following operators, in order of precedence:&lt;/p&gt; &lt;pre&gt;* / %       (times, divide, remainder)&lt;br /&gt;+ -         (add, subtract)&lt;br /&gt;&lt; &gt; &lt;= &gt;=   (the obvious comparison operators)&lt;br /&gt;== !=       (equal to, not equal to)&lt;br /&gt;&amp;amp;&amp;amp;          (logical and)&lt;br /&gt;||          (logical or)&lt;br /&gt;=           (assignment)&lt;/pre&gt; &lt;p&gt;Arithmetic is done using long integers.&lt;br /&gt;Example:&lt;/p&gt;  &lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash"&gt;&lt;span style="color: rgb(0, 120, 0);"&gt;result=&lt;/span&gt;$&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;[&lt;/span&gt;$&lt;span style="color: rgb(0, 0, 0);"&gt;1&lt;/span&gt; + &lt;span style="color: rgb(0, 0, 0);"&gt;3&lt;/span&gt;&lt;span style="color: rgb(122, 8, 116); font-weight: bold;"&gt;]&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;In this example we take the value of the first parameter, add 3, and place the sum into result.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Order of Interpretation:&lt;/strong&gt;&lt;br /&gt;The bash shell carries out its various types of interpretation for each line in the following order:&lt;/p&gt; &lt;pre&gt;brace expansion         (see a reference book)&lt;br /&gt;~ expansion             (for login ids)&lt;br /&gt;parameters              (such as $1)&lt;br /&gt;variables               (such as $var)&lt;br /&gt;command substitution    (Example:  match=`grep DNS *` )&lt;br /&gt;arithmetic              (from left to right)&lt;br /&gt;word splitting&lt;br /&gt;pathname expansion      (using *, ?, and [abc] )&lt;/pre&gt; &lt;p&gt;&lt;strong&gt;Other Shell Features:&lt;/strong&gt;&lt;/p&gt; &lt;pre&gt;$var           Value of shell variable var.&lt;br /&gt;${var}abc      Example: value of shell variable var with string abc appended.&lt;br /&gt;#              At start of line, indicates a comment.&lt;br /&gt;var=value      Assign the string value to shell variable var.&lt;br /&gt;cmd1 &amp;amp;&amp;amp; cmd2   Run cmd1, then if cmd1 successful run cmd2, otherwise skip.&lt;br /&gt;cmd1 || cmd2   Run cmd1, then if cmd1 not successful run cmd2, otherwise skip.&lt;br /&gt;cmd1; cmd2     Do cmd1 and then cmd2.&lt;br /&gt;cmd1 &amp;amp; cmd2    Do cmd1, start cmd2 without waiting for cmd1 to finish.&lt;br /&gt;(cmds)         Run cmds (commands) in a subshell.&lt;/pre&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257139272424697307-6523207812027761005?l=aixduniya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aixduniya.blogspot.com/feeds/6523207812027761005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257139272424697307&amp;postID=6523207812027761005' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/6523207812027761005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/6523207812027761005'/><link rel='alternate' type='text/html' href='http://aixduniya.blogspot.com/2007/11/bash-cheat-sheets.html' title='BASH CHEAT SHEETS'/><author><name>Chetan Jain</name><uri>http://www.blogger.com/profile/09210260405695619919</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257139272424697307.post-4025338251682882216</id><published>2007-12-01T09:35:00.004+05:30</published><updated>2007-12-01T09:36:02.954+05:30</updated><title type='text'>Directories to monitor in AIX</title><content type='html'>/var/adm/sulog Switch user log file (ASCII file). Use cat, pg or&lt;br /&gt;more to view it and rm to clean it out.&lt;br /&gt;/etc/security/failedlogin Failed logins from users. Use the who command&lt;br /&gt;to view the information. Use "cat /dev/null &gt;&lt;br /&gt;/etc/failedlogin" to empty it,&lt;br /&gt;/var/adm/wtmp All login accounting activity. Use the who&lt;br /&gt;command to view it use "cat /dev/null &gt;&lt;br /&gt;/var/adm/wtmp" to empty it.&lt;br /&gt;/etc/utmp Who has logged in to the system. Use the who&lt;br /&gt;command to view it. Use "cat /dev/null &gt;&lt;br /&gt;/etc/utmp" to empty it.&lt;br /&gt;/var/spool/lpd/qdir/* Left over queue requests&lt;br /&gt;/var/spool/qdaemon/* temp copy of spooled files&lt;br /&gt;/var/spool/* spooling directory&lt;br /&gt;smit.log smit log file of activity&lt;br /&gt;smit.script smit log&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257139272424697307-4025338251682882216?l=aixduniya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aixduniya.blogspot.com/feeds/4025338251682882216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257139272424697307&amp;postID=4025338251682882216' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/4025338251682882216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/4025338251682882216'/><link rel='alternate' type='text/html' href='http://aixduniya.blogspot.com/2007/11/directories-to-monitor-in-aix.html' title='Directories to monitor in AIX'/><author><name>Chetan Jain</name><uri>http://www.blogger.com/profile/09210260405695619919</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257139272424697307.post-5247916409830673187</id><published>2007-12-01T09:35:00.003+05:30</published><updated>2007-12-01T09:35:41.344+05:30</updated><title type='text'>What is an LVM hot spare?</title><content type='html'>&lt;p&gt;A hot spare is a disk or group of disks used to replace a failing disk. LVM marks a physical&lt;br /&gt;volume missing due to write failures. It then starts the migration of data to the hot spare&lt;br /&gt;disk.&lt;br /&gt;Minimum hot spare requirements&lt;br /&gt;The following is a list of minimal hot sparing requirements enforced by the operating&lt;br /&gt;system.&lt;br /&gt;- Spares are allocated and used by volume group&lt;br /&gt;- Logical volumes must be mirrored&lt;br /&gt;- All logical partitions on hot spare disks must be unallocated&lt;br /&gt;- Hot spare disks must have at least equal capacity to the smallest disk already&lt;br /&gt;in the volume group. Good practice dictates having enough hot spares to&lt;br /&gt;cover your largest mirrored disk.&lt;br /&gt;Hot spare policy&lt;br /&gt;The chpv and the chvg commands are enhanced with a new -h argument. This allows you&lt;br /&gt;to designate disks as hot spares in a volume group and to specify a policy to be used in the&lt;br /&gt;case of failing disks.&lt;br /&gt;The following four values are valid for the hot spare policy argument (-h):&lt;br /&gt;Synchronization policy&lt;br /&gt;There is a new -s argument for the chvg command that is used to specify synchronization&lt;br /&gt;characteristics.&lt;br /&gt;The following two values are valid for the synchronization argument (-s):&lt;br /&gt;Examples&lt;br /&gt;The following command marks hdisk1 as a hot spare disk:&lt;br /&gt;# chpv -hy hdisk1&lt;br /&gt;The following command sets an automatic migration policy which uses the smallest hot&lt;br /&gt;spare that is large enough to replace the failing disk, and automatically tries to synchronize&lt;br /&gt;stale partitions:&lt;br /&gt;# chvg -hy -sy testvg&lt;br /&gt;Argument Description&lt;br /&gt;y (lower case)&lt;br /&gt;Automatically migrates partitions from one failing disk to one spare&lt;br /&gt;disk. From the pool of hot spare disks, the smallest one which is big&lt;br /&gt;enough to substitute for the failing disk will be used.&lt;br /&gt;Y (upper case)&lt;br /&gt;Automatically migrates partitions from a failing disk, but might use&lt;br /&gt;the complete pool of hot spare disks.&lt;br /&gt;n&lt;br /&gt;No automatic migration will take place. This is the default value for a&lt;br /&gt;volume group.&lt;br /&gt;r&lt;br /&gt;Removes all disks from the pool of hot spare disks for this volume&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257139272424697307-5247916409830673187?l=aixduniya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aixduniya.blogspot.com/feeds/5247916409830673187/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257139272424697307&amp;postID=5247916409830673187' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/5247916409830673187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/5247916409830673187'/><link rel='alternate' type='text/html' href='http://aixduniya.blogspot.com/2007/11/what-is-lvm-hot-spare.html' title='What is an LVM hot spare?'/><author><name>Chetan Jain</name><uri>http://www.blogger.com/profile/09210260405695619919</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257139272424697307.post-5389026302666986129</id><published>2007-12-01T09:35:00.001+05:30</published><updated>2007-12-01T09:35:20.174+05:30</updated><title type='text'>Mirror Write Consistency</title><content type='html'>&lt;p&gt;Mirror Write Consistency (MWC) ensures data consistency on logical volumes in case a&lt;br /&gt;system crash occurs during mirrored writes. The active method achieves this by logging&lt;br /&gt;when a write occurs. LVM makes an update to the MWC log that identifies what areas of&lt;br /&gt;the disk are being updated before performing the write of the data. Records of the last 62&lt;br /&gt;distinct logical transfer groups (LTG) written to disk are kept in memory and also written to&lt;br /&gt;a separate checkpoint area on disk (MWC log). This results in a performance degradation&lt;br /&gt;during random writes.&lt;br /&gt;With AIX V5.1 and later, there are now two ways of handling MWC:&lt;br /&gt;• Active, the existing method&lt;br /&gt;• Passive, the new method&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257139272424697307-5389026302666986129?l=aixduniya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aixduniya.blogspot.com/feeds/5389026302666986129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257139272424697307&amp;postID=5389026302666986129' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/5389026302666986129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/5389026302666986129'/><link rel='alternate' type='text/html' href='http://aixduniya.blogspot.com/2007/11/mirror-write-consistency.html' title='Mirror Write Consistency'/><author><name>Chetan Jain</name><uri>http://www.blogger.com/profile/09210260405695619919</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257139272424697307.post-1844048193772811309</id><published>2007-12-01T09:34:00.003+05:30</published><updated>2007-12-01T09:34:54.926+05:30</updated><title type='text'>DIfferent Raid Levels</title><content type='html'>&lt;p&gt;The different raid levels available today&lt;br /&gt;&lt;br /&gt;Raid 0 - Stripping data across the disks. This stripes the data across all the disks present in the&lt;br /&gt;array. This improves the read and write performance. Eg. Reading a large file takes a&lt;br /&gt;long time in comparison to reading the same file from a Raid 0 system.They is no data&lt;br /&gt;redundancy in this case.&lt;br /&gt;&lt;br /&gt;Raid 1 - Mirroring. In case of Raid 0 it was observed that there was no redundancy,i.e if one&lt;br /&gt;disk fails then the data is lost. Raid 1 overcomes that problem by mirroring the data. So&lt;br /&gt;if one disk fails the data is still accessible through the other disk.&lt;br /&gt;&lt;br /&gt;Raid 2 - RAID level that does not use one or more of the "standard" techniques of mirroring,&lt;br /&gt;striping and/or parity. It is implemented by splitting data at bit level and spreading it&lt;br /&gt;across the data disks and redundant disk. It uses a special algorithm called as ECC&lt;br /&gt;(error correction code) which is accompanied across each data block. These are tallied&lt;br /&gt;when the data is read from the disk to maintain data integrity.&lt;br /&gt;&lt;br /&gt;Raid 3 - data is striped across multiple disks at a byte level. The data is stripped with parity and&lt;br /&gt;the parity is maintained in a separate disk. So if that disk goes off , it results in a data&lt;br /&gt;loss.&lt;br /&gt;&lt;br /&gt;Raid 4 - Similar to Raid 3 the only difference is that the data is striped across multiple disks at&lt;br /&gt;block level.&lt;br /&gt;&lt;br /&gt;Raid 5 - Block-level striping with distributed parity. The data and parity is stripped across all&lt;br /&gt;disks thus increasing the data redundancy. Minimum three disks are required and if&lt;br /&gt;any one disk goes off the data is still secure.&lt;br /&gt;&lt;br /&gt;Raid 6 - Block-level striping with dual distributed parity. Its stripes blocks of data and parity&lt;br /&gt;across all disks in the Raid except that it maintains two sets of parity information for&lt;br /&gt;each parcel of data thus increasing the data redundancy. So if two disk go off the data&lt;br /&gt;is still intact.&lt;br /&gt;&lt;br /&gt;Raid 7 - Asynchronous, cached striping with dedicated parity. This level is not a open industry&lt;br /&gt;standard. It is based on the concepts of Raid 3 and 4 and a great deal of cache is&lt;br /&gt;included across multiple levels. Also there is a specialised real time processor to&lt;br /&gt;manage the array asynchronously.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257139272424697307-1844048193772811309?l=aixduniya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aixduniya.blogspot.com/feeds/1844048193772811309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257139272424697307&amp;postID=1844048193772811309' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/1844048193772811309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/1844048193772811309'/><link rel='alternate' type='text/html' href='http://aixduniya.blogspot.com/2007/11/different-raid-levels.html' title='DIfferent Raid Levels'/><author><name>Chetan Jain</name><uri>http://www.blogger.com/profile/09210260405695619919</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257139272424697307.post-4498184504987245571</id><published>2007-12-01T09:34:00.001+05:30</published><updated>2007-12-01T09:34:31.348+05:30</updated><title type='text'>Recovering a Failed VIO Disk</title><content type='html'>Here is a recovery procedure for replacing a failed client disk on a Virtual IO&lt;br /&gt;&lt;p&gt;server. It assumes the client partitions have mirrored (virtual) disks. The&lt;br /&gt;recovery involves both the VIO server and its client partitions. However,&lt;br /&gt;it is non disruptive for the client partitions (no downtime), and may be&lt;br /&gt;non disruptive on the VIO server (depending on disk configuration). This&lt;br /&gt;procedure does not apply to Raid5 or SAN disk failures.&lt;br /&gt;&lt;br /&gt;The test system had two VIO servers and an AIX client. The AIX client had two&lt;br /&gt;virtual disks (one disk from each VIO server). The two virtual disks&lt;br /&gt;were mirrored in the client using AIX's mirrorvg. (The procedure would be&lt;br /&gt;the same on a single VIO server with two disks.)&lt;br /&gt;&lt;br /&gt;The software levels were:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;p520: Firmware SF230_145 VIO Version 1.2.0 Client: AIX 5.3 ML3&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We had simulated the disk failure by removing the client LV on one VIO server. The&lt;br /&gt;padmin commands to simulate the failure were:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;rmdev -dev vtscsi01 # The virtual scsi device for the LV (lsmap -all)rmlv -f aix_client_lv # Remove the client LV&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This caused "hdisk1" on the AIX client to go "missing" ("lsvg -p rootvg"....The&lt;br /&gt;"lspv" will not show disk failure...only the disk status at the last boot..)&lt;br /&gt;&lt;br /&gt;The recovery steps included:&lt;br /&gt;&lt;br /&gt;VIO Server&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Fix the disk failure, and restore the VIOS operating system (if necessary)mklv -lv aix_client_lv rootvg 10G # recreate the client LV mkvdev -vdev aix_client_lv -vadapter vhost1 # connect the client LV to the appropriate vhost&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AIX Client&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;cfgmgr # discover the new virtual hdisk2 replacepv hdisk1 hdisk2 # rebuild the mirror copy on hdisk2 bosboot -ad /dev/hdisk2 # add boot image to hdisk2bootlist -m normal hdisk0 hdisk2 # add the new disk to the bootlistrmdev -dl hdisk1 # remove failed hdisk1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The "replacepv" command assigns hdisk2 to the volume group, rebuilds the mirror, and&lt;br /&gt;then removes hdisk1 from the volume group.&lt;br /&gt;&lt;br /&gt;As always, be sure to test this procedure before using in production.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257139272424697307-4498184504987245571?l=aixduniya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aixduniya.blogspot.com/feeds/4498184504987245571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257139272424697307&amp;postID=4498184504987245571' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/4498184504987245571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/4498184504987245571'/><link rel='alternate' type='text/html' href='http://aixduniya.blogspot.com/2007/11/recovering-failed-vio-disk.html' title='Recovering a Failed VIO Disk'/><author><name>Chetan Jain</name><uri>http://www.blogger.com/profile/09210260405695619919</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257139272424697307.post-8458731007003059916</id><published>2007-12-01T09:33:00.003+05:30</published><updated>2007-12-01T09:33:54.885+05:30</updated><title type='text'>AIX / HMC/VIO Tips Sheet</title><content type='html'>&lt;p&gt;HMC Commands&lt;br /&gt;lshmc –n (lists dynamic IP addresses served by HMC)&lt;br /&gt;lssyscfg –r sys –F name,ipaddr (lists managed system attributes)&lt;br /&gt;lssysconn –r sys (lists attributes of managed systems)&lt;br /&gt;lssysconn –r all (lists all known managed systems with attributes)&lt;br /&gt;rmsysconn –o remove –ip (removes a managed system from the HMC)&lt;br /&gt;mkvterm –m {msys} –p {lpar} (opens a command line vterm from an ssh session)&lt;br /&gt;rmvterm –m {msys} –p {lpar} (closes an open vterm for a partition)&lt;br /&gt;Activate a partition&lt;br /&gt;chsysstate –m managedsysname –r lpar –o on –n partitionname –f profilename –b normal&lt;br /&gt;chsysstate –m managedsysname –r lpar –o on –n partitionname –f profilename –b sms&lt;br /&gt;Shutdown a partition&lt;br /&gt;chsysstate –m managedsysname –r lpar –o {shutdown/ossshutdown} –n partitionname [-immed][-restart]&lt;br /&gt;VIO Server Commands&lt;br /&gt;lsdev –virtual (list all virtual devices on VIO server partitions)&lt;br /&gt;lsmap –all (lists mapping between physical and logical devices)&lt;br /&gt;oem_setup_env (change to OEM [AIX] environment on VIO server)&lt;br /&gt;Create Shared Ethernet Adapter (SEA) on VIO Server&lt;br /&gt;mkvdev –sea{physical adapt} –vadapter {virtual eth adapt} –default {dflt virtual adapt} –defaultid {dflt vlan ID}&lt;br /&gt;SEA Failover&lt;br /&gt;ent0 – GigE adapter&lt;br /&gt;ent1 – Virt Eth VLAN1 (Defined with a priority in the partition profile)&lt;br /&gt;ent2 – Virt Eth VLAN 99 (Control)&lt;br /&gt;mkvdev –sea ent0 –vadapter ent1 –default ent1 –defaultid 1 –attr ha_mode=auto ctl_chan=ent2&lt;br /&gt;(Creates ent3 as the Shared Ethernet Adapter)&lt;br /&gt;Create Virtual Storage Device Mapping&lt;br /&gt;mkvdev –vdev {LV or hdisk} –vadapter {vhost adapt} –dev {virt dev name}&lt;br /&gt;Sharing a Single SAN LUN from Two VIO Servers to a Single VIO Client LPAR&lt;br /&gt;hdisk = SAN LUN (on vioa server)&lt;br /&gt;hdisk4 = SAN LUN (on viob, same LUN as vioa)&lt;br /&gt;chdev –dev hdisk3 –attr reserve_policy=no_reserve (from vioa to prevent a reserve on the disk)&lt;br /&gt;chdev –dev hdisk4 –attr reserve_policy=no_reserve (from viob to prevent a reserve on the disk)&lt;br /&gt;mkvdev –vdev hdisk3 –vadapter vhost0 –dev hdisk3_v (from vioa)&lt;br /&gt;mkvdev –vdev hdisk4 –vadapter vhost0 –dev hdisk4_v (from viob)&lt;br /&gt;VIO Client would see a single LUN with two paths.&lt;br /&gt;spath –l hdiskx (where hdiskx is the newly discovered disk)&lt;br /&gt;This will show two paths, one down vscsi0 and the other down vscsi1.&lt;br /&gt;AIX Performance TidBits and Starter Set of Tuneables&lt;br /&gt;Current starter set of recommended AIX 5.3 Performance Parameters. Please ensure you test these first before implementing in production as your mileage may vary.&lt;br /&gt;Network&lt;br /&gt;no –p –o rfc1323=1&lt;br /&gt;no –p –o sb_max=1310720&lt;br /&gt;no –p –o tcp_sendspace=262144&lt;br /&gt;no –p –o tcp_recvspace=262144&lt;br /&gt;no –p –o udp_sendspace=65536&lt;br /&gt;no –p –o udp_recvspace=655360&lt;br /&gt;nfso –p –o rfc_1323=1&lt;br /&gt;NB Network settings also need to be applied to the adapters&lt;br /&gt;nfso –p –o nfs_socketsize=600000&lt;br /&gt;nfso –p –o nfs_tcp_socketsize=600000&lt;br /&gt;Memory Settings&lt;br /&gt;vmo – p –o minperm%=5&lt;br /&gt;vmo –p –o maxperm%=80&lt;br /&gt;vmo –p –o maxclient%=80&lt;br /&gt;Let strict_maxperm and strict_maxclient default&lt;br /&gt;vmo –p –o minfree=960&lt;br /&gt;vmo –p –o maxfree=1088&lt;br /&gt;vmo –p –o lru_file_repage=0&lt;br /&gt;vmo –p –o lru_poll_interval=10&lt;br /&gt;IO Settings&lt;br /&gt;Let minpgahead and J2_minPageReadAhead default&lt;br /&gt;ioo –p –o j2_maxPageReadAhead=128&lt;br /&gt;ioo –p –o maxpgahead=16&lt;br /&gt;ioo –p –o j2_maxRandomWrite=32&lt;br /&gt;ioo –p –o maxrandwrt=32&lt;br /&gt;ioo –p –o j2_nBufferPerPagerDevice=1024&lt;br /&gt;ioo –p –o pv_min_pbug=1024&lt;br /&gt;ioo –p –o numfsbufs=2048&lt;br /&gt;If doing lots of raw I/O you may want to change lvm_bufcnt&lt;br /&gt;Default is 9&lt;br /&gt;ioo –p –o lvm_bufcnt=12&lt;br /&gt;Others left to default that you may want to tweak include:&lt;br /&gt;ioo –p –o numclust=1&lt;br /&gt;ioo –p –o j2_nRandomCluster=0&lt;br /&gt;ioo –p –o j2_nPagesPerWriteBehindCluster=32&lt;br /&gt;Useful Commands&lt;br /&gt;vmstat –v or –l or –s lvmo&lt;br /&gt;vmo –o iostat (many new flags)&lt;br /&gt;ioo –o svmon&lt;br /&gt;schedo –o filemon&lt;br /&gt;lvmstat fileplace&lt;br /&gt;Useful Links&lt;br /&gt;1. Lparmon – www.alphaworks.ibm.com/tech/lparmon&lt;br /&gt;2. Nmon – www.ibm.com/collaboration/wiki/display/WikiPtype/nmon&lt;br /&gt;3. Nmon Analyser – www-941.ibm.com/collaboration/wiki/display/WikiPtype/nmonanalyser&lt;br /&gt;4. vmo, ioo, vmstat, lvmo and other AIX commands http://publib.boulder.ibm.com/infocenter/pseries/v5r3/topic/com&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257139272424697307-8458731007003059916?l=aixduniya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aixduniya.blogspot.com/feeds/8458731007003059916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257139272424697307&amp;postID=8458731007003059916' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/8458731007003059916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/8458731007003059916'/><link rel='alternate' type='text/html' href='http://aixduniya.blogspot.com/2007/11/aix-hmcvio-tips-sheet.html' title='AIX / HMC/VIO Tips Sheet'/><author><name>Chetan Jain</name><uri>http://www.blogger.com/profile/09210260405695619919</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257139272424697307.post-2145848667413332572</id><published>2007-12-01T09:33:00.001+05:30</published><updated>2007-12-01T09:33:32.449+05:30</updated><title type='text'>Introduction to WPAR in AIX 6</title><content type='html'>Introduction to Workload Partitions - WPAR 101&lt;br /&gt;&lt;p&gt;Workload Partitioning is a virtualization technology that utilizes&lt;br /&gt;software rather than firmware to isolate users and/or applications.&lt;br /&gt;&lt;br /&gt;A Workload Partition (WPAR) is a combination of several core AIX technologies. There are differences of course, but here the emphasis is on the similarities. In this essay I shall describe the characteristics of these technologies and how workload partitions are built upon them.&lt;br /&gt;&lt;br /&gt;There are two types of WPAR: system and application.My focus is on system WPAR as this more closely resembles a LPAR or a seperate system. In other words, a system WPAR behaves as a complete installation of AIX. At a later time application workload partitions will be described in terms of how they differ from a system WPAR. For the rest of this document WPAR and system WPAR are to be considered synonomous.&lt;br /&gt;&lt;br /&gt;AIX system software has three components: root, user, and shared. The root component consists of all the software and data that are unique to that system or node. The user (or usr) part consists of all the software and data that is common to all AIX systems at that particular AIX software level (e.g., oslevel AIX 5.3 TL06-01, or AIX 5.3 TL06-02, or AIX 6.1). The shared component is software and data that is common to any UNIX or Linux system.&lt;br /&gt;&lt;br /&gt;In it's default configuration a WPAR inherits it's user (/usr) and shared (/usr/share, usually physically included in /usr filesystem) components from the global system. Additionally, the WPAR inherits the /opt filesystem. The /opt filesystem is the normal installation area in the rootvg volume group for RPM and IHS packaged applications and AIX Linux affinity applications and libraries. Because multiple WPAR's are intended to share these file fystems (/usr and /opt) they are read-only by WPAR applications and users. This is very similiar to how NIM (Network Installation Manager) diskless and dataless systems were configured and installed. Since only the unique rootvg volume group file systems need to be created (/, /tmp, /var, /home) creation of a WPAR is a quick process.&lt;br /&gt;&lt;br /&gt;The normal AIX boot process is conducted in three phases:&lt;br /&gt;1) boot IPL, or locating and loading the boot block (hd5);&lt;br /&gt;2) rootvg IPL (varyonvg of rootvg),&lt;br /&gt;3) rc.boot 3 or start of init process reading /etc/inittab&lt;br /&gt;&lt;br /&gt;A WPAR activation or "booting" skips step 1. Step 2 is the global (is hosting) system mounting the WPAR filesystems - either locally or from remote storage (currently only NFS is officially supported, GPFS is known to work, but not officially supported at this time (September 2007)). The third phase is staring an init process in the global system. This @init@ process does a chroot to the WPAR root filesystem and performs an AIX normal rc.boot 3 phase.&lt;br /&gt;&lt;br /&gt;WPAR Management&lt;br /&gt;&lt;br /&gt;WPAR Management in it's simpliest form is simply: Starting, Stopping, and Monitoring resource usage. And, not to forget - creating and deleting WPAR.&lt;br /&gt;&lt;br /&gt;Creating a WPAR is a very simple process: the onetime prequistite is the existance of the directory /wpars with mode 700 for root. Obviously, we do not want just anyone wondering in the virtualized rootvg's of the WPAR. And, if the WPAR name you want to create resolves either in /etc/hosts or DNS (and I suspect NIS) all you need to do is enter:&lt;br /&gt;# mkwpar -n&lt;br /&gt;If you want to save the output you could also use:&lt;br /&gt;# nohup mkwpar -n &amp;amp; sleep 2; tail -f nohup.out&lt;br /&gt;and watch the show!&lt;br /&gt;&lt;br /&gt;This creates all the wpar filesystems (/, /home, /tmp, /var and /proc)&lt;br /&gt;and read-only entries for /opt and /usr. After these have been made, they are&lt;br /&gt;mounted and "some assembly" is performed, basically installing the root part&lt;br /&gt;of the filesets in /usr. The only "unfortunate" part of the default setup is&lt;br /&gt;that all filesystems are created in rootvg, and using generic logical partition&lt;br /&gt;names (fslv00, fslv01, fslv02, fslv03). Fortunately, there is an argument&lt;br /&gt;(-g) that you can use to get the logical partitions made in a different&lt;br /&gt;volume group. There are many options for changing all of these and they&lt;br /&gt;will be covered in my next document when I'll discuss WPAR mobility.&lt;br /&gt;&lt;br /&gt;At this point you should just enter:&lt;br /&gt;# startwpar&lt;br /&gt;wait for prompt and from "anywhere" you can connect to the running WPAR just&lt;br /&gt;as if it was a seperate system. Just do not expect to make any changes in /usr&lt;br /&gt;or /opt (software installation is also a later document).&lt;br /&gt;&lt;br /&gt;Summary&lt;br /&gt;&lt;br /&gt;WPAR creation is very similar to the process NIM uses for diskless and dataless installations. This method relies on AIX rootvg software consisting of three components: root, user and share. The normal boot process is emulated by the global system "hosting" the WPAR. Phase 1 is not needed; Phase 2 is the mount of the WPAR filesystem resources; and Phase 3 is a so-called @init@ process that is seen as the regular init in the WPAR environment. This is the process that reads and processes /sbin/rc.boot 3 and /etc/inittab just as a normal AIX system would&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257139272424697307-2145848667413332572?l=aixduniya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aixduniya.blogspot.com/feeds/2145848667413332572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257139272424697307&amp;postID=2145848667413332572' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/2145848667413332572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/2145848667413332572'/><link rel='alternate' type='text/html' href='http://aixduniya.blogspot.com/2007/11/introduction-to-wpar-in-aix-6.html' title='Introduction to WPAR in AIX 6'/><author><name>Chetan Jain</name><uri>http://www.blogger.com/profile/09210260405695619919</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2257139272424697307.post-9152609140628257746</id><published>2007-12-01T09:31:00.000+05:30</published><updated>2007-12-01T09:33:02.027+05:30</updated><title type='text'>Implementation of Partition Load Manager</title><content type='html'>Implementing PLM&lt;br /&gt;&lt;p&gt;PLM Software Installation&lt;br /&gt;&lt;br /&gt; Install the following filesets:&lt;br /&gt;plm.license&lt;br /&gt;plm.server.rte&lt;br /&gt;plm.sysmgt.websm&lt;br /&gt;&lt;br /&gt; Make sure SSL and OpenSSH are also installed&lt;br /&gt;&lt;br /&gt; For setup of PLM, create .rhosts files on the server and all clients.After PLM has been set up, you can delete the .rhosts files.&lt;br /&gt;&lt;br /&gt;Create SSH Keys&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; On the server, enter:&lt;br /&gt;# ssh-keygen –t rsa&lt;br /&gt;&lt;br /&gt; Copy the HMC’s secure keys to the server:&lt;br /&gt;# scp hscroot@hmchostname:.ssh/authorized_keys2 \&lt;br /&gt;~/.ssh/tmp_authorized_keys2&lt;br /&gt; Append the server’s keys to the temporary key file and copy it back to the HMC:&lt;br /&gt;# cat ~/.ssh/id_rsa.pub &gt;&gt; ~/.ssh/tmp_authorized_keys2&lt;br /&gt;# scp ~/.ssh/tmp_authorized_keys2 \&lt;br /&gt;hscroot@hmchostname:.ssh/authorized_keys2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Test SSH and Enable WebSM&lt;br /&gt;&lt;br /&gt; Test SSH to the HMC. You should not be asked for a password.&lt;br /&gt;# ssh hscroot@hmchostname lssyscfg –r sys&lt;br /&gt;&lt;br /&gt; On the PLM server, make sure you can run WebSM. Run:&lt;br /&gt;# /usr/websm/bin/wsmserver -enable&lt;br /&gt;&lt;br /&gt;Configure PLM Software&lt;br /&gt;&lt;br /&gt; On the PLM server, open WebSM and select Partition Load Manager.&lt;br /&gt;&lt;br /&gt; Click on Create a Policy File. In the window open on the General Tab, enter a policy file name on the first line&lt;br /&gt;&lt;br /&gt; Click on the Globals tab. Enter the fully qualified hostname of your HMC. Enter hscroot (or a user with the Systems Administration role) as the HMC user name. Enter the CEC name, which is the managed system name (not the fully qualified hostname).&lt;br /&gt; Click on the Groups tab. Click the Add button. Type in a group name. Enter the maximum CPU and memory values that you are allowed to use for PLM operations.&lt;br /&gt;&lt;br /&gt; Check both CPU and Memory management if you’re going to manage both.&lt;br /&gt;&lt;br /&gt; Click on Tunables. These are the defaults for the entire group. If you don’t understand a value, highlight it and select Help for a detailed description.&lt;br /&gt; Click on the Partitions tab. Click the Add button and add all of the running partitions in the group to the partitions list.&lt;br /&gt;On the Partition Definition tab, use the partitions’ fully qualified hostnames and add them to the group you just created.&lt;br /&gt;&lt;br /&gt; Click OK to create the policy file.&lt;br /&gt;&lt;br /&gt; In the PLM server, view the policy file you created. It will be in /etc/plm/policies.&lt;br /&gt;&lt;br /&gt; Perform the PLM setup step using WebSM. You must be root. Once this finishes, you’ll see “Finished: Success” in the WebSM working window.&lt;br /&gt; In the server and a client partition, look at the /var/ct/cfg/ctrmc.acls file to see if these lines are at the bottom of the file:&lt;br /&gt;IBM.LPAR&lt;br /&gt;root@hmchostname * rw&lt;br /&gt;&lt;br /&gt;If you need to edit this file, run this command afterward:&lt;br /&gt;# refresh –s ctrmc&lt;br /&gt;&lt;br /&gt; Test RMC authentication by running this command from the PLM server, where remote_host is a PLM client&lt;br /&gt;# CT_CONTACT=remote_host lsrsrc IBM.LPAR&lt;br /&gt;If successful, a lot of LPAR information will be printed out instead of “Could not authenticate user”&lt;br /&gt;&lt;br /&gt; Start the PLM server. Look for “Finished:Success” in the WebSM working window.&lt;br /&gt;Enter a configuration name. Enter your policy file name. Enter a new logfile name.&lt;br /&gt;(If you have trouble with the logilfe, you may need to touch the file before you can access it)&lt;br /&gt;&lt;br /&gt; If the LPAR details window shows only zeroed-out information, then there’s probably an RMC authentication problem.&lt;br /&gt;&lt;br /&gt; If there’s a problem, on the server partition, run:&lt;br /&gt;# /usr/sbin/rsct/bin/ctsvhbal&lt;br /&gt;The output should list one or more identities. Check to see that the server’s fully qualified hostname is in the output.&lt;br /&gt; On each partition, run /usr/sbin/rsct/bin/ctsthl –l. At least one of the identities shown on the remote partition’s ctsvhbal output should show up on the other partitions’ ctsthl –l output. This is the RMC list of trusted hosts.&lt;br /&gt; If there are any entries in the RMC trusted hosts lists which are not fully qualified hostnames, remove them with the following command:&lt;br /&gt;# /usr/sbin/rsct/bin/ctsthl –d –n identity&lt;br /&gt;where identity is the trusted host list identity&lt;br /&gt; If one partition is missing a hostname, add it as follows:&lt;br /&gt;# /usr/sbin/rsct/bin/ctsthl –l –n identity –m METHOD –p ID_VALUE&lt;br /&gt;Identity is the fully qualified hostname of the other partition&lt;br /&gt;rsa512 is the method&lt;br /&gt;Id_value is obtained by running ctsthl –l on the other partition to determine its own identifier&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2257139272424697307-9152609140628257746?l=aixduniya.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aixduniya.blogspot.com/feeds/9152609140628257746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2257139272424697307&amp;postID=9152609140628257746' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/9152609140628257746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2257139272424697307/posts/default/9152609140628257746'/><link rel='alternate' type='text/html' href='http://aixduniya.blogspot.com/2007/11/implementation-of-partition-load.html' title='Implementation of Partition Load Manager'/><author><name>Chetan Jain</name><uri>http://www.blogger.com/profile/09210260405695619919</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
