How to Create a Local Storage Repository

How to Create a Local Storage Repository

book

Article ID: CTX121313

calendar_today

Updated On:

Description

This article describes how to create local storage in XenServer.


Instructions

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-*************************” or “cciss-******************”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-*********************> 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-********************> host-uuid=<host-uuid> name-label=”Local Storage 2” shared=false type=lvm

Issue/Introduction

This article describes how to create local storage in XenServer.

Additional Information

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

Note: If the third partition was not created during the XenServer installation process, it is possible to use the available space (capacity - 8GB for 6.5 and earlier) as local storage. Create the third partition using gdisk and set the type to Linux LVM. Reboot the host and then run the same xe sr-create command. The device should be the third partition suffixed with -part3.