One thing I often need to do is connect an observation of a statistic to a physical or logical object.
Consider, for example, that some interesting behaviour is noticed in the kstat for partition sd17,e. Now, this is actually c1t2d0s4 which is part of an SVM stripe md21 which is one half of an SVM mirror md20 which in turn is mounted on /export/foo. Oh, and they might be in a disk set which is sometimes referenced by number and sometimes by name. How best to go from sd17,e to /export/foo? (And, add fsstat, which uses the mount device id as the identifier so comes up with something like vopstats_4ec1320 as the relevant kstat.) Is there a good way of joining all these disparate identifiers together in a way that it's easy to find these connections and join the dots to get the full picture? I suspect that libdiskmgt can do some of this, although I'm looking for something that is (a) documented and (b) doesn't require privilege. And maybe access from a Java application. Thoughts? -- -Peter Tribble http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
