Forum Discussion

Gaurav_singh's avatar
11 years ago

Unable to use vcs commands after installation of vcs

Hi,

 

After installation of VCS 6.0 in Sol10,I am unable to run even hastatus -sum command it says, command not found however, llttab shows the O/p as

bash-3.00# cat /etc/llttab
set-node papa
set-cluster 37074
link e1000g0 /dev/e1000g:0 - ether - -
link e1000g1 /dev/e1000g:1 - ether - -
link-lowpri e1000g2 /dev/e1000g:2 - ether - -

=====================================

bash-3.00# cat /etc/gabtab
/sbin/gabconfig -c -n1

============================

checked with pkginfo,

bash-3.00# pkginfo |grep vcs
system      VRTSvcs                          Veritas Cluster Server by Symantec
system      VRTSvcsag                        Veritas Cluster Server Bundled Agents by Symantec
system      VRTSvcsea                        Veritas High Availability Enterprise Agents by Symantec

============================================================================

bash-3.00# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1t0d0s0       14G   2.3G    12G    17%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   2.2G   1.1M   2.2G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/dev/dsk/c1t0d0s5      9.6G   4.3G   5.3G    45%    /usr
/usr/lib/libc/libc_hwcap1.so.1
                       9.6G   4.3G   5.3G    45%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
/dev/dsk/c1t0d0s3      1.9G    93M   1.7G     5%    /var
swap                   2.2G    44K   2.2G     1%    /tmp
swap                   2.2G    32K   2.2G     1%    /var/run
/dev/dsk/c1t0d0s4      2.9G   819M   2.0G    29%    /opt
/dev/dsk/c1t0d0s6      103M   1.0M    92M     2%    /temp
/dev/dsk/c1t0d0s7       18G    19M    18G     1%    /export/home
/vol/dev/dsk/c0t0d0/sol_10_910_x86
                       2.0G   2.0G     0K   100%    /cdrom/sol_10_910_x86
/dev/odm                 0K     0K     0K     0%    /dev/odm
/dev/vx/dsk/datadg/datavol
                       200M   103M    91M    54%    /pictor

==========================================================

 

bash-3.00# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
disk_0       auto:none       -            -            online invalid
disk_1       auto:none       -            -            online invalid
disk_2       auto:cdsdisk    datadg01     datadg       online
disk_3       auto:cdsdisk    datadg02     datadg       online

 

PLease help..

 

  • hastatus command is in /opt/VRTSvcs/bin and there is a sym link in /opt/VRTS/bin, so add either of these to your path or specify complete path.  I would advice adding  /opt/VRTS/bin to your path:

    export PATH=$PATH:/opt/VRTS/bin

    Mike

  • 'command not found' is a Unix error, saying that the current shell cannot find the command in your PATH variable.

    You will find this recommendation in the sfha_install guide (Add the paths to your .profile to make it permanent):

    Setting environment variables
    Most of the commands used in the installation are in the /sbin or /usr/sbin
    directory. Add these directories to your PATH environment variable as necessary.
    After installation, SFHA commands are in /opt/VRTS/bin. SFHA manual pages
    are stored in /opt/VRTS/man.

    Add the following directories to your PATH and MANPATH environment variable:

    ■ If you are using Bourne or Korn shell (sh or ksh), enter the following:
    $ PATH=$PATH:/usr/sbin:/opt/VRTS/bin
    $ MANPATH=/usr/share/man:/opt/VRTS/man:$MANPATH
    $ export PATH MANPATH

    ■ If you are using a C shell (csh or tcsh), enter the following:
    % set path = ( $path /usr/sbin /opt/VRTS/bin )
    % setenv MANPATH /usr/share/man:/opt/VRTS/man:$MANPATH