Add a XenServer storage repository on local disk

Most people use shared storage, like iSCSI, for their XenServer storage repositories to hold virtual machines.  Virtual machines *MUST* be in a shared storage repository in order to enable XenMotion and other advanced features.

It is handy to have some local storage repositories available, mainly to hold backups of machines.  For example, you could shutdown a running virtual machine, right click on it, select Copy, and select a local repository to hold the copy.  Then if you lost your iSCSI server, you’d have a local copy of the virtual machine you could start until the the iSCSI server became available again.

The XenCenter management GUI doesn’t allow you to make local storage repositories.  You have to use the command line.  Luckily, it’s pretty easy.  Here’s my updated XenServer wiki page on how to do this.

    • Piete Brooks
    • March 28th, 2011

    It would be useful to add instructions on how to detach and re-attach the local storage (I’m thinking of a separate disc, allowing me to manually migrate the storage).

  1. I wrote an article how to create an ISO repository on separate partition, can be useful for some people:
    http://adamscheller.com/server-administration/xenserver-local-iso-storage-new-partition/

  1. No trackbacks yet.