Monday, July 26, 2010

Procedure to grow the veritas filesystem in solaris Environment

1. Once the LUN is added, we need to configure the new LUN

devfsadm –c disk (will configure the new LUN)
then label the disk by executing the command format, it will prompt to label the disk (enter yes)

2. Once the disk is configured we have to initialize the disk in veritas

vxdisksetup –i diskname
for eg. vxdisksetup –i c0t1234567888d94

3. Now add the disk to the diskgroup in veritas

vxdg –g dgname adddisk mediaaccessname=diskname
for eg. vxdg –g oradg adddisk ora001=c0t1234567888d94

4. To grow the filesystem

vxresize –g dgname volumename size mediaaccessname.
for eg. vxresize –g oradg oravol +100M ora001

Questions and suggestions are welcome. Thanks

Saturday, July 24, 2010

To disable telnet/rexec services on Aix servers

1. Take a backup of /etc/inetd.conf(before editing the file better to to a backup)
cp -p /etc/inetd.conf /etc/inetd.conf_backup

2. Edit /etc/inetd.conf file and comment out telnet,rexec, services
vi /etc/inetd.conf
comment out (enter # ) the telnet, rexec services




3. Restart the inetd service
refresh -s inetd

Sendmail configuration

1. cp -p /etc/sendmail.cf /etc/sendmail.cf.backup
2. vi /etc/sendmail.cf
3. Search for #DSmailer:relayhostname
4. Add hostname
5. refresh -s sendmail
6. echo " hi " | mail -s " testmail" yourmailid@zzz.com