Support Migration Notice: To update migrated JIRA cases click here to open a new case use www.vmware.com/go/sr | vFabric Hyperic 5.7.0 is Now Available

Sigar

Add sigar_disk_list_get API

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Case Links:
    none

Description

We have sigar_file_system_list_get() to get the different mount-points and we have sigar_disk_usage_get() to get the counters for the device, but we don't have a way to query the list of devices.

Issue Links

Activity

Hide
Doug MacEachern added a comment -

More details from Jan Kneschke...
For a soft-raid you will have:

$ cat /proc/diskstats
8 0 sda 5611886 1182915 73366718 35031724 3960212 8489465
107384040 504166576 0 50151788 539295272
8 1 sda1 1899968 15199612 1737783 13902264
8 2 sda2 4895032 58166946 10781449 86251592
8 16 sdb 4915336 71154 59347250 26778208 3565581 7304322 94689976
396279264 0 45720304 423108984
8 17 sdb1 57176 457216 151025 1208200
8 18 sdb2 4929543 58889874 10781449 86251592
9 0 md0 9824499 0 117056656 0 10153113 0 81224904 0 0 0 0

The /dev/md0 is built like:

$ cat /proc/mdstat
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4] md0 : active raid1 sda2[0] sdb2[1]
155235968 blocks [2/2] [UU]

For the raid performance I have to know if the underlying physical disks are at the limit or not.

Can you expose the list of dev-names and perhaps also expose the type of the device if it is a physical disk or another block-devices. Exposing the maj, min numbers of the block-device would be a good start.

Show
Doug MacEachern added a comment - More details from Jan Kneschke... For a soft-raid you will have: $ cat /proc/diskstats 8 0 sda 5611886 1182915 73366718 35031724 3960212 8489465 107384040 504166576 0 50151788 539295272 8 1 sda1 1899968 15199612 1737783 13902264 8 2 sda2 4895032 58166946 10781449 86251592 8 16 sdb 4915336 71154 59347250 26778208 3565581 7304322 94689976 396279264 0 45720304 423108984 8 17 sdb1 57176 457216 151025 1208200 8 18 sdb2 4929543 58889874 10781449 86251592 9 0 md0 9824499 0 117056656 0 10153113 0 81224904 0 0 0 0 The /dev/md0 is built like: $ cat /proc/mdstat Personalities : [raid1] [raid0] [raid6] [raid5] [raid4] md0 : active raid1 sda2[0] sdb2[1] 155235968 blocks [2/2] [UU] For the raid performance I have to know if the underlying physical disks are at the limit or not. Can you expose the list of dev-names and perhaps also expose the type of the device if it is a physical disk or another block-devices. Exposing the maj, min numbers of the block-device would be a good start.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Last comment:
    7 years, 10 weeks, 5 days ago