So recently I deployed 3 XenServer 6 hosts with local storage only. Our need was to virtualize approx 6 very old Centos QA servers running on ancient hardware.
Since I did not have any dedicated network/san storage at my disposal I stuck 6, 146 SAS drives in each server and carved them up into a 410GB raid 10 array.
However the XenServer install did not detect this secondary logical disk, so I had to figure out how to manualy create a storage repository using this new drive.
The first thing that I needed to do was to see how the disk was identified by the OS, for this I used fdisk
Disk /dev/sdb: 440.3 GB, 440345714688 bytes
255 heads, 63 sectors/track, 53535 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Using the output above I was easily able to determine that my secondary drive was /dev/sdb.
So first this i did was to determine the UUID of the host that I was logged into
Which spit out the output below
# xe host-list
uuid ( RO) : 4a9971f7-1e59-4e02-b849-04d206ee7b2b
name-label ( RW): xen01
name-description ( RW): Default install of XenServer
Then I ran the following command to create my new SR on /dev/sdb on xen01
xe sr-create host-uuid=4a9971f7-1e59-4e02-b849-04d206ee7b2b content-type=user type=ext device-config:device=/dev/sdb shared=false name-label=”Local storage 2″
Then I confirmed that the new SR was created
xe sr-list host=xen01
Note that one fo the things that I found most odd with this process is that you do not actually create a partition on your disk before turning it into a storage repository.