Software installation can be a simple process or it can be a bother especially if you selected the wrong option.   So what do you do with xenserver if you forget to assign the second local disk.   You would think xencenter would be able to handle this but it does not.  Probably the easiest part is to simple re-run the installer but not everybody thinks of it right away as we tend to search for the easier solution that has to exist.

There is the manual of course but why read paper when you have the Net? I found a solution from the XenDesktopmaster site.  How to add an additional local disk to your XenServer 5.5 host.

The directions were simple to follow but I will make a couple minor modifications for my needs.

If you are using a rather large resource pool, you will have less effort if you add the disk before adding the host to the pool.   Less to scan.

The first thing you need to do is to verify the path of the disk and the disk name.    This is accomplished by using the command line interface via the console tab of the host.

[root@host~]# fdisk -l

Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1        1029     4194304   83  Linux
/dev/cciss/c0d0p2            1029        2057     4194304   83  Linux
/dev/cciss/c0d0p3            2057       35132   134949920+  8e  Linux LVM

Disk /dev/cciss/c0d1: 146.7 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

Disk /dev/cciss/c0d1 doesn’t contain a valid partition table
[root@peemt354 ~]#

Note:  This is one area which could be different depending on your computer.   I used an HP DL 360 G6.  You might be tempted to use the partition as listed with c0d0 and call the partition c0d10p1.   It will work but for consistency; keep it as c0d1.

Now you will need the UUID of the host in order to add the disk. This is where not being in the pool cuts down on the output.

[root@host~]# xe host-list

uuid ( R0)                                :  faee160c-50d6-408b-8139-ce3c07d07635
name-label ( RW)        :  host
name-description ( RW) : Default install of XenServer

Now we have what we need to add the second disk.

xe sr-create host-uuid=faee160c-50d6-408b-8139-ce3c07d07635 content-type=user type=lvm device-config:device=/dev/cciss/c0d1 shared=false name-label=”Hostname storage 2

Note: I started using hostnames as part of the disk name to help locate drives in searches.

If you need to add the drive with support for thin provisioning, enter the same command but add  sm-config:allocation=thin   to the end.

After that you should see the second disk appear.