You are on page 1of 8

/usr/sbin/groupadd -g 501 oinstall

/usr/sbin/groupadd -g 502 dba


/usr/sbin/groupadd -g 504 asmadmin
/usr/sbin/groupadd -g 506 asmdba
/usr/sbin/groupadd -g 507 asmoper
/usr/sbin/useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper grid
/usr/sbin/useradd -u 502 -g oinstall -G dba,asmdba oracle
mkdir -p /u01/app/oraInventory
chown -R grid:oinstall /u01/app/oraInventory
chmod -R 775 /u01/app/oraInventory
mkdir -p /u01/11.2.0/grid
chown -R grid:oinstall /u01/11.2.0/grid
chmod -R 775 /u01/11.2.0/grid
mkdir -p /u01/app/oracle
mkdir /u01/app/oracle/cfgtoollogs
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle
mkdir -p /u01/app/oracle/product/11.2.0/db
chown -R oracle:oinstall /u01/app/oracle/product/11.2.0/db
chmod -R 775 /u01/app/oracle/product/11.2.0/db
mkdir -p /u01/app/oracle/product/11.2.0/odb
chown -R oracle:oinstall /u01/app/oracle/product/11.2.0/odb
chmod -R 775 /u01/app/oracle/product/11.2.0/odb
mkdir -p /u01/app/oracle/product/11.2.0/oradb
chown -R oracle:oinstall /u01/app/oracle/product/11.2.0/oradb
chmod -R 775 /u01/app/oracle/product/11.2.0/oradb
mkdir -p /etc/oracle/cell/network-config
chown oracle:dba /etc/oracle/cell/network-config
chmod ug+wx /etc/oracle/cell/network-config
mkdir -p /u01/11.2.0/crs
chown -R grid:oinstall /u01/11.2.0/crs
chmod -R 775 /u01/11.2.0/crs
mkdir -p /u01/11.2.0/grd
chown -R grid:oinstall /u01/11.2.0/grd
chmod -R 775 /u01/11.2.0/grd

./opatch napply /home/grid/9413827/ -local -oh /u01/11.2.0/grid/ -id 9413827

CellCLI> list griddisk attributes name,celldisk,size


DATA_CD_C1DISK01_rac1cell CD_C1DISK01_rac1cell 7G
DATA_CD_C1DISK02_rac1cell CD_C1DISK02_rac1cell 7G
DATA_CD_C1DISK03_rac1cell CD_C1DISK03_rac1cell 7G
DATA_CD_C1DISK04_rac1cell CD_C1DISK04_rac1cell 7G
DATA_CD_C1DISK05_rac1cell CD_C1DISK05_rac1cell 7G
DATA_CD_C1DISK06_rac1cell CD_C1DISK06_rac1cell 7G
DBFS_CD_C1DISK01_rac1cell CD_C1DISK01_rac1cell 2.953125G
DBFS_CD_C1DISK02_rac1cell CD_C1DISK02_rac1cell 2.953125G
DBFS_CD_C1DISK03_rac1cell CD_C1DISK03_rac1cell 2.953125G
DBFS_CD_C1DISK04_rac1cell CD_C1DISK04_rac1cell 2.953125G
DBFS_CD_C1DISK05_rac1cell CD_C1DISK05_rac1cell 2.953125G
DBFS_CD_C1DISK06_rac1cell CD_C1DISK06_rac1cell 2.953125G
RECO_CD_C1DISK01_rac1cell CD_C1DISK01_rac1cell 4G
RECO_CD_C1DISK02_rac1cell CD_C1DISK02_rac1cell 4G
RECO_CD_C1DISK03_rac1cell CD_C1DISK03_rac1cell 4G
RECO_CD_C1DISK04_rac1cell CD_C1DISK04_rac1cell 4G
RECO_CD_C1DISK05_rac1cell CD_C1DISK05_rac1cell 4G
RECO_CD_C1DISK06_rac1cell CD_C1DISK06_rac1cell 4G
drop griddisk ALL prefix=DATA
drop griddisk ALL prefix=RECO
drop griddisk ALL prefix=DBFS
CREATE GRIDDISK DATA_CD_C1DISK01_rac1cell CELLDISK=CD_C1DISK01_rac1cell, SIZE=6G
CREATE GRIDDISK DATA_CD_C1DISK02_rac1cell CELLDISK=CD_C1DISK02_rac1cell, SIZE=6G
CREATE GRIDDISK DATA_CD_C1DISK03_rac1cell CELLDISK=CD_C1DISK03_rac1cell, SIZE=6G
CREATE GRIDDISK DATA_CD_C1DISK04_rac1cell CELLDISK=CD_C1DISK04_rac1cell, SIZE=6G
CREATE GRIDDISK DATA_CD_C1DISK05_rac1cell CELLDISK=CD_C1DISK05_rac1cell, SIZE=6G
CREATE GRIDDISK DATA_CD_C1DISK06_rac1cell CELLDISK=CD_C1DISK06_rac1cell, SIZE=6G
CREATE GRIDDISK RECO_CD_C1DISK01_rac1cell CELLDISK=CD_C1DISK01_rac1cell, SIZE=5G
CREATE GRIDDISK RECO_CD_C1DISK02_rac1cell CELLDISK=CD_C1DISK02_rac1cell, SIZE=5G
CREATE GRIDDISK RECO_CD_C1DISK03_rac1cell CELLDISK=CD_C1DISK03_rac1cell, SIZE=5G
CREATE GRIDDISK RECO_CD_C1DISK04_rac1cell CELLDISK=CD_C1DISK04_rac1cell, SIZE=5G
CREATE GRIDDISK RECO_CD_C1DISK05_rac1cell CELLDISK=CD_C1DISK05_rac1cell, SIZE=5G
CREATE GRIDDISK RECO_CD_C1DISK06_rac1cell CELLDISK=CD_C1DISK06_rac1cell, SIZE=5G
CREATE GRIDDISK DBFS_CD_C1DISK01_rac1cell CELLDISK=CD_C1DISK01_rac1cell
CREATE GRIDDISK DBFS_CD_C1DISK02_rac1cell CELLDISK=CD_C1DISK02_rac1cell
CREATE GRIDDISK DBFS_CD_C1DISK03_rac1cell CELLDISK=CD_C1DISK03_rac1cell
CREATE GRIDDISK DBFS_CD_C1DISK04_rac1cell CELLDISK=CD_C1DISK04_rac1cell
CREATE GRIDDISK DBFS_CD_C1DISK05_rac1cell CELLDISK=CD_C1DISK05_rac1cell
CREATE GRIDDISK DBFS_CD_C1DISK06_rac1cell CELLDISK=CD_C1DISK06_rac1cell

drop griddisk ALL prefix=DATA


drop griddisk ALL prefix=RECO
drop griddisk ALL prefix=DBFS
CREATE GRIDDISK DATA_CD_C1DISK01_rac1cell CELLDISK=CD_C1DISK01_rac1cell, SIZE=4G
CREATE GRIDDISK DATA_CD_C1DISK02_rac1cell CELLDISK=CD_C1DISK02_rac1cell, SIZE=4G
CREATE GRIDDISK DATA_CD_C1DISK03_rac1cell CELLDISK=CD_C1DISK03_rac1cell, SIZE=4G
CREATE GRIDDISK DATA_CD_C1DISK04_rac1cell CELLDISK=CD_C1DISK04_rac1cell, SIZE=4G
CREATE GRIDDISK DATA_CD_C1DISK05_rac1cell CELLDISK=CD_C1DISK05_rac1cell, SIZE=4G
CREATE GRIDDISK DATA_CD_C1DISK06_rac1cell CELLDISK=CD_C1DISK06_rac1cell, SIZE=4G
CREATE GRIDDISK RECO_CD_C1DISK01_rac1cell CELLDISK=CD_C1DISK01_rac1cell, SIZE=3G
CREATE GRIDDISK RECO_CD_C1DISK02_rac1cell CELLDISK=CD_C1DISK02_rac1cell, SIZE=3G
CREATE GRIDDISK RECO_CD_C1DISK03_rac1cell CELLDISK=CD_C1DISK03_rac1cell, SIZE=3G
CREATE GRIDDISK RECO_CD_C1DISK04_rac1cell CELLDISK=CD_C1DISK04_rac1cell, SIZE=3G
CREATE GRIDDISK RECO_CD_C1DISK05_rac1cell CELLDISK=CD_C1DISK05_rac1cell, SIZE=3G
CREATE GRIDDISK RECO_CD_C1DISK06_rac1cell CELLDISK=CD_C1DISK06_rac1cell, SIZE=3G
CREATE GRIDDISK DBFS_CD_C1DISK01_rac1cell CELLDISK=CD_C1DISK01_rac1cell
CREATE GRIDDISK DBFS_CD_C1DISK02_rac1cell CELLDISK=CD_C1DISK02_rac1cell
CREATE GRIDDISK DBFS_CD_C1DISK03_rac1cell CELLDISK=CD_C1DISK03_rac1cell
CREATE GRIDDISK DBFS_CD_C1DISK04_rac1cell CELLDISK=CD_C1DISK04_rac1cell
CREATE GRIDDISK DBFS_CD_C1DISK05_rac1cell CELLDISK=CD_C1DISK05_rac1cell
CREATE GRIDDISK DBFS_CD_C1DISK06_rac1cell CELLDISK=CD_C1DISK06_rac1cell

10.253.146.120 rac1cell
10.253.146.130 rac2cell
10.253.146.140 rac3cell
10.253.146.150 racnode1
10.253.146.160 racnode2
192.168.5.125 rac1cell-priv
192.168.5.135 rac2cell-priv
192.168.5.145 rac3cell-priv
192.168.5.155 racnode1-priv
192.168.5.165 racnode2-priv
10.253.146.125 rac1cell-vip
10.253.146.135 rac2cell-vip
10.253.146.145 rac3cell-vip
10.253.146.155 racnode1-vip
10.253.146.165 racnode2-vip
10.253.146.170 racnode-scan
10.253.146.150 racnode1-ib
10.253.146.160 racnode2-ib

Filesystem Size Used Avail Use% Mounted on


/dev/sda5 9.5G 2.9G 6.2G 32% /
/dev/sda9 26G 6.2G 18G 26% /u01
/dev/sda7 7.6G 1.1G 6.2G 14% /home
/dev/sda6 7.6G 689M 6.6G 10% /tmp
/dev/sda3 9.5G 151M 8.9G 2% /backup
/dev/sda2 9.5G 151M 8.9G 2% /disk
/dev/sda1 99M 18M 76M 20% /boot
tmpfs 2.3G 0 2.3G 0% /dev/shm
none 2.3G 104K 2.3G 1% /var/lib/xenstored
CellCLI> list griddisk attributes name,status,celldisk,size
DATA_CD_00_np1exda002cel01 active CD_00_np1exda002cel01 2208G
DATA_CD_01_np1exda002cel01 active CD_01_np1exda002cel01 2208G
DATA_CD_02_np1exda002cel01 active CD_02_np1exda002cel01 2208G
DATA_CD_03_np1exda002cel01 active CD_03_np1exda002cel01 2208G
DATA_CD_04_np1exda002cel01 active CD_04_np1exda002cel01 2208G
DATA_CD_05_np1exda002cel01 active CD_05_np1exda002cel01 2208G
DBFS_DG_CD_02_np1exda002cel01 active CD_02_np1exda002cel01 33.7968
75G
DBFS_DG_CD_03_np1exda002cel01 active CD_03_np1exda002cel01 33.7968
75G
DBFS_DG_CD_04_np1exda002cel01 active CD_04_np1exda002cel01 33.7968
75G
DBFS_DG_CD_05_np1exda002cel01 active CD_05_np1exda002cel01 33.7968
75G
RECO_CD_00_np1exda002cel01 active CD_00_np1exda002cel01 552.109
375G
RECO_CD_01_np1exda002cel01 active CD_01_np1exda002cel01 552.109
375G
RECO_CD_02_np1exda002cel01 active CD_02_np1exda002cel01 552.109
375G
RECO_CD_03_np1exda002cel01 active CD_03_np1exda002cel01 552.109
375G
RECO_CD_04_np1exda002cel01 active CD_04_np1exda002cel01 552.109
375G
RECO_CD_05_np1exda002cel01 active CD_05_np1exda002cel01 552.109
375G

CellCLI> list celldisk


CD_00_np1exda002cel01 normal
CD_01_np1exda002cel01 normal
CD_02_np1exda002cel01 normal
CD_03_np1exda002cel01 normal
CD_04_np1exda002cel01 normal
CD_05_np1exda002cel01 normal
FD_00_np1exda002cel01 normal
FD_01_np1exda002cel01 normal
FD_02_np1exda002cel01 normal
FD_03_np1exda002cel01 normal
FD_04_np1exda002cel01 normal
FD_05_np1exda002cel01 normal
FD_06_np1exda002cel01 normal
FD_07_np1exda002cel01 normal
CellCLI>
CellCLI> list celldisk attributes name,status,size
CD_00_np1exda002cel01 normal 2760.15625G
CD_01_np1exda002cel01 normal 2760.15625G
CD_02_np1exda002cel01 normal 2793.953125G
CD_03_np1exda002cel01 normal 2793.953125G
CD_04_np1exda002cel01 normal 2793.953125G
CD_05_np1exda002cel01 normal 2793.953125G
FD_00_np1exda002cel01 normal 93.125G
FD_01_np1exda002cel01 normal 93.125G
FD_02_np1exda002cel01 normal 93.125G
FD_03_np1exda002cel01 normal 93.125G
FD_04_np1exda002cel01 normal 93.125G
FD_05_np1exda002cel01 normal 93.125G
FD_06_np1exda002cel01 normal 93.125G
FD_07_np1exda002cel01 normal 93.125G
CellCLI>
[root@racnode1 etc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 23G 2.9G 19G 14% /
/dev/sda9 6.1G 143M 5.6G 3% /disk2
/dev/sda8 7.5G 146M 6.9G 3% /disk1
/dev/sda7 7.5G 1.3G 5.8G 19% /backup
/dev/sda6 12G 7.9G 2.8G 74% /u01
/dev/sda3 7.5G 146M 6.9G 3% /tmp
/dev/sda2 7.5G 5.1G 2.0G 73% /home
tmpfs 6.0G 154M 5.9G 3% /dev/shm
shmfs 6.0G 154M 5.9G 3% /dev/shm
none 1.3G 104K 1.3G 1% /var/lib/xenstored

To fix this problem on multi-lib machines (and change the default query
format), you can change your .rpmmacros (or create a .rpmmacros) in your
user home directory and add this line:
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}

DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
NETWORK=10.0.1.0
NETMASK=255.255.255.0
IPADDR=192.168.5.155
USERCTL=no
NAME=eth1

TYPE=Ethernet
BOOTPROTO=none
IPADDR=10.253.146.120
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=eth0
UUID=1014cd9c-e3fb-46a3-be3a-dac405924294
ONBOOT=yes
LAST_CONNECT=1469529951

TYPE=Ethernet
BOOTPROTO=none
IPADDR=10.253.146.120
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=eth0
UUID=52019834-4792-4211-8045-223410edd9c8

TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.5.125
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=eth1
UUID=60e1aacf-d8b0-4e8e-aa4b-6a6abbcc87c1
ONBOOT=yes
~
~
~
TYPE=Ethernet
BOOTPROTO=none
IPADDR=10.253.146.120
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=eth0
UUID=52019834-4792-4211-8045-223410edd9c8

ifconfig eth0 10.253.146.120 netmask 255.255.255.0

[root@rac1cell network-scripts]# cat ifcfg-eth0


DEVICE=eth0
BOOTPROTO=none
IPADDR=10.253.146.120
NAME=eth0
NETMASK=255.255.255.0
UUID=8c0b020f-6afe-46b8-af6e-dff887b47bd9
ONBOOT=yes
[root@rac1cell network-scripts]# cat ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
IPADDR=192.168.5.125
NAME=eth1
NETMASK=255.255.255.0
UUID=b9613e70-ea9d-41f0-8b13-e735afc82fa6
ONBOOT=yes
[root@rac1cell network-scripts]#

# /etc/init.d/iptables save
# /etc/init.d/iptables stop

Turn off firewall on boot:


# chkconfig iptables off

./sshUserSetup.sh -user grid -hosts "racnode1 racnode1" -noPromptPassphrase

SSH user Equivalency configuration (grid and oracle):

On All the Cluster Nodes:

su - oracle
mkdir ~/.ssh
chmod 700 ~/.ssh

Generate the RSA and DSA keys:

/usr/bin/ssh-keygen -t rsa
/usr/bin/ssh-keygen -t dsa

On node1:

touch ~/.ssh/authorized_keys
cd ~/.ssh

(a) Add these Keys to the Authorized_keys file.

cat id_rsa.pub >> authorized_keys


cat id_dsa.pub >> authorized_keys
(b) Send this file to node2.

scp authorized_keys node2:.ssh/

On node2:

(a) Add these Keys to the Authorized_keys file.

cd ~/.ssh
cat id_rsa.pub >> authorized_keys
cat id_dsa.pub >> authorized_keys

(b) Send this file to node3.

scp authorized_keys node3:.ssh/


On node3:

(a) Add these Keys to the Authorized_keys file.

cd ~/.ssh
cat id_rsa.pub >> authorized_keys
cat id_dsa.pub >> authorized_keys

(b) Send this file to node1 and node2.

scp authorized_keys node1:.ssh/


scp authorized_keys node2:.ssh/

On All the Nodes:


chmod 600 ~/.ssh/authorized_keys

ssh node1 date


ssh node2 date
ssh node3 date
ssh node1.hingu.net date
ssh node2.hingu.net date
ssh node3.hingu.net date
ssh node1-prv date
ssh node2-prv date
ssh node3-prv date

Entered 'yes' and continued when prompted

Repeat the Above process for user grid:


vi /etc/udev/rules.d/70-persistent-net.rules
rpm -e vsftpd-2.2.2-11.el6_4.1.i686 --nodeps

m102 mangodb for dba's


m202
m301 mango db security
m201 mango db performance
m101p mango db for developers.
https://www.mongodb.com/

http://www.celt-ou.com/

You might also like