Operating System - Linux
1753515
Members
6045
Online
108795
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2007 12:48 AM
07-10-2007 12:48 AM
Ioctls
I need to implement getting some of the device(sg/sd/ide/cciss) information in 2 methods. One using passthrough and an other using OS given info using the ioctls. In this regard I need the following info,
1. How do I issue a passthrough to a IDE/SATA device?
2. What ioctls can be used to get the WWID, serial no, capacity of devices not using the passthrough.
1. How do I issue a passthrough to a IDE/SATA device?
2. What ioctls can be used to get the WWID, serial no, capacity of devices not using the passthrough.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2007 01:59 AM
07-12-2007 01:59 AM
Re: Ioctls
1.)
In Linux 2.6 kernel series, the current recommended way to get passthrough access for *any* SCSI-like device (including IDE ATAPI) is to use the SG_IO ioctl.
For more information, see:
http://sg.torque.net/sg/sg_io.html
When using a passthrough, you must be able to use & understand the "raw" protocol used by the device, so it would be necessary to read the relevant SCSI and IDE ATAPI standards documents too.
With hardware RAID devices it's probably RAID controller-specific. Besides, when a hardware RAID is involved, something that looks like a single disk might actually be a collection of several physical disks - so a "serial number" of such a disk is likely to be generated by the RAID controller, and not necessarily related to the real serial number of any piece of hardware.
2.)
If the device is not a FibreChannel device or a modern SCSI device, the WWID may simply not exist.
The HDIO_ ioctls might be useful. For more documentation, get a copy of Linux kernel sources, then read linux-/Documentation/ioctl/hdio.txt file in the source package.
MK
In Linux 2.6 kernel series, the current recommended way to get passthrough access for *any* SCSI-like device (including IDE ATAPI) is to use the SG_IO ioctl.
For more information, see:
http://sg.torque.net/sg/sg_io.html
When using a passthrough, you must be able to use & understand the "raw" protocol used by the device, so it would be necessary to read the relevant SCSI and IDE ATAPI standards documents too.
With hardware RAID devices it's probably RAID controller-specific. Besides, when a hardware RAID is involved, something that looks like a single disk might actually be a collection of several physical disks - so a "serial number" of such a disk is likely to be generated by the RAID controller, and not necessarily related to the real serial number of any piece of hardware.
2.)
If the device is not a FibreChannel device or a modern SCSI device, the WWID may simply not exist.
The HDIO_ ioctls might be useful. For more documentation, get a copy of Linux kernel sources, then read linux-
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP