Tuesday, July 14, 2009

AIX Performance Monitoring - Filemon

AIX Performance Monitoring - Filemon

Filemon

Performance statistics for files, logical/physical volumes and virtual memory segments.

AIX Performance Monitoring Commands

AIX Performance Monitoring Commands

vmstat

The vmstat command reports statistics about kernel threads, virtual memory, disks, traps and CPU activity. Reports generated by the vmstat command can be used to balance system load activity. These system-wide statistics (among all processors) are calculated as averages for values expressed as percentages, and as sums otherwise.


iostat

The iostat command is used for monitoring system input/output device loading by observing the time the physical disks are active in relation to their average transfer rates. The iostat command generates reports that can be used to change system configuration to better balance the input/output load between physical disks and adapters.

netstat

The netstat command symbolically displays the contents of various network-related data structures for active connections. The Interval parameter, specified in seconds, continuously displays information regarding packet traffic on the configured network interfaces. The Interval parameter takes no flags. The System parameter specifies the memory used by the current kernel. Unless you are looking at a dump file, the System parameter should be /unix.


topas

The topas command reports vital statistics about the activity on the local system in a character terminal. It requires the operating system version 4.3.3 or later with the perfagent.tools fileset installed on the system.

The program extracts and displays statistics from the system with a default interval of two seconds. On the operating system version 4.3.3, the output consists on two fixed part and one variable section.

ps

Process list with lots of options and details

Monday, July 13, 2009

Aix - Logical Partitioning - Create Partition through HMC - Contd

Aix - Logical Partitioning - Create Partition through HMC


Double click on Server and Partition

You will get the below screen. Under Servers and Partitions all the frames managed by that HMC exists .In the below snapshot you can see P570, P590
frames




Right click on the frame on which you are going to create a new LPAR



Click on Create-->logical partition

The following screen appears



Partition ID is automatically generated. Partition ID is a numeric value between 1 and 254

Partition Name is the server name (example “system” here). Partition environment must be AIX or Linux

Enter the partition name and click next



If you want to use workload partition group you can select “yes “.Here the LPAR we are going to build doesn’t uses any WLM so select No and click next



Each logical partition requires at least one partition profile. The profile name can contain up to 31 characters (string). For more information you can read a Partition profile concept which is explained in the beginning of the document.

Here we are giving profile name same as the partition name i.e. “system”.Click next

You will get memory selection window. Here we have to give the minimum, desired and maximum memory capacity for the partition.



• Desired memory: This is the requested amount of memory for the partition, and if available system will boot with this amount of memory.
• Maximum memory: The maximum represents the upper limit for memory.
• Minimum memory: This amount of memory is required for the partition to boot. The profile will fail to activate if the minimum memory is not met.

After entering the memory details click next.

The processor capacity in a frame is divided in to

1) Dedicated processors

2) Processor shared pool.

If we want to build an LPAR with dedicated processor, we have to select “dedicated “in the following screen. Processors assigned to a dedicated partition can not be used by any other partition while it is running.Here we are going to build a LPAR which is going to have shared processor. So we will select “shared” option




Clicking next will give you processors settings window as below



The Desired processing value is the amount of processing resources that the partition will require to boot Maximum processing value is the maximum amount of processing resources that the partition will get, even if there are manual attempts to assign the partition more processing power.Minimum processing units needed to start up the partition.


Click Advanced for Advanced processor settings




CAPPED & UNCAPPED

POWER5 partitions in the shared processing pool can have a sharing mode of capped or uncapped.
• A capped partition indicates that the logical partition will never exceed its assigned processing capacity.
• An uncapped partition means that the partition’s assigned current processing capacity may be exceeded, up to the partition’s maximum virtual processors settings, when the shared processing pool has any unused processing power.
• Uncapped weight is a number in the range of 0 through 255 that you set for each uncapped partition in the shared processing pool. Default weight is 128
• 255 being the highest priority and 0 being the lowest priority, i.e. a LPAR with higher uncapped weight will get priority to the processing pool Virtual processor settings are generated by default. Change the virtual processor settings according to specification. To know more about virtual processors please
read the explanation about virtual processors in the beginning of the document.

This screen did not come for dedicated Processor LPARs since processors allocated to an LPAR cannot be used by any other LPAR.

Select Uncapped and give virtual processor values.

Click next to get I/O selection window.




I/O resources can be dedicated to an LPAR or shared between LPARS.

One way of sharing I/O adapters is assigning the adapters to vio server and from there let LPARs share the adapter through Virtual LAN.

This can be accomplished by defining virtual adapters in the LPARs.

If we are using any dedicated IO resource we can select the corresponding IO resource in the above screen otherwise if you are using vio server then click next without any selection .

For the LPAR we are going to build we use VIO servers for IO resource so click next without any selection No need of adding any I/O pool for the LPAR we are going to build. Click next




We have to configure virtual I/O adapters for the LPAR we are building so Select option “yes”.

Click next




We will get Virtual adapters settings window






There are three types of virtual adapters we can configure

Virtual SCSI
Virtual Ethernet
Virtual Serial


First we will configure the virtual Ethernet adapters.

Virtual Ethernet adapter allows for high speed (1 gigabit) inter-partition
communications.

Select Ethernet Tab to configure Ethernet adapters and click on Create adapter
option.


We will get a virtual Ethernet adapter configuration window as below






The slot number refers to the position of the virtual Ethernet adapter on the virtual system bus.


Port virtual LAN ID is analogous to the current virtual LAN/Ethernet ID

Provide Slot number and Virtual LAN ID in the corresponding entry tabs. (For example here 2 is slot number and 1 is VLAN ID)

Select the corresponding VLAN ID in the System VLAN tab.

Click OK.

One virtual Ethernet adapter will get created and I t will showing in the contents as showed in the following screen.



Ethernet adapters marked as “Required” will be reserved for the exclusive use of this partition, and cannot be accidentally moved through dynamic LPAR.

A required resource is needed for the partition to start when the profile is activated.

Check “Required” on all Virtual Ethernet adapters and enter the number higher than the final VLAN number in Maximum virtual adapters field. Click next




The HMC by default gets power control partition, the ability to power the partition on and off.

If you have any specific power control partition you can add.

Click Next

Select SMS for boot modes & Click Next



Confirm the summary of the profile and configuration from the below screen






Click Finish.

It will start creating the partition. Following pop up shows LPAR creation is in
Process.






After the creation of partition it will be showing as not activated in the HMC with the profile created as shown below


Friday, July 10, 2009

Aix - Logical Partitioning - Create Partition through HMC

Aix - Logical Partitioning - Create Partition through HMC

Login in to HMC with HMC username and password you will get the following screen. You can log in to HMC via LDAP servers.



Before starting creating a new LPAR you have to take backup of HMC from the HMC menu items .Following snapshot helps you to understand the process.



There are two types of backups, Backup Critical Console Data and Save Upgrade Data.

• Backup Critical Console Data task is used to back up the HMC configuration and profile data to the formatted DVD-RAM media.

• Save Upgrade Data task is used to save the current HMC configuration in the special disk partition on the HMC we can take backup of HMC by logging in to LDAP servers by using HMC
Commands.

After Taking the HMC backup start creating LPAR



----- To contd in the next post

Aix - Logical Partitioning - System Profile

Aix - Logical Partitioning - System Profile

  • A system profile is an ordered list of partition profiles that is used by the Hardware Management Console (HMC) to start the logical partitions on a managed system in a specific configuration.
  • When you activate the system profile, the managed system attempts to activate each partition profile in the system profile in the order specified. A system profile helps you activate or change the managed system from one complete set of logical partition configurations to another.
  • It is possible for you to create a system profile whose partition profiles specify more resources than are available on the managed system. You can use the HMC to validate the system profile against the currently available system resources and against the total system resources. Validating your system profile ensures that your I/O devices and processing resources are not overcommitted and it increases the likelihood that the system profile can be activated. The validation process estimates the amount of memory needed to activate all of the partition profiles in the system profile. It is possible that a system profile can pass validation and yet not have enough memory to be activated.

AIX - Logical Partitioning - I/O device assignment

Aix - Logical Partitioning - I/O device assignment
  • I/O devices are assigned to partition profiles on a slot-by-slot basis. Most I/O devices can be assigned to a partition profile on the HMC as required or as desired.
  • If an I/O device is assigned to a partition profile as required, then the partition profile cannot be successfully activated if the I/O device is unavailable or is in use by another logical partition. Also, after the logical partition starts, you cannot use dynamic logical partitioning to remove the required I/O device from the running logical partition or move the required I/O device to another logical partition. This setting is suitable for devices that are required for the continuous operation of the logical partition (such as disk drives).
  • If an I/O device is assigned to a partition profile as desired, then the partition profile can be successfully activated if the I/O device is unavailable or is in use by another logical partition. The desired I/O device can also be reconfigured in the operating system or system software and removed from the running logical partition or moved to another logical partition using dynamic logical partitioning. This setting is suitable for devices that you want to share among
    multiple logical partitions (such as optical drives or tape drives). You can change the required or desired setting within any partition profile for any I/O device at any time. Changes to the required or desired setting for an I/O device take effect immediately, even if the logical partition is running. For example, you want to move a tape device from one running logical partition to
    another, and the I/O device is required in the active partition profile for the source logical partition. You can access the active partition profile for the source logical partition, set the tape device to be desired, and then reconfigure and move the tape device to the other logical partition without having to restart either logical partition.

Wednesday, July 8, 2009

Aix - Logical Partitioning - Virtual Processor Assignment

Aix - Logical Partitioning - Virtual Processor Assignment

If you create a partition profile that is set to use shared processors, the HMC calculates a minimum, maximum, and desired number of virtual processors for
the partition profile. The calculation is based upon the minimum, maximum, and desired number of processing units that you specify for the partition profile. By default, the virtual processor settings are calculated as follows:

• The default minimum number of virtual processors is the minimum number of processing units (rounded up to the next whole number). For example, if the minimum number of processing units is 0.8, the default minimum number of virtual processors is 1.

• The default desired number of virtual processors is the desired number of processing units (rounded up to the next whole number). For example, if the desired number of processing units is 2.8, the default desired number of virtual processors is 3.

• The default maximum number of virtual processors is the maximum number of processing units rounded up to the next whole number and multiplied by two. For example, if the maximum number of processing units is 3.2, the default maximum number of virtual processors is 8 (4 times 2).

When you activate the logical partition using the partition profile on the HMC, the logical partition is assigned the desired number of virtual processors. You can then use dynamic logical partitioning to change the number of virtual processors to any number between the minimum and maximum values, so long as the number of virtual processors is greater than the number of processing units that are assigned to the logical partition. Before changing the default settings, performance modeling should be performed.

For example, you create a partition profile on the HMC with the following processor unit settings.
• Minimum processing units 1.25
• Desired processing units 3.80
• Maximum processing units 5.00

The default virtual processor settings for this partition profile on the HMC are as follows.
• Minimum virtual processors 2
• Desired virtual processors 4
• Maximum virtual processors 10


When you activate the logical partition using this partition profile on the HMC, the operating system sees four processors, because the logical partition is activated with the desired value of four virtual processors. Each of these virtual processors has 0.95 processing units supporting the work assigned to the processor. After the logical partition is activated, you can use dynamic logical partitioning to change the number of virtual processors on the logical partition to any number between 2 and 10, so long as the number of virtual processors is greater than the number of processing units that are assigned to the logical partition. If you increase the number of virtual processors, bear in mind that you will have less processing power supporting the work assigned to each processor.

Aix - Logical Partitioning - Memory and Processor Resource Assignment

Aix - Logical Partitioning - Memory and Processor Resource Assignment
When you create a partition profile for a logical partition, you set up the desired,minimum, and maximum amounts of memory and processor resources that you want for the logical partition. (Where applicable, this also applies to 5250 CPW.)The desired value is the resource amount that the logical partition gets if you do not over commit the resource on the managed system. If the desired amount of resources is available when you activate the partition profile, then the logical partition starts with the desired amount of resources. However, if the desired amount of resources is not available when you activate the partition profile, then the resources on your managed system are over committed. In that case, if the amount of resources that are available on the managed system is equal to or greater than the minimum amount of resources in the partition profile, then the logical partition starts with the available amount of resources. If the minimum amount of resources is not met, then the logical partition does not start.

Aix - Logical Partitioning - Partition Profile

Aix - Logical Partitioning - Partition Profile

A partition profile is a record on the Hardware Management Console (HMC) that
specifies a possible configuration for a logical partition. When you activate a
logical partition using a partition profile, the managed system attempts to start
the logical partition using the configuration information in the partition profile.
A partition profile specifies the desired system resources for the logical partition
and the minimum and maximum amounts of system resources that the logical
partition can have. The system resources specified within a partition profile
includes processors, memory, and I/O resources.

Each logical partition on a managed system that is managed by an HMC has at
least one partition profile. If desired, you can create additional partition profiles
with different resource specifications for your logical partition. If you create
multiple partition profiles, you can designate any partition profile on the logical
partition to be the default partition profile. The HMC activates the default profile if
you do not select a specific partition profile to be activated. Only one partition
profile can be active at one time. To activate another partition profile for a logical
partition, you must shut down the logical partition before you activate the other
partition profile.

A partition profile is identified by partition ID and profile name. Partition IDs are
whole numbers used to identify each logical partition that you create on a
managed system, and profile names identify the partition profiles that you create
for each logical partition.

Aix - Logical Partitioning - HMC

Aix - Logical Partitioning - HMC


The Hardware Management Console (HMC) is a hardware appliance that you can use to configure and control one or more managed systems. You can use the HMC to create and manage logical partitions and activate Capacity Upgrade on Demand. Using service applications, the HMC communicates with managed systems to detect, consolidate, and send information to service and support for analysis.

 



The HMC also provides terminal and 5250 console emulation for the logical partitions on your managed system. You can connect to logical partitions from the HMC itself, or you can set up the HMC so that you can connect to logical partitions remotely through the HMC. HMC terminal and 5250 console emulation provides a dependable connection that you can use if no other terminal or console device is connected or operational. HMC terminal and 5250 console emulation is particularly useful during initial system setup, before you have configured your terminal or console of choice.


This figure illustrates the logical partitions and the server firmware on the IBM® Systems and eServer™ hardware. The server firmware is code that is stored in system flash memory on the server. The server firmware directly controls the resource allocations on the server and the communications between logical partitions on the server. The HMC connects with the server firmware and specifies how the server firmware allocates resources on the server. If you use a single HMC to manage a server, and the HMC malfunctions or become disconnected from the server firmware, then the server continues to run, but you will not be able to change the logical partition configuration of the server or manage the server. If desired, you can attach an additional HMC to act as a backup and to provide a redundant path between the server and IBM service and support.

There are two different HMC user interfaces.

• Version 7 and later of the HMC uses a web-based user interface. You can configure the HMC to allow remote connections using a supported web browser.


• Version 6 and earlier of the HMC uses a window-based user interface. You can configure the HMC to allow remote connections using the Web-based System Manager.