On May 30, 2005 10:23 +0200, Alessandro wrote:> Can anyone suggest me a recipe to ping active/inactive MDS or OST???
> (not directly the machine, but just MDS or OST)
In recent (1.4.0.10) releases it is possible to ping an MDS or OST
via /proc. Before that time, what I would normally do is cat
/proc/fs/lustre/osc/*/kbytesfree to do a simple RPC for status check.
This isn''t always ideal, since it can block if the OST is down.
Alternately, looking at /proc/fs/lustre/osc/*/ost_server_uuid will tell
you the status of the OST (similar for mdc/MDS), and if the OST is
configured with --failover (it should be for best operation) then the
lustre ptlrpc code is already doing a ping internally.
> Is it possible for LOV?
/proc/fs/lustre/lov/*/kbytesfree
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.