The goal of the following blog is to have a cheap backup system for my XenServer @ Home. Remember snapshots are not backup and it's not recommended to backup you VMs the way I will describe it in a production environment. You can find a Citrix KB to add local storage here : http://support.citrix.com/article/CTX121313   The idea is to install a new hard drive in my XenServer @ Home, configure it and host an OpenFiler VM to share a NFS volume. As the NFS volume will be shared, I want to use it as a backup share to archive all my VMs snapshots with the VM Protection Policies option in Citrix XenServer 5.6 FP1. This option (VM Protection Policies) is available only with the platinum XenServer license. So I plugged the new hard drive and plug it in my XenServer @ Home and switch on the box, then to enable and activate the drive, I needed first to check XenServer was able to see the new hard drive, i used the fdisk -l command : My new hard drive is here, I can notice the /dev/sdb which is empty. Then I needed to create a physical volume by using the pvcreate /dev/sdb command line : Now the physical volume created I can create a logical volume by using the xe sr-create command line. Before I need to identify the ID of the new volume created with the xe pbd-list command :   I can see my new volume, the path and its name, /dev/disk/by-id/scsi-SATA_ST31000340NS_9QJ2EXS0, the first one in the previous list. Now I can create the logical volume to make it ready to execute my backup plan idea, I use the xe sr-create command line. You need to use the command bellow but don't forget to use your device ID, not mine, it won't work :) xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/YOURDEVICENAME name-label=MY_NEW_VOLUME_NAME and you should be just fine. The installation of the new drive is done and now we can download the OpenFiler appliance for XenServer here : http://www.openfiler.com/community/download/. Once downloaded, import the VM into XenServer and start it. To import the Openfiler XenServer appliance you can follow the instruction or you can skip this small part if you know how to proceed. Uncompress the archive you downloaded and in the Citrix XenCenter console do as follow : That's it, now you just need to wait a bit for the…

The issue I describe in this blog are related to my XenServer, my lab at home, be very careful with the modification I explain if you plan to make this change in your own environment... As always, do it on a test environment before please ! Since last week and my XenServer @ home crash, I chose to install the latest XenServer version, 5.6 FP1 (more info here) to try out some new features like Intellicache / open vSwitch / VM Protection and Recovery and the self service portal. The installation was as smooth as usual, just one question more than the previous version about the installation of Intellicache. I've been able to reinstall all my VMs, configure everything and check all these new features. The only issue was my file system was running out of space very very very quickly... I didn't understand why at first because I'm not that skilled with XenServer with command line stuff but I needed to find out what was happening. The first place to check when something wrong is going on, are the log files, you can find XenServer logs files here : /var/log , and the size of my log files were huge ! in less than 24hour I had 3 rotations of log on kern.log and messages log files... To buy me some time and allow me to continue to connect to the XenServer with XenCenter, I made some change in the rotation log configuration file /etc/logrotate.conf : I made the following change, rotate value was 20 I changed it to 5, I activated the compression of log file archives. It did give me some more time to work on this weird issue but not enough, in less than 12 hours my file system was full again... XenCenter wasn't able to connect and the xsconsole command line wasn't working as well. The only way to recover the interface was to kill the xapi process and restart it by using : xe-toolstack-restart command line (I needed to free as much space as possible before). Then I've been able to use XenCenter and xsconsole. I got the message bellow after all these troubleshooting stuffs but still no clue why my log files were becoming so big so quickly... Of course I looked the log file and I saw : Ok... I didn't catch everything, I knew it was something about network but I…