Disk I/O and udev rules

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
giropizza
Posts: 11
Joined: Wed Sep 23, 2009 5:28 am

Disk I/O and udev rules

Post by giropizza »

I create some rules for udev to have fix /dev devices for my usb external disk.
All works perfectly for the free space graphs but when I look for the disk I/O the devices listed shows their original name, I explain better:
I create this udev rule:

Code: Select all

ATTRS{manufacturer}=="Freecom", ATTRS{serial}=="03860EAE0146", KERNEL=="sd?1", NAME="bkp0"
ATTRS{manufacturer}=="Freecom", ATTRS{serial}=="03860E86002C", KERNEL=="sd?1", NAME="bkp1"
ATTRS{manufacturer}=="Freecom", ATTRS{serial}=="03860EAE0159", KERNEL=="sd?1", NAME="bkp2"
under the /dev directory I have:

Code: Select all

        
brw-rw----  1 root   disk      8, 128 2009-09-28 19:46 sdi
brw-rw----  1 root   disk      8, 144 2009-09-28 19:46 sdj        
brw-rw----  1 root   disk      8, 160 2009-09-28 19:46 sdk
brw-rw----  1 root   disk      8, 113 2009-09-28 19:46 bkp0
brw-rw----  1 root   disk      8, 129 2009-09-28 19:46 bkp1
brw-rw----  1 root   disk      8, 145 2009-09-28 19:46 bkp2  
But under cacti I have the sdi1,sdj1 and sdk1 devices so I don't know to which device they refer.
I Create the udev rule after the installation of the disk I/O xml files.
I reload the data queries but nothing happens.

Any ideas?

Thanks
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

reapply_suggested_names.php in the cli directory should do the job
Reinhard
giropizza
Posts: 11
Joined: Wed Sep 23, 2009 5:28 am

Post by giropizza »

There isn't any reapply_suggested_names.php in my installation.
I have the 0.8.7b and I find only the poller_graphs_reapply_names.php

Is this?
If yes I said that he want directive. I call it with:

Code: Select all

sudo php -f poller_graphs_reapply_names.php -id=All
and it returns PHP: Invalid configuration directive.

What I have to do exactly?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

giropizza wrote:

Code: Select all

sudo php -f poller_graphs_reapply_names.php -id=All
and it returns PHP: Invalid configuration directive.
Yep, that's the one. Why do you use sudo for it? It is ok when running as cactiuser
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest