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
vxnotify(1M)															      vxnotify(1M)

NAME
vxnotify - display Veritas Volume Manager configuration events SYNOPSIS
vxnotify [-ACcdefimprsv] [-g diskgroup] [-n number ] [-t timeout] [-w wait-time] DESCRIPTION
The vxnotify utility displays events related to disk and configuration changes, as managed by the Veritas Volume Manager (VxVM) configura- tion daemon, vxconfigd. If vxnotify is running on a system where the VxVM cluster feature is active, it displays events related to changes in the cluster state of the system on which it is running. vxnotify displays requested event types until killed by a signal, until a given number of events have been received, or until a given number of seconds have passed. CONFIGURATION EVENTS
Each event is displayed as a single-line output record on the standard output. added disk array da_serial_no The disk array with serial number da_serial_no is connected to the host. change dg groupname dgid groupid A change was made to the configuration for the named disk group. The transaction ID for the update was groupid. change disk accessname dm medianame dg groupname dgid groupid The disk header changed for the disk with a device access name of accessname. The disk group name and ID of the disk are group- name and groupid, respectively. The displayed groupname and groupid strings are ``-'' or blank if the disk is not currently in an imported disk group. changed dg groupname from disk array disk_array_vendor The configuration of the disk group named groupname changed. This disk group contains disks which belong to the disk array of vendor disk_array_vendor. connected A connection was established with vxconfigd. This event type is displayed immediately after successful startup and initializa- tion of vxnotify. A connected event is also displayed if the connection to vxconfigd is lost, and then regained. A connected event displayed after a reconnection indicates that some events may have been lost. degraded volume volume dg groupname dgid groupid The RAID-5 volume has become degraded due to the loss of one subdisk in the raid5 plex of the volume. Accesses to some parts of the volume may be slower than to other parts depending on the location of the failed subdisk and the subsequent I/O patterns. deport dg groupname dgid groupid The named disk group was deported. detach disk accessname dm medianame dg groupname dgid groupid The named disk, with device access name accessname and disk media name medianame was disconnected from the named disk group as a result of an apparent total disk failure. Total disk failures are checked for automatically when plexes or subdisks are detached by kernel failures, or explicitly by the vxdisk check operation (see vxdisk(1M)). detach plex plex volume volume dg groupname dgid groupid The named plex, in the named disk group, was detached as a result of an I/O failure detected during normal volume I/O, or dis- abled as a result of a detected total disk failure. detach subdisk subdisk plex plex volume volume dg groupname dgid groupid The named subdisk, in the named disk group, was detached as a result of an I/O failure detected during normal volume I/O, or dis- abled as a result of a detected disk failure. Failures of a subdisk in a RAID-5 volume or a log subdisk within a mirrored volume result in a subdisk detach; other subdisk failures generally result in the subdisk's plex being detached. detach volume volume dg groupname dgid groupid The named volume, in the named disk group, was detached as a result of an I/O failure detected during normal volume I/O, or as a result of a detected total disk failure. Usually, only plexes or subdisks are detached as a result of volume I/O failure. How- ever, if a volume would become entirely unusable by detaching a plex or subdisk, then the volume may be detached. disabled controller controllername belonging to disk array da_serial_no The host controller controllername connected to the disk array with disk array serial number da_serial_no is disabled for I/O. As a result, DMP does not allow I/Os to any of the paths that are connected to this host controller. disabled dg groupname dgid groupid The named disk group was disabled. A disabled disk group cannot be changed, and its records cannot be printed with vxprint. However, some volumes in a disabled disk group may still be usable, although it is unlikely that the volumes are usable after a system reboot. A disk group is disabled as a result of excessive failures. A disk group is disabled if the last disk in the disk group fails, or if errors occur when writing to all configuration and log copies in the disk group. disabled dmpnode dmpnodename The DMP metanode dmpnodename is disabled. The disk/LUN represented by the DMP metanode is not available for I/O. disabled path pathname belonging to dmpnode dmpnodename The path pathname is no longer available for I/O. It is a path to the disk/LUN represented by the DMP metanode dmpnodename. disconnected The connection to vxconfigd was lost. This normally results from vxconfigd being stopped (such as by vxdctl stop) or killed by a signal. In response to a disconnection, vxnotify displays a disconnected event and then waits until a reconnection succeeds. A connected event is then displayed. A disconnected event is also printed if vxconfigd is not accessible at the time vxnotify is started. In this case, the discon- nected event precedes the first connected event. enabled controller controllername belonging to disk array da_serial_no The host controller controllername connected to the disk array with the disk array serial number da_serial_no is enabled. As a result DMP allows I/Os to all paths connected to this host controller. enabled dmpnode dmpnodename The DMP metanode dmpnodename is enabled. At least one of the paths to the disk/LUN represented by this DMP metanode is now avail- able for I/O. enabled path pathname belonging to dmpnode dmpnodename The path pathname is now available for I/O. It is a path to the disk/LUN represented by the DMP metanode dmpnodename. import dg groupname dgid groupid The disk group named groupname was imported. The disk group ID of the imported disk group is groupid. joined cluster clustername as master node nodeid This system has joined the cluster named clustername as a master node. Its node ID is nodeid. If the system was already in the cluster as a slave, it has now become the master node. Available only if the VxVM cluster feature is enabled. joined cluster clustername as slave node nodeid This system has joined the cluster named clustername as a slave node. Its node ID is nodeid. Available only if the VxVM cluster feature is enabled. left cluster This system has left the cluster of which it was previously a member. Available only if the VxVM cluster feature is enabled. log-detach volume volume dg groupname dgid groupid All log copies for the volume (either log plexes for a RAID-5 volume or log subdisks for a regular mirrored volume) have become unusable, either as a result of I/O failures or as a result of a detected total disk failure. more events Due to internal buffer overruns or other problems, some events may have been lost. removed disk array da_serial_no The disk array with serial number da_serial_no is disconnected from the host. waiting ... If the -w option is specified, a waiting event is displayed after a defined period with no other events. Shell scripts can use waiting messages to collect groups of nearly simultaneous, or at least related, events. This can make shell scripts more effi- cient. This can also provide some scripts with better input because sets of detach events, in particular, often occur in groups that scripts can relate together. This is particularly important given that a typical shell script blocks until vxnotify pro- duces output, thus requiring output to indicate the end of a possible sequence of related events. OPTIONS
-A Displays disk array state change events. -C Displays growth events for cache objects (used by space-optimized instant snapshots). -c Displays disk group change events. -d Displays disk change events. -e Displays extended events that relate to the creation, deletion, association, dissociation and other changes to objects. -g diskgroup Restricts displayed events to those in the indicated disk group. The disk group can be specified either as a disk group name or a disk group ID. -f Displays plex, volume, and disk detach events. -i Displays disk group import, deport, and disable events. -m Displays multipath events. -n number Displays the indicated number of vxconfigd events, then exit. Events that are not generated by vxconfigd (that is, connect, dis- connect, and waiting events) do not count towards the number of counted events, and do not cause an exit to occur. -p Displays cluster communications protocol change events. -r Displays RLINK state change events. -s Displays cluster change events. If the -i option is also specified, the imports and deports of shared disk groups are displayed when a cluster change takes place. Available only if the VxVM cluster feature is enabled. -t timeout Displays events for up to timeout seconds, then exit. The -n and -t options can be combined to specify a maximum number of events and a maximum timeout to wait before exiting. -v Displays resynchronization state change events. -w wait_time Displays waiting events after wait_time seconds with no other events. If none of the -A, -c, -d, -f, -i, -p, -r, -s, or -v options are specified, vxnotify defaults to printing all event types that correspond to these options. If a disk group is specified with -g, vxnotify displays only events that are related to that disk group. EXAMPLES
The following example shell script sends mail to root for all detected plex, volume, and disk detaches: checkdetach() { d=`vxprint -AQdF '%name %nodarec' | awk '$2=="on" {print " " $1}'` p=`vxprint -AQpe 'pl_kdetach || pl_nodarec' -F ' %name'` v=`vxprint -AQvF ' %name' -e "((any aslist.pl_kdetach==true) || (any aslist.pl_nodarec)) && !(any aslist.pl_stale==false)"` if [ ! -z "$d" ] || [ ! -z "$p" ] || [ ! -z "$v" ] then ( cat <<EOF Failures have been detected by VxVM: EOF [ -z "$d" ] || echo "\nfailed disks:\n$d" [ -z "$p" ] || echo "\nfailed plexes:\n$p" [ -z "$v" ] || echo "\nfailed volumes:\n$v" ) | mailx -s "VxVM failures" root fi } vxnotify -f -w 30 | while read code more do case $code in waiting) checkdetach;; esac done EXIT CODES
The vxnotify utility exits with a non-zero status if an error is encountered while communicating with vxconfigd. See vxintro(1M) for a list of standard exit codes. SEE ALSO
vxconfigd(1M), vxdisk(1M), vxdmpadm(1M), vxintro(1M), vxtrace(1M) VxVM 5.0.31.1 24 Mar 2008 vxnotify(1M)
All times are GMT -4. The time now is 03:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy