oracle 10g RAC linux vmware workstation FREENAS共享存储 - 图(3)

2019-01-26 19:32

[ OK ] iSCSI daemon: [ OK ] [ OK ]

Setting up iSCSI targets: iscsiadm: No records found! [ OK ]

[root@rac1 ~]# iscsiadm -m discovery -t sendtargets -p 192.168.10.253 192.168.10.253:3260,1 iqn.2007-09.jp.ne.peach.istgt:disk0

[root@rac1 ~]# iscsiadm -m node -T iqn.2007-09.jp.ne.peach.istgt:disk0 -p 192.168.10.253 -l Logging

in

to

[iface:

default,

target:

iqn.2007-09.jp.ne.peach.istgt:disk0,

portal:

192.168.10.253,3260]

Login to [iface: default, target: iqn.2007-09.jp.ne.peach.istgt:disk0, portal: 192.168.10.253,3260]: successful

使用fdisk -l查看共享存储连接情况,两台机器均已连接 [root@rac1 ~]# fdisk -l

Disk /dev/hda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System /dev/hda1 * 1 13 104391 83 Linux /dev/hda2 14 778 6144862+ 83 Linux

/dev/hda3 779 816 305235 82 Linux swap / Solaris /dev/hda4 817 2610 14410305 5 Extended /dev/hda5 817 2610 14410273+ 83 Linux Disk /dev/sda: 42.9 GB, 42949410816 bytes 64 heads, 32 sectors/track, 40959 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes 查看rac节点 [root@rac2 ~]# fdisk -l

Disk /dev/hda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System /dev/hda1 * 1 13 104391 83 Linux /dev/hda2 14 778 6144862+ 83 Linux

/dev/hda3 779 816 305235 82 Linux swap / Solaris /dev/hda4 817 2610 14410305 5 Extended /dev/hda5 817 2610 14410273+ 83 Linux Disk /dev/sda: 42.9 GB, 42949410816 bytes 64 heads, 32 sectors/track, 40959 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes

11

Disk /dev/sda doesn't contain a valid partition table 重启iscsi服务,查看存储挂载情况 [root@rac1 ~]# /etc/init.d/iscsi restart

Logging out of session [sid: 1, target: iqn.2007-09.jp.ne.peach.istgt:disk0, portal: 192.168.10.253,3260]

Logout of [sid: 1, target: iqn.2007-09.jp.ne.peach.istgt:disk0, portal: 192.168.10.253,3260]: successful

Stopping iSCSI daemon: iscsid dead but pid file exists [ OK ] iSCSI daemon: [ OK ] [ OK ]

Setting up iSCSI targets: Logging in to [iface: default, target: iqn.2007-09.jp.ne.peach.istgt:disk0, portal: 192.168.10.253,3260]

Login to [iface: default, target: iqn.2007-09.jp.ne.peach.istgt:disk0, portal: 192.168.10.253,3260]: successful [ OK ]

至此共享存储配置完成;

共享存储划分分区,因为存储是做的raid5,存储容量大约在40G左右,所以划分三个主分区,作为ASM磁盘组使用,另外划分若干扩展分区,使用作为安装OCR和spfile;这里只需要在一个节点上做就可以了,因为存储是共享的。 [root@rac1 ~]# fdisk /dev/sda

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.

The number of cylinders for this disk is set to 40959. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK)

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n Command action e extended

p primary partition (1-4) p

Partition number (1-4): 1

12

First cylinder (1-40959, default 1): Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-40959, default 40959): +10000m

Command (m for help): n Command action e extended

p primary partition (1-4) p

Partition number (1-4): 2

First cylinder (9539-40959, default 9539): Using default value 9539

Last cylinder or +size or +sizeM or +sizeK (9539-40959, default 40959): +10000m

Command (m for help): n Command action e extended

p primary partition (1-4) p

Partition number (1-4): 3

First cylinder (19077-40959, default 19077): Using default value 19077

Last cylinder or +size or +sizeM or +sizeK (19077-40959, default 40959): +10000m

Command (m for help): n Command action e extended

p primary partition (1-4) e

Selected partition 4

First cylinder (28615-40959, default 28615): Using default value 28615

Last cylinder or +size or +sizeM or +sizeK (28615-40959, default 40959): +12000m

Command (m for help): n

First cylinder (28615-40059, default 28615): Using default value 28615

Last cylinder or +size or +sizeM or +sizeK (28615-40059, default 40059): +1024m

13

Command (m for help): n

First cylinder (29593-40059, default 29593): Using default value 29593

Last cylinder or +size or +sizeM or +sizeK (29593-40059, default 40059): +1024m

Command (m for help): n

First cylinder (30571-40059, default 30571): Using default value 30571

Last cylinder or +size or +sizeM or +sizeK (30571-40059, default 40059): +1024m

Command (m for help): n

First cylinder (31549-40059, default 31549): Using default value 31549

Last cylinder or +size or +sizeM or +sizeK (31549-40059, default 40059): +4000m

Command (m for help): n

First cylinder (35365-40059, default 35365): Using default value 35365

Last cylinder or +size or +sizeM or +sizeK (35365-40059, default 40059): +4000m

Command (m for help): wq The partition table has been altered!

Calling ioctl() to re-read partition table. Syncing disks.

分区划分完成后,检查分区结果,两个节点分别做检查。 [root@rac1 ~]# fdisk -l

Disk /dev/hda: 22.5 GB, 22548578304 bytes 255 heads, 63 sectors/track, 2741 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System /dev/hda1 * 1 25 200781 83 Linux

/dev/hda2 26 286 2096482+ 82 Linux swap / Solaris /dev/hda3 287 2741 19719787+ 83 Linux

Disk /dev/sda: 42.9 GB, 42949410816 bytes 64 heads, 32 sectors/track, 40959 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes

14

Device Boot Start End Blocks Id System /dev/sda1 1 9538 9766896 83 Linux /dev/sda2 9539 19076 9766912 83 Linux /dev/sda3 19077 28614 9766912 83 Linux /dev/sda4 28615 40059 11719680 5 Extended /dev/sda5 28615 29592 1001456 83 Linux /dev/sda6 29593 30570 1001456 83 Linux /dev/sda7 30571 31548 1001456 83 Linux /dev/sda8 31549 35364 3907568 83 Linux /dev/sda9 35365 39180 3907568 83 Linux [root@rac2 ~]# fdisk -l

Disk /dev/hda: 22.5 GB, 22548578304 bytes 255 heads, 63 sectors/track, 2741 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System /dev/hda1 * 1 25 200781 83 Linux

/dev/hda2 26 286 2096482+ 82 Linux swap / Solaris /dev/hda3 287 2741 19719787+ 83 Linux Disk /dev/sda: 42.9 GB, 42949410816 bytes 64 heads, 32 sectors/track, 40959 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System /dev/sda1 1 9538 9766896 83 Linux /dev/sda2 9539 19076 9766912 83 Linux /dev/sda3 19077 28614 9766912 83 Linux /dev/sda4 28615 40059 11719680 5 Extended /dev/sda5 28615 29592 1001456 83 Linux /dev/sda6 29593 30570 1001456 83 Linux /dev/sda7 30571 31548 1001456 83 Linux /dev/sda8 31549 35364 3907568 83 Linux /dev/sda9 35365 39180 3907568 83 Linux

5、映射裸设备

映射裸设备,分别在两个节点上配置,在这里映射的是扩展分区,而不是主分区,主分区是用来做ASM磁盘组安装数据库的。 [root@rac1 ~]# vi /etc/sysconfig/rawdevices /dev/raw/raw1 /dev/sda5

15


oracle 10g RAC linux vmware workstation FREENAS共享存储 - 图(3).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:企业IT运维综合管理系统解决方案

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: