Add local storage to a XenServer
You have installed your XenServer 6.x and want to use local storage?
Log in to the shell either go to xenserver console in XenCenter or access the server via SSH. (On windows you can use putty or even better MTPuTTY “Multi-Tabbed-PuTTY”)
when your logged in to the xenserver type the following comand to check your installed disks.
type: fdisk -l
In my case I have two disks that I need to install
/dev/sda and /dev/sdc
To be able to use the drive type: pvcreate <device name> . So in my case it is:
[root@xenghetto ~]# pvcreate /dev/sda
Physical volume “/dev/sda” successfully created
[root@xenghetto ~]# pvcreate /dev/sdc
Physical volume “/dev/sdc” successfully created
Last step is to configure them for xenserver use as local storage and give them a label: xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/dev/sdc name-label=”Local Disk 2”
xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/dev/sda name-label=”Local Disk 3”
Now you see your disks in XenCenter.