New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMART parsing issue shell script helper #1507

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

Comments

Projects
None yet
2 participants
@phillxnet
Member

phillxnet commented Nov 4, 2016

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 added a commit to phillxnet/rockstor-core that referenced this issue Nov 4, 2016

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

@schakrava schakrava closed this in #1509 Nov 13, 2016

schakrava added a commit that referenced this issue Nov 13, 2016

Merge pull request #1509 from phillxnet/1507_SMART_parsing_issue_shel…
…l_script_helper

SMART parsing issue report helper script. Fixes #1507

@schakrava schakrava modified the milestones: Pinnacles, Point Bonita Nov 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment