Table of Contents

The Gandi agent and server configuration files

The role of the Gandi agent

In expert mode, the Gandi configuration agent is tasked with receiving information about server parameters, number of cores, RAM, new disk size, disks to be attached or detached, and so on.

This agent is included in the gandi-hosting-vm2 package, which may need to be updated in order to take advantage of the latest improvements.

To do this, use the command 'aptitude install gandi-hosting-vm2'.

Gandi config files

Certain files are required by the virtual server due to the particularities of our hosting infrastructure.

Several files and directories are available to you for the purposes of adapting your expert server to your needs.

/etc/gandi

This directory contains our configuration scripts.

/etc/default/gandi

In this file you can adjust the following parameters:

For RPM-based distributions, this file is located at :

/etc/sysconfig/gandi

/etc/udev/rules.d/86-gandi.rules & /etc/fstab

You have two ways of mounting disks on your virtual server:

By default, udev takes care of automatically mounting data disks on /srv/ with the name of the disk. For example, a data disk named d_data would be mounted at /srv/d_data/.

If you want to specify your own mount points, you must deactivate the udev rules related to the disks in the file /etc/udev/rules.d/86-gandi.rules (the VPS will need to be rebooted in order for changes to this file to take effect).

The two lines that need to be commented out to deactivate udev are :

SUBSYSTEMS=="xen", DRIVERS=="vbd", SUBSYSTEM=="block", RUN+="fake_blkid -o udev -p $tempnode", RUN+="/etc/gandi/manage_data_disk.py", OPTIONS+="last_rule"
SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", ENV{ID_VENDOR}=="gandi.ne", RUN+="fake_blkid -o udev -p $tempnode", RUN+="/etc/gandi/manage_data_disk.py", OPTIONS+="last_rule"

/etc/init.d/gandi-mount & /etc/init.d/gandi-kernel

This script allows disks attached to the server and present in /proc/partitions to be mounted on /srv/.

This script automates the installation of kernel modules.

Be sure to update your Gandi packages regularly using the mirrors of our servers to benefit from the latest improvements.