SMART parsing issue shell script helper #1507

Closed
phillxnet opened this Issue Nov 4, 2016 · 0 comments

Projects

None yet

2 participants

@phillxnet
Contributor
phillxnet commented Nov 4, 2016 edited

To aid in debugging user reported SMART parsing errors it has proven useful to retrieve the raw output from the SMART commands used by Rockstor to present the Web-UI parsed information. In the past this has required repeated forum posts indicating the required command set. I propose that a simple shell script be included in /opt/rockstor/src/rockstor/scripts that accepts a device name as a single argument ie:

/opt/rockstor/src/rockstor/scripts/dump-smart.sh /dev/disk/by-id/ata-ST3160021AS_5JS1HNX9

Where the given device name, in any smartctl viable device naming convention, indicates the problem drive. This would then simplify future reports of such SMART parsing issues by preparing the smartctl output dumps required to address the parsing issues encountered via the built in developer accessible testing mode in:

src/rockstor/system/smart.py

It is proposed that this initially only cater for HBA smart info retrieval, as opposed to the more complex syntax required when drives are behind some raid controllers.

@phillxnet phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Nov 4, 2016
@phillxnet phillxnet initial commit of SMART parsing issue report helper #1507
A bash shell script intended to aid in reporting SMART parsing
issues by generating the required smart-issue-report.tar.gz
consisting of smartctl command output dumps in a format
compatible with the build in developer test function found in
src/rockstor/system/smart.py
f4a8eaf
@schakrava schakrava closed this in #1509 Nov 13, 2016
@schakrava schakrava modified the milestone: Pinnacles, Point Bonita Nov 13, 2016
@phillxnet phillxnet was assigned by schakrava Nov 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment