Sunday, 31 March 2013

lsof - List open files

This lists information about files opened by processes. It is great, especially when you are troubleshooting an issue and need more information about process or connection details. Linux treats most everything as a file. An open file may be a regular file, a directory, a block special file, a character special file, an executing text reference, a...

Dynamically detecting new disks in Linux

When you have new LUNs created on the SAN fabric, zoned & mapped it to the server; how can you detect the luns on the linux server online, without rebooting it?. When you dynamically add new disks to a Linux VM running on ESX server, how do you detect that disks on the Linux virtual machine?. Here are the steps to do that : Install sg3_utils...

Listing mksysb image details

lsmksysb There's a simple command to list information about a mksysb image, called lsmksysb: # lsmksysb -lf mksysb.image VOLUME GROUP:      rootvg BACKUP DATE/TIME:  Mon Jun 6 04:00:06 MST 2011 UNAME INFO:        AIX testaix1 1 6 0008CB1A4C00 BACKUP OSLEVEL:    6.1.6.0 MAINTENANCE LEVEL: 6100-06 BACKUP...

AIX ODM Commands

Basic ODM Commands: ODM is object database Manager NOTE: VERY IMPORTANT! Use these commands with EXTREME CAUTION!!! You should make backup copies of the individual ODM Class files (CuAt, CuDv, CuDvDr, CuDep,and CuVPD), before you attempt to use these commands. First, take a backup of the ODM files by issuing: cd /etc/objrepos for i in CuAt...

How can I directly read out the VGDA of a PV (hdisk)?

Information about VGx, LVx, filesystems, etc. are stored in the ODM. But these information are also written to the VGDA of the disks itself. You can read the information directly from the disk's VGDA with a command like this: # lqueryvg -Atp hdisk100 You can use # redefinevg -d hdisk100 myvg to synchronize the ODM with the information of the VGDA....

NIM Commands

A. INTRODUCTION: OBJECTS AND CLASSES NIM (the Network Installation Manager) stores all information needed for the installation of servers in objects. Objects are organized in object types and object classes. Here is an overview of the most important object types and classes: ClassTypeDescription machinesstandalonethe client LPAR to be installed...

Configuring Tape Devices on AIX with NPIV and VIOS

This quick tip provides some insight into what to expect when configuring tape drives on AIX operating systemwith Virtual Fibre Channel adapters, the Virtual I/O Server (VIOS), and NPIV. In this environment, the 8GB Fibre Channel (FC) adapters (Feature Code 5735) have...

Easy Ways to Trace VSCSI Configuration with AIX

Virtual SCSI (VSCSI) disks are great for sharing physical disks without requiring physical adapters, but mapping the configuration can be painful. I recently came across a couple of tools for tracing and mapping out the VSCSI configuration that have been huge time savers. Identify VSCSI Adapters Using kdb Command There's a quick way of checking...

AIX System Recovery Tips and Techniques

An AIX recovery can be necessary as a result of a number of events: the loss of some system files, an unexplained system crash, a site environmental problem, or simply a request for a system recovery test. Either way, be prepared to hit the ground running and get the...

How can I apply an efix or ifix?

You don't apply interim fixes (ifix) or emergency fixes (efix) with installp - instead you do it with the Efix Manager. IBM provides these fixes in a compressed epkg format (suffix: .epkg.Z). And that's how it's been applied: # emgr -e <EFIX>.epkg.Z You get a list of all installed fixes with # emgr -l ID  STATE LABEL    INSTALL...

IBM AIX TCP Traffic Regulation

AIX TCP Traffic Regulation Introduction TCP network services and subsystems running on AIX automatically and transparently take advantage of this powerful DoS mitigation technology using simple administrative tuning. This new feature provides a simplified approach to increased...

Some tips and techniques for managing GPFS file systems

Mount a file system on some nodes Set special mount options for a specific node Specify mount order (GPFS Version 3.4 or later only) MOUNT A FILE SYSTEM ON SOME NODES If you do not want any file systems that are configured for automount to be mounted on a specific node. On that node create the file  /var/mmfs/etc/ignoreStartupMount#echo "some...

Configuring Persistent static route in Linux

Static routing Static routing is a form of routing that occurs when a router uses a manually-configured routing entry, rather than information from a dynamic routing protocol to forward traffic. In many cases, static routes are usually manually configured by a network administrator by adding in entries into a routing table, though this may not always...

AIX LVM Cheat Sheet

This is a quick and dirty cheat sheet on LVM using AIX, I have highlighted many of the common attributes for each command however this is not an extensive list, make sure you look up the command. First a quick review on some of the terminology that AIX LVM uses Examples What it means PHYSICAL VOLUME...