Crucial Paradigm Australia Official Blog
xenserver
Sometimes when shutting down a VM via the standard XenCenter interface or command line (xe) on a Citrix XenServer machine the shutdown will not complete. The first thing to try is a force shutdown on the VM:
xe vm-shutdown –force vm=[vm name]
If this still doesn’t work you can try taking a look in the XenServer pending task queue:
xe task-list
And cancel the process’ that seem to be holding up the system:
xe task-cancel uuid=[task uuid]
If this still fails you can try the following:
xe-toolstack-restart
If you have noticed your Citrix XenServer machine grind to a halt due a process “cdrommon” this is a known bug with a particular CD-ROM drive in XenServer. A fix for the bug can be found here:
http://support.citrix.com/article/CTX126919
In short to check if you are effected by the bug, run the following:
dmesg | grep DV-28
This bug applies to “TEAC DV-28E-V” CD-ROm drives.
Adding a local storage repository to a Citrix XenServer 5.x server can be done as follows:
NOTE: Extra precaution should be taken while using the following commands, as it could result in data loss. Only perform these steps if you know what you are doing:
- Locate the disk ID by using the following command:
# ls -al /dev/disk/by-id - Create the local storage repository:
# xe sr-create content-type=user device-config:device=/dev/disk/by-id/<scsi-xxxxxxxxxxxxxxxxxxxxxxxxx> name-label=”Local Storage X” shared=false type=lvm
If you ever wondered how to remove the physical NIC configuration on a Citrix XenServer machine, this is how you can do it:
xe pif-reconfigure-ip uuid=XXXXXXXXXXX mode=none
Where “XXXXXXXXXXX” is the uuid of the NIC to remove the configuration from, this can be either a NIC or a bond. To find out the NIC/bond uuid you can run the following command:
xe pif-list
If you have tried installing any software on XenServer you will know that it is not an easy process. This article shows how you can install smartctl on a XenServer server. Smartctl is a great utility to monitor drives and if they have had any errors.
To install run the following:
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/8/Everything/i386/os/Packages/smartmontools-5.37-7.fc8.i386.rpm
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/8/Fedora/i386/os/Packages/mailx-8.1.1-46.fc7.i386.rpm
rpm -hiv smartmontools-5.37-7.fc8.i386.rpm mailx-8.1.1-46.fc7.i386.rpm
You now have smartctl installed on XenServer!
If the physical interface used for the manage interface needs to be changed, edit the MANAGEMENT_INTERFACE field /etc/xensource-inventory file on the host to reflect the new interface being used. Make sure you use the bridge interface (e.g. xenbr0) and not the physical NIC.
Once you have made this modification you will need to run the following:
xe-toolstack-restart

