How to Create a Local Storage Repository

  • CTX121313
  • Created onMar 26, 2014
  • Updated onJun 13, 2014
Article Topic Configuration, Storage


This article describes how to create local storage in XenServer.


Complete the following procedure to create a Storage Repository (SR) on a new local hard drive (HDD):

Note: The stored data in the server will be lost.
  1. Run the following command to find the disk ID of the new device:
    # cat /proc/partitions
    A list of HDDs and partitions are displayed. Find out which device is your new local disk. Locate it by size. (This is probably “sdb” or “/cciss/c0d1p0”)
    # ll /dev/disk/by-id

  2. Find the disk ID of the “sdb” or “cciss/c0d1”disk. The “scsi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” or “cciss-xxxxxxxxxxxxxxxxxxxxxxxxxx”format is required.

  3. Run the following command to create an SR:
    # xe sr-create content-type=user device-config:device=/dev/disk/by-id/<scsi-xxxxxxxxxxxxxxxxxxxxxxxxx> host-uuid=<host-uuid> name-label=”Local Storage 2” shared=false type=lvm
    # xe sr-create content-type=user device-config:device=/dev/disk/by-id/<cciss-xxxxxxxxxxxxxxxxxxxxxxxxx> host-uuid=<host-uuid> name-label=”Local Storage 2” shared=false type=lvm

Additional Resources

For information on configuring local ext3 storage, refer to Local EXT3 in Citrix XenServer Administrator's Guide

To Copy Virtual Machines (VMs) to the New Storage
  • When you copy a VM from one storage to another, and plan to use this new copy, ensure that you manually change the MAC address on the interface to the one that was used previously. To do this, complete the following procedure:

    1. Note the MAC on the original VM interface.

    2. Change the MAC address on the original VM interface (a small change in characters is sufficient), because you cannot have two identical MACs in the pool.

    3. Change the MAC on the new VM interface.

  • If the MAC address is not changed, you might experience the error described at

Automatic translation

Important: This article was translated by an automatic translation system (also referred to as Machine Translation, or MT) and has not been translated or reviewed by people. Citrix offers a machine translated version of this article to allow for greater access to the support content. However, automatic translation is not always perfect and may contain errors of vocabulary, syntax or grammar. Citrix is not responsible for inconsistencies, errors or damage incurred as a result of the use of MT articles from our customers.Thank you.
Click here to see the English version of this article.
Was this helpful?
Thank you for your feedback

Share your comments or find out more about this topic

Citrix Forums