Skip to content

Add cciss discovery#165

Open
iprok wants to merge 1 commit intov-zhuravlev:masterfrom
iprok:cciss
Open

Add cciss discovery#165
iprok wants to merge 1 commit intov-zhuravlev:masterfrom
iprok:cciss

Conversation

@iprok
Copy link
Copy Markdown

@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
Copy Markdown
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.

2 participants