This article describes how to reattach a forgotten Intergrated StorageLink (iSL) Storage Repository (SR).
CLI access to XenServer master host
XenCenter Access
Complete the following steps to reattach to Storage Repository (SR):
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
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
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
Reattach VDIs to the correct Virtual Machines.