Chinaunix首页 | 论坛 | 博客
  • 博客访问: 118769
  • 博文数量: 90
  • 博客积分: 1370
  • 博客等级: 中尉
  • 技术积分: 1005
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-20 20:37
文章分类

全部博文(90)

文章存档

2012年(90)

分类: IT业界

2012-01-04 20:31:32

安装Vertias Volume Manager 3.0.4 
#cd /cdrom/cdrom0/pkgs/ 
#pkgadd -d . 

下列软件包是可以使用的: 
1  VRTSvmdev     VERITAS Volume Manager, Header and Library Files 
(sparc) 3.0.4,REV=04.18.2000.10.00 
2  VRTSvmdoc     VERITAS Volume Manager (user documentation) 
(sparc) 3.0.4,REV=04.18.2000.10.00 
3  VRTSvmman     VERITAS Volume Manager, Manual Pages 
(sparc) 3.0.4,REV=04.18.2000.10.00 
4  VRTSvmsa      VERITAS Volume Manager Storage Administrator 
(sparc) 3.0.6,REV=04.03.2000.14.30 
5  VRTSvxvm      VERITAS Volume Manager, Binaries 
(sparc) 3.0.4,REV=04.18.2000.10.00 
选择你要执行的软件包(或选择'全部'执行所有的软件包). (default: all) [?,??,q]: all 
Installing VERITAS Volume Manager, Header and Library Files as 回答y 

Installation of was successful. 

Processing package instance from y 

VERITAS Volume Manager (user documentation) 
(sparc) 3.0.4,REV=04.18.2000.10.00 
Copyright (c) 2000 VERITAS Software Corporation. 
ALL RIGHTS RESERVED. 
THIS SOFTWARE IS THE PROPERTY OF AND IS LICENSED BY VERITAS SOFTWARE, 
AND/OR ITS SUPPLIERS. 

1  PostScript     
2  PDF             

Select the document formats to be installed (default: all) [?,??,q]:all 

Installing VERITAS Volume Manager (user documentation) as

Installation of was successful. 

Installing VERITAS Volume Manager, Manual Pages as  

Installation of was successful. 

Where should this package be installed? (default: /opt]) [?,q] [回车] 

Should the Apache HTTPD (Web Server) included in this package be installed? 
(default: n) [y,n,?,q] [回车] 

Should the Volume Manager Storage Administrator Server be installed on this 
system? 
(The Volume Manager Storage Administrator Client will be installed regardless) 
(default: y) [y,n,?,q] [回车] 

Do you want to continue with the installation of [y,n,?] y 

Do you want to continue with the installation of [y,n,?] y 

Installing VERITAS Volume Manager Storage Administrator as  

Installation of was successful. 

Processing package instance from  

VERITAS Volume Manager, Binaries 
(sparc) 3.0.4,REV=04.18.2000.10.00 
Copyright (c) 1990-2000 VERITAS Software Corporation. 
ALL RIGHTS RESERVED. 
THIS SOFTWARE IS THE PROPERTY OF AND IS LICENSED BY VERITAS SOFTWARE, 
AND/OR ITS SUPPLIERS. 

       This package, VxVM 3.0.4, is supported on Solaris 2.5.1, 2.6, 
       7, and 8.  You appear to be running Solaris 8.  Press 
       ENTER to install VxVM 3.0.4 for Solaris 8, or enter 
       another Solaris version number if you are certain that you 
       want to install the drivers for a different release of 
       Solaris. 

       Install for which version of Solaris? 
       [8, 7, 2.6, 2.5.1] (default: 8): [回车] 
Installing VxVM for Solaris 8 

The following Sun patch(s) are required for Solaris 8. 
Sun patch(s): 

Continue installation? [y,n,q,?] (default: n):y 

The following files are being installed with setuid and/or setgid 
permissions: 
/usr/sbin/vxprint  

Do you want to install these as setuid/setgid files [y,n,?,q] y 

This package contains scripts which will be executed with super-user 
permission during the process of installing this package. 

Do you want to continue with the installation of [y,n,?] y 

Installing VERITAS Volume Manager, Binaries as  

Installation of was successful. 

2 安装Vertias Volume Manager补丁 
安装完补丁后重启机器 
# sync;sync;reboot 
3 在安装完成之后,需要安装Volume Manager的license. 
#  vxlicense -c 
输入license。 
4 禁止Volume Manager dmp的功能 
删除vxdmp驱动程序。 
# rm /kernel/drv/vxdmp 
# rm /kernel/drv/sparcv9/vxdmp 

编辑 /etc/system 文件,删除vxdmp forceload 语句。 
# vi /etc/system 

删除或注释语句: forceload: drv/vxdmp 
        结果:*forceload: drv/vxdmp 

删除dmp设备目录 

# rm  -rf  /dev/vx/dmp 
# rm  -rf  /dev/vx/rdmp 

建立关于dmp和rdmp的符号连接。 

# ln  -s  /dev/dsk  /dev/vx/dmp 
# ln  -s  /dev/rdsk  /dev/vx/rdmp 

重启机器 
# sync;sync;reboot 

创建rootdg 
运行以下命令创建rootdg(前题是c0t0d0s4在系统安装是就已经预留,10m左右即可,不用浪费一个盘,rootdg在装机中不能切换到其他机器) 
# vxconfigd -m disable 
# vxdctl init 
# vxdg init rootdg 
# vxdctl add disk c0t0d0s4  type=simple 
# vxdisk -f init c0t0d0s4 type=simple 
# vxdg adddisk c0t0d0s4 
# vxdctl enable 
# rm /etc/vx/reconfig.d/state.d/install-db 

创建rootdg以后用以下命令创建所需要的卷 
在超级用户下运行以下命令:(以下是个简单的镜像的例子) 
# /usr/lib/vxvm/bin/vxdisksetup -i c1t1d0 
# /usr/lib/vxvm/bin/vxdisksetup -i c1t2d0 
# /usr/lib/vxvm/bin/vxdisksetup -i c2t1d0 
# /usr/lib/vxvm/bin/vxdisksetup -i c2t2d0 

# vxdg init datadg01 datadg0101=c1t1d0 
# vxdg -g datadg01 adddisk datadg0102=c2t1d0 

# vxdg init datadg02 datadg0201=c1t2d0 
# vxdg -g datadg02 adddisk datadg0202=c2t2d0 

# vxassist -g datadg02 -U fsgen make vol-00 2000m layout=nolog datadg0201 
# vxassist -g datadg01 -U fsgen make vol-01 10000m layout=nolog datadg0101 
# vxassist -g datadg02 -U fsgen make vol-02 3000m layout=nolog datadg0201 
# vxassist -g datadg02 -U fsgen make vol-03 2000m layout=nolog datadg0201 
# vxassist -g datadg02 -U fsgen make vol-04 1000m layout=nolog datadg0201 
# vxassist -g datadg02 -U fsgen make vol-05 12000m layout=nolog datadg0201 

# vxassist -g datadg02 mirror vol-00 layout=nolog datadg0202 
# vxassist -g datadg01 mirror vol-01 layout=nolog datadg0102 
# vxassist -g datadg02 mirror vol-02 layout=nolog datadg0202 
# vxassist -g datadg02 mirror vol-03 layout=nolog datadg0202 
# vxassist -g datadg02 mirror vol-04 layout=nolog datadg0202 
# vxassist -g datadg02 mirror vol-05up layout=nolog datadg0202 

# newfs /dev/vx/rdsk/datadg02/vol-00 
# newfs /dev/vx/rdsk/datadg01/vol-01 
# newfs /dev/vx/rdsk/datadg02/vol-02 
# newfs /dev/vx/rdsk/datadg02/vol-03 
# newfs /dev/vx/rdsk/datadg02/vol-04 
# newfs /dev/vx/rdsk/datadg02/vol-05 

注:1、如果不是SUN的双机,去掉DMP的功能可以不做,(sun的cluster和Vertias Volume Manager的DMP功能冲突) 
   2、如果裸设备用gen替代fsgen,不做newfs即可。 


希望大家继续补充内容,比方做raid 5卷的命令、维护逻辑卷的命令,我实在没有时间写,(原来的文档中没有,自己有没有时间,同时也想学习“他山之石”) 
cluster 的正在整理中。 

方案二:

作者:99lq


看来说大话不是什么好事,不过硬着头皮写点心得吧 
veritas 的vfs,vxvm,vcs我还算了解一点(不敢说熟了) 
vfs是vertias的文件系统,实际上和unix的文件系统差不多,只不过是veritas为了更完整她的软件系统出的一种产品(个人感觉)而且在做双机冗余的时候,他支持unix文件系统,所以基本上可以忽略它的存在。 
下面设计一个环境: 
两台e3500 sun1,sun2 每个上面四块网卡,两个上连两个交换机,两个心跳 
两个a5200磁盘阵列 
光通道交换机/光hub一个 

软件 
solaris8,veritas vfs,vxvm,vcs for solrias,vcs for oracle agent,san管理软件,oracle8i 

目标: 
ha 

ip address 
sun1 qfe 2,3 172.16.100.13 
sun2 qfe 2,3 172.16.100.14 
float ip 172.16.100.15 
(心跳线和qfe3不需要配置IP,但相应的hostname.qfeX文件必须要有,这是为了保证网卡能够UP) 

准备针对案例,写点vfs.vxvm.vcs安装配置心得,抛砖引玉 

(不过最近很忙,只能分次贴了,错误之处请原谅) 
VXFS的安装: 
1) 安装软件包: 
# pkgadd -d /cdrom/CD_name/pkgs VRTSlic VRTSvxfs VRTSfsdoc 
2) 安装LICENSE: 
# vxlicense –c 
Please enter your key: 9999 1575 8068 1302 5845 200 
vrts:vxlicense: INFO: Feature name: VXFS [80] 
vrts:vxlicense: INFO: Number of licenses: 1 (non-floating) 
vrts:vxlicense: INFO: Expiration date: No expiration date 
vrts:vxlicense: INFO: Release Level: 22 
vrts:vxlicense: INFO: Machine Class: 258193729 
vxfs:vxlicense: INFO: Key successfully installed in 
/etc/vx/elm/80. 
3) #reboot 
4) 检查包和LICENSE是否正确 
# vxlicense -p 
vrts:vxlicense: INFO: Feature name: PHOTON [98] 
vrts:vxlicense: INFO: Number of licenses: 99 
vrts:vxlicense: INFO: Expiration date: No expiration date 
vrts:vxlicense: INFO: Release Level: 20 
vrts:vxlicense: INFO: Machine Class: 334147806 
vrts:vxlicense: INFO: Feature name: VXFS [80] 
vrts:vxlicense: INFO: Number of licenses: 1 (non-floating) 
vrts:vxlicense: INFO: Expiration date: No expiration date 
vrts:vxlicense: INFO: Release Level: 22 
vrts:vxlicense: INFO: Machine Class: 334147806 
# pkginfo -l VRTSvxfs 
PKGINST: VRTSvxfs 
NAME: VERITAS File System 
CATEGORY: system,utilities 
ARCH: sparc 
VERSION: 3.3.3,REV=GA03 
BASEDIR: / 
VENDOR: VERITAS Software 
DESC: Commercial File System 
PSTAMP: VERITAS-3.3.3_FS-GA03_2000-01-27 
INSTDATE: Aug 09 2001 18:39 
HOTLINE: (800) 342-0652 
EMAIL:  
STATUS: completely installed 
FILES: 120 installed pathnames 
22 shared pathnames 
3 linked files 
24 directories 
29 executables 
3 setuid/setgid executables 
10455 blocks used (approx) 

VOLUME MANAGER的安装配置 

一、 format 确认系统能够识别阵列上所有硬盘; 
# format 
Searching for disks...done 

AVAILABLE DISK SELECTIONS: 
0. c0t32d0  
/sbus@3,0/SUNW,socal@d,10000/sf@0,0/ssd@w2200002037f3a481,0 
…………… 

46. c1t34d0  
/sbus@3,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037f39349,0 

…………… 

88. c2t10d0  
/sbus@3,0/SUNW,fas@3,8800000/sd@a,0 
89. c2t11d0  
/sbus@3,0/SUNW,fas@3,8800000/sd@b,0 

从上面的输出可以看到,主机共有三个控制器上连接磁盘,控制器0和控制器1上看到的磁盘是相同的,这就验证了主机与SAN 的冗余连接是正常的,控制器2连接的是本地硬盘。 

二、 确认系统上的AP(ALERTNATE PATH)版本为2.3.1或以上; 

# pkginfo|grep ap 
application SUNWabap Sun Enterprise Server Alternate Pathing 2.3.1 Collection 
三、 安装VM包 
pkgadd –d ./ 

四、 修改.profile文件内容 
VMSAHOME=/opt/VRTSvmsa 
export VMSAHOME 
PATH=/sbin:/usr/sbin:/etc/vx/bin:$VMSAHOME/bin:$PATH 
export PATH 

五、 在本地硬盘中划出一个10M分区,并将之加入rootdg; 
# vxdctl stop (初始安装不用执行) 
# vxconfigd –m disable 
# vxdctl init 
# vxdg init rootdg 
# vxdctl add disk c0t11d0s3 type=simple 
# vxdisk init c0t11d0s3 type=simple 
# vxdg adddisk c0t11d0s3 
# vxdctl enable 让VxVm识别新加入硬盘 
# cd /etc/vx/reconfig.d/state.d 
ls install-db 
if true 
rm it 
endif 
reboot 

六、 对阵列进行管理 

启动管理客户端: 

# vmsa & (非常好的图形界面) 


划分两个磁盘组:ROOTDG、ORACLE: 
 ROOTDG:管理使用; 
 ORACLE:数据库服务,ORACLE库文件安装其上; 
 在ORACLE 组上建立卷(VOLUME),并做成RAID5,划分后的具体参数如下: 

DISK GROUP ORACLE 
VOLUMEVOLORA 
包含磁盘(分区)C0t37~C0t42,C0t48~C0t58,C0t64~C0t74,C0t80~C0t90C2t32~C2t36 
FILE SYSTEMVXFS 
LOGICAL DEVICES NAME/DEV/VX/DSK/ORACLE/VOLORA 
VOLUME SIZE915.7G 

HOSTNAMEsun1sun2 
diskgrOUPROOTDGROOTDG 
包含分区C2t10d0s3C0t10d0s3 
SIZE20.2M1.0G 

vcs下贴吧 


(选了一个比较好的vcs安装脚本,修改以后供大家参考) 
服务器的冗余实现----VERITAS VCS的安装配置 

1. 安装任务: 
①. 安装VCS_ORACLE。 
②. 配置多网卡冗余。 
2. 安装前准备工作: 
①. 用两根交叉网线直接连接两台工作站背后的四口网卡qfe0,qfe1端口(作为心跳线)。 
②. 用四根普通网线连接两台工作站的四口网卡qfe2,qfe3端口到交换机上。 
③. 用一根普通网线连接笔记本电脑到交换机上,分别能访问各个工作站。 
④. 在sun1 和sun2工作站上,分别在根目录下手工编辑.rhost文件,如下所示: 
# vi .rhosts 
sun1 root 
sun2 root 
⑤. 在sun1 和sun2工作站上,分别在/etc目录下,编辑hostname.qfe0, hostname.qfe1, hostname.qfe2,hostname.qfe3等4个文件,如下所示: 
# vi hostname.qfe0 
qfe0 
详细如下: 
sun1 
hostname.qfe0 qfe0 
hostname.qfe1 qfe1 
hostname.qfe2 sun1 
hostname.qfe3 qfe3 
sun2 
hostname.qfe0 qfe0 
hostname.qfe1 qfe1 
hostname.qfe2 sun2 
hostname.qfe3 qfe3 
⑥. 在/etc目录下,编辑hosts文件,如下所示: 
在sun1工作站上, 
# vi hosts 
127.0.0.1 localhost 
172.16.100.13 sun1 ns1 loghost 
172.16.100.14 sun2 ns2 
172.16.100.15 floatIP1 
在sun2工作站上, 
# vi hosts 
127.0.0.1 localhost 
172.16.100.13 sun1 ns1 
172.16.100.14 sun2 ns2 loghost 
172.16.100.15 floatIP1 
(心跳线和qfe3不需要配置IP,但相应的hostname.qfeX文件必须要有,这是为了保证网卡能够UP) 
⑦. 重新启动工作站,命令如下: 
# reboot 
⑧. 分别对各个网址进行测试来验证网络连接,采用如下命令: 
# ping 172.16.100.13 
172.16.100.13 is alive 
其余类似。 
⑨. 系统还应装有VOLUME MANAGER软件对磁盘阵列进行管理,并能在两台工作站上切换,盘阵BLOCKDRIVE为oracle,卷名为volora ,位于dev/vx/dsk/oracle目录下。系统还应装有ORACLE8,两台工作站上分别建有/export/home/oracle/oracle8目录, 
$ORACLE_HOME=/export/home/oracle/oracle8/u01/app/oracle/8.0.6 
3. 安装VCS 
①. 选择一台工作站,将软件光盘插入光驱,移到安装目录,执行如下命令: 
# ./InstallVCS 
②. 系统提问CLUST名,输入VCS_ORACLE。 
③. 系统提问CLUST号,输入1。 
④. 系统提问CLUST中的工作站(系统)名:输入sun1 sun2 
⑤. 安装开始。 
⑥. 系统提问CLUST中的工作站第一私有网卡名,输入qfe0。 
⑦. 系统提问CLUST中的工作站第二私有网卡名,输入qfe1。 
⑧. 系统提问CLUST中的工作站网卡是否相同,输入Y。 
⑨. 系统提示安装成功。 
⑩. 验证安装请参阅随机材料。 
4. 安装图形界面管理器: 
①. 进入CDROM安装目录,执行如下命令: 
# pkgadd -d ./VRTScscm 
②. 系统提问是否安装,输入Y。 
③. 系统提示安装成功。 
5. 安装ORACLE AGENT: 
①. 进入CDROM安装目录,执行如下命令: 
# pkgadd -d ./VRTSvcsor 
②. 系统提问是否安装,输入Y。 
③. 系统提示安装成功。 
④. 配置完成后,重启工作站sun1,sun2。 
6. 安装后系统配置: 
①. 进入图形界面管理器,执行如下命令: 
# hagui & 
②. 在File菜单中,选择New Cluster选项。 
③. 在弹出窗口中,Cluster name中输入VCS_ORACLE,在Host name中输入root。 
④. 系统再次弹出窗口,输入管理员名:xxx,密码:xxxxxx,系统打开图形界面管理器。 
⑤. 在File菜单中,选择Import type选项。 
⑥. 在弹出窗口中,选择/etc/VRTSvcs/config/sample_Oracle/OracleTypes.cf 文件,导入oracle模板。 
⑦. 新建SERVICE GROUP:ORA,添加系统sun1,sun2。 
⑧. 在ORA中手动添加各种资源,严格按main.cf文件进行配置。 
其中在MultiNICA MTNIC,下列各个属性为本地变量, 
Device @sun1 = { qfe2 = "172.16.100.13", qfe3 = "172.16.100.13"} 
Device @sun2 = { qfe2 = "172.16.100.14", qfe3 = "172.16.100.14"}。 
⑨. 修改位于/export/home/oracle/oracle8/u01/app/oracle/8.0.6/network/admin的文件listener.ora,内容如下:HOST = floatIP1,GLOBAL_DBNAME =floatIP1。 
⑩. 系统配置完成。
阅读(745) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~