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:

“e2ed3e18-4c8c-c2e4-1e9c-e2f0e720694″

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.

SCREENSHOT:

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:

http://docs.vmd.citrix.com/XenServer/4.0.1/reference/ch05s04.html

cyber7 out

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

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: