Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2669810
  • 博文数量: 570
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 6259
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(570)

文章存档

2022年(63)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

分类: Oracle

2020-11-17 13:20:09


cd "C:\Program Files (x86)\VMware\VMware Workstation\"
mkdir c:\vm\sharedisk\tk
vmware-vdiskmanager.exe -c -s 1g -a lsilogic -t 2 "c:\vm\sharedisk\tk\grid10.vmdk"
vmware-vdiskmanager.exe -c -s 1g -a lsilogic -t 2 "c:\vm\sharedisk\tk\grid20.vmdk"
vmware-vdiskmanager.exe -c -s 1g -a lsilogic -t 2 "c:\vm\sharedisk\tk\grid30.vmdk"
vmware-vdiskmanager.exe -c -s 3g -a lsilogic -t 2 "c:\vm\sharedisk\tk\data1.vmdk" 
vmware-vdiskmanager.exe -c -s 3g -a lsilogic -t 2 "c:\vm\sharedisk\tk\data2.vmdk" 




#share


scsi1.present = "TRUE"
scsi1.virtualDev = "lsilogic"
scsil.sharedBus = "VIRTUAL"
scsi1:0.present = "TRUE"
scsi1:0.mode = "independent-persistent"
scsi1:0.fileName = "C:\vm\sharedisk\tk\grid1.vmdk"
scsi1:0.deviceType = "disk"
scsi1:0.redo = ""
scsi1:1.present = "TRUE"
scsi1:1.mode = "independent-persistent"
scsi1:1.fileName = "C:\vm\sharedisk\tk\grid2.vmdk"
scsi1:1.deviceType = "disk"
scsi1:1.redo = ""
scsi1:2.present = "TRUE"
scsi1:2.mode = "independent-persistent"
scsi1:2.fileName = "C:\vm\sharedisk\tk\grid3.vmdk"
scsi1:2.deviceType = "disk"
scsi1:2.redo = ""
scsi1:3.present = "TRUE"
scsi1:3.mode = "independent-persistent"
scsi1:3.fileName = "C:\vm\sharedisk\tk\data1.vmdk"
scsi1:3.deviceType = "disk"
scsi1:3.redo = ""
scsi1.pciSlotNumber = "37"
disk.locking = "false"


diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.DataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "4096"
diskLib.maxUnsyncedWrites = "0"


disk.EnableUUID="TRUE"




192.168.204.98       trade1
192.168.204.99       trade2
192.168.204.100      trade1vip
192.168.204.101      trade2vip
192.168.204.102      tradescan


192.168.101.98      trade1priv
192.168.101.99      trade2priv


192.168.204.97 trade_gj
172.21.3.97 trade_cp
192.168.204.51    GJTRADENBU


cat >> /etc/sysctl.conf < kernel.shmmax = 137438953472
kernel.shmall = 33554432
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
kernel.panic_on_oops = 1
kernel.randomize_va_space = 0
fs.file-max = 6815744
fs.aio-max-nr = 4194304
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.ipfrag_high_thresh = 16777216
net.ipv4.ipfrag_low_thresh = 15728640
net.ipv4.ipfrag_time = 60
vm.min_free_kbytes = 524288
vm.swappiness = 0
# vm.nr_hugepages = 43008
EOF


./sshUserSetup.sh -user grid -hosts "trade1 trade2" -advanced –noPromptPassphrase
./sshUserSetup.sh -user oracle -hosts " trade1 trade2" -advanced -noPromptPassphrase


rm -f /etc/udev/rules.d/99-oracle-asmdevices.rules
for i in   b;
do
echo "KERNEL==\"sd*\", ENV{DEVTYPE}==\"disk\", SUBSYSTEM==\"block\", PROGRAM==\"/usr/lib/udev/scsi_id -g -u -d \$devnode\", RESULT==\"`/usr/lib/udev/scsi_id -g -u /dev/sd$i`\", RUN+=\"/bin/sh -c 'mknod /dev/asmdisk$i b \$major \$minor; chown grid:asmadmin /dev/asmdisk$i; chmod 0660 /dev/asmdisk$i'\"" >> /etc/udev/rules.d/99-oracle-asmdevices.rules
done
cat /etc/udev/rules.d/99-oracle-asmdevices.rules


/sbin/udevadm control --reload-rules
/sbin/udevadm trigger --type=devices --action=change
sleep 2
ll /dev/asm*


while true; do clear; date; ps -ef|grep d.bin;  sleep 2; echo; done




/u01/app/11.2/grid/OPatch/opatch auto /tmp/28980134/28813878 -oh /u01/app/11.2/grid  -ocmrf /home/grid/ocm.rsp
/u01/app/oracle/product/11.2/db_1/OPatch/opatch auto /tmp/28980134/28813878 -oh /u01/app/oracle/product/11.2/db_1  -ocmrf /home/oracle/ocm.rsp
阅读(470) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~