[collectd] [PATCH] Persistent names for linux's device mapper disks.

XANi xani666 at gmail.com
Fri Feb 4 23:35:02 CET 2011


Hi

> A more generic solution will be to call from the disk plugin an external
> script (call it a "PersistentNameProvider") that given the kernel name
> will provide the persistent name to use. But I think that this will
> create a great overhead with system with a lot of disks...
> 

In most systems names of disks don't change that often ;) so it could be
cached. In case of DM devices there is also UUID
in /sys/block/dm-X/dm/uuid so it could check if UUID changed and if it
changed rerun script.



-- 
Mariusz Gronczewski (XANi) <xani666 at gmail.com>
GnuPG: 0xEA8ACE64
http://devrandom.pl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20110204/ac9b131b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20110204/ac9b131b/attachment.pgp>


More information about the collectd mailing list