At this point, we know how to create Storage Repositories in XenServer. Now it is time to know how to manage them, for example when you have to do maintenance tasks on the storage subsystem.
Using XenCenter or xe CLI, a Storage Repository can be removed temporarily or permanently:
Detach: Detaching a Storage Repository breaks the association between the storage device and the pool or server, and its virtual disks become inaccessible. The contents of the virtual disks are preserved, however, and the meta-information used by virtual machines to access the virtual disks is also preserved. Detach can be used when you need to temporarily take a Storage Repository offline, for example, for maintenance.
Forget: When you Forget an SR, the contents of the virtual disks on the SR are preserved but the information used to connect virtual machines to the virtual disks it contains is permanently deleted. The SR is...