Lab4 yum install oracle-rdbms-server-11gR2-preinstall yum install oracleasm yum install oracleasm-support # oracleasm configure -i Configuring the Oracle ASM library driver. This will configure the on-boot properties of the Oracle ASM library driver. The following questions will determine whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets ('[]'). Hitting without typing an answer will keep that current value. Ctrl-C will abort. Default user to own the driver interface []: oracle Default group to own the driver interface []: oinstall Start Oracle ASM library driver on boot (y/n) [n]: y Scan for Oracle ASM disks on boot (y/n) [y]: Writing Oracle ASM library driver configuration: done # mkdir -p /u01/app/12.1.0/grid_1 mkdir -p /u01/app/oracle chown -R oracle:oinstall /u01 chown oracle:oinstall /u01/app/oracle chmod -R 775 /u01/ usermod -G dba,vboxsf oracle passwd oracle /etc/selinux/config SELINUX=disabled service ntpd stop chkconfig ntpd off mv /etc/ntp.conf /etc/ntp.conf.orig rm /var/run/ntpd.pid yum clean all add to /etc/hosts # Private 192.168.10.1 angryreaver0-priv.localdomain angryreaver0-priv 192.168.10.2 angryreaver1-priv.localdomain angryreaver1-priv # Public 192.168.56.71 angryreaver0.localdomain angryreaver0 192.168.56.72 angryreaver1.localdomain angryreaver1 # Virtual 192.168.56.81 angryreaver0-vip.localdomain angryreaver0-vip 192.168.56.82 angryreaver1-vip.localdomain angryreaver1-vip # SCAN 192.168.56.91 rac-scan.localdomain rac-scan 192.168.56.92 rac-scan.localdomain rac-scan 192.168.56.93 rac-scan.localdomain rac-scan cd /media/sf_oracle_sw su root cd /media/sf_oracle_sw/grid/rpm CVUQDISK_GRP=oinstall; export CVUQDISK_GRP rpm -Uvh cvuqdisk* on vm #2 /etc/sysconfig/network HOSTNAME=angryreaver1.localdomain # fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0xd724aa83. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-391, default 1): Using default value 1 Last cylinder, +cylinders or +size{K,M,G} (1-391, default 391): Using default value 391 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. # oracleasm createdisk DISK1 /dev/sdb1 oracleasm scandisks oracleasm listdisks На обоих виртуалках /etc/scsi_id.config options=-g /sbin/scsi_id -g -u -d /dev/sdb /etc/udev/rules.d/99-oracle-asmdevices.rules KERNEL=="sd?1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB2e8d82bb-f8b45a3c", NAME="asm-disk1", OWNER="oracle", GROUP="dba", MODE="0660" [oracle@angryreaver0 bin]$ pwd /u01/app/oracle/product/12.1.0/dbhome_1/bin [oracle@angryreaver0 bin]$ ./srvctl status asm ASM is running on angryreaver0,angryreaver1 [oracle@angryreaver0 bin]$ olsnodes -i angryreaver0 angryreaver0-vip.localdomain angryreaver1 angryreaver1-vip.localdomain [oracle@angryreaver0 bin]$ crsctl status resource -t