Add local storage to a XenServer

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

You should now see your available disks.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:

pvcreate /dev/sda
[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.

Enjoy..

I am a Senior System Administrator that work daily with Virtualization,Xenserver, Linux, IT automation, Ansible,Windows, Active Directory, Exchange and a lot more. Here you will find tips and trix from early junior, middle junior and senior to unique information of the topics I mentioned earlier. If you need help with something do not hesitate to contact me I will gladly help.

Tagged with: , , , ,