2.3. Adding shared storageFor a complete list of supported shared storage types, see the Storage chapter. This section demonstrates how shared storage (represented as a "Storage Repository") can be created on an existing NFS server. Adding NFS shared storage to a Resource Pool via the CLI Open a host text console on any XenServer Host in the pool. Create the Storage Repository on server:/path by: xe sr-create content-type=user type=nfs name-label="Example SR" shared=true device-config-server=server device-config-serverpath=path. The device-config-server refers to the hostname of the NFS server and device-config-serverpath refers to the path on the server. Since shared 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 UUID of the created Storage Repository will be printed on the screen. Find the UUID of the pool by: xe pool-list. Set the shared storage as the pool-wide default by: xe pool-param-set uuid=pool-uuid default-SR=sr-uuid. Since the shared storage has been set as the pool-wide default, all future VMs will have their disks created on shared storage by default.
|