Default Xenserver 6.2 root partition is 4GiB that's very small. So I want to separate the /tmp and swap to other partition in this case a LVM volume. The bad news is LVM volumes does not activate on boot. So entries in /etc/fstab
which relies on LVM would fail and the boot process got stuck since the system would try to do some file system checking on every partition listed.
Activate LVM on Boot on XenServer 6.2
To activate on boot we need to make small modification to file/etc/rc.sysinit
around line 487 to 489. Take a look into these lines:
#if [ -x /sbin/lvm.static ]; then # action $"Setting up Logical Volume Management:" /sbin/lvm.static vgchange -a y --ignorelockingfailure #fiThat's the problem, the lines which activate the LVM volume is commented. That's why we ended up with the problem. Now just uncomment those lines and save the file. But make sure you made a copy of it. Reboot the server and all LVM volumes should be detected on boot. Here's an example of my XenServer custom partition scheme:
LABEL=root-mterkkri / ext3 defaults 1 1 #/var/swap/swap.001 swap swap defaults 0 0 none /dev/pts devpts defaults 0 0 none /dev/shm tmpfs defaults 0 0 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /opt/xensource/packages/iso/XenCenter.iso /var/xen/xc-install iso9660 loop,ro 0 0 /dev/mapper/VG--XEN01-Dom0--TMP /tmp ext2 defaults,noexec,nosuid,nodev 1 2 /dev/mapper/VG--XEN01-Dom0--SWAP swap swap defaults 0 0 /tmp /var/tmp none rw,noexec,nosuid,nodev,bind 1 2