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.
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:
ps the “name-label=” is just the value/label you want to see in your storage…