Comments (1)
Hi @BillyCrook,
In openSeaChest, you can display the handles with the block handles (hard drives only, may not work properly on tapes, cds, etc) adding -F sd on the command line, so there's already a way to do this today.
There is also an option to show the relationship between sd and sg adding -F sgtosd to be similar to the output of lsscsi -g.
Full example: openSeaChest_Basics -s -F sd
Now, the difference between SG and SD is that SD is a block handle, really only meant for read/write and SG is a generic interface to send any commands you want.
You can specify /dev/sd? handles to these tools as well as other opensource tools without an issue because of the mapping provided by the Linux kernel, version 2.7+. In earlier versions of the kernel, this mapping was not available so only SG could be used for SG passthrough and SD for read/write and possibly other legacy methods.
The main reason openSeaChest defaults to SG instead of SD is because of customer reported problems with the power control tools to show the current power mode.
Whenever the handle was opened as /dev/sd?, the drive would be spun up, but this did not happen with /dev/sg? to the same device. When I debugged this issue with a SATA bus analyzer, I found that there were other commands being sent to the drive and spinning it up at the call to open the handle. The best reason I could come up for this behavior is that because SD is a block handle, meant for read and write, the OS was making sure the drive is in an active state and ready to process any further read/write commands as quickly as possible.
The solution that I came up with for this issue is when a /dev/sd? handle is received, openSeaChest will map it to the matching /dev/sg? handle on the system using the sysfs.
from openseachest.
Related Issues (20)
- Exos X16 fails to change sector size on a Supermicro server HOT 5
- tracking "unkown command" HOT 7
- Prebuilt EFI binaries? HOT 3
- Firmware update failing - Firmware Download Failed - Download Microcode returning: ABORTED HOT 30
- I have got dual ST8000NM000A-2KE101 - they have 0 bad sectors and errors but Raid 1 keep getting degraded - Intel® Optane™ Memory HOT 26
- How do we scan, find new firmware and update it? I am on windows HOT 3
- Make Package for ESXi HOT 2
- EPC timers no longer working after long SMART test HOT 15
- openSeaChest_Format: unknown option --showSupportedSectorSizes HOT 1
- Linux openSeaChest reports drive in `standby_z` state regardless of the actual state. HOT 13
- issue HOT 2
- Settings do not take effect HOT 5
- Some detailed changelog HOT 2
- openSeaChest .deb package misses export PATH variable HOT 3
- multiple ST20000NM007D EXOS X20 20TB firmware SC03 fails warranty claim HOT 2
- openSeaChest_PowerControl standby time ignored HOT 3
- Add option to ignore drives in standby HOT 2
- Code Security Report: 6 high severity findings, 16 total findings HOT 1
- Support QNAP TR-004 4-bay enclosure HOT 1
- Issue with Setting Sector Size on Seagate ST24000NM002H after Interruption, Drive Bricked HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openseachest.