显示标签为“Admin”的博文。显示所有博文
显示标签为“Admin”的博文。显示所有博文

2010年9月15日

Hints about working with Xming

1. DO NOT use su to switch to another user and then use Xming, it will failed, like following(this is an example from putty). Directly login in with the id you want to work with Xming.

[root@ContentServer66 ~]# su - oracle
[oracle@ContentServer66 ~]$ xclock
Xlib: connection to "localhost:11.0" refused by server
Xlib: PuTTY X11 proxy: MIT-MAGIC-COOKIE-1 data did not match
Error: Can't open display: localhost:11.0

2. If you are using putty as I’m, you need to turn on X11 Forwarding and set X location to localhost, see following example:

image


Full Text

2010年4月28日

Increasing the number of open file descriptors – LINUX

Increasing the number of open file descriptors – LINUX, take 131072 as example.

1, increase this to 131072 for all users


vi /etc/security/limits.conf



* soft nofile 131072



* hard nofile 131072



2, ulimit –n 131072



3, You may have to modify ssh and login in pam.d. Because if not, you open a session using ssh, it will not take effect.



vi /etc/pam.d/sshd



Add



session required /lib/security/pam_limits.so



vi /etc/pam.d/login



Add



session required /lib/security/pam_limits.so



4, service sshd restart


Full Text

2010年4月21日

Replacing a failed drive in a Sun Server

Per our friend George Pagan we should be using the following procedure to replace failed/failing disks in Sun Servers:

Replacing failed sun disk

sudo vxdiskadm

Option 4 to remove the disk

Then from the OS

sudo cfgadm -f -y -c unconfigure controller::dsk/target

For example if c1t0d0 is the disk to be removed:

sudo cfgadm -f -y -c unconfigure c1::dsk/c1t0d0

This will turn on either an amber light on older machines or a blue light

on newer machines. Then it is safe to remove the drive.

After you insert the drive you run, for example:

sudo cfgadm -c configure c1::dsk/c1t0d0

Then do

devfsadm

vxdctl enable

And then option 5 in vxdiskadm to replace the disk.


Full Text

2010年2月10日

在AIX5.3上安装Websphere6.1文件系统为VXFS解决方案

    在AIX5.3上安装Websphere6.1,文件系统为vxfs,安装程序无法正确检查目的文件系统的大小,识别为0M,始终无法通过正确性检查,可以用下面的参数安装:

./install -OPT noPrereqChecks="true"


Full Text