1 |
On Wednesday, July 20, 2016 06:13:36 PM Jarry wrote: |
2 |
> Hi Gentoo-users, |
3 |
> |
4 |
> I'm going to build a small server with Xen-hypervisor with |
5 |
> Gentoo as dom0 (if it is possible). Comming from ESXi-world, |
6 |
> there is no choice (only true hw-raid is supported). |
7 |
> |
8 |
> But what about Linux? What's preffered way to go? Software-raid |
9 |
> (mdadm), or true hardware raid-controller? I have a few spares |
10 |
> (LSI-9271), these worked quite well with ESXi but I'm not sure |
11 |
> they are supported by Linux at all, and if there is actually |
12 |
> some way of monitoring controller-health... |
13 |
|
14 |
LSI is generally quite well supported with Linux. |
15 |
See: https://www.thomas-krenn.com/en/wiki/Smartmontools_with_MegaRAID_Controller |
16 |
|
17 |
This indicates that LSI cards also provide SMART-data of the disks itself via |
18 |
smartmontools. |
19 |
|
20 |
> Concerning sw-raid, I have used it for quite some time, but |
21 |
> never with Xen (is it actually possible?). |
22 |
|
23 |
Yes, it is possible. But the reason why software raid can be faster on bare |
24 |
metal, might no longer be true when using Xen best practices. |
25 |
Dedicating a limited amount of cores to the dom0 also means that you have less |
26 |
cores available for the software raid part. |
27 |
|
28 |
> Moreover, grub-config |
29 |
> for Xen itself is somehow more complicated and sw-raid could add |
30 |
> extra complexity... |
31 |
|
32 |
Using Grub1: |
33 |
--- |
34 |
title Xen |
35 |
root (hd0,1) |
36 |
kernel /xen.gz dom0_mem=4GB,max:4G console=vga dom0_max_vcpus=1 dom0_vcpus_pin |
37 |
module /kernel-4.1.7-hardened-r1-host softlevel=xen |
38 |
--- |
39 |
|
40 |
I compile in the initramfs and commandline these days. |
41 |
But if using a seperate one, simply add an extra "module" line: |
42 |
|
43 |
--- |
44 |
title Xen |
45 |
root (hd0,1) |
46 |
kernel /xen.gz dom0_mem=4GB,max:4G console=vga dom0_max_vcpus=1 dom0_vcpus_pin |
47 |
module /kernel-3.16.5-gentoo dolvm root=/dev/vg/root rootfstype=ext4 |
48 |
module /initramfs-genkernel-x86_64-3.16.5-gentoo |
49 |
--- |
50 |
|
51 |
> So the question is simple. For Xen-server with Gentoo as dom0, |
52 |
> what do you recommend: sofware- or hardware-raid? |
53 |
> |
54 |
> Any other general tips concerning Xen (particularly with Gentoo |
55 |
> as dom0)? |
56 |
|
57 |
No specific Gentoo-tips, it's actually quite well supported. |
58 |
|
59 |
If you prefer an appliance-like dom0, you could also look into XenServer. |
60 |
There is a free-to-use version available. Downside: the graphical management |
61 |
client is MS Windows only. |
62 |
|
63 |
-- |
64 |
Joost |