Showing posts with label AIX. Show all posts
Showing posts with label AIX. Show all posts

Wednesday, August 8, 2018

AIX: How to determine / identify volume serial for Infinibox (Infinidat) w/o HPT

How to list / identify serial number of volume from Infinibox (Infinidat) without Host Power Tools?

This command can be used to determine / list serial number of disk located on Infinibox in AIX:

for i in `lsdev -Cc disk | grep INFINIDAT | awk '{ print $1}'`
do
echo $i "\c"

lsattr -El $i -a unique_id | awk '{ print $2 }' | cut -c 5-34
done 







Enjoy IT!

Thursday, November 19, 2015

AIX: How to synchronize more PP/LP in parallel by LVM NUM_PARALLEL_LPS

Command syncvg can be customized to synchronize different number of LPs in parallel
syncvg -p <#>

If you use mirrorvg you can set environment variable NUM_PARALLEL_LPS before running command:

export NUM_PARALLEL_LPS=<#>

Value <#> can be number in range of 1-32

Monday, July 20, 2015

AIX: devscan reporting and diagnostic tool for SAN devices

Are you looking for reporting and diagnostic tool for SAN devices on AIX?

Lets try IBM support tool called devscan which can report for each LUN:

  • ODM name and status
  • PVID, if there is one
  • Device type
  • Capacity and block size
  • SCSI status
  • Reservation status, both SCSI-2 and SCSI-3
  • ALUA status
  • Time to service a SCSI Read

Source and download:
https://www-304.ibm.com/support/docview.wss?uid=aixtoolsc9e095f

Wednesday, April 1, 2015

AIX: How to get CPU / processor socket and core count for IBM Power server

Here is the command for AIX which shows you the count of processor cards (sockets) installed in your Power server including information about count of cores per one socket. The terminology processor in IBM Power server and AIX world describes core in relation to HW.

Command:
lscfg -vp|grep WAY

Example:
lscfg -vp|grep WAY
      6-WAY  PROC CUOD:
      6-WAY  PROC CUOD: 


Expample shows you that system has two sockets and each has 6 cores, so system has 12 cores.


Friday, February 20, 2015

AIX: How to determine / identify volume UID from Storwize / SVC

How to list / identify volume ID UID from Storwize / SVC?



This command can be used to determine / list volume UID of disk located on Storwize / SVC in AIX:

for i in `lsdev -t 2145 | awk '{ print $1}'`
do
echo $i "\c"
lsattr -El $i -a unique_id | awk '{ print $2 }' | cut -c 6-37
done


or for MPIO without HAS and SDDPCM:

for i in `lsdev -t mpioosdisk | awk '{ print $1}'`
do
echo $i "\c"
lsattr -El $i -a unique_id | awk '{ print $2 }' | cut -c 6-37
done

You get volume UID which can be used to identify disk on Storwize / SVC in GUI or running command lsvdisk.

lsvdisk -filtervalue vdisk_UID=60050111111111111000000000000002


Enjoy IT!

Wednesday, October 9, 2013

AIX: How to list disk size using getconf

Disk size in AIX can be listed by this command:

for i in `lsdev -Cc disk | awk '{print $1}'`
do
echo "$i \c"
getconf DISK_SIZE /dev/$i
done

Friday, September 6, 2013

AIX: migratepv 0516-404 allocp: This system cannot fulfill the allocation request

I have faced issue with migratepv command.
I wanted to migrate PPs from hdisk3 to hdisk2 in same scalable volume group.
Command has failed even there were enough PPs on hdisk2.


migratepv hdisk3 hdisk2
0516-404 allocp: This system cannot fulfill the allocation request.
        There are not enough free partitions or not enough physical volumes
        to keep strictness and satisfy allocation requests.  The command
        should be retried with different allocation characteristics.
0516-132 lmigratelv: Incorrect entry in partition map file.
0516-134 lmigratelv: Received: 00f73e7044ccd502 110

0516-136 lmigratelv: Error reading input map.
0516-812 migratepv: Warning, migratepv did not completely succeed;
        all physical partitions have not been moved off the PV.

I had to run reorgvg to fix this issue.
It seems to be a bug in LVM because I can't see any reason of described behavior.

Tuesday, September 18, 2012

IBM POWER 6 & 7 systems facts inc. rPerf and features

Need a quick reference for IBM Power ® Systems -- including Power processor-based BladeCenter® blade servers and IBM PureFlex™ compute nodes? The Facts and Features reports give you a side-by-side comparison of the various systems available with many of their key specifications and information about supported AIX, IBM i and Linux versions.

http://www-03.ibm.com/systems/power/hardware/reports/factsfeatures.html

Saturday, September 1, 2012

AIX: while infinite loop aix ksh


Here is an example of infinite loop using while in shell ksh in AIX

while true
do
echo "Hello world!"
sleep 5
done

PowerVM: Managing VLANs on SEA on-line without any disruption

Make VLAN tagging modular to avoid downtime

Summary:  Shared Ethernet adapters (SEAs) can be used for IEEE 802.1Q VLAN tagging. However, once the SEA is in use, you cannot make changes to the VLANs on the trunk virtual Ethernet adapter without stopping the SEA. By using separate virtual adapters for each tagged VLAN, you can attach a new virtual adapter with its new VLAN to the SEA without any downtime. Retiring a VLAN from the SEA can be just as easy with a modular approach: one tagged VLAN per virtual adapter.

The problem and goal:

You have a shared Ethernet adapter (SEA) with VLAN tagging that services mission-critical websites. A new website requires an additional VLAN to be attached to the SEA. Outages are difficult to arrange. You can not use dynamic logical partitioning (DLPAR) to add VLANs to an existing virtual adapter on the SEA, because the adapter is in use as part of the SEA configuration.

Saturday, August 25, 2012

AIX: Capturing Boot Debug


Capturing Boot Debug

Question

Capturing Boot Debug

Answer

This document can be used to assist in capturing boot debug information which may help determine why a system is hanging during IPL.These steps are valid for AIX 5L and AIX 6.1.

AIX: cfgmgr returning cfgpkcs11 -l pkcs11 0514-040 Error initializing a device into the kernel after clonning AIX from mksysb over a NIM

When cloning AIX 6.1 TL7 SP4 from mksysb receiving error message during first boot and boot process takes too long:

         0 Method error (/usr/lib/methods/cfgpkcs11 -l pkcs11 ):               
         0      0514-040 Error initializing a device into the kernel.

When running cfgmgr receiving this error:

cfgmgr
Method error (/usr/lib/methods/cfgpkcs11 -l pkcs11 ):
          0514-040 Error initializing a device into the kernel.

Friday, August 10, 2012

Breaking limits of LVM, Physical Partitions, Volume Groups in AIX

Are you facing the situation that you can not extend LUN or mirror smaller LUNs to one big LUN in AIX because you reached limit of Physical Partitions in Volume Group?


extendvg VGname hdisk4
      0516-1254 extendvg: Changing the PVID in the ODM.
      0516-1162 extendvg: Warning, The Physical Partition Size of 512 requires the
              creation of 1140 partitions for hdisk4.  The limitation for volume group
              VGname is 1016 physical partitions per physical volume.  Use chvg command
              with -t option to attempt to change the maximum Physical Partitions per
              Physical volume for this volume group.

Is yes, read more :-)

Wednesday, August 1, 2012

AIX dsmserv Receiving XM_BUFFER error during tape operation

Technote (troubleshooting)

Problem(Abstract)

During a Tivoli Storage Manager Server tape operation , the XM_BUFFER error is logged in the AIX errpt log.

Upgrading Atape device driver in AIX TSM

Technote (troubleshooting)

Source: http://www-01.ibm.com/support/docview.wss?uid=swg21174910

Problem(Abstract)

This document gives the steps for upgrading the Atape device driver in AIX, including reconfiguring the devices in AIX, upgrading Atape, and deleting and redefining the tape paths, drives, and library in TSM.

Resolving the problem

1) From TSM:
Save the output from the device queries, and save the current device configuration (the filename is optional):

Monday, May 28, 2012

How to track allocated resource in NIM, reset and deallocate resouces

If a resource is allocated to any client in NIM and you want to delete or change resource you get this type of message:

lparx:/ # nim -o remove -arm_image=yes master_mksysb
0042-001 nim: processing error encountered on "master":
   0042-061 m_rmbosi: the "master_mksysb" resource is currently
        allocated for client use

To check whether resource is allocated:
lsnim -l -t mksysb | egrep ":|alloc_count"|grep -v date
lsnim -l -t lpp_source| egrep ":|alloc_count"|grep -v date
lsnim -l -t spot| egrep ":|alloc_count"|grep -v date

To reset and deallocate resources from all machines run this script:
for i in `lsnim -c machines | awk '{print $1}'`
do
    nim -o reset -a force=yes $i
    RC=$?
    if [ $RC -eq 0 ] ; then
        nim -Fo deallocate -a subclass=all $i
    fi
done