XenServer installation SR issue



  • So in my home lab, I've decided to give XenServer a run. I have a Dell R710 with an H700 RAID card in it. I created a RAID 10 volume of 6 TB in the RAID config. I booted from USB and installed XenServer, choosing my new RAID10 volume as storage and selected thin provisioning. It installed successfully.

    Upon booting up, at the console (blue screen), there was no management interface listed, even though I statically set one during the install. I rebooted and now I have a management interface and can connect to it via XenCenter.

    However, my local SR is boned. Under local storage, I have a red X, and the status is "Broken", and Unplugged. Clicking on it and trying a repair fails and tells me "Logical Volume mount/activate error". Did I miss a step during install or RAID setup?



  • What version of XS? 6.5 or 7.0?



  • @Danp 7.0



  • Some more relevant errors in XC:

    When attempting to create a new SR: "Creating hardware HBA-SR 'Hardware HBA virtual disk storage on 'xenserver': The SR operation cannot be performed because a device underlying the SR is in use by the server"

    Also: "The SR has no attached PBDs"



  • @fuznutz04 Can you run a "Repair" on the existing SR?



  • No, thats when I get the error in the original post. "Logical Volume mount/activate error."



  • Does it matter that I installed XS on the actual RAID 10 array that I want to use for storage?



  • @fuznutz04 said in XenServer installation SR issue:

    No, thats when I get the error in the original post. "Logical Volume mount/activate error."

    OIC. Missed that on my initial read. 😉

    @fuznutz04 said in XenServer installation SR issue:

    Does it matter that I installed XS on the actual RAID 10 array that I want to use for storage?

    No, that shouldn't be an issue. Have you verified that all firmware is up to date?



  • Check out this article where they describe a similar issue and list their solution.



  • @Danp I dont even see my disks in XC...

    0_1472679228843_xen.png



  • You would need to SSH into the box or use the console tab within XC.



  • @Danp Following that guide.... " A PBD already exists connecting the SR to the host"



  • @fuznutz04 That was for the xe pbd-create? Did you try performing the xe pbd-plug?



  • @Danp yes, also an error. I just stepped away from my desk so don't remember what it was at the moment



  • @fuznutz04 Details are important. 😉

    If there's nothing meaningful stored on the array, you may be better off to just blow it away and start over from scratch.



  • @Danp 🙂 I did that.. Twice already. Brand new installations



  • @Danp said in XenServer installation SR issue:

    @fuznutz04 That was for the xe pbd-create? Did you try performing the xe pbd-plug?

    [[email protected] ~]# xe pbd-plug uuid=484dbd7d-08b0-0305-eae8-c59ebea39a36
    Error code: SR_BACKEND_FAILURE_52
    Error parameters: , Logical Volume mount/activate error [opterr=FSCK failed on /dev/XSLocalEXT-0bff8e3b-dd7c-c3c4-3125-22569f5bbd77/0bff8e3b-dd7c-c3c4-3125-22569f5bbd77. Errno is 8],



  • @fuznutz04 IDK. Seems odd that this has occurred multiple times. Found this forum post that you may want to review.



  • what is the output of vgs, lvs, pvs from the console?
    Seems like either your lvm layer is bad, or the actual raid array is bad.
    Have you tried to unmount this and then runs fsck?

    Really weird that the local sr wasn't auto created for after install. It is like the first thing that happens when you connect to XS with XC.
    Since it is not working you could just reinstall and try again, there shouldn't be an thing on it at this point.



  • @momurda said

    Since it is not working you could just reinstall and try again, there shouldn't be an thing on it at this point.

    I think he said he did that a few times already.

    I wonder if it is indeed something with the array?



  • XS installs are usually pretty pain-free.



  • I ask this for understanding sake.

    When you install XS on a hardware RAID Array, how does XS see the remaining disk? Does it see it as a completely different disk from the one XS is installed on? or does it realize it's just empty space and create an additional partition to whatever size you dictate?



  • @Dashrender said in XenServer installation SR issue:

    I ask this for understanding sake.

    When you install XS on a hardware RAID Array, how does XS see the remaining disk? Does it see it as a completely different disk from the one XS is installed on? or does it realize it's just empty space and create an additional partition to whatever size you dictate?

    Since it is a DELL H700 (I have the H710) it's just all one big array. No slicing it up from the hardware level.

    Would have made things so much easier.



  • On my xs 6.5 install (which originally was 6.0 I think way before I started here) xs is installed on sda which is the local disk array. The partitions for xs are sda1 and sda2 while sda3 is the local sr. I didn't originally set this up but I would think that you just give XS a whole array, then let it take what it wants for itself, it then gives you the rest to use as local SR.



  • @momurda said in XenServer installation SR issue:

    what is the output of vgs, lvs, pvs from the console?
    Seems like either your lvm layer is bad, or the actual raid array is bad.
    Have you tried to unmount this and then runs fsck?

    Really weird that the local sr wasn't auto created for after install. It is like the first thing that happens when you connect to XS with XC.
    Since it is not working you could just reinstall and try again, there shouldn't be an thing on it at this point.

    [[email protected] ~]# vgs
      VG                                              #PV #LV #SN Attr   VSize VFree
      XSLocalEXT-0bff8e3b-dd7c-c3c4-3125-22569f5bbd77   1   1   0 wz--n- 5.42t    0
    
    [[email protected] ~]# lvs
      LV                                   VG                                              Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
      0bff8e3b-dd7c-c3c4-3125-22569f5bbd77 XSLocalEXT-0bff8e3b-dd7c-c3c4-3125-22569f5bbd77 -wi-a----- 5.42t
    
    [[email protected] ~]# pvs
      PV         VG                                              Fmt  Attr PSize PFree
      /dev/sda3  XSLocalEXT-0bff8e3b-dd7c-c3c4-3125-22569f5bbd77 lvm2 a--  5.42t    0
    
    

    And yes, I've reinstalled twice. The second time, I completely destroyed the RAID array, and created a new one. Then ran a Fast Init on it and install XS. That's all I've done to get to the point of error. 🙂



  • I think you may need to use a different uuid in your xe pbd-plug command
    Here is a reference article
    http://support.citrix.com/article/CTX121896

    This one in your case(I think):
    xe pbd-plug uuid=0bff8e3b-dd7c-c3c4-3125-22569f5bbd77



  • Ah wait. I see the type in the Local SR is ext3
    On my XSs they are LVM
    Did you format the lv?



  • @momurda No, I didn't format the lv. Is that something done during the installation?



  • From the 7.0 Admin guide
    5.2.2. Local EXT3
    Using EXT3 enables Thin Provisioning on local storage. However, the default Storage Repository type is LVM as it gives a consistent write performance and, prevents storage over-commit. Customers using EXT3 may see reduced performance when carrying out VM lifecycle operations such as VM Create, suspend/resume and when initially creating large files from within the VM.
    Local disk EXT SRs must be configured using the XenServer CLI.
    5.2.2.1. Creating a Local EXT3 SR (ext)

    Device-config parameters for ext SRs:
    Parameter Name Description Required? Device device name on the local host to use for the SR
    To create a local ext SR on /dev/sdb use the following command:

    xe sr-create host-uuid=<valid_uuid> content-type=user \ name-label=<"Example Local EXT3 SR"> shared=false \ device-config:device=/dev/sdb type=ext



  • @fuznutz04 Any update?