About Us

RSInfoMinds, a web based IT Training and Consultancy firm. It is established with high dreams in training people in IT Infrastructure Field. We provide Online and Class Room training in various fields of IT Infrastructure Management.

Join Us: http://www.facebook.com/RSInfoMinds
Mail Us: rsinfominds@gmail.com
Twitter: @RSInfoMinds

We are specialized in the below courses:

Redhat Linux Admin Redhat Linux Cluster
Redhat Virutualization IBM AIX Admin
IBM AIX Virtualization IBM AIX Cluster
HP Unix Admin HP Unix Cluster
HP Unix Virtualization Shell Scripting
Veritas Volume Manager Veritas Cluster
Oracle Core DBA VMWare


We provide training in such a way, So that you get in depth knowledge on the Courses you look for.

And we ensure you are very confident from each and every Techincal aspect that the IT Industry needs and expects from you.

We also conduct Workshops on the latest technology and the real time faculties sharing their work experiences to make you the best.

Monday, 12 December 2011

Types of AIX Boot

There are four basic boot types.

·         Warm boot:
Booting a running system by performing a shut down and reboot in a single operation. This type of boot is also known as a soft IPL (Initial Program Load).

·         Cold boot:
Booting a halted system.

·         Timed boot:
Booting a halted system automatically after a specified period of time.

·         Crash boot:
Automatic reboot of a system that has crashed.

lastcomm Command

Displays information about the last commands executed.

The lastcomm command displays information, in reverse chronological order, about all previously executed commands that are still recorded in the /var/adm/pacct summary file. You need to run the /usr/sbin/acct/startup command before you can execute the lastcomm command.

lastcomm [ -X ][ Command ] [ Name ] [ Terminal ]

/var/adm/sulog

The su log file is used to log attempts to become a superuser.

SU 07/08 10:57 + pts/0 root-root
SU 07/11 12:44 + pts/0 root-nobody
SU 07/25 16:37 + pts/5 dcoca-root
SU 09/11 10:21 + pts/1 mrj1-root

SU : Switch User action was performed.

07/08 : Date and Month at which the action was performed.

10:57 : Time at which the action was performed.

+ : Indicate a successful Switch User.

pts/0 : In which Pseudo Termial the action was performed.

dcoca-root : From which user, the root was switched from.

FIBER CHANNEL ADAPTER SETTINGS

root@aix21b09: / # lsattr -El fscsi0
attach       switch       How this adapter is CONNECTED         False   <-- shows actual connection protocol (None,switch,al lehet)
dyntrk       no           Dynamic Tracking of FC Devices        True    <-- dynamically follows SAN changes
fc_err_recov delayed_fail FC Fabric Event Error RECOVERY Policy True    <-- 3. delayed_fail or fast_fail
scsi_id      0x133300     Adapter SCSI ID                       False
sw_fc_class  3            FC Class for Fabric                   True

root@aix21b09: / # lsattr -El fcs0
bus_intr_lvl  305        Bus interrupt level                                False
bus_io_addr   0xffc00    Bus I/O address                                    False
bus_mem_addr  0xfffbf000 Bus memory address                                 False
init_link     al         INIT Link flags                                    True    <--al or pt2pt
intr_priority 3          Interrupt priority                                 False
lg_term_dma   0x800000   Long term DMA                                      True    <--deafault 0x200000, max. 0x8000000
max_xfer_size 0x100000   Maximum Transfer Size                              True    <--default is 100000, max 1000000
num_cmd_elems 200        Maximum number of COMMANDS to queue to the adapter True    <--default 200, max is 1024 or 2048
pref_alpa     0x1        Preferred AL_PA                                    True
sw_fc_class   2          FC Class for Fabric                                True


attach:(sets the Fiber Channel topology)
    none: if no cable has been plugged in
    al: all devices are in a loop or ring, similar to token ring networking. The failure of one device causes a break in the ring.
    switch: all devices or loops of devices are connected to Fibre Channel switches, similar conceptually to modern Ethernet implementations  

dyntrk:
    http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.prftungd/doc/prftungd/fast_fail_dynamic_interaction.htm
    If it is on yes, it enables dynamic changing of fibre channel cable connections on switch ports or storage ports.
    We have changed few StoragePorts to another Switch last saturday ==> that means, that the HardwarePath changed for these servers,
    where the Option "dyntrk" is set to no. --> reconfigure your disks

fc_err_recov:
    http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.prftungd/doc/prftungd/fast_fail_dynamic_interaction.htm

    delayed_fail: waits some time before acting.
    fast_fail is useful where multipathing software is used. This would support faster failover to alternate paths

init_link:
    from online help: "Do not change this attribute unless directed by IBM support."
    al: arbitrared loop : first tries al, then pt2pt, if not succes then link remains down
    pt2pt: tries pt2pt, if not succes then link remains down

lg_term_dma:
    it controls the DMA memory resource that an adapter driver can use.
    If you have a dual port adapter the maximum value is divided between the adapter ports.

max_xfer_size:
    controls the maximum transfer size. You can increase this value to improve performance.
    Different storages might need different values to utilize the performance

num_cmd_elems:
    Maximum number of commands to be queued to the adapter.
    When a large number of supported storage devices are configured, you can increase this to improve performance.

Setting the LHEA to promiscuous mode

To use a Shared Ethernet Adapter with a Host Ethernet Adapter (or Integrated Virtual Ethernet), you must set the Logical Host Ethernet Adapter (LHEA) to promiscuous mode.
In the navigation area, expand Systems Management and click Servers.
  1. In the contents area, select the server on which the Virtual I/O Server logical partition is located.
  2. Click Tasks and select Hardware (information) > Adapters > Host Ethernet. The HEAs page is shown.
  3. Select the physical location code of the Host Ethernet Adapter.
  4. Select the physical port associated with the Logical Host Ethernet port on the Virtual I/O Server logical partition, and click Configure. The HEA Physical Port Configuration page is shown.
  5. Select VIOS in the Promiscuous LPAR field.
  6. Click OK twice to return to the contents area.

lsmksysb

The rootvg backup taken on the tape drive could be listed using the lsmksysb command.

1) # lsattr -EHl rmt0 : Command to display the attribute of a tape drive.

2) To execute the lsmksysb command, the block size of the tape drive should be 512 Bytes. If not change it using the command.

# chdev -l rmto -a block_size=512

3) # lsmksysb -lf /dev/rmt0 : Command to list the contents of the rootvg backup.

VOLUME GROUP: rootvg
BACKUP DATE/TIME: Thu May 7 15:42:48 CDT 2009
UNAME INFO: AIX shaevelbso 3 5 00059D5C4C00
BACKUP OSLEVEL: 5.3.7.0
MAINTENANCE LEVEL: 5300-07
BACKUP SIZE (MB): 7168
SHRINK SIZE (MB): 4358
VG DATA ONLY: no




 

Create a System Dump

The below steps shows how to create a dump device:

1) # sysdumpdev -l : Command to list the current dump device.

2) # sysdumpdev -e : Command to estimate the size of the dump device, in bytes. We can covert the value into MB and create a system dump is appopriate number of PP's.

3) # mklv -y <system_dump_name> -t sysdump Volume_Group_name no_of_LP's Physical_Volume_Name

4) Once the device is created. We can assign the dump device as the primary one or secoundary one.

5) AIX Machine having RAM size of less that 4GB, hd6 becomes paging device as well as system dump device.

6) # sysdumpdev -p <Dump_Devicename> : Command to assign primary dump device.

7) # sysdumpdev -s <Dump_Devicename> : Command to assign secoundary dump device.