Sponsored Content
Full Discussion: Veritas commands??
Top Forums UNIX for Dummies Questions & Answers Veritas commands?? Post 38340 by hugo_perez on Monday 14th of July 2003 10:29:16 AM
Old 07-14-2003
Which version of Veritas?

If you have some problem in the Veritas disk, the
system will log this problem in the /var/adm/messages.

I haven't the latest Veritas Version (I have VM 3.1 and FS 3.3.3),
in thats versions, the volume manager don't log by default, you must change the script vxvm-startup2 to add the -x Flags, see man vxconfigd (export MANPATH=$MANPATH:/opt/VRTSvxvm/man/)

When the Volume manager log information, the default file
is:

/var/vxvm/vxconfigd.log

To query the status of Veritas Objetcs, you can use:
vxprint -Aq

In other machine (HP-UX), I use a script to check errors,
you must to modify at your convenience and correct
the paths to the commands.

Code:
#!/bin/ksh

function alarma_VPO {
   server=`uname -n`
   dia_hora=`date +"%d/%m/%Y %H:%M"`
   msg=$1
   /opt/OV/bin/OpC/opcmsg o=OS msg_grp=OS s=critical n=$server_name msg_tex
t="ERROR: $msg ( $dia_hora ) in $server call Unix Support"

}

function checkdetach {
  failed_disks=`vxprint -AQdF '%name %nodarec' | awk '$2=="on" {print " " $1}'`
  failed_plexes=`vxprint -AQpe 'pl_kdetach || pl_nodarec' -F ' %name'`
  failed_volumens=`vxprint -AQvF ' %name' -e "((any aslist.pl_kdetach==true) || (any aslist
.pl_nodarec)) && !(any aslist.pl_stale==false)"`

    if [ ! -z "$failed_disks" ] || [ ! -z "$failed_plexes" ] || [ ! -z "$failed_volumens" ]
    then

       if [ -z "$failed_disks" ]
       then
            msg_txt=" failed disks: $failed_disks"
       fi

       if [ -z "$failed_plexes" ]
       then
            msg_txt=" failed plexes: $failed_plexes"
       fi

       if [ -z "$failed_volumens" ]
       then
             msg_txt="failed volumes: $failed_volumens"
       fi

       alarma_VPO "Volume Manager failures $msg_txt"
    fi
}

vxnotify -f -w 1800 | while read Wword remain_txt
do
    case $Wword in
    waiting) checkdetach;;
    esac
done

exit 0

Regards. Hugo

added code tags for readability --oombera

Last edited by oombera; 02-18-2004 at 10:46 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Veritas or Legato?

Hi guys, What product would you suggest for a hot/on-line backup with an active oracle database ?? (3 Replies)
Discussion started by: guest100
3 Replies

2. UNIX for Dummies Questions & Answers

Veritas NetBackup

Veritas NetBackup, how does it work?? I mean, I know it is used for backups and restores but really, can anybody give me a brief or any explanation that sums up basically what it is about besides the fact that it does backups and restores??? Please, if you have any information, I would appreciate... (2 Replies)
Discussion started by: TRUEST
2 Replies

3. UNIX for Dummies Questions & Answers

Veritas

Hey all, I've noticed a heap of UNIX jobs like Veritas experience. Just wondering if anyone knows of any softwrae very much alike for free which would be good for learning with? Or if there is a trail like version out there for downloading? Cheers Thx in advance (3 Replies)
Discussion started by: woofie
3 Replies

4. Solaris

Veritas Certification

hAI THIS IS SRIKANTH FROM INDIA AND I AM CERTIFIED SUN SOLARIS NETWORK ADMINISTRATOR AND I AM PLANNING TO APPEAR FOR VERITAS CERTIFICATION BUT THERE ARE LOT OF CERTIFICATIONS IN VERITAS CAN ANY ONE HELP ME IN CHOOSING WHICH CERTIFICATION I CAN OPT FOR THANKS & REGARDS..............SRIK (1 Reply)
Discussion started by: srik_basina
1 Replies

5. Programming

code that reads commands from the standard i/p and executes the commands

Hello all, i've written a small piece of code that will read commands from standard input and executes the commands. Its working fine and is execting the commands well. Accepting arguments too. e.g #mkdir <name of the directory> The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies

6. Solaris

solaris 8 with veritas

Hi All, I need info on veritas volume manager with solaris 8. Although I have worked with HP-UX 10-11 (vmm is integrted), I still don't know what is the command for modifying, monitoring and troubleshooting vvm on solaris 8. Is it the same? Can't find good documentation on my search with... (4 Replies)
Discussion started by: itik
4 Replies

7. Shell Programming and Scripting

Can BASH execute commands on a remote server when the commands are embedded in shell

I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config. I am not sure if I can do this with BASH scripting. I have set up password less login by adding my public key to authorized_keys file, it works. I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies

8. Solaris

veritas

can u plz helpme i have some problem in veritas,i have 4 hard disks one is cpu remaining three is diskarray. whenever iam enter devfsadm command is showing error CAN'T INSTRUMENT RETURNOF FD_INTRACT 7BF58620:NON-CANANICAL RETURN INSRUCTION so iam enter format command is not showing four... (2 Replies)
Discussion started by: tirupathi
2 Replies

9. AIX

HACMP: difference between 'cl' commands and 'cli' commands

Hi all, I'm new in this forum. I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli". The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory. I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies

10. UNIX for Beginners Questions & Answers

How to extend a disk in veritas volume manager in veritas cluster?

Hi Experts, I wanted to extend a veritas file system which is running on veritas cluster and mounted on node2 system. #hastatus -sum -- System State Frozen A node1 running 0 A node2 running 0 -- Group State -- Group System Probed ... (1 Reply)
Discussion started by: Skmanojkum
1 Replies
vxiod(7)						 Miscellaneous Information Manual						  vxiod(7)

NAME
vxiod - Veritas Volume Manager I/O daemon process control device DESCRIPTION
The vxiod device in Veritas Volume Manager (VxVM) is used to control the number of volume I/O daemons active on the system. A process con- text is necessary to implement the plex consistency recovery and writeback error handling policies for multi-plex volumes, and for continu- ing normal I/O after a log write if the volume has logging enabled. It is also required for the plex recovery performed with a mirrored volume in the read/writeback mode. There are three aspects of I/O daemon operations: o General I/O o Error handling o Log handling I/O handling is achieved by an ioctl command that does not return, but instead calls the vxiod routine to wait for errors or I/O requests and process them. When an error occurs, if there are no I/O daemons active, the I/O simply turns into a failure on that plex. If a gen- eral I/O request is queued up when no daemons exist, then the I/O will hang forever until a daemon process is created. If I/O daemons are active, then the I/O is put on a work queue and the daemons are awakened. A daemon takes an error request and tries to read other plexes until a read succeeds or all plexes have been tried. Then, if the writeback facility is enabled, the daemon tries to write the good data to each plex that failed on the read. If the write is successful, the read error is nullified. An I/O request is handled in a similar manner. Logging is handled in a similar manner. An ioctl command, which does not return, is issued to create a daemon for each volume which has logging enabled. This daemon monitors two queues: one queue of I/O which was started while the log was busy (the ``log'' queue), and another queue of requests which have been logged and now need to be started (the ``ready'' queue). I/O requests are taken from the log queue when the log is no longer busy, and another log write is started. Completion of a log write results in all I/O requests which have just been logged being placed on the I/O daemon's ready queue where they are immediately started. One mechanism finds out how many I/O error daemons are running, and another mechanism allows a process to become an I/O daemon. Before a process becomes an I/O daemon, it should close all open files and detach from the controlling tty. An I/O or logging daemon cannot be killed except through an explicit ioctl. FILES
/dev/vx/iod vxiod control device SEE ALSO
vxiod(1M), ioctl(2) VxVM 5.0.31.1 24 Mar 2008 vxiod(7)
All times are GMT -4. The time now is 12:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy