让我们看看如何在 solaris 10 虚拟机中安装 VxVM。
首先准备一个具有足够数量磁盘(至少 4 到 6 个,1 GB 磁盘和两个 16 GB 磁盘用于根镜像)的 solaris 10 虚拟机。
还要在虚拟机中安装 vmware 工具以实现无缝鼠标指针集成。
我已将一个文件夹 Solaris_Material 从包含 SFHA 媒体 tar 的主机共享到 solaris 10 虚拟机。
说明:
- 不要从共享文件夹运行安装程序,它会失败。将 tar 或者 zip 文件复制到 VM 中的任何目录并从那里运行
- VM 中安装所需的最小交换空间为 256 MB
- 在 VMware 工作站或者 virtualbox 中配置虚拟机时,也使用具有预分配空间的磁盘
复制安装媒体解压后,解压并运行安装程序。
# cp /hgfs/Solaris_Material/VRTS_SF_HA_Solutions_5.1_SP1_Solaris_x64.tar /var/tmp # cd /var/tmp # tar -xf VRTS_SF_HA_Solutions_5.1_SP1_Solaris_x64.tar # cd dvd2-sol_x64/storage_foundation # ./installsf
同意许可协议。
Do you agree with the terms of the End User License Agreement as specified in the storage_foundation/EULA/en/EULA_SF_Ux_5.1SP1.pdf file present on media? [y,n,q,?] y
我们将为此安装安装所有存储基础包。
还要输入要安装 Storage Foundation 软件的系统的主机名。
它应该已经被填充,你只需要按回车键。
1) Install minimal required Veritas Storage Foundation packages - 266 MB required 2) Install recommended Veritas Storage Foundation packages - 439 MB required 3) Install all Veritas Storage Foundation packages - 520 MB required 4) Display packages to be installed for each option Select the packages to be installed on all systems? [1-4,q,?] (2) 3 Enter the Solaris x64 system names separated by spaces: [q,?] (onitroad)
系统将进行必要的预检查,例如连接性、软件与硬件和操作系统的兼容性等。
Verifying systems: 100% Estimated time remaining: 0:00 8 of 8 Checking system communication ..................................... Done Checking release compatibility .................................... Done Checking installed product ........................................ Done Checking prerequisite patches and packages ........................ Done Checking platform version ......................................... Done Checking file space ............................................... Done Performing product license checks ................................. Done Performing product prechecks ...................................... Done System verification checks completed successfully
它现在应该列出系统上正在安装的软件包。
The following Veritas Storage Foundation packages will be installed on all systems: Package Package Description VRTSvlic Veritas Licensing VRTSperl Veritas Perl 5.10.0 Redistribution VRTSspt Veritas Software Support Tools by Symantec VRTSvxvm Veritas Volume Manager Binaries VRTSaslapm Volume Manager - ASL/APM VRTSob Veritas Enterprise Administrator Service by Symantec VRTSsfmh Veritas Storage Foundation Managed Host by Symantec VRTSvxfs Veritas File System VRTSfssdk Veritas File System Software Developer Kit VRTSdbed Veritas Storage Foundation Databases VRTSodm Veritas Oracle Disk Manager VRTSat Symantec Product Authentication Service The following Veritas Storage Foundation patches will be installed on all systems: Patch Package 142630-06 VRTSvxvm 143693-02 VRTSob 142635-05 VRTSvxfs 142632-04 VRTSdbed Press [Enter] to continue: 143272-05 VRTSodm Press [Enter] to continue:
按回车后,它应该开始将所需的软件包安装到系统上。
Installing SF: 100% Estimated time remaining: 0:00 20 of 20 Installing VRTSvxfs package ....................................... Done Installing VRTSfssdk package ...................................... Done Installing VRTSdbed package ....................................... Done Installing VRTSodm package ........................................ Done Installing VRTSat package ......................................... Done Installing 142630-06 patch ........................................ Done Installing 143693-02 patch ........................................ Done Installing 142635-05 patch ........................................ Done Installing 142632-04 patch ........................................ Done Installing 143272-05 patch ........................................ Done Installing VRTSsfmh package ....................................... Done Performing SF postinstall tasks ................................... Done Copying installer libraries and scripts ........................... Done Veritas Storage Foundation Install completed successfully
现在对于许可,我们将为 LAB 设置使用 60 天无密钥许可方案,所有功能启用 60 天。
To comply with the terms of Symantec's End User License Agreement, you have 60 days to either: * Enter a valid license key matching the functionality in use on the systems * Enable keyless licensing and manage the systems with a Management Server. For more details visit http://go.symantec.com/sfhakeyless. The product is fully functional during these 60 days. 1) Enter a valid license key 2) Enable keyless licensing and complete system licensing later How would you like to license the systems? [1-2,q] (2) Checking system licensing 1) SF Standard 2) SF Enterprise b) Back to previous menu Select product mode to license: [1-2,b,q,?] (2) Would you like to enable the Veritas Volume Replicator? [y,n,q] (n) n
现在安装完成,存储基础 5.1.
但在我们开始使用 SF 之前,我们应该使用 installsf 安装程序对其进行配置。
VRTSvxfs 软件包也需要重新启动系统。
Registering SF license Veritas Storage Foundation cannot be started without configuration. Run the '/opt/VRTS/install/installsf -configure' command when you are ready to configure Veritas Storage Foundation. The following packages require reboot while installing them on onitroad: VRTSvxfs It is strongly recommended to reboot the following systems: onitroad Execute '/usr/sbin/shutdown -y -i6 -g0' to properly restart your systems installsf log files, summary file, and response file are saved at: /opt/VRTS/install/logs/installsf-201310131301hSV
通过运行带有 -configure 参数的 installsf 安装程序开始配置存储基础。
# /opt/VRTS/install/installsf -configure Enter the Solaris x64 system names separated by spaces: [q,?] (onitroad) Verifying systems: 100% Estimated time remaining: 0:00 5 of 5 Checking system communication ..................................... Done Checking release compatibility .................................... Done Checking installed product ........................................ Done Checking platform version ......................................... Done Performing product prechecks ...................................... Done System verification checks completed successfully
Starting SF: 100% Estimated time remaining: 0:00 15 of 15 Starting vxio ..................................................... Done Starting vxspec ................................................... Done Starting vxconfigd ................................................ Done Starting vxesd .................................................... Done Starting vxrelocd ................................................. Done Starting vxcached ................................................. Done Starting vxconfigbackupd .......................................... Done Starting vxattachd ................................................ Done Starting vxportal ................................................. Done Starting fdd ...................................................... Done Starting vxdbd .................................................... Done Starting odm ...................................................... Done Performing SF poststart tasks ..................................... Done Veritas Storage Foundation Startup completed successfully installsf log files, summary file, and response file are saved at: /opt/VRTS/install/logs/installsf-201310131317YoO
现在我们可以重新启动系统以完成 VRTSvxfs 软件包的安装。
# shutdown -y -i6 -g0
系统重启到多用户级别后,执行以下命令确认安装:
# vxdisk -eo alldgs list DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR disk_0 auto:none - - online invalid c1t4d0s2 disk_1 auto:none - - online invalid c1t3d0s2 disk_2 auto:none - - online invalid c1t8d0s2 disk_3 auto:none - - online invalid c1t0d0s2 disk_4 auto:none - - online invalid c1t5d0s2 disk_5 auto:none - - online invalid c1t1d0s2 disk_6 auto:none - - online invalid c1t2d0s2 disk_7 auto:none - - online invalid c1t6d0s2
由于此命令的路径未在操作系统的默认 PATH 变量中定义,因此 vxdisksetup 等某些命令将无法运行。
因此,请确保将 /opt/VRTS/bin 添加到 PATH 变量。
# echo "export PATH=$PATH:/opt/VRTS/bin/" >> /etc/profile # . /etc/profile
现在检查许可证信息、安装的产品以及启用或者禁用的每个产品的功能:
vxlicrep -e