Decoding TNF Output...
krobson3 at sca.csc.com
krobson3 at sca.csc.com
Thu Oct 18 02:42:03 EDT 2001
Hi Folks,
I am doing some work with the I/O probe in TNF. I wish to convert the device
back to a physical disk, so that I can map back to a Veritas Volume. I have
output records such as (these where created with prex -k and tnfxtract):-
130.747863 108.142412 2 1 0x62a51d00 9 strategy
device: 41418762 block: 374880 size: 131072 buf: 0x7fd70c20 flags: 558361
131.018102 0.270239 2 1 0x62a51d00 9 strategy
device: 8388636 block: 374880 size: 131072 buf: 0x69dcf498 flags: 1289
131.110536 0.092434 2 1 0x62a51d00 9 strategy
device: 8388756 block: 19255864 size: 131072 buf: 0x862ba1a0 flags: 1289
131.574874 0.464338 2 1 0x62a51d00 9 strategy
device: 41418762 block: 375136 size: 40960 buf: 0x857fead8 flags: 558361
131.655300 0.080426 2 1 0x62a51d00 9 strategy
device: 8388636 block: 375136 size: 40960 buf: 0x891ff560 flags: 1289
131.688286 0.032986 2 1 0x62a51d00 9 strategy
device: 8388756 block: 19256120 size: 40960 buf: 0x6a47e258 flags: 1289
131.784555 0.096269 2 1 0x62a51d00 9 strategy
device: 41418762 block: 375296 size: 8192 buf: 0x82741408 flags: 558361
131.818603 0.034048 2 1 0x62a51d00 9 strategy
device: 8388636 block: 375296 size: 8192 buf: 0x82474ed0 flags: 1289
131.845590 0.026987 2 1 0x62a51d00 9 strategy
device: 8388756 block: 19256280 size: 8192 buf: 0x851be458 flags: 1289
132.236165 0.390575 2 1 0x62a51d00 9 strategy
device: 41418762 block: 375344 size: 131072 buf: 0x89259958 flags: 558361
132.439259 0.203094 2 1 0x62a51d00 9 strategy
device: 8388636 block: 375344 size: 131072 buf: 0x89370a88 flags: 1289
132.497220 0.057961 2 1 0x62a51d00 9 strategy
device: 8388756 block: 19256328 size: 131072 buf: 0x87ad0698 flags: 1289
132.945563 0.448343 2 1 0x62a51d00 9 strategy
device: 41418762 block: 375600 size: 131072 buf: 0x863a5d88 flags: 558361
How to I map the device back to a major and minor number. I have seen brief
explanations of how to do this but nothing concrete. Most the methods I have
seen involve converting the number to hex and then taking the last three digits
and converting this back to a decimal number, which represents the minor number.
However as we have a number of major numbers associated with disk devices
(A1000's, A5200's and plain SCSI) I need to reliably convert this back to
separate major and minor numbers, so that I can ascertain which disk it refers
to and then use the offset to locate the slice and convert back to a veritas
volume.
Please could you provide me with a working method for this conversion, if
possible.
Thanks for your time and help.
Kind regards,
Ken Robson.
More information about the sunmanagers
mailing list