Re: linux functional equivalent of pstat

In HP-UX, pstat_getlv() system call is used to get I/O statistics on LVM logical volumes.

In Linux, similar information is available through /proc/diskstats and /sys/block//stat. A small wrinkle though: in both these sources, the LV is not identified by name, but instead using a generic dm-N style name, in which N is the minor device number of the associated LV.

Both the /proc and /sys filesystems contain "virtual" files, whose content is auto-generated from the kernel data structures at the time someone reads the files.

The documentation of the format of the above-mentioned files is in the Linux kernel source tree, in file linux-/Documentation/iostats.txt.