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

Fixes logical drive mapping #7

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

Conversation

elops
Copy link
Contributor

@elops elops commented Jun 2, 2014

based on data collected in https://github.com/elops/einarc_adaptec_tester
I found that for Adaptec controllers only reliable way to establish co-relation
between logical and physical is disk serial number.

logical listing (ld) is formated like

  • arcconf getconfig 1 ld

Type 1 (key here is Enclosure,Slot possilby controller if one has multiple)

    Group 0, Segment 0                       : Present (Controller:1,Enclosure:0,Slot:8)      WD-WMAW30289850

Type 2 (key here is Channel,Device possibly Controller if one has multiple)

    Group 0, Segment 0                       : Present (Controller:1,Channel:0,Device:8)             Z1X1DK0B

Type 3 (key here is Connector,Device possibly Controller if one has multiple)

    Group 0, Segment 0                       : Present (Controller:1,Connector:1,Device:0) Z1N3399Y0000C31537JM

Type 4 (numbers in brackets are Device,Channel)

    Group 0, Segment 0                       : Present (0,0)      WD-WMAW30562480

physical listing (pd) only consistent representation for each disk is line like this

  • arcconf getconfig 1 pd
    ...
  Reported Channel,Device(T:L)       : 0,8(8:0)

Problem is sometimes ld output maps to pd output; sometimes it does not (in case of ld type1, type3)
so to resolve mapping this fix uses disk serial to establish co-relation.

  based on data collected in https://github.com/elops/einarc_adaptec_tester
  I found that for Adaptec controllers only reliable way to establish co-relation
  between logical and physical is disk serial number.

  arcconf getconfig 1 ld

  (logical listing) displays 4 different types of output;
  Type 1 (key here is Enclosure,Slot possilby controller if one has multiple)
    Group 0, Segment 0                       : Present (Controller:1,Enclosure:0,Slot:8)      WD-WMAW30289850
  Type 2 (key here is Channel,Device possibly Controller if one has multiple)
    Group 0, Segment 0                       : Present (Controller:1,Channel:0,Device:8)             Z1X1DK0B
  Type 3 (key here is Connector,Device possibly Controller if one has multiple)
    Group 0, Segment 0                       : Present (Controller:1,Connector:1,Device:0) Z1N3399Y0000C31537JM
  Type 4 (numbers in brackets are Device,Channel)
    Group 0, Segment 0                       : Present (0,0)      WD-WMAW30562480

  In output of
  arcconf getconfig 1 pd
  (physical listing) only consistent representation for each disk is line like this
  Reported Channel,Device(T:L)       : 0,8(8:0)

  Problem is sometimes ld output maps to pd output; sometimes it does not (in case of ld type1, type3)
  so to resolve mapping this fix uses disk serial to establish co-relation.
@elops
Copy link
Contributor Author

elops commented Jun 3, 2014

test this please

@GreyCat
Copy link
Member

GreyCat commented Jun 4, 2014

Thanks for the patch! It's kind of a big and non-trivial one, just wanted to let you know that I'm currently investigating it.

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