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.97trade_gj
172.21.3.97trade_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
阅读(846) | 评论(0) | 转发(0) |