Jumbo Frames with XenServer 5.5

There doesn't seem to be any way to configure jumbo frames with XenServer 5.5, and I'm sure this is unsupported, but it can be done by hacking the XenServer 5.5 config files.

view plain print about
1#vi /opt/xensource/libexec/interface-reconfigure +879

You will see something like this

view plain print about
1f.write('"\n')
2 return f

We are going to add our MTU information there:

view plain print about
1f.write('"\n')
2 #add MTU
3 f.write('MTU=9212\n');
4 return f

9212 is the MTU I chose, make sure you choose one that's appropriate for your network, and make sure to test it first.

This will only change the MTU on the bonded interfaces, I believe.

Webmin on OpenSolaris

After installing webmin from the package manager, you will need to run

view plain print about
1webminsetup

to generate the appropriate config files.

locate on OpenSolaris

Solaris has an alternate version of locate, called slocate. updatedb is still called the same, just instead of locate, you would call slocate.

CentOS 5.3 on XenServer 5.5 Graphical Install

In order to do a graphical install (which lets you customize your LVM volumes) you just need to add the vnc option to the "OS Boot Parameters" when creating the VM. It should look like this:

view plain print about
1graphical utf8 vnc

Once you start up your VM, it will go through a short text based configuration wizard, configuring your NIC and such, after which it will prompt you to log in using VNC.

Urchin 5 - Opening reports in the same window

By default Urchin 5 seems to want to open reports in a new window. This can be a little annoying. To change this, we just need to update the javascript function that gets run when you click on the "View Report" link.

view plain print about
1vi /usr/local/urchin/htdocs/ujs/admin.js +434

You should see the following code:

view plain print about
1mywin = window.open('',myname);
2
3mywin.location.href = url;
4mywin.focus();

We're going to comment it out and add our own code:

view plain print about
1//mywin = window.open('',myname);
2
3//mywin.location.href = url;
4
5//mywin.focus();
6
7window.location.href=url;

After clearing our cache, the reports open in the same window.

LACP with XenServer 5.5

In order to make XenServer 5.5 work with LACP, we need to modify the start up scripts

view plain print about
1#vi /opt/xensource/libexec/interface-reconfigure +863

We will see the following:

view plain print about
1# The bond option defaults
2 bond_options = {
3 "mode": "balance-slb",
4 "miimon": "100",
5 "downdelay": "200",
6 "updelay": "31000",
7 "use_carrier": "1",
8 }

We will change the mode from "balance-slb" to "802.3ad"

view plain print about
1# The bond option defaults
2 bond_options = {
3 "mode": "802.3ad",
4 "miimon": "100",
5 "downdelay": "200",
6 "updelay": "31000",
7 "use_carrier": "1",
8 }

Don't forget to configure your switch for LACP.

Speeding up web interface in NexentaStor

The default install of NexentaStor's web interface is incredibly slow. I'm not sure why, but they limit it to a single thread, which doesn't work out that well when you have images and things like that that need to be loaded.

The way to up the number of threads is to edit the /var/lib/nza/prod.cfg from a shell. First start up Putty and ssh to the nexenta IP, and log in with the root password. If you have not already set up expert mode

view plain print about
1option expert_mode=1 -s

Now we need to get into a shell.

view plain print about
1$ !bash
2Warning: using low-level UNIX commands is not recommended! Execute? Yes
3root@Nexenta:/volumes#

Now lets edit the file

view plain print about
1# vi /var/lib/nza/prod.cfg

Find the line that says

view plain print about
1server.thread_pool = 0

and change it to something higher (the nexenta docs recommend setting it no higher then 10

view plain print about
1server.thread_pool = 10

Now we need to restart the NMS service for things to take effect

view plain print about
1svcadm restart nms

This tends to knock me off the ssh session, and I have to go and reconfigure the network interface from a terminal.

How to break into bash shell in NexentaStor

view plain print about
1nmc$ option expert_mode=1 -s
2nmc$ !bash
3#

Detect new network cards on XenServer 5

I installed XenServer 5, and then added some gigabit NICs, but the server wasn't seeing them. Turned out I needed to do the following from the server console:

view plain print about
1#xe host-list
2uuid ( RO) : 9ec3de63-30fe-4575-b972-1234ed235345
3 name-label ( RW): xenserver-lfiuljac
4 name-description ( RO): Default install of XenServer
5#
6xe pif-scan host-uuid=9ec3de63-30fe-4575-b972-1234ed235345

This made the NICs show up in XenCenter.

BackupPC - rsync over ssh on an alternate port

I recently set up BackupPC to back up a remote server using rsync over ssh. I won't go into the gory details now, but in order to make it work on an alternate port, I had to make the following change to the config file for this host:

view plain print about
1$Conf{RsyncClientCmd} = '$sshPath -p 1234 -q -x -l root $host rsync $argList+';

This will connect to ssh running on port 1234 on the remote $host.

If you try changing $sshPath to include the switch, BackupPC tries to escape the arguments when using them, and that results in weird errors.

Previous Entries / More Entries

BlogCFC was created by Raymond Camden. This blog is running version 5.9.5.006. Contact Blog Owner