Giter Club home page Giter Club logo

Comments (7)

 avatar commented on September 26, 2024

I have changed the follow lines from the script forcing my enclosure wwn because he's getting a weird enclosure wwn:

66             #encl = enclosures[sasdev.attrs.enclosure_identifier]
67             encl = enclosures['0x50001ff2343d063e']

But, I'm still getting a weird alias name (at least the bay identifier was found):

sdc_no_snic-bay36

from sasutils.

 avatar commented on September 26, 2024

Requires sg_ses from sg3_utils (recent version, like 1.77).

My sg3_utils is:

sg3_utils-1.37-9.el7.x86_64

This could be the problem. I gonna update it.

from sasutils.

thiell avatar thiell commented on September 26, 2024

@tcuryddn Thanks for sharing/reporting this. I guess you should be good with the version of sg3_utils shipped with CentOS 7.3.

The udev scripts only work when a SES-2 Subenclosure nickname is properly set on the enclosure. If not, it uses <device>_no_snic so that's normal.

Subenclosure nickname is a SES-2 standard thing.

You can set/get subenclosure nickname using the commands below. You first need to find the SCSI generic device of your enclosure. You can use sas_discover -v --dev to help find it.

Set nickname (persistent):

# sg_ses -p snic --nickname=io1-jbod2-1 -c /dev/sg130
  QCT       JB4602 SIM 1   1100

Get nickname:

# sg_ses -p snic  /dev/sg130
  QCT       JB4602 SIM 1   1100
Subenclosure nickname status diagnostic page:
  number of secondary subenclosures: 0
  generation code: 0x0
   subenclosure identifier: 0
   nickname status: 0x0
   nickname additional status: 0x0
   nickname language code: 
   nickname: io1-jbod2-1

Still, I'm not sure why sasdev.attrs.enclosure_identifier is not propertly set in your case. Could you print sasdev.attrs.enclosure_identifier in the script and let me know its value? This might be fixed in CentOS 7.4 too.

from sasutils.

 avatar commented on September 26, 2024
root# sas_sd_snic_alias sdc
sasdev.attrs.enclosure_identifier = 0x50001ff2343d0400
enclosures = {'0x50001ff23440c63e': <sasutils.scsi.EnclosureDevice '/sys/class/enclosure/12:0:4:0/device'>, '0x50001ff2343d063e': <sasutils.scsi.EnclosureDevice '/sys/class/enclosure/1:0:5:0/device'>}
WARNING:root:sdc not an array device (/sys/block/sdc/device/block/sdc)
Not found: '0x50001ff2343d0400'

from sasutils.

 avatar commented on September 26, 2024

@thiell, I figured out that my enclosure doesn't support subenclosure nickname (SES-2):

[root@oss01 ~]# sg_ses -p 0 /dev/sg5
  DDN       SS8462            0124
Supported diagnostic pages:
  Supported Diagnostic Pages [sdp] [0x0]
  Configuration (SES) [cf] [0x1]
  Enclosure Status/Control (SES) [ec,es] [0x2]
  String In/Out (SES) [str] [0x4]
  Threshold In/Out (SES) [th] [0x5]
  Element Descriptor (SES) [ed] [0x7]
  Additional Element Status (SES-2) [aes] [0xa]
  Download Microcode (SES-2) [dm] [0xe]
  <unknown> [0x80]

So, I think that this script won't help me right?

from sasutils.

 avatar commented on September 26, 2024

Hi @thiell, what file/function parses the instruction "sasdev.attrs.enclosure_identifier"? I want to debug and check why is getting a wrong wwn.

from sasutils.

 avatar commented on September 26, 2024

hummmm My file system has a file inside de device with a wrong enclosure identifier. Strange.. looks like is a problem here, not the script.

from sasutils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.