View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 55 posts ] 
Go to page Previous  1, 2, 3, 4

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Tue Jan 23, 2007 9:10 pm 
Offline
Joined: Sun Jan 01, 2006 3:26 pm
Posts: 46
Location: Raleigh, NC
Is it possible to monitor the disk usage of a volume group? What should I put in rrdsettings.cfg for a volume group (named VG) that spans sda, sdb and sdc?

Thanks in advance.

vtdstein95


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 23, 2007 9:21 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
My first guess would be "/dev/mapper/vg-myth".

Code:
root@black2:~# df /dev/mapper/vg-myth
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg-myth  467144892 389726492  77418400  84% /myth


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 24, 2007 6:15 am 
Offline
Joined: Sun Jan 01, 2006 3:26 pm
Posts: 46
Location: Raleigh, NC
Thanks tjc.

Looks like 'vg-myth' is the answer. I now have two effective usage sections for 4 HDDs.

My rrsettings.cfg:
Code:
DISKDEV=hda1
DISKDEV=vg-myth


cron.hourly does not appear to work, so i updated my crontab to include rrd_usage.pl as follows:
Code:
# run rrd
*/5 * * * * /usr/local/bin/run_rrd
*/60 * * * * /usr/local/bin/rrd_usage.pl


'pretty' in cron.hourly does work, so could it be that in the rrd_km file (created per the wiki) #!/bin/bash or something similar is missing?

vtdstein95


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 24, 2007 6:18 am 
Offline
Joined: Sun Jan 01, 2006 3:26 pm
Posts: 46
Location: Raleigh, NC
On the cron question it is more likely I needed to restart cron, anyway giving it a try.

Code:
/etc/init.d/cron restart


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 24, 2007 10:13 pm 
Offline
Joined: Mon Nov 07, 2005 10:09 am
Posts: 153
i didn't see a disk usage graph after following the wiki.

I tried to run it manually and realized i needed to

Code:
chmod +x /usr/local/bin/rrd_usage.pl


now two graphs are there for each drive.

not sure if this should be added to the wiki or not.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 24, 2007 10:23 pm 
Offline
Joined: Tue Nov 08, 2005 7:31 am
Posts: 195
Location: Secret Lair
Yes. If the directions assume that everyone knows enough to do that they're broken.


Top
 Profile  
 
 Post subject: VG Usage
PostPosted: Tue Jan 30, 2007 3:23 pm 
Offline
Joined: Wed Jul 12, 2006 2:38 pm
Posts: 2
Has anyone gotten the rrd_usage.pl script to work with a volume group? I tried following the example above and using the last part of my device in the rrdsettings.cfg file, but the script seems to ignore the device and doesn't create an rrd file.

Here is my df output:

Code:
root@mythtv:~# df -hP
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             4.6G  3.4G  1.1G  76% /
tmpfs                 441M  4.0K  441M   1% /dev/shm
/dev/mapper/myth-storage  294G   35G  244G  13% /myth


and here is the rrdsettings.cfg file:
Code:
root@mythtv:~# cat /etc/rrdsettings.cfg
DISKDEV=hda1:/
DISKDEV=myth-storage:/myth


Any thoughts?


Top
 Profile  
 
 Post subject: Re: VG Usage
PostPosted: Tue Jan 30, 2007 3:28 pm 
Offline
Joined: Sat Jun 25, 2005 7:39 pm
Posts: 162
sjoerger wrote:
Has anyone gotten the rrd_usage.pl script to work with a volume group? I tried following the example above and using the last part of my device in the rrdsettings.cfg file, but the script seems to ignore the device and doesn't create an rrd file.

Here is my df output:

Code:
root@mythtv:~# df -hP
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             4.6G  3.4G  1.1G  76% /
tmpfs                 441M  4.0K  441M   1% /dev/shm
/dev/mapper/myth-storage  294G   35G  244G  13% /myth


and here is the rrdsettings.cfg file:
Code:
root@mythtv:~# cat /etc/rrdsettings.cfg
DISKDEV=hda1:/
DISKDEV=myth-storage:/myth


Any thoughts?

If you notice, when you type in DISKDEV=hda1:/ it is referring to /dev/hda1 whereas myth-storage I think would be referring to /dev/myth-storage. Try DISKDEV=mapper/myth-storage:/myth. I'm not sure if that's it but it would kind of make sense.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 30, 2007 3:47 pm 
Offline
Joined: Wed Jul 12, 2006 2:38 pm
Posts: 2
A fine idea, which I hadn't tried. Still doesn't create the rrd file.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 22, 2007 6:47 am 
Offline
Joined: Tue Jan 17, 2006 7:34 am
Posts: 126
Location: Australia
I've updated my rdd_usage.pl script to work with volume group's
(now that I have set one up)

I'd like to know if it works ok for others. you can grab it with the following

Code:
wget -q -O - http://www.chrisjoyce.id.au/mythtv/webinstall.sh | sh


I'd be interested in some feedback ok it, I'll update the wiki once I'm sure it all works.

(I'm in the process of moving and only have the one system setup, so I've only done some basic tests ) :wink:


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 55 posts ] 
Go to page Previous  1, 2, 3, 4



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu