Objective
Suppose that we have included a new item to our Xenserver’s storage repository such as the newly downloaded ISO images. XenServer would not list this item immediately and thus this requires a manual action to include this new item into XenServer’s storage repository list. The objective is to rescan XenServer’s storage repository thus make all new items available for use.
Requirements
Administrative Local or Remote command line access to XenServer is required to complete this task.
Difficulty
EASY
Instructions
Obtain storage UUID
First, we need to obtain UUID of the XenServer’s storage repository we would like to re-scan. To do this run xe sr-list command. Example:
# xe sr-list
uuid ( RO) : 132b9e6a-1798-bfcb-fb79-37be7ee8bf93
name-label ( RW): Removable storage
name-description ( RW):
host ( RO): xenserver
type ( RO): udev
content-type ( RO): disk
uuid ( RO) : 970317f9-3187-b5e0-1ea5-16666fdf3348
name-label ( RW): ISO_IMAGES_LOCAL
name-description ( RW):
host ( RO): xenserver
type ( RO): iso
content-type ( RO): iso
uuid ( RO) : 01533e0e-6c17-36fa-c987-2d29f355ef6e
name-label ( RW): XenServer Tools
name-description ( RW): XenServer Tools ISOs
host ( RO): xenserver
type ( RO): iso
content-type ( RO): iso
uuid ( RO) : bdafe018-617d-5c49-6488-c81c01d40f21
name-label ( RW): Local storage
name-description ( RW):
host ( RO): xenserver
type ( RO): ext
content-type ( RO): user
uuid ( RO) : 9ea646ec-2795-a579-4668-e0f779402ca6
name-label ( RW): DVD drives
name-description ( RW): Physical DVD drives
host ( RO): xenserver
type ( RO): udev
content-type ( RO): iso
The name of XenServer’s storage repository we would like to re-scan is ISO_IMAGES_LOCAL and its UUID reads 970317f9-3187-b5e0-1ea5-16666fdf3348
Re-scan XenServer’s storage repository
Now, that we have obtained the UUID of the XenServer’s storage repository we would like to re-scan, we use xe sr-scan to re-scan/refresh its content:
# xe sr-scan uuid=970317f9-3187-b5e0-1ea5-16666fdf3348
List XenServer’s storage repository content
After re-rescan our new items should be included within repository’s content. For example, to list all ISO repositories run:
# xe cd-list
to list all virtual disks run:
# xe vdi-list