VxVM Tutorials
For this and all the future tutorials I will be using a test box created in VMware workstation. Let us see how you can install VxVM in a solaris 10 virtual machine. To start with prepare a solaris 10 virtual machine with sufficient number of disks (atleast 4 to 6, 1 GB disks and two 16 GB disks for root mirroring).
Also install vmware tools in the virtual machine for seamless mouse pointer integration. I have shared a folder Solaris_Material from my host containing the SFHA media tar to the solaris 10 virtual machine.
- Do not run the installer from the shared folder, it will fail. Copy the tar or zip file to any of the directory in VM and run it from there
- Minimun swap required in the VM for installation is 256 MB
- Also use disks with pre-allocated space when configuring the Virtual Machine in VMware workstation or virtualbox
After copying the instllation media unzip, untar it and run the installer.
# 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
Agree the licence agreement.
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
We would install all the storage foundation packages for this installation. Also enter the hostname of the system on which you are installing the storage foundation software. It should be already populated, you just have to press enter key.
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,?] (geeklab)
The system will do necessary pre checks like connectivity, compatibility of software with hardware and operating system etc.
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
It should now list the packages that are being installed on the system.
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:
After you press enter, it should start installing the required packages onto the system.
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
Now for licencing we would use a 60 day key less licencing scheme for the LAB setup with all the features enabled for 60 days.
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
The installation is complete now with storage foundation 5.1. But before we can start using the SF, we should configure it using the installsf installer. Also VRTSvxfs package requires a system reboot.
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 geeklab: VRTSvxfs It is strongly recommended to reboot the following systems: geeklab 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
Start configuring the storage foundation by running the installsf installer with -configure parameter.
# /opt/VRTS/install/installsf -configure Enter the Solaris x64 system names separated by spaces: [q,?] (geeklab) 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
Now we can reboot the system in order to complete the installation of VRTSvxfs package.
# shutdown -y -i6 -g0
After the system reboots to multi user level, confirm the installation by executing the command:
# 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 -
Some of the commands like vxdisksetup would not work dues to the path to this command not defined in the default PATH variable of OS. So make sure you add /opt/VRTS/bin to PATH variable.
# echo "export PATH=$PATH:/opt/VRTS/bin/" >> /etc/profile # . /etc/profile
Now to check the license information, products installed and features of each products that are enabled or disabled:
vxlicrep -e