Crippa Andrea

Tag: kernel

Installare Bacula su Centos 5.4 con support per MySQL

This entry was posted by admin ( Crippa Andrea ) on 31 October 2009 at 23:12 and have got 2994 reads . It's field under Linux and tagged , , , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

Aggiornato il 03-01-2010

Creazione del SISTEMA BASE

Installate Centos 5.4. Durante l’installazione, DESELEZIONATE :
– Desktop : gnome
Mettete lo spunto su “personalizza ora” , e selezionate su SVILUPPO :
– Librerie di Sviluppo
– Tool di Sviluppo
– Sviluppo del Software Antiquato
Selezionate su SISTEMA BASE
– Supporto del Software Antiquato

INSTALLARE IL DATABASE SERVER
Per installare il database , fate questo :
yum install mysql-server
yum install mysql-devel.i386

NOTE : Potete installare MySQL anche durante il setup inziale, in questo caso lanciate solo l’installazione di mysql-devel.i386

SCARICARE ED INSTALLARE BACULA
Download bacula and extract it :
wget http://sourceforge.net/projects/bacula/files/bacula/3.0.3/bacula-3.0.3.tar.gz/download
tar -zxf bacula-3.0.3.tar.gz
cd bacula-3.0.3

Configura Bacula for compiling (please note that u have to change the email settings) :
CFLAGS="-g -Wall" \
./configure \
--sbindir=$HOME/bacula/bin \
--sysconfdir=$HOME/bacula/bin \
--with-pid-dir=$HOME/bacula/bin/working \
--with-subsys-dir=$HOME/bacula/bin/working \
--with-mysql \
--with-working-dir=$HOME/bacula/bin/working \
--with-dump-email=your@address.com \
--with-job-email=your@address.com \
--with-smtp-host=localhost

NOTE : La mia installazione di default è la seguente :

CFLAGS="-g -Wall" \
./configure \
--sbindir=/usr/share/bacula/bin \
--sysconfdir=/usr/share/bacula/etc \
--with-pid-dir=/usr/share/bacula/bin/working \
--with-subsys-dir=/usr/share/bacula/bin/working \
--with-mysql \
--with-working-dir=/usr/share/bacula/bin/working \
--with-dump-email=x@y.it \
--with-job-email=x@y.it \
--with-smtp-host=XXX.XXX.XXX.XXX

Compile and install bacula :
make
make install

CREATE DEFAULT DATABASE FOR BACULA
service mysqld start

Andate in /usr/share/bacula/etc ed eseguite gli script seguenti :
./grant_mysql_privileges
./create_mysql_database
./make_mysql_tables

CONFIGURARE IL SISTEMA PER L’AVVIO AUTOMATICO
Copiate gli script di start-stop da /usr/share/bacula/bin in /etc/init.d
cp /usr/share/bacula/bin/bacula /etc/init.d
cp /usr/share/bacula/bin/bacula-sd /etc/init.d
cp /usr/share/bacula/bin/bacula-fd /etc/init.d
cp /usr/share/bacula/bin/bacula-dir /etc/init.d

Modicate lo script di startup , aggiungendo questa linea all’inizio (per rendere lo script di avvio compatibile con chkconfig) :
# chkconfig: - 87 26

NOTE : Lo script così modificato somiglierà a questo …
#! /bin/sh
# chkconfig: - 87 26
#
# bacula This shell script takes care of starting and stopping
# the bacula daemons.
#
# This is pretty much watered down version of the RedHat script
# that works on Solaris as well as Linux, but it won't work everywhere.
#
# description: It comes by night and sucks the vital essence from your computers.

Lanciate il seguente comando :
chkconfig mysqld on
chkconfig bacula on
service bacula start

Congratulazioni …. avete instalato bacula con supporto a MySQL

Per la configurazione tramite WebMin andate qui.

VN:F [1.9.3_1094]
Rating: 10.0/10 (6 votes cast)
VN:F [1.9.3_1094]
Rating: +4 (from 4 votes)
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
7 Comments :, , , , more...

Centos 5.4 rebuild kernel 2.6.18-164.el5 from source

This entry was posted by admin ( Crippa Andrea ) on 26 October 2009 at 22:25 and have got 1100 reads . It's field under Linux and tagged , , , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

ISe avete bisogno di ricompilare il kernel 2.6.18-164.el5 dai pacchetti sorgenti, non dovete fare altro che seguire questi semplici passaggi :

1) – Scaricate il pacchetto sorgente del kernel da quì
2) – Create l’albero di directory per il sorgente del kernel (dove preferite) :
mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
3) – Editate il file /root/.rpmmacros : dovrà contenere le istruzione per il percorso di rpmbuild :
%_topdir /your_full_path_to_rpmbuild/rpmbuild
4) – Estraete il sorgente del kernel
rpm -i kernel-2.6.18-164.el5.src.rpm
5) – Andate nella directory SPECS ed inziate con il comando rpmbuild :
rpmbuild -bp --target i686 kernel-2.6.spec --without fips
6) – A questo punto andate in /BUILD/kernel-2.6.18/linux-2.6.18.i686 e procedete con la compilazione del kernel
make menuconfig
make rpm

Installate l’rpm e il src.rpm, makeinitrd e avete finito.

VN:F [1.9.3_1094]
Rating: 10.0/10 (4 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
Leave a Comment :, , , , more...

Centos 5.3 mkinitrd no module dm-mem-cache

This entry was posted by admin ( Crippa Andrea ) on 22 October 2009 at 7:14 and have got 290 reads . It's field under Linux and tagged , , , , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

In centos 5.3, when you try compile a new vanilla kernel and try to make the mkinitrd image, u can get this error :

No module dm-mem-cache found for kernel x.y.z.t, aborting.

Refer to the Red Hat KB, here you are the solution

# echo "DMRAID=no" > /etc/sysconfig/mkinitrd/noraid
# chmod 755 /etc/sysconfig/mkinitrd/noraid

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
Leave a Comment :, , , , , more...