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.

Friday, 10 June 2011

Dynamically Removing an I/O Slot

To remove a dynamically allocated I/O slot (must be a desired component) from a partition on a P-series IBM server partition:

1) Find the slot you wish to remove from the partition:

# lsslot -c slot
# Slot Description Device(s)
U1.5-P2/Z2 Logical I/O Slot pci15 scsi2
U1.9-P1-I8 Logical I/O Slot pci13 ent0
U1.9-P1-I10 Logical I/O Slot pci14 scsi0 scsi1
In our case, it is pci14.

2) Delete the PCI adapter and all of its children in AIX before removal:

# rmdev -l pci14 -d -R
cd0 deleted
rmt0 deleted
scsi0 deleted
scsi1 deleted
pci14 deleted

3) Now, you can remove the PCI I/O slot device using the HMC:

a) Log in to the HMC

b) Select "Server and Partition", and then "Server Management"

c) Select the appropriate server and then the appropriate partition

d) Right click on the partition name, and then on "Dynamic Logical Partitioning"

e) In the menu, select "Adapters"

f) In the newly created popup, select the task "Remove resource from this partition"

g) Select the appropriate adapter from the list (only desired one will appear)

h) Select the "OK" button

i) You should have a popup window which tells you if it was successful.

Thursday, 9 June 2011

Command to view WWN of a HBA Port

WWN stands for world wide number that identifies the host burst adapter on the server. The WWN of a HBA card ina AIX box could be found by :

# lscfg -vpl fcs0  | grep -i network

# lsattr -EHl fcs0

Tuesday, 10 May 2011

Global Command Log in VIOS

This posts explains the GCL (Global Command Log) command in VIOS.

$ lsgcl - Displays the list of command executed by all the users in the machine. It alos contains the date, time, username and what command executed by that user.

GCL can be cleared by padmin user by using the command,

$ cleargcl

Saturday, 7 May 2011

Redirecting Error Logs To Different Server

In some instances there is a need to re-direct the logs to a different server.

Step1:

$ oem_setup_env

Login as padmin. Create a file called /tmp/syslog.add

Step2:

Edit the content of the /tmp/syslog.add with,

errnotify:
en_pid = 0
en_name = "syslog"
en_persistenceflg = 1
en_method = "/usr/bin/errpt -a -l $1 |/usr/bin/fgrep -v 'ERROR_ID TIMESTAMP'|
/usr/bin/logger -t ERRDEMON -p local1.warn"

Step3:

# odmadd /tmp/syslog.add /* Updating the changes in the ODM */

Step4:

Edit the /etc/syslogd.conf file to re-direct the logs to a different server.

*.debug           @10.0.0.1 <IP address of a different server */

Step5:

Restart the demon.

# stopsrc –s syslogd

# startstc –s syslogd

Trouble Shooting Error Logs in VIOS

This post explains the scenario where your errologs are corrupted and how to restore the error demon.

1) $ oem_setup_env /* Get into AIX Environment */

2) # /usr/lib/errstop /* Stop the errorlog demon */

3) # mv /var/adm/ras/errorlog /var/adm/ras/errlog.back /* Take a backup of the error log file */

4) # /usr/lib/errdemon  /* Start the errorlog demon */

Sunday, 1 May 2011

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 : Location of the installation medium of the drivers

• Tell me Steps to configure the VG?
 
# mkvg -y <VG Name> -s <PP Size> <Physical Volumes>

• How do u add a new disk in VG?

# extendvg <VG Name> <New Hdisk>

• What are the Attibutes of LVM?

Attributes if LVM includes Volume Group, Logica Volume, Physival Volume, Physical Partition, Logical Partition, Filesystem and Paging Space.
 
• How do u find the fix is installed?
 
# instfix -i -k <APAR Number> /* Look for a specific fix */
 
# instfix -i -v /* Lsit all the fixes installed in the machine */

• How to u extend the FS?
 
# chfs -a size=+New Size <File System>
 
• Attributes of FS?
 
Attributes include file system type, mount point, logical voume, mount options, logs.
• List all the LV in system?
 
# lslv
• How do u find the PP size of the VG?

# lsvg vgname
 
• How do u create the pp size of 32 MB in VG?

# mkvg -y <VG Name> -s 32 <Physical Volumes>
 
• How do u disable the paging space?
 
# swapoff  <Paging Device>

• What is LPAR?
 
Logical Partition, a system built based on the concept of Virtualization.

• How will you mirror a volume and how will you find if a volume is mirrored ? lsvg รข€“l (vol gp name)

# extendvg vgname hdisk0
# mirrorvg vgname hdisk0
# lsvg -l vgname /* 1 LP = 2 PP's to check mirroring has been done or not*/

Sunday, 24 April 2011

Commands with flags:

# lsattr

-E : Effective Values
-H : Header
-R : Range of values
-D : Default values
-l : Device
-a : Attribute

# chdev

-l : Device
-a : Attribute
-T : Temporary
-P : Permanent

# cfgmgr

-l : Device
-i : Installation medium
-v : Detailed output

# rmdev

-R : Delete the parent and child device
-d  : Delete device from customized DB
-l : Device
-S :  Stop the device

# lscfg

-v : VPD information
-p : Platform specific information
-l : Device

# lsdev

-C : Customized device
-P : Predefined device
-c : class
-t  : type
-s : Sub class

#  mksysb

-e : Exclude list
-i : Create /image.data
-v : Verbose
-X : Expand the /tmp filesystem

# savevg

-e : Exclude list
-i : Create installable image
-v : Verbose
-X : Expand the file system
-f : Target location to save the VG.

# restore

-s : Seeek to a particluar position.
-x : Restore all the files
-q : Inform the backup voulme to be ready
-v : Verbose
-f : Restore from a file
-r : Restore all the files
-t/-T : List all the files backed up

# sysdumpdev

-l : List current dump device
-L : Previous dump device
-e : Estimate the size of the dump device
-C : Enable compression
-c : Diable compression
-p : Set device as primary dump devie
-s : Set device as secoundary dump device
-d : Directory to copy the dump information during boot
-P : Make changes permanent


# sysdumpstart

-p : Start the primary dump device
-s : Start the secondary dump device

# snap

-g : General information.
-k : Kernel information.
-f : File system information.
-c: Compression enabled
-a : All information
-e : HACMP specific information
-d : Direcotory other the /tmp/ibmsupt

#  mkps

-a : Activate at reboot
-n : Activate now

# mktcpip

-h : Hostname
-i : Interface
-a : Address
-m : Subnet mask
-n : Name server address
-d : Domain name
-g : Gateway address

# no
-a : List the attributes
-o : Set the attribute
-p : Seet the attribute now and persist after reboot
-r : Set the attribute after reboot
-d : Set to default value
-D : Set all the attributes to default value

# iostat

-d : Disk value
-a : Adapter throughput
-m : Path statistics
-t : Terminal report
-z : Reset I/O Stats

# svmon

-P : Process report
-G : Global report
-U : user report
-i :  Interval

# rmss

-c : Change the memory size
-r : Reset the memory size to the RAM

# installp

-a : Apply mode
-c : Commit mode
-p :Preview mode
-g :  Include dependencies
-X : Expand file system
-d : Device where the filesets are located
-f : Location of the file sets
-C : Clean up all the failed installation
-u : Un-install a package
-r : Reject installation