Saturday, August 15, 2015

Install XenServer6.5 in N54L

Today I installed XenServer65 into N54L with 8GB ram and 3 SATA 500GB disks.

First, get USB stick key image of Xenserver 6.5, and then copy it  onto the flash memory.
You have to install syslinux boot loader too.

Next, stick to Microserver and start the installation wizard.
I use one of three sata disks as a local store. I checked thin provisioning.

The other disks are available for mirror raid.
Setup mdraid on XenServer.

gdisk /dev/sdb
gdisk /dev/sdc

 disk type is 'fd00'.

if you reuse raid disk,

mdadm --zero-superblock /dev/sdb1 

And now I set raid mirror, and register as a sr.

mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdb1 /dev/sdc1
xe sr-create content-type=user type=ext device-config:device=/dev/md0 shared=false name-label="Local raid xen1" host-uuid={blah blah blah}

host-uuid is needed tobe set as the second host of xen pool.
This command is block still a few minutes. Wait.

You need set raid to start at host's boot, but /etc/mdadm.conf doesn't work.
Calling mdadm assembly from rc.local is a workaround.

I set 2 hosts in a pool.





No comments:

Post a Comment