<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AIX Commands, Tools, Scripts and Explanations &#187; nim</title>
	<atom:link href="http://icancompute.ca/aix/tag/nim/feed/" rel="self" type="application/rss+xml" />
	<link>http://icancompute.ca/aix</link>
	<description>Everything I have learnt and used while being an AIX systems adminstrator.  Custom scripts, commands and projects used to maintain a virtualized AIX server environment</description>
	<lastBuildDate>Tue, 05 Jun 2012 19:25:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Easiest Way to Build a New Virtualized LPAR in the DMZ</title>
		<link>http://icancompute.ca/aix/config/easiest-build-virtualized-lpar-dmz/</link>
		<comments>http://icancompute.ca/aix/config/easiest-build-virtualized-lpar-dmz/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 14:32:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[LPAR Configuration]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[creation]]></category>
		<category><![CDATA[dmz]]></category>
		<category><![CDATA[lpar create]]></category>
		<category><![CDATA[nim]]></category>

		<guid isPermaLink="false">http://icancompute.ca/aix/?p=241</guid>
		<description><![CDATA[Having a fully virtualized server environment is great, but with the constant push towards public services, there has been an increase in DMZ servers for many companies. In my opinion, I think the simplest way to do this is to create the LPAR with the normal virtual ethernet adapter, and the simply switch the adapters [...]]]></description>
				<content:encoded><![CDATA[<p>Having a fully virtualized server environment is great, but with the constant push towards public services, there has been an increase in DMZ servers for many companies.</p>
<p>In my opinion, I think the simplest way to do this is to create the LPAR with the normal virtual ethernet adapter, and the simply switch the adapters once set up is complete.  This allows you to complete all functions through the NIM and you don&#8217;t have to worry about firewall interference until after most of the tedious parts are complete.  No CDs to mount, no files to manually copy over.  Every body wins!</p>
<p>When creating an LPAR, follow the steps <a title="How to cut a new AIX LPAR from a Standard Image" href="http://icancompute.ca/aix/lpar-configuration/how-to-cut-an-aix-lpar-from-a-standard-image/" target="_blank">here </a>for help, and add these simple tweaks to make your life easier when building an LPAR in the DMZ</p>
<ol>
<li>Before creating the LPAR, ensure that you have all of the details and networking set up.  This includes a public IP address, the physical port and switch, and the correct VLAN.  You will also need a spare, unused IP address to be your temporary local IP address for initial set up</li>
<li>When creating the profile for the LPAR, ensure that you create an LHEA on an open port.  This can be done later, but this will be the adapter you switch over to once the set up is complete (if you don&#8217;t know which ports are already in use, refer to the System&#8217;s profile and view the LHEA ports individually to see LPARs connected to the ports)</li>
<li>Before completing any steps on the NIM server, ensure that you add the new hostname and temporary IP address to the /etc/hosts file.</li>
<li>Proceed with installation as normal</li>
<li>Once installation is completed, you can edit the LPAR profile.  Remove the virtual ethernet adapter (ensure you do not reboot LPAR until you complete LPAR side work as well)</li>
<li>From the LPAR, &#8220;ifconfig -a&#8221; to view the adapters</li>
<li>&#8220;smit tcpip&#8221; -&gt; &#8220;Minimum Configuration and Startup&#8221; -&gt; &#8220;Select Adapter (eg en0)</li>
<li>Add host, ip, subnet and gateway to this adapter</li>
<li>Once new adapter initialized, remove the old adapter with &#8220;rmdev -dl&#8221;</li>
<li>Ping a known DNS IP to test configuration</li>
<li>Shutdown LPAR and activate new profile now to switch LPAR to DMZ</li>
<li>Remove entry from NIM /etc/hosts file (I have forgotten to do this and it comes back to bite you&#8230;hard)</li>
</ol>
<p>Note: For future work, you will not be able to mount your NIM server.  All file transfers must be done through SCP (or alternative).  This means any mksysb, monitoring or general maintenance scripts will need to be different than that of a normal LPAR.</p>
<p>Also, any communication between your new LPAR and any servers such as TSM will need to have specific ports opened in the firewall.  Inquire your network team for more details.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://icancompute.ca/aix/config/easiest-build-virtualized-lpar-dmz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automated Script from NIM by Setting Up nimsh</title>
		<link>http://icancompute.ca/aix/config/maintenance/ready-automated-script-nim-setting-nimsh/</link>
		<comments>http://icancompute.ca/aix/config/maintenance/ready-automated-script-nim-setting-nimsh/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 01:20:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General Maintenance]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[nim]]></category>
		<category><![CDATA[nimsh]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://icancompute.ca/aix/?p=138</guid>
		<description><![CDATA[If you are anything like me you much prefer spending 15 minutes writing a script and letting it do all of the work rather than spending the two gruelling days pounding your face across the keyboard doing the same keystrokes and mouse click over and over.  Well if you aren&#8217;t willing to set up all of the [...]]]></description>
				<content:encoded><![CDATA[<p>If you are anything like me you much prefer spending 15 minutes writing a script and letting it do all of the work rather than spending the two gruelling days pounding your face across the keyboard doing the same keystrokes and mouse click over and over.  Well if you aren&#8217;t willing to set up all of the SSH private keys in order to have passwordless access to all lpars in your environment, I have a much simpler solution to all of your problems.</p>
<p><span id="more-138"></span></p>
<p>From your NIM master you need to ensure that your machine has Communication Protocol used by client set to nimsh.  On my machines, they had defaulted to shell.  Easiest way to do this is:</p>
<p>lsnim -l [[hostname]]</p>
<p>you will be looking for the connect attribute set to nim sh</p>
<p>Alternately you can go to &#8220;smit nim&#8221; -&gt; Perform NIM Administration Tasks -&gt; Manage Machines -&gt;  Change/Show Characteristics of a Machine</p>
<p>Find your host and view the Communication Protocol used by client attribute.  Again it needs to be set to nimsh.</p>
<p>If you are like me and need to fix this, here is what you do</p>
<p>On the NIM Client</p>
<pre class="brush: plain; title: ; notranslate">

cp /.rhosts /.rhosts.old

mv /etc/niminfo /etc/niminfo.old

niminit -a name=[[client_hostname]]-a master=[[nim_hostname]]-a master_port=1058 -a connect=nimsh
</pre>
<p>This will backup the niminfo file and the rhosts (just in case).  Once you have completed your work on the client:</p>
<p>On the NIM Master</p>
<pre class="brush: plain; title: ; notranslate">

nim -o change -a connect=nimsh [[hostname]]
lsnim -l [[hostname]]

</pre>
<p>This will change the definition on the master and show you the characteristics for you to double check</p>
]]></content:encoded>
			<wfw:commentRss>http://icancompute.ca/aix/config/maintenance/ready-automated-script-nim-setting-nimsh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install File Sets from NIM on an AIX LPAR</title>
		<link>http://icancompute.ca/aix/config/software/install-file-sets/</link>
		<comments>http://icancompute.ca/aix/config/software/install-file-sets/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 00:15:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[file sets]]></category>
		<category><![CDATA[nim]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://icancomputeca.ipage.com/aix/?p=64</guid>
		<description><![CDATA[A quick guide on how to install file sets from a NIM server &#160; rsct -&#62; Reliable Scalable Cluster Technology adt -&#62; Application Development Toolkit rte -&#62; Run Time Environment bff -&#62; Backup File Format rpm -&#62; Red Hat Package Manager ODM -&#62; Equivalent to Windows Registry **If filename does not contain *.rpm then it [...]]]></description>
				<content:encoded><![CDATA[<p>A quick guide on how to install file sets from a NIM server</p>
<p>&nbsp;</p>
<p>rsct -&gt; Reliable Scalable Cluster Technology</p>
<p>adt -&gt; Application Development Toolkit</p>
<p>rte -&gt; Run Time Environment</p>
<p>bff -&gt; Backup File Format</p>
<p>rpm -&gt; Red Hat Package Manager</p>
<p>ODM -&gt; Equivalent to Windows Registry</p>
<p>**If filename does not contain *.rpm then it is bff -&gt; IBM file set</p>
<p><strong>Checklist</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="133">File Set</td>
<td valign="top" width="36"></td>
</tr>
<tr>
<td valign="top" width="133">Location on NIM</td>
<td valign="top" width="36"></td>
</tr>
<tr>
<td valign="top" width="133">Upgrade or Install</td>
<td valign="top" width="36"></td>
</tr>
</tbody>
</table>
<p><strong>Commands</strong></p>
<ul>
<li>lslpp –l [package] -&gt; list installed packages</li>
<li>oslevel –r -&gt; View technology level</li>
<li>oslevel –s -&gt; View software level</li>
<li>showmount –e [nim server] -&gt; View all exports of NIM server (or any other server)</li>
<li>whereis [program] -&gt; Locate program on LPAR</li>
<li>which_fileset [name] -&gt; find file set for specific program</li>
<li>lslpp –w [full path to program] -&gt;show installed file sets for a program</li>
</ul>
<p>**NOTE about NIM -&gt; Ensure all NFS exports are done through SMIT or using IBM command to ensure all file systems are mounted at reboot**</p>
<ul>
<li>mount [nim server]:[path] /mnt</li>
</ul>
<p><strong>Steps</strong></p>
<p>Smit -&gt; Software Installation -&gt; Install and Update -&gt; Install -&gt; Path</p>
<ul>
<li>Software to Install (F4 then ‘/’ to search for file sets)</li>
<li>Commit?</li>
<li>Automatically Accept New License Agreements</li>
</ul>
<p>lslpp –f [file set] -&gt;displays names of file added for file set</p>
]]></content:encoded>
			<wfw:commentRss>http://icancompute.ca/aix/config/software/install-file-sets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading an AIX LPAR to a New OS Version using nim bosinst</title>
		<link>http://icancompute.ca/aix/config/upgrading-an-lpar/</link>
		<comments>http://icancompute.ca/aix/config/upgrading-an-lpar/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 23:16:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[LPAR Configuration]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[bos]]></category>
		<category><![CDATA[mksysb]]></category>
		<category><![CDATA[nim]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://icancomputeca.ipage.com/aix/?p=50</guid>
		<description><![CDATA[How to upgrade an LPAR to a new version of AIX using a mksysb Checklist LPAR Information Hostname IP Subnet and Gateway Frame Current Paging Space Volume Groups Free Disk Space Memory Disk Type (JFS) File Systems VIO Information Current New New Vio Servers Vhost Controller Id Backing Device VTD Client Device Disk Size Backup [...]]]></description>
				<content:encoded><![CDATA[<p>How to upgrade an LPAR to a new version of AIX using a mksysb</p>
<h2><strong>Checklist</strong></h2>
<p><span style="text-decoration: underline;">LPAR Information</span></p>
<table width="295" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="148">Hostname</td>
<td valign="top" width="147"></td>
</tr>
<tr>
<td valign="top" width="148">IP</td>
<td valign="top" width="147"></td>
</tr>
<tr>
<td valign="top" width="148">Subnet and Gateway</td>
<td valign="top" width="147"></td>
</tr>
<tr>
<td valign="top" width="148">Frame</td>
<td valign="top" width="147"></td>
</tr>
<tr>
<td valign="top" width="148">Current Paging Space</td>
<td valign="top" width="147"></td>
</tr>
<tr>
<td valign="top" width="148">Volume Groups</td>
<td valign="top" width="147"></td>
</tr>
<tr>
<td valign="top" width="148">Free Disk Space</td>
<td valign="top" width="147"></td>
</tr>
<tr>
<td valign="top" width="148">Memory</td>
<td valign="top" width="147"></td>
</tr>
<tr>
<td valign="top" width="148">Disk Type (JFS)</td>
<td valign="top" width="147"></td>
</tr>
<tr>
<td valign="top" width="148">File Systems</td>
<td valign="top" width="147"></td>
</tr>
</tbody>
</table>
<p><span style="text-decoration: underline;">VIO Information</span></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="160"></td>
<td valign="top" width="160">Current</td>
<td valign="top" width="160">New</td>
<td valign="top" width="160">New</td>
</tr>
<tr>
<td valign="top" width="160">Vio Servers</td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
</tr>
<tr>
<td valign="top" width="160">Vhost</td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
</tr>
<tr>
<td valign="top" width="160">Controller Id</td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
</tr>
<tr>
<td valign="top" width="160">Backing Device</td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
</tr>
<tr>
<td valign="top" width="160">VTD</td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
</tr>
<tr>
<td valign="top" width="160">Client Device</td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
</tr>
<tr>
<td valign="top" width="160">Disk Size</td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
</tr>
</tbody>
</table>
<h2><strong>Backup SSH Files</strong></h2>
<ul>
<li>copy ssh file to new location
<pre class="brush: plain; title: ; notranslate"> cp –r /etc/ssh /etc/ssh.backup </pre>
</li>
</ul>
<h2><strong>Map disks from VIO</strong></h2>
<ul>
<li>If new disks are being allocated for additional storage or JFS to JFS2 Conversion, you will need to map the disk through the VIO server</li>
<li>Once storage is allocated through SVC, login to VIO server</li>
<li>detect new hard ware
<pre class="brush: plain; title: ; notranslate"> cfgdev </pre>
</li>
<li>confirm LUN ID with disks allocated by storage team
<pre class="brush: plain; title: ; notranslate"> lsdev –dev hdiskx –vpd </pre>
</li>
<li>create virtual device on NIM
<pre class="brush: plain; title: ; notranslate"> mkvdev –vdev hdiskx –vadapter vhostx –dev [vtd] </pre>
</li>
<li>view all devices mapped with specified vhost
<pre class="brush: plain; title: ; notranslate"> lsmap –vadapter vhostx </pre>
</li>
</ul>
<h2><strong>Confirm Disks on LPAR</strong></h2>
<ul>
<ul>
<li>review attributes
<pre class="brush: plain; title: ; notranslate"> cfgmgr </pre>
<pre class="brush: plain; title: ; notranslate"> lsattr –El hdiskx </pre>
</li>
<li>In order to maximize consistency between redundant VIO servers, I prefer an hcheck interval of 60 and a vscsi1 path priority of 2</li>
</ul>
</ul>
<pre class="brush: plain; title: ; notranslate"> chdev -l [hdiskx] -a hcheck_interval=60

chpath -l [hdiskx] -p vscsi0 -a priority=2
 </pre>
<h2><strong>Backup rootvg</strong></h2>
<ul>
<li>
<pre class="brush: plain; title: ; notranslate"> mount –o soft [nim server]:[mksysb image location] [mount point] </pre>
</li>
<li>
<pre class="brush: plain; title: ; notranslate"> /usr/bin/mksysb –i –X –p [full path including new mksysb image name] 1&gt;[log file] 2&gt; [err log file] </pre>
</li>
</ul>
<p><strong>Backup inittab, disable all non-OS processes from booting up to ensure minimum reboot time</strong></p>
<ul>
<li>
<pre class="brush: plain; title: ; notranslate"> cp /etc/inittab /etc/inittab.backup </pre>
</li>
<li>add : to comment out in inittab.  This is important because you will initiate multiple reboots and starting up all the processes and applications can be both a waste of time and may not shut down properly (if you force a shut down etc).  It is also important to note that you DO NOT want to simply restore the inittab after installation as the os upgrade may have added entries to the inittab.  The backup is simply a precaution, and you always want to only uncomment out what you added in
<pre class="brush: plain; title: ; notranslate"> vi /etc/inittab </pre>
</li>
</ul>
<p><strong>Check for currently running processes not owned by root</strong></p>
<ul>
<li>
<pre class="brush: plain; title: ; notranslate"> ps –ef </pre>
</li>
</ul>
<h2><strong>From NIM, ensure LPAR ready for BOS installation</strong></h2>
<ul>
<li>Smit nim_bosinst -&gt; rte install -&gt; Version Images/Spot</li>
</ul>
<p>i.      Accept Licenses -&gt; Yes</p>
<p>ii.      Initiate Reboot -&gt; No</p>
<p>iii.      Accept Licenses -&gt; Yes</p>
<ul>
<li>Ensure Client State is Ready for Installation
<pre class="brush: plain; title: ; notranslate"> lsnim –l [hostname] </pre>
</li>
</ul>
<p><strong>Re-Boot LPAR from HMC</strong></p>
<ul>
<li>Shutdown LPAR (I like to do this from the HMC sending an OS level shutdown to ensure all processes closed nicely</li>
<li>Activate Profile -&gt; Open Terminal -&gt; Advanced -&gt; Boot Mode -&gt; SMS Mode</li>
</ul>
<h2><strong>Upgrade AIX on LPAR</strong></h2>
<ul>
<li>2) Remote IPL -&gt; 1) Ethernet -&gt; 1) IPv4 -&gt; 1) BOOTP -&gt; 1) IP Parameters *Populate if necessary* ESC) Back -&gt; 3) Ping Test -&gt; 1) Run *If failed reconfirm IP or contact networking*</li>
<li>5) Boot Option -&gt; 1) Select install/boot order -&gt; 6) Network -&gt; 1) BOOTP -&gt; 1) LAN -&gt; 2) Normal Boot -&gt; 1) Yes</li>
</ul>
<p><strong>On Boot</strong></p>
<p>1) Enter -&gt; 2) Custom Settings -&gt; Ensure Enterprise Edition selected</p>
<ul>
<li>At ~3% you will need to confirm settings etc.</li>
</ul>
<p><strong>Once Booted</strong></p>
<ul>
<li>Confirm updated successfully
<pre class="brush: plain; title: ; notranslate"> oslevel –s </pre>
</li>
<li>Check error reports
<pre class="brush: plain; title: ; notranslate"> bootlist –om normal </pre>
<pre class="brush: plain; title: ; notranslate"> errpt | more </pre>
</li>
<li>Check JFS or JFS2 
<pre class="brush: plain; title: ; notranslate"> lsvg –l [vg] </pre>
</li>
</ul>
<h2><strong>Restore SSH Key</strong></h2>
<ul>
<li>
<pre class="brush: plain; title: ; notranslate"> mv /etc/ssh /etc/ssh.old </pre>
</li>
<li>
<pre class="brush: plain; title: ; notranslate"> mv /etc/ssh.backup /etc/ssh </pre>
</li>
</ul>
<h2><strong>If running JFS2 Conversion</strong></h2>
<ul>
<li>If splitting rootvg over 2 disks, install bos.alt_disk_*7.1.1.0</li>
<li>Copy old rootvg to new JFS2 disk
<pre class="brush: plain; title: ; notranslate"> alt_disk_copy –T –d hdiskx </pre>
</li>
<li>Set new rootvg
<pre class="brush: plain; title: ; notranslate"> alt_rootvg_opt –X </pre>
</li>
<li>confirm boot device
<pre class="brush: plain; title: ; notranslate"> bootlist –om normal </pre>
</li>
</ul>
<h2><strong>If creating additional VG</strong></h2>
<ul>
<li>smit vg -&gt; Add VG -&gt; Scalable
<ul>
<li>Change PP Size</li>
<li>Physical Location</li>
</ul>
</li>
<li>confirm creation
<pre class="brush: plain; title: ; notranslate"> lsvg </pre>
</li>
</ul>
<h2><strong>Create jfs2log LV on datavg</strong></h2>
<ul>
<li>make LV
<pre class="brush: plain; title: ; notranslate"> mklv –t jfs2log datavg 1 </pre>
</li>
<li>format LV
<pre class="brush: plain; title: ; notranslate"> logform /dev/loglv0x </pre>
</li>
</ul>
<h2><strong>If migrating file systems off of rootvg to new VG</strong></h2>
<ul>
<li>Backup /etc/filesystems
<ul>
<li>
<pre class="brush: plain; title: ; notranslate"> cp /etc/filesystems /etc/filesystems.backup </pre>
</li>
</ul>
</li>
<li>unmount
<pre class="brush: plain; title: ; notranslate"> unmount [file system] </pre>
<p>**Subdirectories must be mounted first**</li>
<li>copy LV to new VG
<pre class="brush: plain; title: ; notranslate"> cplv –v [destination vg] [lv name] </pre>
</li>
<li>update file system file
<pre class="brush: plain; title: ; notranslate"> chfs –a dev=/dev/[lv] –a log=/dev/[new jfs2 log] [file system] </pre>
</li>
<li>mount newly created file system
<pre class="brush: plain; title: ; notranslate"> mount [file system] </pre>
</li>
<li>remove old LV
<pre class="brush: plain; title: ; notranslate"> rmlv [old lv] </pre>
</li>
<li>Repeat for chosen file systems</li>
</ul>
<h2><strong>If migrating rootvg to new disk</strong></h2>
<ul>
<li>list disks
<pre class="brush: plain; title: ; notranslate"> lspv </pre>
</li>
<li>allow VG access to new disk
<pre class="brush: plain; title: ; notranslate"> extendvg rootvg [new disk] </pre>
</li>
<li>mirror disks
<pre class="brush: plain; title: ; notranslate"> mirrorvg rootvg [new disk] </pre>
</li>
<li>add boot information to new disk
<pre class="brush: plain; title: ; notranslate"> bosboot –ad [new disk] </pre>
</li>
<li>set system to boot from new disk
<pre class="brush: plain; title: ; notranslate"> bootlist –m normal [new disk] </pre>
</li>
<li>clear boot record from old disk</li>
<li>
<pre class="brush: plain; title: ; notranslate"> chpv –c [old disk] </pre>
</li>
<li>unmirror
<pre class="brush: plain; title: ; notranslate"> unmirrorvg rootvg [old disk] </pre>
</li>
<li>remove vg off old disk
<pre class="brush: plain; title: ; notranslate"> reduce rootvg [old disk] </pre>
</li>
<li>remove old disk
<pre class="brush: plain; title: ; notranslate"> rmdev –dl [old disk] </pre>
</li>
<li>confirm old disk removed
<pre class="brush: plain; title: ; notranslate"> lspv </pre>
</li>
<li>confirm boot device
<pre class="brush: plain; title: ; notranslate"> bootlist –om normal </pre>
</li>
</ul>
<p><strong><br />
</strong></p>
<h2><strong>Create paging space (usually 1:1.5 memory)</strong></h2>
<ul>
<li>check current paging space
<pre class="brush: plain; title: ; notranslate"> lsps –a </pre>
</li>
<li>check amount of memory
<pre class="brush: plain; title: ; notranslate"> lsattr –El  mem0 </pre>
</li>
<li>smit lv -&gt; Paging
<ul>
<li>Either add space to rootvg paging space or create new LV on new VG</li>
</ul>
</li>
<li>confirm added page space
<pre class="brush: plain; title: ; notranslate"> lsps –a </pre>
</li>
</ul>
<h2><strong>If you are left with disks no longer needed, delete from LPAR</strong></h2>
<ul>
<li>list disks
<pre class="brush: plain; title: ; notranslate"> lspv </pre>
</li>
<li>delete record of disk from LPAR
<pre class="brush: plain; title: ; notranslate"> rmdev –dl [disk] </pre>
</li>
<li>delete VG from ODM
<pre class="brush: plain; title: ; notranslate"> exportvg [vg] </pre>
</li>
</ul>
<h2><strong>If you are left with disks no longer needed, delete them from VIO servers</strong></h2>
<ul>
<li>double check LUN ID of old disks
<pre class="brush: plain; title: ; notranslate"> lsdev –dev hdiskx –vpd </pre>
</li>
<li>
<pre class="brush: plain; title: ; notranslate"> lsmap –vadapter vhostx </pre>
</li>
<li>remove VTD
<pre class="brush: plain; title: ; notranslate"> rmdev –dev [vtd] </pre>
</li>
<li>remove backing device
<pre class="brush: plain; title: ; notranslate"> rmdev –dev hdiskx </pre>
</li>
<li>Send email to Storage to confirm disk ready for retrieval</li>
</ul>
<p><span style="text-decoration: underline;"><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://icancompute.ca/aix/config/upgrading-an-lpar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to cut a new AIX LPAR from a Standard Image</title>
		<link>http://icancompute.ca/aix/config/how-to-cut-an-aix-lpar-from-a-standard-image/</link>
		<comments>http://icancompute.ca/aix/config/how-to-cut-an-aix-lpar-from-a-standard-image/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 21:35:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[LPAR Configuration]]></category>
		<category><![CDATA[aix]]></category>
		<category><![CDATA[bos]]></category>
		<category><![CDATA[HMC]]></category>
		<category><![CDATA[nim]]></category>
		<category><![CDATA[VIO]]></category>

		<guid isPermaLink="false">http://icancomputeca.ipage.com/aix/?p=20</guid>
		<description><![CDATA[A quick guide showing the steps on how to create a new LPAR based upon a standard(golden) image &#160; Checklist: IP address(es) LUN number(s) Host name Processing unit requirements of the new LPAR Memory requirements of the new LPAR Dedicate I/O requirements of the new LPAR Shared processor pool in which the new LPAR will [...]]]></description>
				<content:encoded><![CDATA[<p>A quick guide showing the steps on how to create a new LPAR based upon a standard(golden) image</p>
<p>&nbsp;</p>
<p><strong>Checklist</strong>:</p>
<ul>
<li>IP address(es)</li>
<li>LUN number(s)</li>
<li>Host name</li>
<li>Processing unit requirements of the new LPAR</li>
<li>Memory requirements of the new LPAR</li>
<li>Dedicate I/O requirements of the new LPAR</li>
<li>Shared processor pool in which the new LPAR will be put Virtual I/O requirements of the new LPAR</li>
</ul>
<h1>HMC</h1>
<ol>
<li>Login as hscroot</li>
</ol>
<ol start="2">
<li>“Systems Management”-&gt;“Servers” -&gt;select server -&gt;“Configuration”-&gt;”Create Logical Partition”-&gt;”AIX or Linux”</li>
<li>Do not change the system assigned partition ID. Input hostname as partition name -&gt; click “Next”</li>
<li>Use hostname as profile name. DO NOT select “Use all the resources in the system” unless this will be the only LPAR on the system. Click “Next” to continue.</li>
<li>Choose ”Shared” and click “Next” to continue.</li>
</ol>
<ol start="6">
<li>Set processing unit. Choose shared processor. Click “Next” to continue.</li>
</ol>
<ol start="7">
<li>Set memory. Click “Next” to continue.</li>
</ol>
<ol start="8">
<li>Assign physical I/O resources. DO NOT add dedicated hardware if you want to use Live Partition Mobility. Click “Next” to continue.</li>
</ol>
<ol start="9">
<li>Setup virtual adapters. Typically 2 SCSI adapters (1 on each VIO for redundancy) and 1 ethernet adapter. Enter a large number for maximum virtual connections (ie 100).</li>
</ol>
<p>Click “Actions”-&gt;”Create”-&gt;”SCSI Adapter…”</p>
<ol start="10">
<li>Click “System VIOS Info…”</li>
</ol>
<ol start="11">
<li>Locate 2 server slots which meet all following requirements:</li>
</ol>
<ol start="1">
<ul>
<li>Same virtual adapter numbers</li>
<li>VIO servers</li>
<li>Status is “Inactive”</li>
<li>Backing device is empty</li>
<li>Client partitions are “Any Partition”</li>
<li>Client slots are “Any Partition Slot”</li>
<li>Client disks are empty</li>
</ul>
</ol>
<p>Record the server slot number, VIO server name and virtual adapter number, select the first slot and click “OK”</p>
<ol start="12">
<li>Fill in virtual SCSI adapter number. Use the server adapter ID as virtual SCSI adapter, then create the second SCSI adapter connecting to the other VIO server.</li>
</ol>
<p>If no empty slot was found in the system VIOS info, create new slots as per standard procedure.</p>
<ol start="13">
<li>Create an ethernet adapter. Use the third segment of your IP address as the VLAN ID. Example: IP: 10.1.126.96 VLAN ID:126</li>
</ol>
<ol start="14">
<li>Verify the settings and click “Next” to continue.</li>
</ol>
<ol start="15">
<li>Setup LHEA according to your plan. You can assign a physical port to up to 16 partitions, but you can’t dynamically migrate a partition with LHEA configured. In this example, we didn’t setup LHEA.</li>
</ol>
<ol start="16">
<li>Verify settings. Click “Finish” to continue.</li>
</ol>
<h1>VIO</h1>
<ol start="1">
<li>On the HMC, reserve the server SCSI slot to the new LPAR in each VIO server’s profile.</li>
<ul>
<li>Select one VIO server, and click “Configuration” -&gt; “Manage Profiles”</li>
</ul>
</ol>
<ol start="1">
<ul>
<li>Go to “Virtual Adapters” tab, and click the server SCSI adapter you were using</li>
</ul>
</ol>
<ol start="1">
<ul>
<li>Change it to “Only selected client partition can connect”, select the partition you created just now, and change the “Client adapter ID” to match the VSCSI Adapter number</li>
</ul>
</ol>
<ol start="1">
<ul>
<li>Do the same thing on the other VIO server.</li>
</ul>
</ol>
<ol start="2">
<li>Login to each VIO server as padmin and perform the following operation. If the client needs more than one disk, you can map them to client through the same vhost.</li>
<ol start="1">
<li>Look for new disks</li>
</ol>
</ol>
<pre class="brush: plain; title: ; notranslate">cfgdev</pre>
<ol start="2">
<ol start="2">
<li>Verify vio picked found disks</li>
</ol>
</ol>
<pre class="brush: plain; title: ; notranslate">lspv</pre>
<ol start="2">
<ol start="3">
<li>Verify the LUN number with the one given by storage administrator. LUN id located under “Serial Number”</li>
</ol>
</ol>
<pre class="brush: plain; title: ; notranslate">lsdev -dev [hdisk] –vpd</pre>
<ol start="2">
<ol start="4">
<li>Link the virtual adapter to this disk:</li>
</ol>
</ol>
<pre class="brush: plain; title: ; notranslate">mkvdev -vdev [hdisk] -vadapter [vhost] -dev [virtual target device] </pre>
<p>**NOTE** Device name (rootvg01) must be unique as many rootvg and datavg reside on the VIO servers…ie newlpar_rootvg01</p>
<ol>
<li>**NOTE** Save your command history as you will need to execute the exact commands on both VIO servers</li>
<li>Ssh to NIM server – sudo to root</li>
<li><strong><em>Smitty nim_mkmac</em></strong>  -&gt; Define a machine</li>
</ol>
<h1>NIM</h1>
<ul>
<li>Hostname</li>
<li>NIM machine type= standalone</li>
<li>Cable type =tp</li>
<li>nim network = nimnet10_1_126  ß nim network choice is dependent on where the NEW client  vlan will reside</li>
</ul>
<p>**NOTE** Kernel mode must be set to mp on AIX v5.3</p>
<ol>
<li><strong><em>Smitty nim_bosinst</em></strong>   choose your <strong>hostname</strong>, enter -&gt; choose install from <strong>mksysb</strong> option -&gt; Select standard image if present -&gt; select the standard image for the version that needs to be installed  -&gt;  Select the <strong>SPOT</strong> and <strong>LPP_SOURCE</strong> resource ***these should match the version you are installing***</li>
</ol>
<ol start="2">
<li>Check the state of the newly created nim machine client using the following command:</li>
</ol>
<pre class="brush: plain; title: ; notranslate"> lsnim -l [hostname] </pre>
<ul>
<li>Client state must be <strong>BOS Installation</strong> otherwise commands were not issued properly</li>
</ul>
<h1>NIM restore operation</h1>
<h1><span class="Apple-style-span" style="font-size: 13px; font-weight: normal;">1. On HMC select the LPAR -&gt; </span><strong style="font-size: 13px;">Operations</strong><span class="Apple-style-span" style="font-size: 13px; font-weight: normal;"> -&gt; </span><strong style="font-size: 13px;">Activate</strong><span class="Apple-style-span" style="font-size: 13px; font-weight: normal;"> -&gt; </span><strong style="font-size: 13px;">Profile</strong></h1>
<p>This opens a pop up window place a check mark on “<strong>open a terminal</strong>”, select <strong>advanced tab</strong> and change the boot mode to <strong>SMS</strong> -&gt; ok -&gt; ok and accept any certificates.</p>
<p>2. From SMS &#8211; setup the bootp parameters. choose option:</p>
<ul>
<li>2) setup remote IPL</li>
<li>1)interpartition lan</li>
<li> 1) IPV4</li>
<li> 1) bootp</li>
<li>1) ip parameters</li>
</ul>
<p>Enter all networking parameters (1,2,3 and 4 .. ie 1 for client ip, 2 for server ip etc.)</p>
<p>**Server address points to the NIM server</p>
<p>**NOTE** You should run a ping test to ensure network information entered correctly.  If network is slow or installation times out, you should enter advanced adapter settings and change to duplex 1000/full NOT AUTO</p>
<p>M) Back to main menu</p>
<p>5) Select boot options</p>
<p>1) Select install/boot device</p>
<p>6) Network (NIM server)</p>
<ul>
<li>1) bootp</li>
<li>1) Interpartition LAN</li>
<li>2) normal Mode Boot</li>
<li>yes) to confirm..</li>
</ul>
<p>3. After reboot, follow screen to finalize all options</p>
<ul>
<li> 1) to choose this console etc..</li>
<li>NOTE: disk errors may arise, some of these can be ignored</li>
<li>Base Operating System menus screen</li>
<li>Choose 2 ) Change/Show Installation settings and Install -&gt; choose option 1 to select “disk” where you want to install</li>
<li>Use 77 to double check disk options and make any changes</li>
<li>Once all settings verified 0) to continue with mksysb</li>
</ul>
<h1>Post installation</h1>
<ol start="1">
<li>Change root password</li>
</ol>
<pre class="brush: plain; title: ; notranslate"> passwd root </pre>
<ol start="2">
<li>Activate auditing</li>
</ol>
<pre class="brush: plain; title: ; notranslate"> audit on </pre>
<ol start="3">
<li>Change paging space according to requirements. If there’s no specific requirement, change the paging space size to match physical memory size.</li>
</ol>
<ul>
<li>Gather information on Memory, paging space, ppsize, required paging space</li>
</ul>
<pre class="brush: plain; title: ; notranslate">&lt;/pre&gt;
lsattr –El mem0 -&gt; check memory
lsps –s -&gt; check paging space
lspv –l hdisk0
smit -&gt;storage -&gt; LVM
smit chps
</pre>
<ol start="4">
<li>Reboot the newly created LPAR and run “errpt” to check for errors.</li>
</ol>
<ol start="5">
<li>Document the details of the newly created LPAR</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://icancompute.ca/aix/config/how-to-cut-an-aix-lpar-from-a-standard-image/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
