Xenserver has no Local Storage

I added some new disks to a couple of HP servers including a 1RU stand-alone and a blade server recently, but in the end the fresh Xenserver has no Local Storage. Installing Xenserver 6.5 seemed to complete as expected, except that when I looked at the new server there was no Local Storage.

A DVD drive and a USB Removable device were recognised correctly.

I am still not clear on why it did not complete the process of preparing the Local Storage, but the following process resolved it for me.

Postscript: I then went to the second blade server and found a different config partly completed during the install resulting in the same issue but a different method to address it. See my other post Xenserver install without Local Storage.

In a nutshell, Xenserver Dom(0) was installed but did not configure the rest of the disk as a usable device.

Step 1. From the console identify the host uuid like this for the test server DS3001:

# xe host-list
uuid ( RO)                : 4c2e3091-502f-47b8-8f64-64e8feba806b
name-label ( RW): DS3001
name-description ( RW): Default install of XenServer

Step 2. Find the partition/drive configuration:

# cat /proc/partitions
major minor  #blocks  name

7        0      57216 loop0
104        0  292935982 cciss/c0d0
104        1    4193297 cciss/c0d0p1
104        2    4193297 cciss/c0d0p2
104        3  284546333 cciss/c0d0p3
104       16  976729816 cciss/c0d1         <<—  this is the one we want as it is the largest partition
11        0    1048575 sr0
11        1     589594 sr1
8        0 1953514583 sda
8        1 1953513559 sda1
8       16 1953514582 sdb
8       17 1953512534 sdb1

and then get the UUID :

# ls -lah /dev/disk/by-id
total 0
drwxr-xr-x 2 root root 180 Jul  6 12:29 .
drwxr-xr-x 7 root root 140 Jul  6 12:29 ..
lrwxrwxrwx 1 root root  16 Jul  6 12:29 cciss-3600508b100103231372020202020000f -> ../../cciss/c0d0
lrwxrwxrwx 1 root root  16 Jul  6 12:29 cciss-3600508b1001032313720202020200010 -> ../../cciss/c0d1

Step 3. Fill in the uuid and the device in to the following command:

# xe sr-create content-type=user device-config:device=/dev/disk/by-id/<cciss-xxxxxxxxxxxxxxxxxxxxxxxxx> host-uuid=<host-uuid> name-label=”Local Storage 2” shared=false type=lvm

Using the examples, to create:
# xe sr-create content-type=user device-config:device=/dev/disk/by-id/cciss-3600508b1001032313720202020200010 host-uuid=4c2e3091-502f-47b8-8f64-64e8feba806b name-label=”Local Storage” shared=false type=lvm

Run that command on Dom(0) console and the new Local Storage will appear in XenCenter.

References:

http://support.citrix.com/article/CTX121313?_ga=1.168442916.42972411.1435579385

 

3 replies on “Xenserver has no Local Storage”

Leave a Reply

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