Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

volume groups 1

Status
Not open for further replies.

quicksaab

Programmer
May 9, 2003
33
US
Q1)

What are people using to monitor volume groups out there?

Q2)

Does anyone have a script they are using that automates the process? Willing to show syntax?

Q3)

Can you issue a vgdisplay during production hours? I am thinking you could issue a vgdisplay via cron and redirect to a file..

q
 
vgdisplays can certainly be run during the day - should have no effect as only an observation.

What part of the VG do you want to monitor ?
 
vgdisplays can be run during the day - only an observation, so should have no effect.

Why do you want to monitor the VG?

Martin
 
Volume groups eventually fill and the system goes down. There is a bug in the software that we would normally use for this ( chekcing the sizes) and we are looking for other ways to do the database maintenance.

q
 
You get out of space... this is not a Volume Group issue, this is only file systems. There are lot of scripts to monitor the file systems. I use the following in order to send an email when the filesystem reaches som percentage (90% or more may be):

Code:
bdf | grep ^/| sed 's/\%//g' | awk '{if ($5 > 89) {print $6","$5"%"}}' >> $Temp

# Check whether some filesystems fill the criteria:

fs_count="`cat $Temp | wc -l`"

if [ $fs_count -gt 0 ]
then
  echo " " >> $EMail
  echo "##-----------------------------------" >> $EMail
  echo "## Filesystems spaces:" >> $EMail
  echo "##-----------------------------------" >> $EMail
  echo " " >> $EMail
  echo "The following filesystems are over 90%:" >> $EMail
  cat $Temp | sed -e 's/,/ /' |awk '{print "Filesystem \"" $1 "\" is " $2 "fill"}' >> $EMail
fi
cat $Email | mailx -s "Space issue!" mymail@comany.com
 
Thanks Chacalinc, That is exactly what I needed - the filesystems is what I need to deal with. I appreciate the script.

So it is 'bdf' not 'vgdisplay', ahhh.

q
 
yes, bdf will show you the mounted file systems and how fill they are. vgdisplay will show you info about the volume group, but how many bytes of data you have in the logical vols, it will not tell you.

Cheers.
 
Yes, Chacalinc is spot on, hence my question of what you were trying to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top