Skip to content
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

Add cciss discovery #165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add cciss discovery #165

wants to merge 1 commit into from

Conversation

iprok
Copy link

@iprok iprok commented Jul 9, 2021

I added 'quick and dirty' support for discovering disks on servers with raid controller that uses cciss linux driver. Exact model of my controller is 'HP Smart Array E200i'. On these servers I have no /dev/sd* , nor /dev/sg* devices. All disk devices are in /dev/cciss directory and look like:

ls /dev/cciss 
c0d0  c0d0p1  c0d0p2  c0d0p5  c0d0p6

According to man smartctl, smart information should be got using smartctl -d cciss,N from them where N is disk number. But unfortunately I have no servers with more than one disk with such raid contoller that's why I was able to hardcode only one disk.

My suggestion is that the best way to discover all disk is parsing output of cciss_vol_status /dev/cciss/c0d0 -V (apt-get install cciss-vol-status in debian) but I can update the code only if I have output of it with more than 1 disk in the system.

@v-zhuravlev
Copy link
Owner

Hi, thanks for PR. I think we should then wait for some multidisk output, maybe somebody else can provide it. I believe it is better to merge universal rather than hardcoded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants