您的位置 电脑知识爱好者 >> 操作系统 >> Solaris9_x86+Apache2+Mysql

Solaris9_x86+Apache2+Mysql

电脑知识爱好者http://www.l9l8.com电脑知识爱好者2008-4-8 1:25:46
知识重点:Software packages needed: 1. GCC 3.2.3 compiled package for x86 platform: gcc-3.2.3-sol9-intel-local.gz 2. MySQL 3.23.55 source code package: mysql-3.23.55.tar.gz 3. Apache 2.0.44 ..
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
7 Move volumes from a disk
8 Enable access to (import) a disk group
9 Remove access to (deport) a disk group
10 Enable (online) a disk device
11 Disable (offline) a disk device
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
list List disk information


? Display help about menu
?? Display help about the menuing system
q Exit from menus

Select an operation to perform: 1
Add or initialize disks
Menu: VolumeManager/Disk/AddDisks

Use this operation to add one or more disks to a disk group. You can
add the selected disks to an existing disk group or to a new disk group
that will be created as a part of the operation. The selected disks may
also be added to a disk group as spares. Or they may be added as
nohotuses to be excluded from hot-relocation use. The selected
disks may also be initialized without adding them to a disk group
leaving the disks available for use as replacement disks.

More than one disk or pattern may be entered at the prompt. Here are
some disk selection examples:

all: all disks
c3 c4t2: all disks on both controller 3 and controller 4, target 2
c3t4d2: a single disk (in the c#t#d# naming scheme)
xyz_0 : a single disk (in the enclosure based naming scheme)
xyz_ : all disks on the enclosure whose name is xyz

Select disk devices to add: [<pattern-list>,all,list,q,?] c2

/* 需要在rac1和rac2上进行初始化 */

十四、 进行SCSI-3 PR(I/O Fencing)测试
确定不同计算机上的两块硬盘是不是同一块硬盘的方法:
root@rac1 # vxfenadm -i /dev/rdsk/c2t0d0s2
Vendor id : IBM
Product id : 1742-900
Revision : 0520
Serial Number : }? ?
root@rac1 # rlogin rac2
Last login: Mon Nov 17 10:03:57 from 172.39.199.112
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
You have new mail.
Sourcing //.profile-EIS.....
root@rac2 # vxfenadm -i /dev/rdsk/c2t0d0s2
Vendor id : IBM
Product id : 1742-900
Revision : 0520
Serial Number : }? ?
/* 通过查看Serial Number是否一样来看是否是同一块硬盘
* IBM FastT900阵列的系列号是怪字符,但只要一样就可以了!!!
*/
使用应用程序vxfentsthdw来测试磁盘阵列是否支持SCSI-3 PR(I/O Fencing):
# cd /opt/VRTSvcs/rac/bin
# ./vxfentsthdw
******** WARNING!!!!!!!! ********
THIS UTILITY WILL DESTROY THE DATA ON THE DISK!!
Do you still want to contnue : [y/n] (default: n)
y
Enter the first node of the cluster:
rac1
Enter the second node of the cluster:
rac2
Enter the disk name to be checked for SCSI-3 PGR on node rac1 in
the format: /dev/rdsk/cxtxdxsx
/dev/rdsk/c2t0d0s2
Enter the disk name to be checked for SCSI-3 PGR on node rac2 in
the format: /dev/rdsk/cxtxdxsx
Make sure it's the same disk as seen by nodes rac1 and rac2
/dev/rdsk/c2t0d0s2
Keys registered for disk /dev/rdsk/c2t8d0s2 on node rac1
Verifying registrations of keys for disk /dev/rdsk/c2t8d0s2
on node rac1: passed
Reads from disk /dev/rdsk/c4t8d0s2 successful on node rac1
Reads from disk /dev/rdsk/c4t8d0s2 successful on node rac2
Writes from disk /dev/rdsk/c4t8d0s2 successful on node rac1
Writes from disk /dev/rdsk/c4t8d0s3 successful on node rac2
.
.
.
/* 出现如下信息表示SCSI-3 PR(I/O Fencing)测试成功 */
The disk /dev/rdsk/c4t8d0s2 is ready to be configured for I/O
Fencing on node rac1
The disk /dev/rdsk/c4t8d0s2 is ready to be configured for I/O
Fencing on node rac2

/* 注意:需要对每一个共享磁盘阵列进行这种测试,只有通过这种测试,才能用于安装Oracle RAC */


十五、 配置veritas I/O Fensing
在rac1上,执行如下命令:
rac1# vxdg init vxfencoorddg c2t0d1 c2t0d2 c2t0d3 /* 创建有三个协作盘的卷 */
rac1# vxdg deport vxfencoorddg /* 卸载卷vxfencoorddg */
rac1# vxdg –t import vxfencoorddg
/* 安装卷vxfencoorddg,但重起时不在安装该卷 */
rac1# vxdg deport vxfencoorddg /* 卸载卷vxfencoorddg */

在rac2上执行如下命令:
rac2# vxdg –t import vxfencoorddg
/* 安装卷vxfencoorddg,但重起时不在安装该卷 */
rac2# vxdg deport vxfencoorddg /* 卸载卷vxfencoorddg */



/* 以上步骤是创建协作卷组 */ 电脑知识

参与评论
相关内容
关于我们 | 隐私政策 | 站点地图 | 站长博客|京ICP备07025396号
添加到百度搜藏 添加到百度搜藏 电脑知识爱好者Copyright ?2006-2008版权所有 我要啦免费统计