Jump to content
Welcome to our new Citrix community!
  • 0

Error code: SR_BACKEND_FAILURE_200 Error parameters: , General IO error [opterr=An error occured during the scsi operation],


Question

10 answers to this question

Recommended Posts

  • 0

@ Alan: Xenserver version is 6.5 , we have also tried this with xen 7.0 also. But issue persists. and we are using multipath. We have been using Hardware HBA to probe new LUNs (from FC SAN backend)

 

@Tobias: I am also checking SAN logs for any issues (so far none) and it is only affecting new probes. Existing LUNs are working fine. I have also tried to safely move (LUNs) from one XENserver to another (in which case, it reattaches the LUNs and "we move them from backend storage Views) but still fails to detect that and gives same General IO error. I have  pasted SMlogs for reference.

SMLogs when failure occurs are: 
May 25 10:55:03 esnode17 SM: [18608] '
May 25 10:55:03 esnode17 SM: [18608] ['scsi_id', '-g', '--device', '/dev/sdx'] failed with ('Operation not permitted',)
May 25 10:55:03 esnode17 SM: [18608] ['scsi_id', '-g', '-s', '/block/sdx']
May 25 10:55:03 esnode17 SM: [18608]   pread SUCCESS
May 25 10:55:03 esnode17 SM: [18608] ['scsi_id', '-g', '--device', '/dev/sdw']
May 25 10:55:03 esnode17 SM: [18608] FAILED in util.pread: (rc 1) stdout: '', stderr: 'scsi_id: invalid option -- -
May 25 10:55:03 esnode17 SM: [18608] '
May 25 10:55:03 esnode17 SM: [18608] ['scsi_id', '-g', '--device', '/dev/sdw'] failed with ('Operation not permitted',)
May 25 10:55:03 esnode17 SM: [18608] ['scsi_id', '-g', '-s', '/block/sdw']

 

Edit#01:  All the multipaths are healthy (verified via xen as well as backend)

Edited by aliraza1
Link to comment
  • 0

Issue Solution in Our Case:

 

One liner: " Asssign LUN ID between 0-256 OR Don't assign LUN ID greater than 256 to XEN SR (via FC SAN Backend)". As Xen will throw below exception, if LUN ID (being discovered via Hardware HBA is greater than 256), see below SMlog:

SM: [30020] scsi add-single-device 0 0 0 258
May 25 17:00:54 esnode17 SM: [30020] SCSI_DEV_CTRL: Failure, Invalid argument [22]
May 25 17:01:00 esnode17 SM: [30020] Raising exception [200, General IO error [opterr=An error occured during the scsi operation]]

In above case, I was constantly trying to add LUNs with ID greater than 256 (above case with 4 multipath: 0 0 0 258 ), and then saw in /var/log/SMlog that it was only giving failure if LUN ID was above 256.

It seems there might be a size limit to the LUN ID Number (Might be the size of variable (1 Byte) that stores the LUN ID in XEN, I have not read about the exact technical details, may be there is some other reason behind it ).  Anyways, if it helps anyone else :) 

 

Thank you so much Tobias & Alan for pointing me in the right direction :11_blush:

 

Link to comment
  • 0

Ah, that certainly would explain it! Do you have any idea why it's trying to use such a high LUN value (258)?

If it falls outside the acceptable range, that would certainly trigger an error condition. I do ot recall my ever manually needing to set such a value, and always just using the defaults.

 

-=Tobias

Link to comment
  • 0

Exactly, actually XEN was not the culprit, if LUN is added automatically XEN host assigns the lowest unused number (which usually does not reach such high value per XEN server Host).

 

In our case, one of the backend FC SAN Array was the reason for high LUN value (it was set to auto increment the LUN ID value). We usually (manually) kept that exact (LUN ID) value for our XEN host for audit purposes, so when one of the FC Array 'LUN ID count' reached above 256 ( in total for all XEN host), it triggered the error. Now, as you've said, we are ( not manually assigning LUN ID to xen host) auto assigning LUN ID to XEN hosts and it is working fine :)

 

- Ali Raza

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...