Adding new storage to XENServer – a breeze if you know what you are doing!

Leave a comment

March 22, 2012 by aubreykloppers

Adding a new HARD DRIVE to XENServer is as easy as:

xe sr-create content-type=user device-config:device=/dev/disk/by-id/scsi-SATA_WDC_WD10EARX-00_WD-WCC0T0051654 host-uuid=239282d8-3959-42a9-9c8f-df91e551a555 name-label="File Server Storage" shared=false type=lvm

You will then see something like this:


So, what does all this mean?

First of all the /dev/disk/by-id bit:

If you open your console, you will type in: “ls -al /dev/disk/by-id”.  Then, look for the disks with no additional “part1/part2/…” defined on them.  These are the additional hard-drives added to the system.


Snapshot one

The next bit host-uuid= you get from typing into your console: “xe host-list”

You can find the full command line documented page at:

cyber7 out

ps the “name-label=” is just the value/label you want to see in your storage…

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

counter for wordpress
%d bloggers like this: