Saturday, 20 November 2010

For my non mulim friends... An excellent website

Friends

I have just visited an excellent web site , which i beleive would be very much intereting for any one who wants to explore islam as religion.

The website is

http://www.islamreligion.com


Please dont feel that i am imposing any thing on my web site visitors as we as muslim strongly beleive in holy Quran verse according to which " there could not be any impulsion in case of religion"

On the other hand , as a muslim it is our reponsibility to present our religion in front of you. You accept it or not , it is your decision.

Saturday, 16 October 2010

IBM pSeries Dlpar Operations- Basic How-tos

procedures needed to locate I/O slots that can be moved dynamically between logical partitions (LPAR) on a HMC managed system p server as as follows

- Identify the owner of the I/O slot for the device you need to managed and then logically remove the PCI device from the owning operating system. You have to find out the PCI device associated with the physical slot, for which you can execute following command in AIX

lsslot -c slot


In VIOS (virtual I/O server)
lsdev -slots

-- Removed the PCI device and all child devices

--- In AIX
rmdev -Rdl pci#

--- In VIOS
rmdev -dev pci# -recursive

- Perform the dynamic logical partition operation from the HMC

- Finally, configure the new device on the gaining partition

-- In AIX
cfgmgr

-- In VIOS
cfgdev

More detail about the typical dynamic logical partition procedures are available in the following references:

Partitioning Implementations
for IBM Eserver p5 Servers
http://www.redbooks.ibm.com/redbooks/pdfs/sg247039.pdf

An example would be

# lsslot -c slot
The output of this command looks similar to the following:
#Slot Description Device(s)
U1.5-P1-I1 DLPAR slot pci13 ent0
U1.5-P1-I2 DLPAR slot pci14 ent1
U1.5-P1-I3 DLPAR slot pci15
U1.5-P1-I4 DLPAR slot pci16
U1.5-P1-I5 DLPAR slot pci17 ent2
U1.5-P1/Z1 DLPAR slot pci18 scsi0

Before the I/O slot removal, you must delete the PCI adapter device and all its child devices from AIX. Given that ent2 in the slot U1.5-P1-I5 in the previous example is not used, the devices could be removed using the following command as the root user on the partition.

# rmdev -l pci17 -d -R

After the devices have been removed from AIX, the I/O slot can be
removed from the partition using the graphical user interface or command line interface on the HMC.

Note: Any PCI slots defined as required are not eligible for the DLPAR operation.

Procedures to use the HMC GUI to dynamically manage I/O slots can be found at following URL:

Dynamically managing physical I/O devices and slots
http://publib.boulder.ibm.com/infocenter/eserver/v1r3s/index.jsp?topic=/iphbl/iphbldlpariop.htm



How can I move my DVD-ROM or CD-ROM drive from one LPAR to another?


Answer

If you don’t know which LPAR owns the CD-ROM drive, use the HMC manager or WEBSM tool.
Select the managed system and open “Properties”.
Select the “I/O” tab. Look for the I/O device with the description “Other Mass Storage Controller” and read the “Owner” field. This will show the LPAR currently owning that device.


ON THE SOURCE SYSTEM:

1. Find the parent adapter of the DVD or CD device:


$ lsdev -Cl cd0 -F parent
ide0

2. Find the slot containing the IDE bus:

$ lsslot -c slot
# Slot Description Device(s)
U787B.001.DNWG2AB-P1-T16 Logical I/O Slot pci1 ide0
U9133.55A.105C2EH-V7-C0 Virtual I/O Slot vsa0
U9133.55A.105C2EH-V7-C2 Virtual I/O Slot ent0
U9133.55A.105C2EH-V7-C3 Virtual I/O Slot vscsi0

so PCI1 is the slot containing the IDE adapter and CD drive.

3. Remove the slot from this host:

# rmdev -dl pci1 -R
cd0 deleted
ide0 deleted
pci1 deleted

ON THE HMC:

Select the LPAR currently owning the CD-ROM, and in the Actions menu select:
Dynamic Logical Partitioning -> Physical Adapters -> Move or Remove
Select the adapter for “Other Mass Storage Controller” and move to the desired target LPAR.
This will perform a DLPAR operation on both the source and target LPAR.

ON THE TARGET SYSTEM:

Log in as root and run
# cfgmgr

The CD-ROM device should show up now
# lsdev -C | grep cd
cd0 Available 1G-19-00 IDE DVD-ROM Drive

Saturday, 2 October 2010

How to clear Amber ( Yellow ) Light on IBM POWER systems

This is one of the most common asked question from my customers:

There are only few steps to clear this false indicator , but before doing that you have to make sure that it is really a false alarm. You can do it by checking for latest errors in AIX error log . If there are no errors of Type P and Class H, then you can go for following steps

Type diag
Choose task selection
Choose indentify and attention indicators
Choose the indicator with the attention then choose set system
indicartor to normal

Monday, 9 August 2010

How to extend LVM based Filesystem in Linux?

A major question which came in Linux Administrators minds is that what will happen if all space within a crtical disk become full.
No worry! If you are using Linux LVM , then you can do it online as follows
1. Extend the space for LUN from storage subsystem management software

2. Rescan your partition table
#partprobe
3. Now the output of
#fdisk -l /dev/sdc

should show the extended size of Lun ( if not , then sorry your Linux kernel is not supporting online extension and you have to restart the server)

4. extend the pv
#pvresize /dev/sdc

5. extend the lv
lvextend -l 100% FREE /dev/VG01/lvdata01

6. Extend the fileystem

ext2online /dev/mapper/VG01/lvdata01

and to make sure finally verify through "df" command

Friday, 16 July 2010

Installaing rpms from iso file

Need to know , how to install rpms from an iso file ... easy job , just tarnsfer iso image file to your linux partition ( let say by ftp )and then mount as follows mount -o loop /tmp/RHEL.iso /mnt/cd1 and then you will get whole Linux image inside /mnt/cd1 directory. 

Next step would be to create a repo configuration file  like below

vi /etc/yum.repos.d/rhe72.repo

-----------------------

[Red_Hat_72]
baseurl=file:///mnt/cd1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY ** Put exact path where RPM-GPG_KEY file exists
gpgcheck=1  ** you can also ignore gpgcheck by setting its value to Zero
enabled=1

----------

then execute

yum clean all

and finally you can run 

yum repolist


which will show repository contents inside /mnt/cd1 filesystem


Saturday, 10 July 2010

Remote Graphical Desktop on RHEL-5 , XDMCP and Xwindows

Sometimes ,it happens that nothing works for you. You struggle and struggle again for a task which seems very very easy for you.
It happened to me few days ago when i was trying to do some graphical installation on my VMWare based RHEL-5 and was not able to do see graphical screen properly due to some resolution issues.

So after trying for hours and hours to fix this resolution issue, i finally decided to try some remote desktop software ( which are commonly as xwindows software ) on my windows machine .

It was a hard selection as nowadays so many xwindows software available on internet. Off course ideas was to use some freely available software so i selected cygwin/X for this purpose.
Cygwin/X installation/download was pretty simple however main trick was to select specific packages from x11 category. I took help from cygwin/x installation/user guide and installed this siftware very easily.

Then next step was to start cygwin bash shell and on this bash shell i tried

xwin -query 192.168.1.234 ( which was IP address of my RHEL-5), but no success.

i was sure that xwin command was right , as all cygwin manuals point to same command. After hours and hours effort , i concluded that Linux is not opening any remote graphical sessions from cygwin , as due to new RHEL-5 security standards XDCMP protocol is disabled by default.
So then i modified the file /etc/gdm/custom.conf and under the [xdmcp] section, added this line: Enable=true

Finally restarted GDM by using command gdm-restart

and then tried same xwin command from cygwin ,,,, Ahh it was successfull and finally i got graphical remote desktop on my windows machine connecting to Linux server.Thanks google again!!!

Saturday, 17 April 2010

Recreate Bootable Image on RHEL and AIX

To recreate bootable image on aix , you have to simply execute

bosboot -ad /dev/hdiskx

This hdiskx could be hdisk0 or hdisk1 ( depending upon output of your lslv -m hd5 command ). In case of mirroring , you have to execute the same command against both disks in rootvg.

In case of RHEL, mkinitrd command can do the same function for you!!!

mkinitrd -v -f /boot/xxx.img xxx

where xxx=you kernel version.

 How to Enable Graphical Mode on Red Hat 7 he recommended way to enable graphical mode on RHEL  V7 is to install first following packages # ...