The hardware watchdog mechanism can automatically reboot the system in case the system hangs. This can be done with or without first generating an automated crash dump file. As superuser, do one of the following:
•To reboot without generating an automated crash dump file, type:
# eeprom error-reset-recovery=boot
•To reboot and generate an automated crash dump file, type:
# eeprom error-reset-recovery=sync
Friday, November 12, 2010
Wednesday, November 10, 2010
Adding SWAP space in ZFS Root filesystem
If you want additional space
# zfs create -V 2G rpool/swap1
# swap -a /dev/zvol/dsk/rpool/swap1
# swap -l
If you want to delete old swap space and add new one
# swap -d /dev/zvol/dsk/rpool/swap
# swap -l (To verify old swap is deleted)
# zfs set volsize=4G rpool/swap
# swap -a /dev/zvol/dsk/rpool/swap
# swap -l
# zfs create -V 2G rpool/swap1
# swap -a /dev/zvol/dsk/rpool/swap1
# swap -l
If you want to delete old swap space and add new one
# swap -d /dev/zvol/dsk/rpool/swap
# swap -l (To verify old swap is deleted)
# zfs set volsize=4G rpool/swap
# swap -a /dev/zvol/dsk/rpool/swap
# swap -l
Tuesday, October 26, 2010
Upgrade firmware on one of the IOM in storage Array
-> We replaced IOM.A on the Storage Arrays and there is mismatch in IOM's
Name Model Current Baseline
Tray.86.IOM.A LCSM100_E 0196 0196
Tray.86.IOM.B LCSM100_E 0196 0196
Tray.87.IOM.A LCSM100_E 0166 0196
Tray.87.IOM.B LCSM100_E 0196 0196
Login to the server which Common Array Manager installed
execute csmservice command (usually located under fms/bin directory)
./csmservice -s
Enter array name
it will give options (Enter 5 which is download IOM firmware)
Enter path to IOM formware:/esm0196.esm
Available components for install (Select the IOM from the list )
Name Model Current Baseline
Tray.86.IOM.A LCSM100_E 0196 0196
Tray.86.IOM.B LCSM100_E 0196 0196
Tray.87.IOM.A LCSM100_E 0166 0196
Tray.87.IOM.B LCSM100_E 0196 0196
Login to the server which Common Array Manager installed
execute csmservice command (usually located under fms/bin directory)
./csmservice -s
Enter array name
it will give options (Enter 5 which is download IOM firmware)
Enter path to IOM formware:
Available components for install (Select the IOM from the list )
Wednesday, September 29, 2010
Error while luactivate
/usr/sbin/luactivate: /etc/lu/DelayUpdate/: cannot create
Workaround:
execute folloing:
# export BOOT_MENU_FILE="menu.lst"
Workaround:
execute folloing:
# export BOOT_MENU_FILE="menu.lst"
Wednesday, September 15, 2010
Changing hostname on Solaris
--> Change the name in /etc/nodename.
--> Change the name in /etc/hostname.xl0 (where xl0 is the name of your network interface)
--> Change the name in /etc/hosts.
--> Change the path in /etc/dumpadm.conf
--> Run the command: hostname new_hostname
--> Change the name in /etc/hostname.xl0 (where xl0 is the name of your network interface)
--> Change the name in /etc/hosts.
--> Change the path in /etc/dumpadm.conf
--> Run the command: hostname new_hostname
Tuesday, September 7, 2010
Configuring LDAP client in Linux
# authconfig-tui
enable following option in the fist screen
[x] use LDAP
enabloe following options in the screen screen
[x] use MD5 passwords
[x] use shadow passwords
[x] use LDAP Authentication
server: LDAP://ldapserver.com/
BaseDN: dc=com,dc=somthing........
save the configuration and reboot the system or restart the service.
enable following option in the fist screen
[x] use LDAP
enabloe following options in the screen screen
[x] use MD5 passwords
[x] use shadow passwords
[x] use LDAP Authentication
server: LDAP://ldapserver.com/
BaseDN: dc=com,dc=somthing........
save the configuration and reboot the system or restart the service.
Changing hostname in Linux
Change the name in /etc/hosts file
and also edit following file and change the hostname
vi/etc/sysconfig/network
» Look for HOSTNAME=xxxxxx
Reboot the system or service xinetd restart
and also edit following file and change the hostname
vi/etc/sysconfig/network
» Look for HOSTNAME=xxxxxx
Reboot the system or service xinetd restart
Thursday, September 2, 2010
Network debugging in Linux
$ dmesg|grep eth0
$ less /etc/sysconfig/network
$ less /etc/sysconfig/network-scripts/ifcfg-eth0
$ ifconfig eth0 down/up
$ netstat -rn
$ service network restart
$ ping -c4 somewebsitetotest.com
$ traceroute somewebsitetotest.com
$ less /etc/sysconfig/network
$ less /etc/sysconfig/network-scripts/ifcfg-eth0
$ ifconfig eth0 down/up
$ netstat -rn
$ service network restart
$ ping -c4 somewebsitetotest.com
$ traceroute somewebsitetotest.com
Wednesday, July 28, 2010
Requesting VeriSign Cert on Apache
Go to APACHE/bin Home directory
cd $APACHIE_HOME\bin
$ openssl genrsa -out server.key 1024
$ OpenSSL req -new -key server.key -out server.csr -config openssl_default.cnf
Enter values (as per the requirement)
Send server.csr contens to VerSign for Signed cert.
cd $APACHIE_HOME\bin
$ openssl genrsa -out server.key 1024
$ OpenSSL req -new -key server.key -out server.csr -config openssl_default.cnf
Enter values (as per the requirement)
Send server.csr contens to VerSign for Signed cert.
Thursday, July 22, 2010
Tuesday, July 13, 2010
Setup SCP between hosts
1) Make sure id is created/available on both hosts (For following example Server names are "Ahost" and "Bhost" and the user is "test").
2) Login to Server Ahost and execute following commands with the user test if .ssh directory is not available
--> ssh-keygen -t rsa
Select default values
--> cd .ssh
scp id_rsa.pub Bhost:~test/.ssh/authorized_keys
scp id_rsa.pub Ahost:/apps/sasavr/.ssh/authorized_keys
(Note: if .ssh directory is not available on destination servers, create this directory on Ahost and Bhost)
Login to Ahost and Bhost with test user
--> chmod 700 .ssh
--> cd .ssh
--> chmod 600 authorized_keys
After executing all commands, we can scp from Ahost to Bhost without password for test user.
2) Login to Server Ahost and execute following commands with the user test if .ssh directory is not available
--> ssh-keygen -t rsa
Select default values
--> cd .ssh
scp id_rsa.pub Bhost:~test/.ssh/authorized_keys
scp id_rsa.pub Ahost:/apps/sasavr/.ssh/authorized_keys
(Note: if .ssh directory is not available on destination servers, create this directory on Ahost and Bhost)
Login to Ahost and Bhost with test user
--> chmod 700 .ssh
--> cd .ssh
--> chmod 600 authorized_keys
After executing all commands, we can scp from Ahost to Bhost without password for test user.
Friday, July 9, 2010
Remove a weblogic from windows service
Paste following contents in new file, change variables according to the domain and execute it
@echo off
SETLOCAL
set WL_HOME=C:\bea\weblogic91
set PROD_NAME=BEA Products
set BAR_WL_HOME=C_bea_weblogic91
set SERVER_NAME=SERVER_NAME
set DOMAIN_NAME=DOMAIN_NAME
rem *** Uninstall the service
"%WL_HOME%\server\bin\beasvc" -remove -svcname:"beasvc %DOMAIN_NAME%_%SERVER_NAME%"
ENDLOCAL
@echo off
SETLOCAL
set WL_HOME=C:\bea\weblogic91
set PROD_NAME=BEA Products
set BAR_WL_HOME=C_bea_weblogic91
set SERVER_NAME=SERVER_NAME
set DOMAIN_NAME=DOMAIN_NAME
rem *** Uninstall the service
"%WL_HOME%\server\bin\beasvc" -remove -svcname:"beasvc %DOMAIN_NAME%_%SERVER_NAME%"
ENDLOCAL
Tuesday, June 29, 2010
NFS Setup on Solaris
NFS Setup on Solaris
NFS Server Setup
----------------
1) /etc/rc.d or /etc/init.d
/usr/sbin/portmap or rpc.portmap
2) /etc/dfs/dfstab
share -F nfs -o rw=nfsclient: /export/nfs
3) /etc/dfs/sharetab
/export/nfs - nfs rw=nfsclient
4) /etc/dfs/fstypes
nfs NFS Utilities
5) /etc/rmtab lists filesystems that are remotely mounted by clients.
6) mountd rpc.mountd
nfsd rpc.nfsd
7) /usr/sbin/share (and chomod a+rx)
#!/bin/sh
killall -HUP /usr/sbin/rpc.mountd
killall -HUP /usr/sbin/rpc.nfsd
echo re-exported file systems
(Run script after modifying /etc/exports)
8) rpcinfo -p (to check mountd and nfsd running)
NFS Client Setup
----------------
1) To make the system mount a nfs file system upon boot
/etc/vfstab
nfsserver:/export/nfs - /mnt/nfs nfs - yes -
2) /etc/mnttab lists filesystems which are currently mounted on
onto that client.
3) To mount:
NFS Server Setup
----------------
1) /etc/rc.d or /etc/init.d
/usr/sbin/portmap or rpc.portmap
2) /etc/dfs/dfstab
share -F nfs -o rw=nfsclient: /export/nfs
3) /etc/dfs/sharetab
/export/nfs - nfs rw=nfsclient
4) /etc/dfs/fstypes
nfs NFS Utilities
5) /etc/rmtab lists filesystems that are remotely mounted by clients.
6) mountd rpc.mountd
nfsd rpc.nfsd
7) /usr/sbin/share (and chomod a+rx)
#!/bin/sh
killall -HUP /usr/sbin/rpc.mountd
killall -HUP /usr/sbin/rpc.nfsd
echo re-exported file systems
(Run script after modifying /etc/exports)
8) rpcinfo -p (to check mountd and nfsd running)
NFS Client Setup
----------------
1) To make the system mount a nfs file system upon boot
/etc/vfstab
nfsserver:/export/nfs - /mnt/nfs nfs - yes -
2) /etc/mnttab lists filesystems which are currently mounted on
onto that client.
3) To mount:
Friday, June 25, 2010
ESX Server becomes disconnect and attempt to reconnect fail.
ESX Server becomes disconnect and attempt to reconnect fail.
One reason is the ESX services become hung.
Run the following to fix the issue:
service mgmt-vmware restart
service vmware-vpxa restart
If these don't correct the problem then run
service mgmt-vmware stop
service vmware-vpxa stop
ps -ef | grep hostd
kill -9
Further research required.
One reason is the ESX services become hung.
Run the following to fix the issue:
service mgmt-vmware restart
service vmware-vpxa restart
If these don't correct the problem then run
service mgmt-vmware stop
service vmware-vpxa stop
ps -ef | grep hostd
kill -9
Further research required.
Thursday, April 22, 2010
Friday, April 9, 2010
ulimit Error - ulimit: open files: cannot modify limit
-> Login to the server and check parameters by using plimit command
bash-3.00# plimit $$
25169: bash -l
resource current maximum
time(seconds) unlimited unlimited
file(blocks) unlimited unlimited
data(kbytes) unlimited unlimited
stack(kbytes) 8192 unlimited
coredump(blocks) unlimited unlimited
nofiles(descriptors) 1024 1024
vmemory(kbytes) unlimited unlimited
It means you can not change value more than 1024. You can change max value by using
bash-3.00# plimit -n 10000 $$
Now it is set to 10000
bash-3.00# plimit $$
25505: bash -l
resource current maximum
time(seconds) unlimited unlimited
file(blocks) unlimited unlimited
data(kbytes) unlimited unlimited
stack(kbytes) 8192 unlimited
coredump(blocks) unlimited unlimited
nofiles(descriptors) 10000 10000
vmemory(kbytes) unlimited unlimited
Now you can ulimit to set 10000
# ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) 10000
pipe size (512 bytes, -p) 10
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 29995
virtual memory (kbytes, -v) unlimited
bash-3.00# plimit $$
25169: bash -l
resource current maximum
time(seconds) unlimited unlimited
file(blocks) unlimited unlimited
data(kbytes) unlimited unlimited
stack(kbytes) 8192 unlimited
coredump(blocks) unlimited unlimited
nofiles(descriptors) 1024 1024
vmemory(kbytes) unlimited unlimited
It means you can not change value more than 1024. You can change max value by using
bash-3.00# plimit -n 10000 $$
Now it is set to 10000
bash-3.00# plimit $$
25505: bash -l
resource current maximum
time(seconds) unlimited unlimited
file(blocks) unlimited unlimited
data(kbytes) unlimited unlimited
stack(kbytes) 8192 unlimited
coredump(blocks) unlimited unlimited
nofiles(descriptors) 10000 10000
vmemory(kbytes) unlimited unlimited
Now you can ulimit to set 10000
# ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) 10000
pipe size (512 bytes, -p) 10
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 29995
virtual memory (kbytes, -v) unlimited
Tuesday, February 9, 2010
Friday, January 15, 2010
Clearing faults
2) #fmadm repair
# fmadm repair 03351534-e325-cf5d-81ae-e3fc8be83e5b
3) # cd /var/fm/fmd
# cd /var/fm/fmd && rm errlog fltlog ckpt/eft/* rsrc/*
(rm errlog fltlog ckpt/eft/* rsrc/*)
4) # fmadm reset cpumem-diagnosis
5) # fmadm reset cpumem-retire
6) # fmadm reset eft
7) # fmadm reset io-retire
# init 6
After these steps check to see if problem still exit.
# fmadm faulty
# fmadm repair 03351534-e325-cf5d-81ae-e3fc8be83e5b
3) # cd /var/fm/fmd
# cd /var/fm/fmd && rm errlog fltlog ckpt/eft/* rsrc/*
(rm errlog fltlog ckpt/eft/* rsrc/*)
4) # fmadm reset cpumem-diagnosis
5) # fmadm reset cpumem-retire
6) # fmadm reset eft
7) # fmadm reset io-retire
# init 6
After these steps check to see if problem still exit.
# fmadm faulty
Subscribe to:
Posts (Atom)
Welcome to the UNIX world