While XenServer 5.5 has a pretty decent GUI, there are still a few tasks that we have to use the command line for. Resizing Storage Repositories would be one of those tasks. In my environment, we use a Fibre Channel SR in our main XenServer resource pool, so I can vouch that these steps will work for that type of environment.

Before starting with these steps, make sure you have actually resized the LUN using whatever software provided by your SAN vendor. This process is simply getting XenServer to recognize the change.

  1. Open the console of your XenServer Resource Pool Master.
  2. Run xe sr-list
  3. Find the UUID associated with the name of the SR you wish to resize. Make note of the UUID (I just copy it).
  4. Next, find the device name. To do this, run pvscan | grep <uuid> - The device name will look like /dev/sdb – Make note of this as well.
  5. Run pvresize <devname>
  6. Run xe sr-scan <uuid>
  7. Verify that the SR shows the new size in XenCenter.

It’s a simple process, though I forget how to do it every time. Now it’s written down for all to see!

Tagged with:
 

One Response to Resizing Storage Repositories in XenServer

  1. eddymart says:

    Thanks for your topic.
    Can this task run live?
    We have virtual machine running on this SR.
    Many thanks for your help.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>