Note: All data will be lost.

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

  • Find the disk ID of the new device using the following commands:
    # cat /proc/partitions

    (You will see list of HDDs and partitions. Find which device is your new local disk. Locate it by size. This is probably “sdb” or “/cciss/c0d1p0”)

    # ll /dev/disk/by-id

    Find the disk ID of the “sdb” or “cciss/c0d1”disk. The “scsi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” or “cciss-xxxxxxxxxxxxxxxxxxxxxxxxxx”format is what you would require.

  • Create a Storage Repository (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

    - Or -
    # 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

More Information

Copy Virtual Machines (VMs) to the new storage:

  • When you copy a VM from one storage to another, and you 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. Take note of the MAC on the original VM interface.
    2. Change the MAC address on the original VM interface to something else (just change the last character), because you cannot have two identical MACs in the pool.
    3. Change the MAC on the new VM interface.



转自:http://support.citrix.com/article/CTX121313