Tuesday, 9 March 2010

QLogic Fibre Channel HBA on Linux Kernel Drivers Rebuild

After update/upgrade linux kernel, QLogic FC module needs to be rebuilt.

EX: From the extrated qla package. just run
$./extras/build.sh install

Troubleshoot more with commands - lsmod, insmod...

Monday, 8 March 2010

fsck.ext3: Filesystem has unsupported feature(s)

Message:

fsck.ext3: Filesystem has unsupported feature(s)
e2fsck: Get a newer version of e2fsck!

Options:
Use different OS version.
In my case, I used the same version OS CD to avoid these messages.

Ex: For suse, use suse disck....

Friday, 15 January 2010

MySQL Commands

1. The current values of the global and client-specific time zones can be retrieved like this:

mysql> SELECT @@global.time_zone, @@session.time_zone;

Solaris Netowk Configuration/Network Failover Switch

Network Configuration Overview


2 - Modes

1. Local Files Mode - Config is defined statically via key files

2. Network Client Mode - DHCP is used to auto-config interface(s)


Check the network interfaces on the server:

anyunix# ifconfig -a

bge0: flags=1000843 mtu 1500 index 2

inet 192.168.1.50 netmask fffffff0 broadcast 192.168.1.255

ether 0:3:ba:a5:f9:43

bge1: flags=1000842 mtu 1500 index 3

inet 0.0.0.0 netmask 0

ether 0:3:ba:a5:f9:44

Note that , here the network interface is bgeX, in some machines, the network interface may be ceX .

In case, if there is only one network interface is invisible, issue the following command to enable all available network interfaces:

anyunix# ifconfig -a plumb

(or)

To enable a particular network interface , ifconfig plumb

Example : ifconfig bge1 plumb

To configure the bge1, follow the instructions below:

anyunix# ifconfig bge0 down

anyunix# ifconfig bge1 192.168.1.100 up ; Verify the IP

anyunix# dladm show-dev

LINK CLASS MTU STATE OVER

bge1 phys 1500 up --

4. anyunix# ifconfig bge1

bge1: flags=1000843 mtu 1500 index 3

inet 192.168.1.100 netmask ffffff00 broadcast 192.168.1.255 ether 0:3:ba:a5:f9:44

5. anyunix# cd /etc

anyunix# echo "192.168.1.100" > hostname.bge1 && echo $?

or

anyunix# echo "anyunix" > hostname.bge1 && echo $?

Note : 1.Currently hostname.bge0 contains its hostname “anyunix”.

2.Rename hostname.bge0 as hostname.bge0.bak

6. Restart the network service or reboot the server :

anyunix# svcadm restart network/physical


Reference Notes:

Default Gateway File- /etc/defaultrouter

Hosts database - /etc/hosts or /etc/inet/hosts

Netmask - /etc/inet/netmasks

Nodename - /etc/nodename

Troubleshooting - Solaris server is slow

1. Check if any specific process taking the maximum
CPU/Load using the top command
2. Check the CPU utilization processes using
#prstat -s cpu -n 5 ;; Use pkill/kill command to end the process
if it is not so important/required
3. In case the process is a zombie , use preap -F
4. Check, CPU/Memory(swap)/Disk
5. dmesg for any sytem-level issues



SAN Related

To display the LUN devices:

# spmgr display

Simple Linux Commands

opensuse11:~ # mount -o loop /software/opensuse.iso /mnt

or

opensuse11:~ # mount -t iso9660 -o loop /software/opensuse.iso /mnt

killall -SIGHUP [httpd-prefork]

Simple Unix Commands

Solaris Disk Related

1. After adding/inserting the drive,

run devfsadm will detect the newly added drives.


Solaris General Commands

1. Displays boot disk

$ prtconf -vp | grep bootpath

2. Displays all services

$ svcs -a

3. To find hardware related issues

iostat -Enx | grep -i error



Enabling SSH on vmware ESXi

a. Enabling SSH on vmware ESX 3i

1. At the console, press ALT+F1
2. Nothing will show on the screen,
still type as unsupported
3. Provide root password ; terminal shows up
4. Open the file /etc/inetd.conf using vi editor.
( vi /etc/inetd.conf )
5. Uncomment the line which consists of SSH settings and save it!
6. Type ps | grep inetd on the console
7. Give the command # kill -s HUP

a. Enabling SSH on vmware ESX 3.5i Update 2/3

1. At the console, press ALT+F1
2. Nothing will show on the screen,
still type as unsupported
3. Provide root password ; terminal shows up
4. Open the file /etc/inetd.conf using vi editor.
# vi /etc/inetd.conf
5. Uncomment the line which consists of SSH settings and save it!
6. Run the following:
# /sbin/services.sh restart or reboot the server.