Shared Storage Creation for Oracle 11g R2-RAC Installation:
Now Copy ClusterStorage Directory from Linux O/S CD on your storage Machine to the location /u01.
[root@paw-racstorage-dns ~]# cd /u01/ClusterStorage/
[root@paw-racstorage-dns ClusterStorage]# pwd
/u01/ClusterStorage
[root@paw-racstorage-dns ClusterStorage]# rpm -ivh perl-Config-General-2.40-1.el5.noarch.rpm
warning: perl-Config-General-2.40-1.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:perl-Config-General ########################################### [100%]
[root@paw-racstorage-dns ClusterStorage]# rpm -ivh scsi-target-utils-1.0.14-1.el5.x86_64.rpm
warning: scsi-target-utils-1.0.14-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:scsi-target-utils ########################################### [100%]
[root@paw-racstorage-dns ClusterStorage]# cd /u02
[root@paw-racstorage-dns u02]# mkdir disks
[root@paw-racstorage-dns u02]# chmod 777 disks/
[root@paw-racstorage-dns u02]# for i in 1 to 1 2 3 4 5 6 7 8 9 10; do dd if=/dev/zero of=/u02/disks/disk$i.dat bs=1M count=2048; done
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 2.51422 seconds, 854 MB/s
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 2.55864 seconds, 839 MB/s
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 2.82151 seconds, 761 MB/s
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 2.85926 seconds, 751 MB/s
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 2.92506 seconds, 734 MB/s
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 3.25308 seconds, 660 MB/s
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 2.88697 seconds, 744 MB/s
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 3.47474 seconds, 618 MB/s
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 3.15013 seconds, 682 MB/s
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 4.00997 seconds, 536 MB/s
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 3.58843 seconds, 598 MB/s
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 3.19352 seconds, 672 MB/s
[root@paw-racstorage-dns u02]# chkconfig –level 345 tgtd on
[root@paw-racstorage-dns u02]# vi /etc/rc.d/rc.local
# Create a target
tgtadm --lld iscsi --op new --mode target --tid 1 -T pawanm-san
# Create LUNs within the target
for i in 1 2 3 4 5 6 7 8 9 10
do
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun $i -b /u02/disks/disk$i.dat
done
# Expose target to all
tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
[root@paw-racstorage-dns ~]# init 6
[root@paw-racstorage-dns ~]# tgtadm –lld iscsi –op show –mode target
Target 1: pawanm-san
System information:
Driver: iscsi
State: ready
I_T nexus information:
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00010000
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Readonly: No
Backing store type: null
Backing store path: None
Backing store flags:
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11
Size: 2147 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /u01/disks/disk1.dat
Backing store flags:
LUN: 2
Type: disk
SCSI ID: IET 00010002
SCSI SN: beaf12
Size: 2147 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /u01/disks/disk2.dat
Backing store flags:
LUN: 3
Type: disk
SCSI ID: IET 00010003
SCSI SN: beaf13
Size: 2147 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /u01/disks/disk3.dat
Backing store flags:
LUN: 4
Type: disk
SCSI ID: IET 00010004
SCSI SN: beaf14
Size: 2147 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /u01/disks/disk4.dat
Backing store flags:
LUN: 5
Type: disk
SCSI ID: IET 00010005
SCSI SN: beaf15
Size: 2147 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /u01/disks/disk5.dat
Backing store flags:
LUN: 6
Type: disk
SCSI ID: IET 00010006
SCSI SN: beaf16
Size: 2147 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /u01/disks/disk6.dat
Backing store flags:
LUN: 7
Type: disk
SCSI ID: IET 00010007
SCSI SN: beaf17
Size: 2147 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /u01/disks/disk7.dat
Backing store flags:
LUN: 8
Type: disk
SCSI ID: IET 00010008
SCSI SN: beaf18
Size: 2147 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /u01/disks/disk8.dat
Backing store flags:
LUN: 9
Type: disk
SCSI ID: IET 00010009
SCSI SN: beaf19
Size: 2147 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /u01/disks/disk9.dat
Backing store flags:
LUN: 10
Type: disk
SCSI ID: IET 0001000a
SCSI SN: beaf110
Size: 2147 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /u01/disks/disk10.dat
Backing store flags:
Account information:
ACL information:
ALL
[root@paw-racnode1 ~]# service iscsi status
iscsid (pid 3382) is running...
[root@paw-racnode2 ~]# service iscsi status
iscsid (pid 3386) is running...
[root@paw-racnode3 ~]# service iscsi status
iscsid (pid 3386) is running...
[root@paw-racnode1 ~]# iscsiadm -m discovery -t sendtargets -p 192.168.75.10
192.168.75.10:3260,1 pawanm-san
[root@paw-racnode2 ~]# iscsiadm -m discovery -t sendtargets -p 192.168.75.10
192.168.75.10:3260,1 pawanm-san
[root@paw-racnode3 ~]# iscsiadm -m discovery -t sendtargets -p 192.168.75.10
192.168.75.10:3260,1 pawanm-san
[root@paw-racnode1 ~]# init 6 ——-> Reboot the paw-racnode1 Machine
[root@paw-racnode2 ~]# init 6 ——-> Reboot the paw-racnode2 Machine
[root@paw-racnode3 ~]# init 6 ——-> Reboot the paw-racnode3 Machine
[root@paw-racnode1 ~]# fdisk -l
Disk /dev/sda: 53.6 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1318 10482412+ 83 Linux
/dev/sda3 1319 1840 4192965 83 Linux
/dev/sda4 1841 6527 37648327+ 5 Extended
/dev/sda5 1841 5952 33029608+ 83 Linux
/dev/sda6 5953 6527 4618656 82 Linux swap / Solaris
Disk /dev/sdb: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sdd: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdd doesn't contain a valid partition table
Disk /dev/sde: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sde doesn't contain a valid partition table
Disk /dev/sdf: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdf doesn't contain a valid partition table
Disk /dev/sdg: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdg doesn't contain a valid partition table
Disk /dev/sdh: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdh doesn't contain a valid partition table
Disk /dev/sdi: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdi doesn't contain a valid partition table
Disk /dev/sdj: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdj doesn't contain a valid partition table
Disk /dev/sdk: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdk doesn't contain a valid partition table
[root@paw-racnode2 ~]# fdisk -l
Disk /dev/sda: 53.6 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1318 10482412+ 83 Linux
/dev/sda3 1319 1840 4192965 83 Linux
/dev/sda4 1841 6527 37648327+ 5 Extended
/dev/sda5 1841 5952 33029608+ 83 Linux
/dev/sda6 5953 6527 4618656 82 Linux swap / Solaris
Disk /dev/sdb: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sdd: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdd doesn't contain a valid partition table
Disk /dev/sde: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sde doesn't contain a valid partition table
Disk /dev/sdf: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdf doesn't contain a valid partition table
Disk /dev/sdg: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdg doesn't contain a valid partition table
Disk /dev/sdh: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdh doesn't contain a valid partition table
Disk /dev/sdi: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdi doesn't contain a valid partition table
Disk /dev/sdj: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdj doesn't contain a valid partition table
Disk /dev/sdk: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdk doesn't contain a valid partition table
[root@paw-racnode3 ~]# fdisk -l
Disk /dev/sda: 53.6 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1318 10482412+ 83 Linux
/dev/sda3 1319 1840 4192965 83 Linux
/dev/sda4 1841 6527 37648327+ 5 Extended
/dev/sda5 1841 5952 33029608+ 83 Linux
/dev/sda6 5953 6527 4618656 82 Linux swap / Solaris
Disk /dev/sdb: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sdd: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdd doesn't contain a valid partition table
Disk /dev/sde: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sde doesn't contain a valid partition table
Disk /dev/sdf: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdf doesn't contain a valid partition table
Disk /dev/sdg: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdg doesn't contain a valid partition table
Disk /dev/sdh: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdh doesn't contain a valid partition table
Disk /dev/sdi: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdi doesn't contain a valid partition table
Disk /dev/sdj: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdj doesn't contain a valid partition table
Disk /dev/sdk: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Disk /dev/sdk doesn't contain a valid partition table
[root@paw-racnode1 ~]# chkconfig –level 345 iscsi on
[root@paw-racnode2 ~]# chkconfig –level 345 iscsi on
[root@paw-racnode3 ~]# chkconfig –level 345 iscsi on
Thank you for reading… This is Airy…..Enjoy Learning 🙂