RSINFOMINDS

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.

Wednesday, 21 December 2011

Volume Group Operation in AIX and HP_UNIX

HP_Unix:

1) #  vgdisplay <volume group name> : Display information about the volume group.

2) # vgdisplay -v <volume group name> : Display more detailed information on the volume group.

3) # vgchange -a y /dev/<VG name> : To activate a volume group.

4) # vgchnage -a n /dev/<VG name> : To deactivate a volume group.

5) # vgexport  /dev/<VG name> : To remove a volume group.

6) # vgimport /dev/<VG name> : To import an exported volume group.

IBM AIX:

1) # lsvg : List all the volume groups.

2) # lsvg -o : List all the active volume groups.

3) # lsvg <volume group name> : Information about the Volume group.

4) # lsvg -l <volume group name> : Information about the logical volumes in the volume group.

5) # lsvg -p <volume group name> : Information about the physical volumes in the volume group.

6) # lsvg -m <volume group name> : Information about the mirroed volume group.

7) # varyoffvg <volume group name> : To deactivate a volume group.

8) # varyonvg <voluume group name> : To activate a volume group.

9) # exportvg  <voluume group name> : To remove a volume group.

10) # importvg <voluume group name> : To import a volume group.
Posted by Unknown at 12:59:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Volume Group Creation in HP_Unix and IBM AIX

HP-UNIX:

1) # ioscan -funC disk : Locate the disk you want to use for the creation of volume group.

2) # strings /etc/lvmtab : Shows the physical volumes that are part of LVM.

3) For Hp Unix Version 11:

We need to create a device file called "group" for the volume group which we are about create. The "group" file is a character based file with the major  "64" default for Hp_ux and minor number of out choice "0x010000"

# cd /dev/

# mkdir <volume group name>

# chown root:root <volume group name>

# chmod 755 <volume group name>

# cd /volumegroup name

# mknod /dev/volume group name/group c 64 0x010000

# chown root:sys group

# chmod 755 group

4) # pvcreate /dev/rdsk/c#t#d# : PV creation.

5) # vgcreate -s <PE size> /dev/<volume group name> /dev/dsk/c#t#d#

6) # vgdisplay : View the volume group created.

7) # strings /etc/lvmtab : Verify the same.

AIX:

1) # cfgmgr

2) # lspv :  Select the physical volumes in the none state.

3) # mkvg -y <volume group name> -s <PP size> <Physical volumes....>

4) # lsvg  : List all the volume group.

5) # cd /etc/vg/

6) # ls -l : Verify a "Zero Byte" file is created with the prefix "vg.<VG ID>" has been created..
Posted by Unknown at 11:44:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Tuesday, 20 December 2011

Adding and Removing a Device in AIX and HP_UNIX

AIX: # cfgmgr :  Execute configuration manager.

HP_UNIX: # ioscan : Running hardware scan on the box.

AIX:  # rmdev -dl <Device name> : Command to remove a device.

HP_UNIX: # rmsf -a <Device path (/dev/dsk/c2t0d0)

AIX: # mkdev -l <Device name> : To bring the device active or # cfgmgr.

HP_UNIX: # insf -e and then run # ioscan

AIX : # lsdev -Cc <Class> -d <Device name> -F Parent : View the parent of the device.

HP_UNIX: # ioscan
Posted by Unknown at 16:55:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Monday, 19 December 2011

LVM in IBM AIX and HP UX

Volume Group Creation:

# mkvg -y <VG name> -s <Size of PP> <Physical Volumes>  : AIX

# vgcreate -n <VG name> <Physical Volumes> : HP_UX

Physical Volume Creation:

# mkdev -l hdisk# : Intialize a physical volume : AIX

# pvcreate /dev/rdsk/c#t#d# : Create a physical volume : HP_UX

Logical Volume Creation:

# mklv -t  <Filesystem type> -y <Logical volume name> <Volume group name> <No.of PP's>  <Physical Volume Name> : AIX

# lvcreate -L <Size in MB> -n <Logical volume name> <Volume group name with the location> : HP_UX

File System Creation:

# crfs -v <Filesystem type> -d <Logical volume name> -m <Mount point> -A y/n : AIX

# newfs -F vxfs <Location of a Raw Logical volume name> : HP_UX

Mount Point:

# mount <Logical Volume Name> <Mount Point> : Same in AIX and HP_UX.





Posted by Unknown at 16:47:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Friday, 16 December 2011

Compare Hp-Unix and IBM AIX Commands - Part 1

Hp-UX: # ioscan -C disk : To list all the Disk detected in the machine.
IBM AIX: # lsdev -Cc disk : To list all the Disk detected in the machine.

Hp-UX: #ioscan -fnC fc : To list the FC Adapter in the machine.
IBM AIX:  # lsdev -Cc adapter | grep -i fcs : To list the FC Adapter in the machine.

Hp-UX: # ioscan -funC fc /dev/td# : To view more information about a FC Adapter.
IBM AIX:  # lsattr -EHl fcs0 :To view the more information about a FC Adapter.

Hp-UX:  # /opt/fcms/bin/tdutil /dev/td# | grep -i "World Wide Name" : Command to view the WWN Number.
IBM AIX:  #  lscfg -vpl fcs# | grep -i "Network Address" : Command to view WWN Number

Hp-UX: # ioscan -m hwpath : Command to view hardware path of the disk.
IBM AIX:  # lcsfg -vpl hdisk# : Command to view the hardware path of the disk.

Hp-UX: # ioscan -m lun : Display all the LUN's connected.
IBM AIX: # lspv : Display all the LUN's connected.

Hp-UX: # swlist -l : Command to list all the softwares installed in the machine.
IBM AIX:  # lslpp -l : Command to list all the softwares installed in the machine.

Hp-UX: # bdf  : To view the disk and the filesystem usage.
IBM AIX:  # df : To view the disk and the filesystem usage.

Hp-UX: # lvlnboot -v : To veiw the current boot list.
IBM AIX:  @ bootlist -m normal/secure/both -o

Hp-UX: # setboot : Command to set the bootlist.
IBM AIX:# bootlist -m normal/secure/both -o hdisk# blv=hd5

Hp-UX: # swapinfo -a : Command to view the paging space.
IBM AIX:# lsps -a : Command to view the paging space.

Hp-UX: # diskinfo -v /dev/rdsk/c#t#d3 : To view the size of the disk.
IBM AIX:# bootinfo -s hdisk# : To view the size of the disk.

Posted by Unknown at 13:01:00 1 comment:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Tuesday, 13 December 2011

lastcomm better than history and last

By default the history command shows the "last executed command" in the machine. Rather # history and #last command failed to give more information which the #lastcomm provides.

To use the #lastcomm command, we need start the service:

1) bash-3.2# /usr/sbin/acct/startup

2) bash-3.2# lastcomm
bsh          S     root     pts/0      0.03 secs Tue Dec 13 08:15
bsh          S     root     pts/0      0.02 secs Tue Dec 13 08:15
rm           S     root     pts/0      0.01 secs Tue Dec 13 08:15
rm           S     root     pts/0      0.01 secs Tue Dec 13 08:15
rm           S     root     pts/0      0.01 secs Tue Dec 13 08:15
rm           S     root     pts/0      0.01 secs Tue Dec 13 08:15
rm           S     root     pts/0      0.01 secs Tue Dec 13 08:15
rm           S     root     pts/0      0.01 secs Tue Dec 13 08:15
bsh          S     root     pts/0      0.01 secs Tue Dec 13 08:15
accton       S     root     pts/0      0.01 secs Tue Dec 13 08:15
1st col : Command executed.
2nd col: Command executed by whom. S:root
3rd col: Owner of the command.
4th col: Terminal.
5th col: Execution time of the command.
6th col: Date and Time.

3) bash-3.2# who
root        pts/0       Dec 13 06:20     (ABTS-TN-Static-067.62.165.122.airtelbroadband.in)
root        pts/1       Dec 13 06:24     (122.248.161.91)
root        pts/2       Dec 13 08:05     (ABTS-TN-Static-102.64.165.122.airtelbroadband.in)
root        pts/3       Dec 13 08:18     (122.165.62.67)
root        pts/4       Dec 13 07:16     (122.248.161.91)
4) bash-3.2# lastcomm root pts/3 : List the command executed by a root user on the terminal pts/3
tty          S     root     pts/3      0.01 secs Tue Dec 13 08:18
sar          S     root     pts/3      0.01 secs Tue Dec 13 08:18
sadc         S     root     pts/3      0.14 secs Tue Dec 13 08:18
5) bash-3.2# lastcomm root : List all the commands executed by the root user.
lastcomm     S     root     pts/0      0.03 secs Tue Dec 13 08:19
lastcomm     S     root     pts/0      0.03 secs Tue Dec 13 08:19
lastcomm     S     root     pts/0      0.03 secs Tue Dec 13 08:19
lastcomm     S     root     pts/0      0.03 secs Tue Dec 13 08:19
nfssync_kpro    DX root     __         0.01 secs Tue Dec 13 08:18
who          S     root     pts/0      0.01 secs Tue Dec 13 08:18
tty          S     root     pts/3      0.01 secs Tue Dec 13 08:18
lastcomm     S     root     pts/0      0.03 secs Tue Dec 13 08:18
sar          S     root     pts/3      0.01 secs Tue Dec 13 08:18
sadc         S     root     pts/3      0.14 secs Tue Dec 13 08:18
sar          S     root     pts/3      0.01 secs Tue Dec 13 08:18
termdef      S     root     pts/3      0.01 secs Tue Dec 13 08:18
setmaps      S     root     pts/3      0.01 secs Tue Dec 13 08:18
tty          S     root     pts/0      0.01 secs Tue Dec 13 08:18
lastcomm     S     root     pts/0      0.02 secs Tue Dec 13 08:18
nfssync_kpro    DX root     __         0.01 secs Tue Dec 13 08:17
lastcomm     S     root     pts/0      0.02 secs Tue Dec 13 08:17
clear        S     root     pts/0      0.01 secs Tue Dec 13 08:17
file         S     root     pts/0      0.02 secs Tue Dec 13 08:17
more         S     root     pts/0      0.01 secs Tue Dec 13 08:17
ls           S     root     pts/0      0.03 secs Tue Dec 13 08:17
nfssync_kpro    DX root     __         0.01 secs Tue Dec 13 08:16
nfssync_kpro    DX root     __         0.01 secs Tue Dec 13 08:15
lastcomm     S     root     pts/0      0.02 secs Tue Dec 13 08:15
bsh          S     root     pts/0      0.03 secs Tue Dec 13 08:15
bsh          S     root     pts/0      0.02 secs Tue Dec 13 08:15
rm           S     root     pts/0      0.01 secs Tue Dec 13 08:15
rm           S     root     pts/0      0.01 secs Tue Dec 13 08:15
rm           S     root     pts/0      0.01 secs Tue Dec 13 08:15
rm           S     root     pts/0      0.01 secs Tue Dec 13 08:15
rm           S     root     pts/0      0.01 secs Tue Dec 13 08:15
rm           S     root     pts/0      0.01 secs Tue Dec 13 08:15
bsh          S     root     pts/0      0.01 secs Tue Dec 13 08:15
accton       S     root     pts/0      0.01 secs Tue Dec 13 08:15
6) bash-3.2# date
Tue Dec 13 08:22:09 CST 2011
bash-3.2# lastcomm date : Shows when the date command was executed.
date         S     root     pts/0      0.01 secs Tue Dec 13 08:22

              S  The root user executed the command.
              F  The command ran after a fork, but without a following subroutine.
              C  The command ran in PDP-11 compatibility mode.
              D  The command terminated with the generation of a core file.
              X  The command was terminated with a signal.
Posted by Unknown at 15:38:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Find Your Device Driver Fileset In 3 Steps

In case you want to the device drive fileset name of your tape drive rmt#:

1) bash-3.2# odmget CuDv | grep -p rmt
CuDv:
        name = "rmt0"
        status = 1
        chgstatus = 2
        ddins = "tape"        location = "10-60-00-5,0"
        parent = "scsi0"
        connwhere = "5,0"
        PdDvLn = "tape/scsi/scsd"
Make a note of the ddins="tape"

2) bash-3.2# find / -name "tape" -ls
30861   60 -r-xr-xr-x  1 root      system       58964 Aug  5  2005 /usr/lib/drivers/tape122898    4 drwxr-xr-x  2 root      system         512 Jan 10  2006 /usr/lpp/bosinst/tape

3) bash-3.2# lslpp -w /usr/lib/drivers/tape
  File                                        Fileset               Type
  ----------------------------------------------------------------------------
  /usr/lib/drivers/tape          devices.scsi.tape.rte        File

So the device driver of the tape drive belongs to the fileset "devices.scsi.tape.rte"
Posted by Unknown at 15:22:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

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.
Posted by Unknown at 14:53:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

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 ]

Posted by Unknown at 14:29:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

/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.
Posted by Unknown at 14:17:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

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.
Posted by Unknown at 13:18:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

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.
Posted by Unknown at 13:05:00 1 comment:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

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




 
Posted by Unknown at 12:28:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

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.

Posted by Unknown at 10:58:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Thursday, 8 December 2011

CPU Virtualization - Power 5 Based





On a Power 5 system it is possible to create a logical parition with dedicated processor or shared processor. The concept of shared processore refers to virtualization of CPU's processing unit.

Power5 introduced the concept of "Global Shared Processor Pool". It contains group of processor that will be shared among the logical partition that are created using the shared resources (CPU).

Processing unit of a CPU is always measured in 1/10 th of the CPU Power.  So, with the single CPU 1/10=0.1 Processing unit can be assigned to a logical partition. So a single CPU can support 10 LPAR's (logically).

The granulartiy of increasing the processing unit is 0.01 ( As per IBM Standards).

The above diagram shows a P5 machine with 6 Physical Processors.
The machine has 4 partitions namely A,B,C and D.

Partitions A and B are created with the dedicated processors. 3 Processor per partition. So, A and B are allocated with 6 Physical Processor.

Remaining processors available : 16-(3+3)=10 Processors.

Processing unit of a single processor is expressed as 1/10, therefore 10 Processors hold : 10*10 : 100 Processing units.

The 10 Processors are combined in a "Global Shared Processor Pool" with the processing capacity of 100 units.

Logical Partitions use these processing units as a Virtual Processor. i.e., Virtual processors provide required amount of processing units to the logical partitions.

Now, Partition C has 52 Processing units with 7 virtual processor and Partition D has 23 Processing units with 5 Virtual Processor.

So, Total processing units occupied by C and D : 52+23=75 Processing units.

Now, available processing unit in the Global Shared Processor Pool = 100-75 = 25 Processing units.

These 25 Processing units are not allocated.

No.of Processing unit allocated to a partition is called : Entitlement.

Capped Partition: Partition cannot get more processing unit than that of allocated to it.

Uncapped Partition: Partition can acquire more processing unit than that of allocated to it.

Similarily, an "uncapped partition" can also consume less processing units than that of allocated to it. This should give a clear understanding between "Physical consumption" and "Entitlement consumption".

Physical Consumption: Refer to percentage of processor power/unit consumed by a partition.

Entitlement Consumption: Refer to percentage of processor power/unit currently consumed compared to the no.of processing units allocated to that partition.

So, its evident that an "uncapped partition" can have an "Entitlement Consumption" of more than 100%.




Posted by Unknown at 16:00:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Explore # topas -C

In this report, you see the global memory consumption metrics:

mem : Represents the sum of monitored memory for all shared partitions in the pool.
muse : Represents the sum of memory consumed for all shared partitions in the pool.
Mem : Represents the amount of memory allocated to the partition.
InU : Represents the amount of memory consumed by the partition.
mon : Represents the total amount of memory allocated to the partitions.
Posted by Unknown at 15:25:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Restoring an AIX System with mksysb

In the event of a disaster, you can boot from tape, CD/DVD, or the network and do a full restore. The processes are very similar, so we'll cover them as one procedure:
  1. If the system is still running, you can set it up to boot from tape or CD before you shut it down:
    1. To boot from CD/DVD:
    2. Client # bootlist m normal cd0
                              
    3. To boot from tape:
    4. Client # bootlist m normal rmt0
                              
    5. To boot from the network:
    6. Client # bootlist m normal en0
                              
  2. Power down the system.
  3. Attach a system terminal (or monitor and keyboard).
  4. Prepare the media:
    1. If this is a tape restore, attach a tape drive and insert the tape in the drive.
    2. If this is a CD restore, insert the first CD/DVD in the drive.
  5. Power up the system.
  6. Display the SMS menu. If you weren't able to set the boot list to the proper device before powering down, you need to tell the system to boot from the proper device on power up. On HMC-attached systems, you can select the boot mode before you start the partitions; it then defaults to the SMS menu. On other AIX systems, you need to interrupt the boot process to display the SMS menu. On some older systems, you press F1 while the POST icons are appearing on the monitor. On most later model systems, you press F5 while the POST icons are appearing on the monitor. Consult the hardware guide that shipped with your AIX system for the interrupt sequence for your model of hardware.
  7. Once in the SMS menu, select Maintenance Mode, and set one of the following restore/boot options:
    1. Choose Select Boot Device, and specify CD, DVD, or tape restore.
    2. For a NIM install, select "Installation from Network." Selecting NIM install may require you to supply additional network parameters depending on how your NIM server is set up.
  8. The backup is checked for compatibility. If the backup is compatible with the hardware it is being restored onto, it pauses for five seconds and then continues unprompted and restores the rootvg based on the settings in image.data and/or bosinst.data. If you want to interrupt the install, press the 0 key three times (000) during the five-second pause. This forces the restore into prompted mode. In the event that the backup does not match the hardware of the system, it automatically begins a prompted restore. The prompted restore looks very much like the initial AIX installer, but at the end you have a restore of your system.
  9. If you are not performing a prompted restore, the restore continues uninterrupted until it completes. If you are performing a prompted restore, it allows you to change the physical disk(s) that the restore is performed to, shrink filesystems, etc.
  10. When the restore finishes, the system changes its boot device to the install target devices for the rootvg and reboot.
Posted by Unknown at 12:37:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Wednesday, 7 December 2011

Link Aggregation on a Single VIOS


The below document explains the need and the process involved in link aggregation. Link aggregation is also called as "Ethernet Bonding". Which ensure continous availability of network service to avoid any failures in the networking service.

The above illustration shows link aggregation by using 3 physical ethernet adapters namely ent0, ent1 and ent2. Link aggregation is made upof primary and secondary adapters.

In this example, the primary adapter is formed my aggregating ent0 and ent1 from the ethernet switch on the left hand side. Another adapter ent2 act as a secondary adapter which is connected to the ethernet switch on the right hand side, to tolerate the failover of the switch on the left hand side.

Configuration:

1) Login into VIOS.

2) $ lsdev -type adapter
name status description
ent0 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (1410890
ent1 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (1410890
ent2 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (1410890

3) Ensure all the attributes of the physical adapters that form the link aggregation must be the same.

# lsdev -dev ent* -attr : Command to view the attributes of an adapter.
# chdev -dev ent* -attr attribute=value : Command to change the attribute of an adapter.

4) Forming Link Aggregation:

$ mkvdev -lnagg ent0,ent1 -attr backup_adapter=ent2
ent3 Available
en3
et3

5) Verify the newly created Link Aggregation.
 ent3 Available EtherChannel / IEEE 802.3ad Link Aggregation

6) View the attributes of the Link Aggregation.

$ lsdev -dev ent3 -attr
attribute value description user_settable
adapter_names ent0,ent1 EtherChannel Adapters True
alt_addr 0x000000000000 Alternate EtherChannel Address True
auto_recovery yes Enable automatic recovery after failover True
backup_adapter ent2 Adapter used when whole channel fails True
hash_mode default Determines how outgoing adapter is chosen True
mode standard EtherChannel mode of operation True
netaddr 0 Address to ping True
noloss_failover yes Enable lossless failover after ping failure True
num_retries 3 Times to retry ping before failing True
retry_time 1 Wait time (in seconds) between pings True
use_alt_addr no Enable Alternate EtherChannel Address True
use_jumbo_frame yes Enable Gigabit Ethernet Jumbo Frames True

$ lsdev -type adapter
name status description
ent0 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (1410890
ent1 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (1410890
ent2 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (1410890

7) Using HMC, create a new virtual ethernet adapter. Ensure the "Access External Network" flag is checked.

$ lsdev -type adapter
name status description
ent0 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (1410890
ent1 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (1410890
ent2 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (1410890
ent3 Available EtherChannel / IEEE 802.3ad Link Aggregation
ent4 Available Virtual I/O Ethernet Adapter (l-lan)

8) Configure Shared Ethernet Adapter using the newly created Link Aggregation (ent3) and Virtual Ethernet Adapter (ent4).

$ mkvdev -sea ent3 -vadapter ent4 -default ent4 -defaultid 2
ent5 Available
en5
et5

9) Verify the Shared Ethernet Adapter.

$ lsdev -type adapter
name status description
ent0 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (1410890
ent1 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (1410890
ent2 Available 2-Port 10/100/1000 Base-TX PCI-X Adapter (1410890
ent3 Available EtherChannel / IEEE 802.3ad Link Aggregation
ent4 Available Virtual I/O Ethernet Adapter (l-lan)
ent5 Available Shared Ethernet Adapter

10) Assign IP over the SEA ent5.

$ mktcpip -hostname <machine name> -interface en5 -inetaddr 10.0.01 -netmask 255.0.0.0
Posted by Unknown at 15:39:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Binding a specific device interrupt to a processor

Every device in AIX has interrupt level. It denotes the way in which the request from the device are submitted to the CPU for execution of task.

Interrupt : It stops the current execution of the processor and executes the interrupted process.

Steps to do binding:

# lsattr -EHl ent0 : Command to view the interrupt level of a device.

# bindprocessor -q : Command to view the processors available in the box.

# lsattr -EHl proc* : Ensure the processors have SMT on. (Simultaneous Multi-threading).

# bindintcpu <interrupt level> <processor no> : Command to bind a interrupt to a specific processor.

# vmstat -i : Command to view the bind interrupt execution.

Posted by Unknown at 11:21:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Do IP_Tracing

IP Tracing utility is handled by the demon called "iptrace".

1) # startsrc -s iptrace -a -s <source machine> -d <destination machine> -p <protocol> -i <interface> <location of the output file>

The above commands monitors/traces all the network related activity happening between the specified source and the destination machine through the specified interface. Finally the output is stored in the desired location.

2) # stopsrc -s iptrace : Command to stop the iptracing demon.

3) # ipreport -srn <output file> : Command to interpet the iptrace output.

Posted by Unknown at 11:11:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

TCP/IP Tracing

# iptrace -e -i <interface> <location name> : Command to trace activities on a particular interface and the output is stored in the location.

# ipreport <location of the iptrace output> : Command to view the output of the iptrace command.
Posted by Unknown at 11:07:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Handling Etherchannel Device

# /usr/lib/methods/ethchan_config -f  etherchannel device :  Command to cause maual failover to an etherchannel.

# /usr/lib/methods/ethchan_config -a -b etherchannel backupadapter : Command to add a backup adapter to an etherchannel device.

# /usr/lib/methods/ethchan_config -c etherchannel netadd ping_address : Command to change the address of the control channel.
Posted by Unknown at 11:05:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Monday, 5 December 2011

Restoring files from mksysb backup

Restoring the /image.data from the mksysb tape backup:.

 
/image.data is stored on the 2nd block of the tape.

1) Change the block size of the tape drive to 512.
# chdev -l rmt0 -a block_size=512

2) Check to make sure the block size of the tape drive has been changed:
# tctl -f /dev/rmt0 status

rmt0 Available 10-60-00-1,0 4.0 GB 4mm Tape Drive
attribute value description user_settable
block_size 512 BLOCK size (0=variable length) True
compress yes Use data COMPRESSION True
mode yes Use DEVICE BUFFERS during writes True
ret_error no RETURN error on tape change or reset True

3) Change the location where you would like to restore the /image.data
# restore -s2 -xqvf /dev/rmt0.1 ./image.data.

Restoring the /image.data from the mksysb file backup:
Change the location to restore the backup.
# restore -xqvf <location of mksysb backup> ./image.data
Posted by Unknown at 12:58:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Memory Checking in all the UNIX machines

Solaris

  1. dmesg grep mem
  2. prtdiag grep Memory
  3. prtconf -v grep Memory

AIX

  1. bootinfo -r
  2. lsattr -E1 sys0 -a realmem
  3. getconf REAL_MEMORY

HPUX

  1. dmesg grep Physical
  2. /opt/ignite/bin/print_manifest grep Memory
  3. machinfo grep Memory

Linux

  1. dmesg grep Memory
  2. grep -i memtotal /proc/meminfo
  3. free

OpenVMS

  1. show mem /page

Update:

FreeBSD

  1. dmesg grep memory
  2. grep memory /var/run/dmesg.boot
  3. sysctl -a grep mem
Posted by Unknown at 11:45:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

How to delete file with special characters

If you have files with the name of any special characters they are handled:

Eg: Filename is -s.

# cat -- -s : View the file with the name -s
# ls -l -- -s : To list the file.
# rm -- -s : Remove the file.
Posted by Unknown at 11:44:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Listing and Restoring a mksysb content


# listvgbackup -f /dev/rmt0 : List the mksysb files in the tape backup.

# listvgbackup -f /filename : List the mksysb files in the file backup.

# restorevgfiles -r -f '/dev/rmt0' /dir : To restore the /dir from the tape /dev/rmt0
Posted by Unknown at 11:34:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Migrating Users from One AIX System to Another AIX System

Files that can be copied over

/etc/group
/etc/passwd
/etc/security/group
/etc/security/limits
/etc/security/passwd
/etc/security/.ids
/etc/security/environ
/etc/security/.profile

NOTE: Edit the passwd file so the root entry is as follows:

root:!:0:0::/:/usr/bin/ksh

When you copy the /etc/passwd and /etc/group files, make sure they contain at least a minimum set of essential user and group definitions.

Listed specifically as users are the following:
  • root
  • daemon
  • bin
  • sys
  • adm
  • uucp
  • guest
  • nobody
  • lpd
Listed specifically as groups are the following:
  • system
  • staff
  • bin
  • sys
  • adm
  • uucp
  • mail
  • security
  • cron
  • printq
  • audit
  • ecs
  • nobody
  • usr
If the bos.compat.links fileset is installed, you can copy the /etc/security/mkuser.defaults file over. If it is not installed, the file belongs in the /usr/lib/security directory.

If you copy over mkuser.defaults, changes must be made to the stanzas.
Replace group with pgrp, and program with

shell
. A proper stanza should look like the following:

user:
            pgrp = staff
            groups = staff
            shell = /usr/bin/ksh
            home = /home/$USER

The following files may also be copied over, as long as the AIX version in the
new machine is the same:

/etc/security/login.cfg
   /etc/security/user

NOTE: If you decide to copy these two files, open the
/etc/security/user
file and make sure that variables such as tty, registry, auth1 and so forth are
set properly with the new machine. Otherwise, do not copy these two files, and
just add all the user stanzas to the new created files in the new machine.
Once the files are moved over, execute the following:

usrck -t ALL
    pwdck -t ALL
    grpck -t ALL

This will clear up any discrepancies (such as uucp not having an entry in
/etc/security/passwd). Ideally this should be run on the source system
before
copying over the files as well as after porting these files to the new system.
NOTE: It is possible to find user ID conflicts when migrating users from
older versions of AIX to newer versions. AIX has added new user IDs in
different release cycles. These are reserved IDs and should not be deleted.
If your old user IDs conflict with the newer AIX system user IDs, it is advised
that you assign new user IDs to these older IDs.
Posted by Unknown at 11:29:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Friday, 2 December 2011

"Server refused to allocate pty"

The symptoms may indicate that there is an application that is holding on to ptys and not releasing it. Try using the 'fuser' command to find the culprit application, like this:

# cd /dev/pts

# fuser *

The 'fuser' command will list all PIDs associated with each pty device.
If there is a process that is not releasing its ptys, you will see its PID occur many times in the fuser output.

Solution: Restart the application.
Posted by Unknown at 16:31:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Various Commands for Hardware Inventory

The following commands provide system hardware configuration:
  • To provide a system inventory of processor memory,disks, network information:
    prtconf

Processor-related commands:
  • To read ODM:
    lsdev -Cc processor
    
  • To read running processor:
    bindprocessor -q
    
    or
    lsattr -El proc0
    
  • To performance statistics on running processor:
    sar -P ALL 1 5
  • To process running on what processor:
    pstat -S

Memory-related commands:
  • To check status of memory:
    lsdev -Cc memory
    
  • To check memory size:
    In kilobytes:
    bootinfo -r
    In megabytes:
    lsattr -El mem0
    or
    topas
    In 4 kilobyte pages,
    svmon -G

Disk-related commands:
  • To check status of disk and type of disk:
    lsdev -Cc disk
  • To check characteristics of hdisk0 including size:
    lsattr -El hdisk0
  • To check vital product data, including size:
    lscfg -vp |more
    
Tape-related commands:
  • To check tape status and type:
    lsdev -Cc tape
  • To check characteristics of tape drive:
    lsattr -El rmt0
  • To check vital product data, including size:
    lscfg -vp |more
    
Posted by Unknown at 16:17:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Thursday, 1 December 2011

Remove a static route

First Option: Smitty

Step 1: Run netstat -rn
Step 2: Verify the route you want to remove. Also look at the ODM so you can see later that it was removed from there to. To verify from the odm run lsattr -El inet0. In this example we will remove the route circled in red. Notice on the flags column and you will see it has a flag of H, meaning it is a Host route.

Remove a static route

Here is the odm output and circled in red is the same route from the netstat -rn output. It also shows you that it is a Host route we are going to remove. It looks similar to the route above it, but one is a network route and the other is a host specific route.
Remove a static route

Step 3: Type smitty route

Step 4: Select remove a static route

Remove a static route

Step 5: Enter the information for destination and gateway exactly how you see it in the routing table.

For Destination Type we can hit F4 and it will give us two options: net and host. In our case we will select host since we are removing a host specific route.

Under Destination Address we will enter what is in the Destination column of the
netstat -rn.

The Gateway value will be what’s in the Gateway column of the netstat -rn.

Hit enter when done.

Remove a static route

Step 6: Verify that it was gone with the lsattr command. lsattr -El inet0.

Notice we don’t see the following value for route any longer:

host,-interface,,,,,,153.6.24.0,153.6.24.56

Remove a static route

Second Option: Command line using chdev command.

Step 1: Verify the route we want to remove in the netstat -rn output.


Remove a static route
Step 2: Verify which route is the offending route in the lsattr -El inet0 output.

Remove a static route

Step 3: Run the following command:

chdev -l inet0 -a delroute=”net,-interface,,,,,,153.6.24.0,153.6.24.56”

Step 4: Verify that the route is gone in the ODM.

Remove a static route

That is it!
Posted by Unknown at 10:46:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Wednesday, 30 November 2011

Add Adapter to Running Etherchannel

First we want to make sure that the adapter we want to add does not have an ip address on it. If so we need to remove the ip configuration from it and then we can add it to our etherchannel.


Lets say we have an etherchannel ent5 for example and it already has ent1 and ent3 as primary adapters. You want to add ent0 as a primary adapter as well. Here is what we would do first.

smitty etherchannel

Add Adapter to Running Etherchannel


select your etherchannel --> in our example it would be ent5

Next your given a screen like this:

Add Adapter to Running Etherchannel

You will scroll down to Add Main Adapter

hit f4 to display your adapters

Add Adapter to Running Etherchannel

select the adapter you want to add --> in our example ent0

hit enter when done
It will then display if it failed or if succeeded.

Now to verify that it was added to your etherchannel you can do the following command:

lsattr -El ent5
The first line you see will show the adapters that are setup as primary adapters:

Add Adapter to Running Etherchannel

adapter_names ent0,ent1,ent3 EtherChannel Adapters True

 
Posted by Unknown at 17:25:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Importance of chpv -c and -C

# chpv -c hdisk# : Command to clear the bootimage on the disk.

# chpv -C hdisk# :  Command to clear the owning Logical Volume Manager from the disk .

Situation:

The mkvg command fails with errors similar to: mkvg -f VGName hdiskpower18
0516-1376 mkvg: Physical volume contains a VERITAS volume group.
0516-1397 mkvg: The physical volume hdiskpower18, will not be added to the volume group.
0516-862 mkvg: Unable to create volume group.

Solution:


# chpv -C hdiskpower18 and execute the # mkvg command...
Posted by Unknown at 16:58:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Tuesday, 29 November 2011

Finding the WWN on a FC Adapter

# lscfg -vl fcs0
fcs0 U789D.001.DQD51D7-P1-C1-T1 4Gb FC PCI Express Adapter (df1000fe)
Alternatively one may use the fcstat command:
# fcstat fcs0
FIBRE CHANNEL STATISTICS REPORT: fcs0
Device Type: FC Adapter (adapter/pciex/df1000fe)
Serial Number: 1F8240C89D
Option ROM Version: 02E8277F
Firmware Version: Z1D2.70A5
World Wide Node Name: 0x20000000C97710F3
World Wide Port Name: 0x10000000C97710F3
Posted by Unknown at 08:16:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Monday, 28 November 2011

Create and Remove Alias

# ifconfig en0 192.168.1.100 netmask 255.255.255.0 alias : Command to set alias for an interface (Temporarily).

# ifconfig en0 192.168.1.100 netmask 255.255.255.0 delete : Command to remove an alias.

# chdev -l en0 -a alias4=192.168.1.100,255.255.255.0 : Command to set alias permanently.

# chdev -l en0 -a delalias4=192.168.1.100,255.255.255.0 : Command to remove alias permanently.

# lsattr -EHl en0 : Command to view the alias set for an interface.

Problem:

Tried to remove an IP alias on en0, but failed.
 
# chdev -l en0 -a delalias4=192.168.1.100,255.255.254.0 Method error (/usr/lib/methods/chgif): 0514-009 Cannot delete an object from the device configuration database. 0821-232 chgif: Cannot delete alias6 (192.168.1.100) from CuAt.

Solution:

Check the alias IP and netmask which has been set for the interface.

# lsattr -El en0 -a  alias4|grep 192.168.1.100
alias4 192.168.1.100,255.255.255.0  IPv4 Alias including Subnet Mask True

Enter the correct netmask, now it works:

# chdev -l en0 -a delalias4=192.168.1.100,255.255.255.0
en0 changed
Posted by Unknown at 13:19:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

I need to add or remove processors, memory, or I/O devices from an LPAR using the HMC. Its not working and I would like to know why ?

Cause

Most likely, the cause is a broken RMC connection between the HMC and the LPAR

Answer

Starting point for troubleshooting problems with Dynamic Logical Partitioning.
The procedures listed below apply to Power4, Power5, & Power6 HMCs

The most common reason is broken RMC connection between the HMC and the LPAR.

The first place to check is the HMC using queries within the HMC restricted shell command prompt.

# lspartition -dlpar

If you get no output at all, then there is an RMC problem affecting all lpars attached to this particular HMC. A good thing to do if this happens is to close all Serviceable Events (under Service Focal Point) and reboot the HMC

# hmcshutdown -r -t now

Once the HMC reboots, wait about 15 minutes and re-run

# lspartition -dlpar

If still no output, then you should probably open a call with tech support.

In order for RMC to work, port 657 upd/tcp most be open in both directions between the HMC public interface and the lpar.

Look for the partition in question. In order for dlpar to function,
the partition must be returned, the partition must return with the correct IP of the lpar. Also, the active value must be higher than zero, and the decaps value must be higher 0x0

Example of a working lpar

<#1> Partition:<11*9117-570*10XXXX, correct_hostname.domain, correct_ip>
Active:<1>, OS:<AIX, 5.3, 5.3>, DCaps:<0x3f>, CmdCaps:<0xb, 0xb>, PinnedMem:<146>

Example of non-working lpar

<#9> Partition:<10*9117-570*10XXXX, hostname, ip>
Active:<0>, OS:<, , >, DCaps:<0x0>, CmdCaps:<0x0, 0x0>, PinnedMem:<0>

There are too many reasons as to why the RMC connection is broken to list in one document. However, if you see the condition in the 2nd example (and dlpar is working for other lpars on this HMC) then the next step is to check the RMC status from the lpar (AIX root access will be needed).

lssrc -a | grep rsct
ctcas rsct inoperative
ctrmc rsct inoperative
IBM.ERRM rsct_rm inoperative
IBM.HostRM rsct_rm inoperative
IBM.ServiceRM rsct_rm inoperative
IBM.CSMAgentRM rsct_rm inoperative
IBM.DRM rsct_rm inoperative
IBM.AuditRM rsct_rm inoperative
IBM.LPRM rsct_rm inoperative


Here we see that all the rsct daemons are inoperative. In many cases, you will see some active and some missing. The key for dynamic logical partitioning is that IBM.DRM



This is the correct method to stop and start RMC without erasing the configuration.

# /usr/sbin/rsct/bin/rmcctrl -z
# /usr/sbin/rsct/bin/rmcctrl -A
# /usr/sbin/rsct/bin/rmcctrl -p

Now repeat

# lssrc -a | grep rsct
Is IBM.DRM active now? If so, there is a pretty good chance the problem is resolved.

Go back to the HMC restricted shell command prompt

# lspartition -dlpar
Now the partition shows correct hostname & IP
Active<1> and Decaps value 0x3f

The values mean the partition is capable of a dlpar operation.

*** Other notes *** an lpar cloned from a mksysb may still have the
RMC config from the mksysb source. In this case, you may see IBM.DRM active, but if it does not return after running the three rmcctrl commands listed above, then they were never really active.

****Using the recfgct command*****

recfgct deletes the RMC database, does a discovery, and recreates the RMC configuration.

In nearly all cases, recfgct is safe to run on a production system. There are just a few cases where you would not use recfgct, and those are if the LPAR is a CSM Management Server or the LPAR has RMC Virtual Shared Disks (VSDs). VSDs are usually only found in very large GPFS clusters. If you are using VSDs, then these filesets would be installed on your AIX system: rsct.vsd.cmds, rsct.vsd.rvsd, rsct.vsd.vsdd, and
rsct.vsd.vsdrm

# lslpp -L | grep vsd
If no output, then you are not using VSDs

The other rarely used application that can be interrupted by recfgct, but without significant consequences, is if the node is a CSM Manager node or CSM client node. All AIX lpars should have these filesets
# lslpp -L | grep csm
csm.client 1.7.0.10 C F Cluster Systems Management
csm.core 1.7.0.10 C F Cluster Systems Management
csm.deploy 1.7.0.10 C F Cluster Systems Management
csm.diagnostics 1.7.0.10 C F Cluster Systems Management
csm.dsh 1.7.0.10 C F Cluster Systems Management Dsh
csm.gui.dcem 1.7.0.10 C F Distributed Command Execution

If you have additional filesets that start with csm, such as csm.server, csm.hpsnm, csm.ll, csm.gpfs, then you may have an LPAR that is part of a larger CSM cluster. The csm.server fileset should only be installed on a CSM Management Server. Following details a few additional checks you can perform to see if you have a Management Server configured.


# csmconfig -L ---> csmconfig not found, this is not a csm server
# lsrsrc IBM.ManagementServer
This will list resources that manage the lpar, including the HMC
and/or a csm server
Look at the Manager Type field
Manager Type = CSM --- this is a csm node

So if it turns out your node is a csm manager, then you would have to re-add all the nodes. If the system was a csm client node, then you would need to get onto the manager server and re-add the node.

Thats it for the warnings on recfgct. If you think you might be using VSDs and/or a CSM cluster, but are not sure, then please open a pmr and support can assist in you in determining this.

Assuming you have not reason to be concerned about the warning discussed above, then proceed.

# /usr/sbin/rsct/install/bin/recfgct

Wait several minutes

# lssrc -a | grep rsct
If you see IBM.DRM active, then you have probably resolved the issue

# lsrsrc IBM.ManagementServer

Do you see?
ManagerType=HMC

Try the dlpar operation again. If it fails, then you will likely need
to open a software PMR.

The other main reason for a dlpar failure is that the lpar has reached its minimum or maximum (on processors or memory)

Note. The partition profile does not give a true picture of the current
running configuration. If the profile was edited, but the partition did not go down into a "not activated" state, then reactivated, then the profile edits have not been read.

To check the current "running configuration" check the Partition Properties instead of the profile properties. You will see the min, max, & current. You can not remove or add processors and memory that are not within these boundaries. The command to check the running properties from the HMC restricted shell listed here

# lssyscfg -r sys -F name
(you need the value of name for use with the -m flag on many HMC commands)

# lshwres -r proc -m <server_name> --level lpar
(this list just the lpars settings)
# lshwres -r proc -m <server_name> --level sys
(this list the entire servers memory settings)

If you are checking for memory, replace "proc" in the above commands with "mem"

DLPAR can fail for many reasons, and it may be necessary to contact Remote Technical Support. However, the above may solve your problem.
Posted by Unknown at 10:48:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

IBM AIX_Interview_Questions_Part II

1) What is the port number used by HMC to communicate with the LPAR?

443

2) What is the port number for Telnet, FTP, SSH, RMC and NFS ?

FTP : 21
SSH : 22
Telnet : 23
RMC : 657
NFS: 111

3) What is the command to check NFS Exported file systems?

# showmount -e localhost

4) What is the command to view firewall settings in VIOS ?

$ viosecure firewall -view

5) What is RSCT ?

Reliable, Scalable and Clustering Technology.

6) What is the command to issue hardware failure in AIX to test cluster ?

# halt -q

7) How to re-read the /etc/inittab ?

# telinit q

8) 2 Types of IPAT in Hacmp  ?

* IPAT by Aliases
* IPAT by Replacement.

9) Command to set temp alias?

# ifconfig interface <IP Address> netmask <Netmask> alias

10) Command to set perm alias?

# chdev -l en0 -a alias=<IP Address>,<Netmask>

10) Command to remove alias ?

# ifconfig interface <IP Address> netmask <Netmask> delete

11) Command to list the PCI slots ?

# lsslot -c pci# -a

12) Command to find the parent adapter for a hdisk# ?

# lsdev -Cl hdisk # -F parent

13) Command to list the child devices ?

# lsdev -p pci0

14) Command to take backup of OS ?

# mksysb -vipeX /dev/rmt0

15) Command to view routing table?

# netstat -r
Posted by Unknown at 10:38:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Friday, 25 November 2011

AIX Performance Monitoring Commands

# sar : System Activity Report.
# vmstat : Virtual Memory Monitoring
# iostat : I/O Monitoring.
# lparstat : LPAR Statistics.
# mpstat : LPAR Statistics.
# netstat : Network Traffic Monitoring.
# topas : Global System Monitoring Tool.
# ps auxwww : View process details via CPU and Memory Consumption.
# filemon : Monitor filesystem.
# fileplace : Monitor filesystem.
# entstat : Interface Statistics.
# monhmc : Monitor HMC.



Posted by Unknown at 16:54:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Add a Removable Media Drive

The following procedure uses SMIT to add a CD-ROM drive to your system. Other types of removable media drives are added using different fast paths but all follow the same general procedure. You can also add a removable media drive using Web-based System Manager, the Configuration Manager, or the mkdev command.
  1. To add a CD-ROM drive to your system, install the hardware according to the documentation that came with your system.
  2. With root authority, type the following SMIT fast path:
    smit makcdr
  3. In the next screen, select the drive type from the available list of supported drives.
  4. In the next screen, select the parent adapter from the available list.
  5. In the next screen, at minimum, select the connection address from the available list. You can also use this screen to select other options. When you are finished, press Enter, and then SMIT adds the new CD-ROM drive.
At this point, the new CD-ROM drive is recognized by your system. To add a read/write optical drive, use the smit makomd fast path. To add a tape drive, use the smit maktpe fast path.
Posted by Unknown at 10:34:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Replace a Failed Physical Volume in a Mirrored Volume Group

The following scenario replaces a failed or failing disk associated with a physical volume within a mirrored volume group. In the instructions, you use the Configuration Manager to configure the new disk (named hdisk10), and then use the replacepv command to replace a physical volume in a mirrored volume group that resides, at least in part, on a failed disk drive (named hdisk02) without losing the physical volume's contents. You do not need to reboot or schedule downtime to complete the following procedure.
  1. Select a new disk drive that has a capacity at least as large as the failed disk.
  2. With root authority, run the Configuration Manager to configure the new disk. Type the following on the command line:
    cfgmgr -l hdisk10
    The -l flag allows you to configure only the specified device and any "child" devices. Without this flag, the cfgmgr command runs Configuration Manager against the entire system.
  3. Replace the physical volume so it can begin using the new disk, using the following command:
    Note:
    If the mirror for the logical volume is stale, the replacepv command does not work correctly.
    replacepv hdisk02 hdisk10
  4. When the associated mirrored volume group is the rootvg, you must also run the following commands to clear the failed disk from and add the new disk to the boot image:
    chpv -c hdisk02
    bootlist hdisk10
    bosboot -a
    The chpv -c command clears hdisk02 from the boot image. The bootlist command adds hdisk10 to the list of possible boot devices from which the system can be booted. The bosboot -a command creates a complete boot image on the default boot logical volume.
At this point, the physical volume hdisk02 now maps to the newly configured hdisk10.
Posted by Unknown at 10:32:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Thursday, 17 November 2011

Demons that support DLPAR Operations

The following demons have to be in active state to perform DLPAR Operations on the AIX Client.

SubSystems             Groups           
----------                 --------

ctrmc                         rsct 
ctcas                          rsct
IBM.HostRM              rsct_rm
IBM.DRM                  rsct_rm     
IBM.ServiceRM         rsct_rm
IBM.CSMAgentRM      rsct_rm
Posted by Unknown at 20:37:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

VIOS Command Related to Networking

$ cfgassist : Menu Driven Utility to Configure TCP/IP Settings.

$ lstcpip -hostname : To view the hostname.

$ lstcpip -adapters : To view Configured Adapters.

$ lstcpip -stored   : To view TCP/IP Configurations.

$ lstcpip -routtable : To view Routing Table.

$ lstcpip -ent4sea  : To view the Physical Adapters to create SEA.

$ lstcpip -vensea : To view the Virtual Adapters to built SEA.

$ lstcpip -ent4ip : To view the interface upon which IP Address can be assigned.

$ lstcpip -sockets : To view all the open sockets
Posted by Unknown at 20:10:00 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Hit Count.....

Contact Form

Name

Email *

Message *

Popular Posts

  • VxVM vxdisk ERROR V-5-1-684 IPC failure: Configuration daemon is not accessible
    [root@node2 yum.repos.d]# cd / [root@node2 /]# vxdisk list VxVM vxdisk ERROR V-5-1-684 IPC failure: Configuration daemon is not accessib...
  • IBM AIX Interview Questions with Answers
    • What is the command to view the active vg?   # lsvg -o • How do you configure the Disk?   # cfgmgr   -l : Device -v : Verbose -i : Locati...
  • Steps To Stop Cluster On RHEL
    [root@node1 ~]# service rgmanager stop Stopping Cluster Service Manager:                          [  OK  ] [root@node1 ~]# [root@node1 ...
  • NTP Parameters
    node1:/var/log # ntpdc -p (uses sec instead of ms).      remote           local      st poll reach  delay   offset    disp =============...
  • What NTP Command Says?
    “+” – Good and a preferred remote peer or server (included by the combine algorithm) “*” – The remote peer or server presently used as th...
  • Locate Memory Slots In AIX
    Using the below commands we can find out the memory slots in AIX.                      #lscfg -vp |grep -p DIMM Output: #lscfg -vp |g...
  • VCS: Cluster Filesystem Extension
    [root@node1 ~]# df -Th /oracle Filesystem    Type    Size  Used Avail Use% Mounted on /dev/vx/dsk/oracle/oracle_vol               vxfs  ...
  • Using SAM with an X Window System In HPUX
    Make sure X11-RUN fileset is installed. To view the current settings of the environment variables, enter: env | more The DISPLAY envi...
  • Access is denied by the AUTH_MAXTRIES option in security(4).
    #userdbset -d -u username auth_failures
  • Linux Swapiness
    The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk. Because disks...

Job Search Links

  • Monster India
  • Naukri
  • Placement India
  • TimesJob

Searching Globally..

Flag Counter

Followers

Feedjit


Search This Blog

My Collections

  • ►  2014 (112)
    • ►  November (9)
      • ►  Nov 17 (2)
      • ►  Nov 16 (2)
      • ►  Nov 15 (5)
    • ►  September (4)
      • ►  Sept 05 (1)
      • ►  Sept 04 (1)
      • ►  Sept 03 (1)
      • ►  Sept 01 (1)
    • ►  August (4)
      • ►  Aug 31 (1)
      • ►  Aug 14 (3)
    • ►  July (16)
      • ►  Jul 28 (1)
      • ►  Jul 20 (1)
      • ►  Jul 18 (4)
      • ►  Jul 16 (4)
      • ►  Jul 05 (4)
      • ►  Jul 01 (2)
    • ►  June (28)
      • ►  Jun 22 (6)
      • ►  Jun 21 (4)
      • ►  Jun 20 (2)
      • ►  Jun 19 (6)
      • ►  Jun 14 (1)
      • ►  Jun 13 (3)
      • ►  Jun 11 (1)
      • ►  Jun 10 (5)
    • ►  May (18)
      • ►  May 31 (4)
      • ►  May 30 (5)
      • ►  May 24 (3)
      • ►  May 18 (2)
      • ►  May 17 (1)
      • ►  May 10 (2)
      • ►  May 03 (1)
    • ►  April (4)
      • ►  Apr 22 (1)
      • ►  Apr 19 (3)
    • ►  March (14)
      • ►  Mar 17 (1)
      • ►  Mar 16 (7)
      • ►  Mar 06 (3)
      • ►  Mar 02 (3)
    • ►  February (3)
      • ►  Feb 21 (1)
      • ►  Feb 09 (1)
      • ►  Feb 03 (1)
    • ►  January (12)
      • ►  Jan 27 (1)
      • ►  Jan 26 (1)
      • ►  Jan 25 (1)
      • ►  Jan 23 (1)
      • ►  Jan 22 (1)
      • ►  Jan 17 (1)
      • ►  Jan 14 (1)
      • ►  Jan 13 (2)
      • ►  Jan 03 (1)
      • ►  Jan 02 (2)
  • ►  2013 (53)
    • ►  December (27)
      • ►  Dec 29 (1)
      • ►  Dec 28 (2)
      • ►  Dec 23 (1)
      • ►  Dec 21 (2)
      • ►  Dec 17 (1)
      • ►  Dec 15 (6)
      • ►  Dec 14 (5)
      • ►  Dec 11 (1)
      • ►  Dec 09 (2)
      • ►  Dec 08 (2)
      • ►  Dec 07 (4)
    • ►  September (7)
      • ►  Sept 06 (7)
    • ►  August (6)
      • ►  Aug 29 (1)
      • ►  Aug 27 (5)
    • ►  July (2)
      • ►  Jul 25 (2)
    • ►  May (3)
      • ►  May 30 (3)
    • ►  April (3)
      • ►  Apr 02 (3)
    • ►  March (5)
      • ►  Mar 29 (1)
      • ►  Mar 27 (1)
      • ►  Mar 18 (2)
      • ►  Mar 17 (1)
  • ►  2012 (71)
    • ►  December (7)
      • ►  Dec 22 (5)
      • ►  Dec 10 (2)
    • ►  November (5)
      • ►  Nov 18 (2)
      • ►  Nov 06 (3)
    • ►  October (2)
      • ►  Oct 09 (1)
      • ►  Oct 03 (1)
    • ►  August (2)
      • ►  Aug 23 (1)
      • ►  Aug 20 (1)
    • ►  June (3)
      • ►  Jun 21 (1)
      • ►  Jun 18 (1)
      • ►  Jun 10 (1)
    • ►  May (3)
      • ►  May 23 (1)
      • ►  May 08 (1)
      • ►  May 06 (1)
    • ►  April (7)
      • ►  Apr 22 (1)
      • ►  Apr 19 (1)
      • ►  Apr 16 (1)
      • ►  Apr 12 (1)
      • ►  Apr 02 (3)
    • ►  March (11)
      • ►  Mar 30 (1)
      • ►  Mar 24 (2)
      • ►  Mar 18 (1)
      • ►  Mar 16 (2)
      • ►  Mar 14 (1)
      • ►  Mar 12 (2)
      • ►  Mar 04 (1)
      • ►  Mar 03 (1)
    • ►  February (9)
      • ►  Feb 27 (1)
      • ►  Feb 21 (1)
      • ►  Feb 20 (1)
      • ►  Feb 15 (2)
      • ►  Feb 14 (2)
      • ►  Feb 08 (1)
      • ►  Feb 02 (1)
    • ►  January (22)
      • ►  Jan 30 (1)
      • ►  Jan 27 (4)
      • ►  Jan 26 (1)
      • ►  Jan 24 (1)
      • ►  Jan 20 (2)
      • ►  Jan 19 (3)
      • ►  Jan 18 (1)
      • ►  Jan 17 (6)
      • ►  Jan 14 (1)
      • ►  Jan 10 (2)
  • ▼  2011 (75)
    • ▼  December (30)
      • ▼  Dec 21 (2)
        • Volume Group Operation in AIX and HP_UNIX
        • Volume Group Creation in HP_Unix and IBM AIX
      • ►  Dec 20 (1)
        • Adding and Removing a Device in AIX and HP_UNIX
      • ►  Dec 19 (1)
        • LVM in IBM AIX and HP UX
      • ►  Dec 16 (1)
        • Compare Hp-Unix and IBM AIX Commands - Part 1
      • ►  Dec 13 (2)
        • lastcomm better than history and last
        • Find Your Device Driver Fileset In 3 Steps
      • ►  Dec 12 (7)
        • Types of AIX Boot
        • lastcomm Command
        • /var/adm/sulog
        • FIBER CHANNEL ADAPTER SETTINGS
        • Setting the LHEA to promiscuous mode
        • lsmksysb
        • Create a System Dump
      • ►  Dec 08 (3)
        • CPU Virtualization - Power 5 Based
        • Explore # topas -C
        • Restoring an AIX System with mksysb
      • ►  Dec 07 (5)
        • Link Aggregation on a Single VIOS
        • Binding a specific device interrupt to a processor
        • Do IP_Tracing
        • TCP/IP Tracing
        • Handling Etherchannel Device
      • ►  Dec 05 (5)
        • Restoring files from mksysb backup
        • Memory Checking in all the UNIX machines
        • How to delete file with special characters
        • Listing and Restoring a mksysb content
        • Migrating Users from One AIX System to Another AIX...
      • ►  Dec 02 (2)
        • "Server refused to allocate pty"
        • Various Commands for Hardware Inventory
      • ►  Dec 01 (1)
        • Remove a static route
    • ►  November (12)
      • ►  Nov 30 (2)
        • Add Adapter to Running Etherchannel
        • Importance of chpv -c and -C
      • ►  Nov 29 (1)
        • Finding the WWN on a FC Adapter
      • ►  Nov 28 (3)
        • Create and Remove Alias
        • I need to add or remove processors, memory, or I/O...
        • IBM AIX_Interview_Questions_Part II
      • ►  Nov 25 (3)
        • AIX Performance Monitoring Commands
        • Add a Removable Media Drive
        • Replace a Failed Physical Volume in a Mirrored Vol...
      • ►  Nov 17 (3)
        • Demons that support DLPAR Operations
        • VIOS Command Related to Networking
    • ►  June (4)
      • ►  Jun 10 (3)
      • ►  Jun 09 (1)
    • ►  May (4)
      • ►  May 10 (1)
      • ►  May 07 (2)
      • ►  May 01 (1)
    • ►  April (9)
      • ►  Apr 24 (1)
      • ►  Apr 15 (2)
      • ►  Apr 08 (2)
      • ►  Apr 04 (2)
      • ►  Apr 01 (2)
    • ►  March (16)
      • ►  Mar 30 (1)
      • ►  Mar 27 (4)
      • ►  Mar 25 (1)
      • ►  Mar 21 (2)
      • ►  Mar 20 (1)
      • ►  Mar 19 (1)
      • ►  Mar 18 (1)
      • ►  Mar 17 (3)
      • ►  Mar 13 (2)
Travel theme. Powered by Blogger.