Installation guide

Installing XenServer
17
2. Repeat for each XenServer Host in the pool.
Procedure 3.11. To create an SR on the iSCSI share at the pool level via the CLI
1. In the Text Console of any server in the pool, issue the command:
xe sr-create name-label=<name for SR>
content-type=user device-config-target=<iSCSI server IP address>
device-config-targetIQN=<iSCSI target IQN>
device-config-localIQN=<iSCSI local IQN>
type=lvmoiscsi shared=true device-config-LUNid=<LUN ID>
The device-config-target argument refers to the hostname or IP address of the iSCSI server.
The device-config-LUNid argument can be a comma-separated list of LUN IDs. Since the shared
argument is set to true, the shared storage will be automatically connected to every host in the pool
and any hosts that subsequently join will also be connected to the storage.
The command returns the UUID of the created storage repository.
2. Find the UUID of the pool by issuing the command
xe pool-list
3. Set the shared storage as the pool-wide default as follows:
xe pool-param-set uuid=<UUID of the pool> default-SR=<UUID of the iSCSI shared SR>
Now that the shared storage has been set as the pool-wide default, all future VMs will have their disks
created on shared storage by default.