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

Raid5 array dissapears when scan for Hardware HBA


Question

Hello,

 

I'm testing XenServer 7.4 on new HP DL380 Gen10 machine and I found strange issue.

I wanted to add my RAID5 over 8TB Array (HPE Smart Array P408i-a Controller SAS). It was visible in XS installator (installed on second array 300GB) but then on live system it wasn't visible.

 

I rebooted the server and than fdisk -l showed me /dev/sdb ~9001.6MB. I was able to create new SR using commands listed below:

ll /dev/disk/by-id/ showed me path to drive and then

xe sr-create name-label=<Name of Storage> shared=false device-config:device=<Path of the Storage device> type=lvm content-type=user

 

But every time when I try to scan for Hardware HBA /dev/sdb dissapears and SR obviously isn't accessible.

Is it some know bug in 7.4 or something like that?

 

Best Regards

Michal

Link to comment

4 answers to this question

Recommended Posts

  • 0

Hi Tobias,

first of all thank you for your answer, secondly like I wrote I used exactly that path to create new SR but it doesn't resolve the real problem that is /dev/sdb disappearing from system after scanning for Hardware HBA.

I've made some test and right now I'm pretty sure that:

- /dev/sdb is visible in system after reboot

- /dev/sdb disappears from system every time you try to scan for HBA (for any reason)

- only solution to bring back /dev/sdb is to reboot xenserver

 

To summarize I already have working SR but if you try to scan for HBA (for any reason) than /dev/sdb disappears from system and SR is still there but you cannot write to it.

 

Command used before scan for HBA:

[root@test1 ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi6 Channel: 00 Id: 00 Lun: 00
  Vendor: HPE      Model: Smart Adapter    Rev: 1.34
  Type:   Enclosure                        ANSI  SCSI revision: 05
Host: scsi6 Channel: 01 Id: 00 Lun: 00
  Vendor: HPE      Model: LOGICAL VOLUME   Rev: 1.34
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi6 Channel: 01 Id: 00 Lun: 01
  Vendor: HPE      Model: LOGICAL VOLUME   Rev: 1.34
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi6 Channel: 02 Id: 00 Lun: 00
  Vendor: HPE      Model: P408i-a SR Gen10 Rev: 1.34
  Type:   RAID                             ANSI  SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
  Vendor: hp       Model: DVDRW  GUD0N     Rev: UM02
  Type:   CD-ROM                           ANSI  SCSI revision: 05
Host: scsi7 Channel: 00 Id: 00 Lun: 00
  Vendor: Generic- Model: SD/MMC CRW       Rev: 1.00
  Type:   Direct-Access                    ANSI  SCSI revision: 06

 

And after scan for HBA:

[root@test1 ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi6 Channel: 00 Id: 00 Lun: 00
  Vendor: HPE      Model: Smart Adapter    Rev: 1.34
  Type:   Enclosure                        ANSI  SCSI revision: 05
Host: scsi6 Channel: 01 Id: 00 Lun: 00
  Vendor: HPE      Model: LOGICAL VOLUME   Rev: 1.34
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi6 Channel: 02 Id: 00 Lun: 00
  Vendor: HPE      Model: P408i-a SR Gen10 Rev: 1.34
  Type:   RAID                             ANSI  SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
  Vendor: hp       Model: DVDRW  GUD0N     Rev: UM02
  Type:   CD-ROM                           ANSI  SCSI revision: 05
Host: scsi7 Channel: 00 Id: 00 Lun: 00
  Vendor: Generic- Model: SD/MMC CRW       Rev: 1.00
  Type:   Direct-Access                    ANSI  SCSI revision: 06

 

For some reason one SCSI lun is missing. Same issue exists on XenServer 7.3.0 cos I reinstalled this server today with 7.3 for test purposes.

 

Another additional info:

Today I installed XS 7.4 once again but this time I've deleted all arrays in HP bios so there's only physical disks available and this time scan for Hardware HBA gave me a list of all physical disk and nothing disappeared after scan.

So it looks like there's some kind of problem with array support on this HP controller.

 

Edited by Ekomich
Additional info
Link to comment
  • 0

Same problem on a DL360p G8 with a P420i controller... and I'm running 8.2! Everytime I try to add my Raid 5 as a local SR, the LUN disappears from CentOS7 visibility (fdisk, etc) until I reboot.  I can mount it just fine locally in CentOS7, but it disappears upon attempting the SR LUN scan. Its definitely something with how XenCenter LUN scans happen.

 

EDIT: In my case, I end up doing the following to add the Raid 5 as a usable SR:

 

Adding the SR manually via terminal...

https://www.incredigeek.com/home/how-to-create-a-local-storage-repository-for-xenserver/

 

Initially it failed, with the error "The SR operation cannot be performed because a device underlying the SR is in use by the server."  because it appears it partially added to my list of SRs, but again... disappeared.  I ended up running the pbd-unplug and pbd-forget commands from here to get rid of this remnant: 

https://support.citrix.com/article/CTX131328

 

EDIT 2: The downside... if you initiate an HBA scan, your storage added using the steps above and you need to do a reboot of the server to get it back.

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...