- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- System Administration
- >
- Re: "sar -d" devices - how to map to /dev/sdNNN de...
-
- Forums
-
Blogs
- Hybrid Cloud
- Edge
- Data & AI
- Working in Tech
- AI Insights
- Alliances
- Around the Storage Block
- Behind the scenes at Labs
- Careers in Tech
- HPE Storage Tech Insiders
- Inspiring Progress
- IoT at the Edge
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Russia
- HPE Blog, UK & Ireland
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-18-2010 05:51 AM
06-18-2010 05:51 AM
[alzhy@envy10 home]$ sar -d|awk '$7>10'|more
12:00:01 AM DEV tps rd_sec/s wr_sec/s avgrq-sz avgqu-sz awai
t svctm %util
12:05:01 AM dev8-0 65.98 2.27 1025.24 15.57 0.02 0.2
3 0.12 0.79
12:05:01 AM dev8-2 65.98 2.27 1025.24 15.57 0.02 0.2
3 0.12 0.79
12:05:01 AM dev8-240 0.54 0.00 10.73 19.73 0.00 7.4
4 2.41 0.13
How do I translate devices like "dev8-240" to the usual nomenclature of /dev/sdNNN ?
TIA!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-18-2010 10:15 AM
06-18-2010 10:15 AM
SolutionRun "ls -l /dev/sd*" and look at the device numbers between the group and the timestamp (regular files would have a file size in that position).
Or look into Linux kernel documentation. If you install the "kernel-doc" package, the documentation files are typically at /usr/share/doc/kernel-doc. You'll want the file named "devices.txt".
The documentation as it exist in the latest released Linux kernel version is available on the Web here:
http://www.mjmwired.net/kernel/Documentation/devices.txt
Because your command was "sar -d", we know these are block devices. Major number 8 contains the first 16 /dev/sd* disk devices (/dev/sda ... /dev/sdp). The minor number of "whole disk" devices is always divisible by 16.
So:
dev8-0 = /dev/sda
dev8-2 = /dev/sda2
dev8-240 = /dev/sdp
You could also use "sar -dp" instead of "sar -d" to make sar translate the names of most disk devices automatically. Unfortunately it may not translate device-mapper devices (LVM, disk encryption, software RAID, dm-multipath) so you'll still have to figure them out by the major/minor numbers. The output of "dmsetup ls --tree" may be helpful there.
MK
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-18-2010 11:07 AM
06-18-2010 11:07 AM
Re: "sar -d" devices - how to map to /dev/sdNNN devices?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-18-2010 11:10 AM
06-18-2010 11:10 AM
Re: "sar -d" devices - how to map to /dev/sdNNN devices?
01:00:01 sddw1 13.89 2788.04 279.07 220.83 0.65 46.62 18.98 26.36
01:00:01 sddx 14.60 3269.15 315.73 245.51 0.77 52.54 20.08 29.31
01:00:01 sddx1 14.60 3269.15 315.73 245.51 0.77 52.54 20.08 29.31
01:00:01 nodev 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
01:00:01 nodev 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-19-2010 02:39 AM
06-19-2010 02:39 AM
Re: "sar -d" devices - how to map to /dev/sdNNN devices?
They probably aren't loop-mounted disk images; as I understand, they would have entries like loop0 ... loop7, if the kernel supports statistics like this for them at all.
They don't seem to be NFS mounts either, based on a quick bit of testing. (That wouldn't have made sense anyway, because NFS client/server interface is not really like a block device at all.)
Perhaps they are statistics slots for LUNs/disks that once existed, but have since then been unpresented/hot-unplugged? The fact that the I/O statistics seem to be all zeroes for them would sort of tentatively agree with this guess.
You might want to take a peek in /proc/diskstats (which is where sar -d gets its information) and /etc/sysstat/sysstat.ioconf (which is used by sar -d to translate the device names) for more clues.
MK
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-19-2010 03:48 PM
06-19-2010 03:48 PM
Re: "sar -d" devices - how to map to /dev/sdNNN devices?
I suspect that if you're using SAN disks, that the nodev devices may be Storage controller devices.
Brendan
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-21-2014 03:15 AM - edited 08-21-2014 03:16 AM
08-21-2014 03:15 AM - edited 08-21-2014 03:16 AM
Re: "sar -d" devices - how to map to /dev/sdNNN devices?
sar -p -d
-p (pretty print)
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP