How to Reattach a Forgotten Integrated StorageLink (iSL) Storage Repository

How to Reattach a Forgotten Integrated StorageLink (iSL) Storage Repository

book

Article ID: CTX135734

calendar_today

Updated On:

Description

This article describes how to reattach a forgotten Intergrated StorageLink (iSL) Storage Repository (SR).

Requirements

  • CLI access to XenServer master host

  • XenCenter Access


Instructions

Complete the following steps to reattach to Storage Repository (SR):

  1. Collect information about the forgotten SR, such as:
    storageSystemId - Can be found in SMLog / xapi-db from status report prior to forgetting the SR / sr-probe
    storagePoolId - Can be found in SMLog / xapi-db PBD record /sr-probe
    sr-uuid - Can be found in SMLog / xapi-db

  2. Perform SR-Probe to check that volumes and SR's exist and can be viewed/ you can see them.

    The following are the various commands that you must use to collect the information:

    Command to list volumes:
    #xe sr-probe type=cslg device-config:target=192.168.10.10 device-config:username=root device-config:password=UrPassword device-config:adapterid=NETAPP device-config:storageSystemId=NETAPP__LUN__0A0C2D0A

    Command to list SRs:
    #xe sr-probe type=cslg device-config:target=192.168.10.10 device-config:username=root device-config:password=UrPassword device-config:adapterid=NETAPP device-config:storageSystemId=NETAPP__LUN__0A0C2D0A device-config:storagePoolId=49441500-b649-11de-bd01-00a0980d8458

    Perform SR-Introduce:
    #xe sr-introduce uuid=71726d14-9834-6df1-e343-288e7bb82a53 name-label=RecoverediSLSR type=cslg

  3. Use XenCenter to reattach the Physical Block Device (PBD) selecting the aggregate and it should list the VDIs.

    Or

    Use the CLI to create the PBD per host with the following command:
    xe pbd-create type=cslg device-config:adapterid=NETAPP device-config:target=192.168.10.10 device-config:username=root device-config:password=UrPassword device-config:storageSystemId=NETAPP__LUN__0A0C2D0A  device-config:storagePoolId=49441500-b649-11de-bd01-00a0980d8458 host-uuid=699793b6-79a4-4056-81a5-248dbaea8900 sr-uuid=71726d14-9834-6df1-e343-288e7bb82a53

  4. Reattach VDIs to the correct Virtual Machines.

Environment

The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.

Issue/Introduction

This article describes how to reattach a forgotten Intergrated StorageLink (iSL) Storage Repository (SR).