分类: AIX
2013-06-19 22:59:39
1. ramdisk创建步骤:
mkramdisk 512M
ls -l|grep ramdisk
mkfs -V jfs /dev/ramdisk0
mkdir /ramdisk
mount -V jfs -o nointegrity /dev/ramdisk0 /ramdisk
mount
df -k
2.创建ramdisk内所有region log的目录
譬如log_YYZJ,注意倘若启动还是有问题,检查下目录的权限是否cics:cics
/etc/rc.nfs
## 参考如下开机运行脚本,配置ramdisk
>>>>>>more /etc/rc.nfs
mkramdisk 512M
echo Y|mkfs -V jfs /dev/ramdisk0
mkdir -p /ramdisk
mount -V jfs -o nointegrity /dev/ramdisk0 /ramdisk
sleep 12
cd /ramdisk
mkdir $(lssrc -a|grep cics|grep "cics\."|awk '{print $1}'|awk -F "." '{print "log"$2}")
chowm cics:cics log*
mkdir mesg
export ORACLE_HOME=$(su - hwcrm -c "echo "$ORACLE_HOME"")
#mv $ORACLE_HOME/rdbms/mesg $ORACLE_HOME/rdrdbms/mesg_bak
#chown -R oracle.oinstall $ORACLE_HOME/rdbms/mesg_bak
cp -Rp $oracle_home/rdbms/mesg_bak/* mesg/.
ln -sf /ramdisk/mesg $ORACLE_HOME/rdbms/mesg
cd /var/cics_regions
for REGION in $(lssrc -a|grep cics|grep "cics\."|awk '{print $1}'|awk -F "." '{print $2}')
do
#mv /var/cics_regions/$REGION/log /var/cics_regions/$REGION/log_bak
ln -sf /ramdisk/log_$REGION /var/cics_regions/$REGION/log
done
chown -R cics.cics /var/cics_regions/*/log
######RamDisk CachceFile##########
mkdir -p /ramdisk/cachefile
chown cics:cics /ramdisk/cachefile
chmod 2755 /ramdisk/cachefile
<<<<<<<<<<<