<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6242698816458395505</id><updated>2011-06-08T08:24:54.515+02:00</updated><category term='samba'/><category term='domain'/><category term='setup'/><category term='amanda'/><category term='sadms'/><category term='fedora'/><category term='monitoring'/><category term='tape'/><category term='pandora'/><title type='text'>Roberto Litrico - HowTo</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://robertolitrico.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6242698816458395505/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://robertolitrico.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Robb11</name><uri>http://www.blogger.com/profile/01926338396328205792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6242698816458395505.post-6721970378970616290</id><published>2007-10-16T17:22:00.001+02:00</published><updated>2008-11-26T19:00:55.152+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pandora'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='monitoring'/><title type='text'>How to install Pandora 1.3.1 on a Fedora server [last update 30-Apr-2008]</title><content type='html'>OS: Fedora releases (F7 and higher, CentOS)&lt;br /&gt;Pandora v. 1.3.1&lt;br /&gt;&lt;br /&gt;Do you want to install a very good monitoring system on a Fedora server?&lt;br /&gt;In this tutorial we will see how to install Pandora (&lt;a href="http://pandora.sourceforge.net/en/index.php"&gt;http://pandora.sourceforge.net/en/index.php&lt;/a&gt;) on a Fedora server.&lt;br /&gt;&lt;br /&gt;I am supposing that you are using a Fedora minimal installation (a Fedora installation without extra packages).&lt;br /&gt;&lt;br /&gt;First of all you have to install these dependencies and applications:&lt;br /&gt;&lt;hr /&gt;[root@localhost /]# yum install gcc net-snmp* httpd* mysql mysql-server php php-mysql gd php-gd php-pear php-snmp perl-XML-SAX* perl-Tie* perl-XML-Simple* perl-DateManip* perl-IO-Socket* perl-Time-modules* perl-NetAddr-IP* perl-GD* perl-DateTime* perl-ExtUtils*&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;After that, you have to install all the following PERL dependencies we need in this order:&lt;br /&gt;Digest::MD5, Time::Local, DBI, threads, threads::shared, IO::Socket, Time::HiRes, Time::Format, Net::Ping, NetAddr::IP .&lt;br /&gt;You can do this in two ways:&lt;br /&gt;1st way [thanks to Shaveht]: you can install the CPAN package manager (from root, simply 'yum install cpan') and then install the new perl modules (from root, simply 'cpan install new_package').&lt;br /&gt;With the installation of the first CPAN module, cpan will ask you some configuration questions. I suggest you to allow the CPAN pm to leave a copy of the source you want to install, as proposed by default. That is why sometimes it would not install the package because of some test checks failed. In that case you could install them from source manually as I explain in the 2nd way.&lt;br /&gt;2nd way: you can use the CPAN website (http://www.cpan.org/).&lt;br /&gt;I suggest to create, as root, a working directory in which download, extract and install these packages. I suggest to look at the CPAN website to check for newer versions.&lt;br /&gt;&lt;hr /&gt;[root@localhost /]# mkdir -p /Software/pandora_pack&lt;br /&gt;[root@localhost /]# cd /Software/pandora_pack&lt;br /&gt;[root@localhost pandora_pack]# wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-MD5-2.36.tar.gz&lt;br /&gt;[root@localhost pandora_pack]# wget http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Time-Local-1.17.tar.gz&lt;br /&gt;[root@localhost pandora_pack]# wget http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.59.tar.gz&lt;br /&gt;[root@localhost pandora_pack]# wget http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/threads-1.67.tar.gz&lt;br /&gt;[root@localhost pandora_pack]# wget http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/threads-shared-1.14.tar.gz&lt;br /&gt;[root@localhost pandora_pack]# wget http://search.cpan.org/CPAN/authors/id/J/JH/JHI/Time-HiRes-1.9708.tar.gz&lt;br /&gt;[root@localhost pandora_pack]# wget http://search.cpan.org/CPAN/authors/id/S/SM/SMPETERS/Net-Ping-2.33.tar.gz&lt;br /&gt;[root@localhost pandora_pack]# wget http://search.cpan.org/CPAN/authors/id/R/RO/ROODE/Time-Format-1.02.tar.gz&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;For each package you have downloaded, use tar to extract it, then enter in the new directory created and install it in this way:&lt;br /&gt;&lt;hr /&gt;[root@localhost pandora_pack]# tar xvf new_package.tar.gz&lt;br /&gt;[root@localhost pandora_pack]# cd new_package&lt;br /&gt;[root@localhost new_package]# perl Makefile.PL&lt;br /&gt;[root@localhost new_package]# make&lt;br /&gt;[root@localhost new_package]# make test&lt;br /&gt;[root@localhost new_package]# make install&lt;br /&gt;[root@localhost new_package]# cd ..&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Set as auto and start the daemons mysqld and httpd:&lt;br /&gt;&lt;hr /&gt;[root@localhost pandora_pack]# chkconfig httpd on&lt;br /&gt;[root@localhost pandora_pack]# chkconfig mysqld on&lt;br /&gt;[root@localhost pandora_pack]# service mysqld start&lt;br /&gt;[root@localhost pandora_pack]# service httpd start&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Now download and untar the packages of all Pandora Servers and Pandora Console:&lt;br /&gt;&lt;hr /&gt;[root@localhost pandora_pack]# wget http://downloads.sourceforge.net/pandora/pandorafms_1.3.1_core.tar.gz?modtime=1209411346&amp;big_mirror=0&lt;br /&gt;[root@localhost pandora_pack]# tar xvfz pandorafms_1.3.1_core.tar.gz&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Create the pandora user, set a strong password, its home folder and set the right permissions:&lt;br /&gt;&lt;hr /&gt;[root@GT-PANDORA pandora_pack]# mkdir -p /home/pandora/.ssh&lt;br /&gt;[root@GT-PANDORA pandora_pack]# useradd pandora -d /home/pandora&lt;br /&gt;[root@GT-PANDORA pandora_pack]# chown -R pandora /home/pandora&lt;br /&gt;[root@GT-PANDORA pandora_pack]# passwd pandora&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;You have to create some directories and files used by Pandora now and set the right permissions and ownerships:&lt;br /&gt;&lt;hr /&gt;[root@GT-PANDORA pandora_pack]# mkdir -p /var/spool/pandora/data_in&lt;br /&gt;[root@GT-PANDORA pandora_pack]# mkdir /var/log/pandora&lt;br /&gt;[root@GT-PANDORA pandora_pack]# chown pandora /var/spool/pandora/data_in&lt;br /&gt;[root@GT-PANDORA pandora_pack]# chmod 700 /var/spool/pandora/data_in&lt;br /&gt;[root@GT-PANDORA pandora_pack]# touch /home/pandora/.ssh/authorized_keys&lt;br /&gt;[root@GT-PANDORA pandora_pack]# chown pandora /home/pandora/.ssh/authorized_keys&lt;br /&gt;[root@GT-PANDORA pandora_pack]# mkdir /usr/share/pandora&lt;br /&gt;[root@GT-PANDORA pandora_pack]# cp -R pandora_server/util /usr/share/pandora/&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Install the Pandora Server:&lt;br /&gt;&lt;hr /&gt;[root@GT-PANDORA pandora_pack]# cd pandora_server/&lt;br /&gt;[root@GT-PANDORA pandora_server]# perl Makefile.PL&lt;br /&gt;[root@GT-PANDORA pandora_server]# make&lt;br /&gt;[root@GT-PANDORA pandora_server]# make install&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;It is very important to configure snmpd and snmptrapd:&lt;br /&gt;&lt;hr /&gt;[root@GT-PANDORA pandora_pack]# cd /etc/snmp/&lt;br /&gt;[root@GT-PANDORA snmp]# snmpconf&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Use the SNMP and SNMPtrap documentation to configure snmpd.conf and snmptrapd.conf .&lt;br /&gt;After having configured snmpd.conf and snmptrapd.conf, start the two daemons:&lt;br /&gt;&lt;hr /&gt;[root@GT-PANDORA snmp]# service snmpd start&lt;br /&gt;[root@GT-PANDORA snmp]# service snmptrapd start&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Change to the pandora package directory again and copy the Pandora Server configuration file in the home folder of the pandora user:&lt;br /&gt;&lt;hr /&gt;[root@GT-PANDORA snmp]# cd /Software/pandora_pack&lt;br /&gt;[root@GT-PANDORA pandora_pack]# cp pandora_server/conf/pandora_server.conf /home/pandora/&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Once you have copied it, open it with VI to edit its important features:&lt;br /&gt;&lt;hr /&gt;[root@GT-PANDORA pandora_pack]# vi /home/pandora/pandora_server.conf&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;I suggest to edit the server name writing the name of the server which is hosting Pandora, and to choose a good dbpass.&lt;br /&gt;&lt;br /&gt;Now you have to configure the Pandora database ('password' is the password chosen for the pandora user):&lt;br /&gt;&lt;hr /&gt;[root@GT-PANDORA pandora_pack]# cd pandora_console&lt;br /&gt;[root@GT-PANDORA pandora_console]# mysql&lt;br /&gt;mysql&gt; create database pandora;&lt;br /&gt;mysql&gt; use pandora;&lt;br /&gt;mysql&gt; source ./pandoradb.sql;&lt;br /&gt;mysql&gt; source ./pandoradb_data.sql;&lt;br /&gt;mysql&gt; grant all on pandora.* to 'pandora'@'localhost' identified by 'password';&lt;br /&gt;mysql&gt; quit&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Copy the Pandora Console directory in the HTTP server publishing directory and set the right permissions:&lt;br /&gt;&lt;hr /&gt;[root@GT-PANDORA pandora_console]# cd ..&lt;br /&gt;[root@GT-PANDORA pandora_pack]# cp -av pandora_console /var/www/html/&lt;br /&gt;[root@GT-PANDORA pandora_pack]# cd /var/www/html/&lt;br /&gt;[root@GT-PANDORA html]# chown -R root.root pandora_console&lt;br /&gt;[root@GT-PANDORA html]# chown -R 777 pandora_console&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Now, before configuring the web application, I suggest to reboot the system.&lt;br /&gt;&lt;hr /&gt;[root@GT-PANDORA html]# shutdown -r now&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Now connect to the application via HTTP.&lt;br /&gt;Point your browser to http://hostname/pandora_console/install.php and click 'Next' until the end of the setup process.&lt;br /&gt;Now you have to remove the  install.php file. I suggest to rename it as a backup.&lt;br /&gt;&lt;hr /&gt;[root@GT-PANDORA html]# mv pandora_console/install.php pandora_console/_install.php&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;We have to edit now the pandora_console/include/config.php file editing the following two variables (you can open it with vi):&lt;br /&gt;&lt;br /&gt;$dbpassword="password_chosen";        // DB Password&lt;br /&gt;$config_homedir = "/var/www/html/pandora_console/";&lt;br /&gt;&lt;br /&gt;The final step. Start all Pandora servers.&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;[root@GT-PANDORA html]# pandora_server -D /home/pandora/pandora_server.conf&lt;br /&gt;[root@GT-PANDORA html]# pandora_recon -D /home/pandora/pandora_server.conf&lt;br /&gt;[root@GT-PANDORA html]# pandora_network -D /home/pandora/pandora_server.conf&lt;br /&gt;[root@GT-PANDORA html]# pandora_snmpconsole -D /home/pandora/pandora_server.conf&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Pandora is installed on a Fedora system! You can access it via browser at http://SERVERNAME/pandora_console.&lt;br /&gt;Please refer to the official Pandora documentation for other issues.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6242698816458395505-6721970378970616290?l=robertolitrico.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://robertolitrico.blogspot.com/feeds/6721970378970616290/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6242698816458395505&amp;postID=6721970378970616290' title='15 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6242698816458395505/posts/default/6721970378970616290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6242698816458395505/posts/default/6721970378970616290'/><link rel='alternate' type='text/html' href='http://robertolitrico.blogspot.com/2007/10/how-to-install-pandora-on-fedora-server.html' title='How to install Pandora 1.3.1 on a Fedora server [last update 30-Apr-2008]'/><author><name>Robb11</name><uri>http://www.blogger.com/profile/01926338396328205792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6242698816458395505.post-8893892235134087842</id><published>2007-04-18T17:39:00.000+02:00</published><updated>2008-11-26T18:57:01.578+01:00</updated><title type='text'>Nic Teaming on Fedora</title><content type='html'>Do you want to enable two or more network interfaces to act as one, simultaneously increasing the bandwidth and providing redundancy?&lt;br /&gt;&lt;br /&gt;Fedora allows the Channel Bonding.&lt;br /&gt;&lt;br /&gt;As root, move to the /etc/sysconfig/network-scripts directory.&lt;br /&gt;Here you have one or more of ifcfg-eth files. You have one of them for each network interface.&lt;br /&gt;Now we are supposing that you have configured only eth0 to connect to the net and eth1 is available for bonding.&lt;br /&gt;&lt;br /&gt;So copy ifcfg-eth0 twice.&lt;br /&gt;# cp ifcfg-eth0 ifcfg-eth0.bck&lt;br /&gt;# cp ifcfg-eth0 ifcfg-bond0&lt;br /&gt;&lt;br /&gt;The first one is a backup copy. The second one instead is the bonding interface that we will edit in this way:&lt;br /&gt;&lt;hr /&gt;&lt;small&gt;&lt;br /&gt;DEVICE=bond0&lt;br /&gt;IPADDR=10.10.10.10&lt;br /&gt;NETMASK=255.255.255.0&lt;br /&gt;BROADCAST=10.10.10.255&lt;br /&gt;GATEWAY=10.10.1.1&lt;br /&gt;ONBOOT=yes&lt;br /&gt;BOOTPROTO=none&lt;br /&gt;USERCTL=no&lt;br /&gt;&lt;/small&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Open the ifcfg-eth0 file now and write only these lines (delete other lines):&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;small&gt;&lt;br /&gt;DEVICE=eth0&lt;br /&gt;BOOTPROTO=none&lt;br /&gt;ONBOOT=yes&lt;br /&gt;MASTER=bond0&lt;br /&gt;SLAVE=yes&lt;br /&gt;USECTL=no&lt;br /&gt;&lt;/small&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Now rename ifcfg-eth1 in ifcfg-eth1.bck and then create a new eth1 configuration file from the eth0 file just created.&lt;br /&gt;&lt;br /&gt;# mv ifcfg-eth1 ifcfg-eth1.bck&lt;br /&gt;# cp ifcfg-eth0 ifcfg-eth1&lt;br /&gt;&lt;br /&gt;Open the new file created (ifcfg-eth1) and edit only the DEVICE variable:&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;small&gt;&lt;br /&gt;DEVICE=eth1&lt;br /&gt;BOOTPROTO=none&lt;br /&gt;ONBOOT=yes&lt;br /&gt;MASTER=bond0&lt;br /&gt;SLAVE=yes&lt;br /&gt;USECTL=no&lt;br /&gt;&lt;/small&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Finally add this line to etc/modprobe.conf&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;small&gt;&lt;br /&gt;alias bond0 bonding&lt;br /&gt;options bonding miimon=100 mode=1&lt;br /&gt;&lt;/small&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Please note that:&lt;br /&gt;mode=1 active-backup;&lt;br /&gt;mode=2 balance-xor;&lt;br /&gt;mode=3 broadcast;&lt;br /&gt;mode=4 802.3ad;&lt;br /&gt;mode=5 balance-tlb;&lt;br /&gt;mode=6 balance-alb;&lt;br /&gt;&lt;br /&gt;IEEE 802.3ad is for Dynamic link aggregation. Creates aggregation groups that share the same speed and duplex settings. Utilizes all slaves in the active aggregator according to the 802.3ad specification.&lt;br /&gt;&lt;br /&gt;I suggest mode 4 if you support it, otherwise mode 1.&lt;br /&gt;&lt;br /&gt;Now restart the computer and enjoy yourself plugging and unplugging RJ45 cables.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6242698816458395505-8893892235134087842?l=robertolitrico.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://robertolitrico.blogspot.com/feeds/8893892235134087842/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6242698816458395505&amp;postID=8893892235134087842' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6242698816458395505/posts/default/8893892235134087842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6242698816458395505/posts/default/8893892235134087842'/><link rel='alternate' type='text/html' href='http://robertolitrico.blogspot.com/2007/04/nic-teaming-on-fedora-core.html' title='Nic Teaming on Fedora'/><author><name>Robb11</name><uri>http://www.blogger.com/profile/01926338396328205792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6242698816458395505.post-272789110542128667</id><published>2007-04-12T22:34:00.001+02:00</published><updated>2008-11-26T19:01:12.298+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='amanda'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='tape'/><category scheme='http://www.blogger.com/atom/ns#' term='setup'/><title type='text'>Installing and configuring Amanda in Fedora in order to work with a SCSI Tape Library</title><content type='html'>OS version: Linux 2.6.23+ (Fedora 6 and higher)&lt;br /&gt;Sw version: Amanda 2.5.2p2 and lower&lt;br /&gt;&lt;br /&gt;The mission: Install and configure Amanda on Fedora in order to work with a library.&lt;br /&gt;Note: I have encountered some troubles in installing Amanda version 2.6.0p1. I am writing a new guide for this new version because at the moment I have some problems with the aknowledge of my library with this new version.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;First of all, be sure that the backup server and clients to be backed up are on the same network and available.&lt;br /&gt;&lt;br /&gt;You can download Amanda Server and Client from &lt;a href="http://www.zmanda.com/downloads.html" target="_blank"&gt;http://www.zmanda.com/downloads.html&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Let's configure the server.&lt;br /&gt;&lt;br /&gt;Download the Amanda Backup Server version for Fedora.&lt;br /&gt;Install the prerequisites launching the command:&lt;br /&gt;&lt;br /&gt;# yum install xinetd tar mtx mt-st* sharutils gpg*&lt;br /&gt;&lt;br /&gt;As root user, move to the directory in which you have downloaded Amanda Server and launch the command:&lt;br /&gt;&lt;br /&gt;# rpm -ivh amanda-backup_server-&lt;version_downloaded&gt;.rpm&lt;br /&gt;&lt;br /&gt;The package will also create a user named amandabackup who belongs to the group disk.&lt;br /&gt;&lt;br /&gt;The Amanda services are started by xinetd.&lt;br /&gt;Create the startup file /etc/xinetd.d/amandaserver with this command:&lt;br /&gt;&lt;br /&gt;# touch /etc/xinetd.d/amandaserver&lt;br /&gt;&lt;br /&gt;Now open it with a text editor and write these lines:&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;small&gt;&lt;br /&gt;# default: on&lt;br /&gt;#&lt;br /&gt;# description: Amanda services for Amanda server and client.&lt;br /&gt;#&lt;br /&gt;service amanda&lt;br /&gt;{&lt;br /&gt;disable         = no&lt;br /&gt;socket_type     = stream&lt;br /&gt;protocol        = tcp&lt;br /&gt;wait            = no&lt;br /&gt;user            = amandabackup&lt;br /&gt;group           = disk&lt;br /&gt;groups          = yes&lt;br /&gt;server          = /usr/lib/amanda/amandad&lt;br /&gt;server_args     = -auth=bsdtcp amdump amidxtaped amindexd&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/small&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Restart xinetd:&lt;br /&gt;&lt;br /&gt;# service xinetd restart&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As the amandabackup user, create the Amanda configuration directory:&lt;br /&gt;&lt;br /&gt;# su - amandabackup&lt;br /&gt;bash3.1$ mkdir /etc/amanda/DailySetup1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The amanda.conf is the most important configuration file of Amanda.&lt;br /&gt;Copy the example file provided with Amanda into your configuration directory:&lt;br /&gt;&lt;br /&gt;bash3.1$ cp /var/lib/amanda/example/amanda.conf /etc/amanda/DailySet1&lt;br /&gt;&lt;br /&gt;Before starting to edit it with your preferences, you have to understand the kind of tape you are using.&lt;br /&gt;So that, as root, launch this command after having inserted a tape into the drive of the library giving the your extimated lenght of the tape (read on the tape cartridge):&lt;br /&gt;&lt;br /&gt;# amtapetype -e 32g -f /dev/nst0&lt;br /&gt;&lt;br /&gt;where nst0 is your tape device.&lt;br /&gt;This operation could take hours. Don't worry, it is normal.&lt;br /&gt;At the end of the process note the result somewhere. Even if the process has not recognized the tape name, it gives you the following parameters: length, filemark and speed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If /dev/nst0 is the name of the tape device, the name of the robot able to manage it is different. You can find it trying the command:&lt;br /&gt;&lt;br /&gt;# mtx -f /dev/sgx status&lt;br /&gt;&lt;br /&gt;where sgx stands for every scsi device of your system (sg1, sg2, sg3... ).&lt;br /&gt;&lt;br /&gt;You find the right robot device if the result of the command is something like this:&lt;br /&gt;&lt;br /&gt;Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = AX6464S             &lt;br /&gt;Storage Element 1:Empty:VolumeTag=                    &lt;br /&gt;Storage Element 2:Full :VolumeTag=AX665S             &lt;br /&gt;Storage Element 3:Full :VolumeTag=AX666S             &lt;br /&gt;Storage Element 4:Full :VolumeTag=AX671S             &lt;br /&gt;Storage Element 5:Full :VolumeTag=AX672S             &lt;br /&gt;Storage Element 6:Full :VolumeTag=AX673S             &lt;br /&gt;Storage Element 7:Full :VolumeTag=AX64S             &lt;br /&gt;Storage Element 8:Full :VolumeTag=AX675S             &lt;br /&gt;Storage Element 9:Full :VolumeTag=AX676S             &lt;br /&gt;Storage Element 10:Full :VolumeTag=AX677S             &lt;br /&gt;Storage Element 11:Empty:VolumeTag=                    &lt;br /&gt;Storage Element 12:Empty:VolumeTag=                    &lt;br /&gt;Storage Element 13:Empty:VolumeTag=                    &lt;br /&gt;Storage Element 14:Empty:VolumeTag=                    &lt;br /&gt;Storage Element 15:Empty:VolumeTag=                    &lt;br /&gt;Storage Element 16:Empty:VolumeTag=                    &lt;br /&gt;Storage Element 17:Empty:VolumeTag=                    &lt;br /&gt;Storage Element 18:Empty:VolumeTag=                    &lt;br /&gt;Storage Element 19:Full :VolumeTag=CLN525S             &lt;br /&gt;Storage Element 20 IMPORT/EXPORT:Empty:VolumeTag=&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Open /etc/amanda/DailySet1/amanda.conf with any text editor and edit it.&lt;br /&gt;Here are some lines I suggest you to edit:&lt;br /&gt;&lt;hr /&gt;&lt;small&gt;&lt;br /&gt;org      "DailyDataBackup"  # your organization name for reports&lt;br /&gt;mailto   "root@localhost"   # space separated list of operators at your site&lt;br /&gt;dumpuser "amandabackup"     # the user to run dumps under&lt;br /&gt;&lt;br /&gt;dumpcycle 1 weeks       # the number of days in the normal dump cycle&lt;br /&gt;runspercycle 5         # the number of amdump runs in dumpcycle days&lt;br /&gt;tapecycle 10 tapes      # the number of tapes in rotation. It depends on your tapes!&lt;br /&gt;&lt;br /&gt;tpchanger "chg-zd-mtx"          # the tape-changer glue script&lt;br /&gt;tapedev "/dev/nst0"     # the no-rewind tape device to be used. It depends on your system!&lt;br /&gt;&lt;br /&gt;changerfile "/etc/amanda/DailySet1/changer.conf"&lt;br /&gt;changerdev "/dev/sg3"&lt;br /&gt;&lt;br /&gt;tapetype MyTapeType                # what kind of tape it is (see tapetypes below)&lt;br /&gt;labelstr "^DailySet1-[0-9][0-9]*$" # label constraint regex: all tapes must match&lt;br /&gt;amrecover_changer "/dev/sg3"       # amrecover will use the changer if you restore&lt;br /&gt;&lt;br /&gt;holdingdisk hd1 {&lt;br /&gt;comment "main holding disk"&lt;br /&gt;directory "/dumps/amanda"   # where the holding disk is&lt;br /&gt;use -30 Mb                  # how much space can we use on it&lt;br /&gt;                    # a non-positive value means:&lt;br /&gt;                    # use all space but that value&lt;br /&gt;chunksize 1Gb       # size of chunk if you want big dump to be&lt;br /&gt;            # dumped on multiple files on holding disks&lt;br /&gt;            #  N Kb/Mb/Gb split images in chunks of size N&lt;br /&gt;            #             The maximum value should be&lt;br /&gt;            #             (MAX_FILE_SIZE - 1Mb)&lt;br /&gt;            #  0          same as INT_MAX bytes&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;infofile "/etc/amanda/DailySet1/curinfo"        # database DIRECTORY&lt;br /&gt;logdir   "/etc/amanda/DailySet1/logs"           # log directory&lt;br /&gt;indexdir "/etc/amanda/DailySet1/index"          # index directory&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# tapetypes&lt;br /&gt;&lt;br /&gt;define tapetype MyTapeType {&lt;br /&gt;comment "Tape result from the amtapetype command"&lt;br /&gt;length 94200 mbytes&lt;br /&gt;filemark 504 mbytes&lt;br /&gt;speed 2078 kps&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;define dumptype global {&lt;br /&gt;comment "Global definitions"&lt;br /&gt;auth "bsdtcp"&lt;br /&gt;}&lt;br /&gt;&lt;/small&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;As root, create a cache directory to use as a holding disk.&lt;br /&gt;&lt;br /&gt;# mkdir -p /dumps/amanda&lt;br /&gt;# chown -Rv amandabackup:disk /dumps/amanda&lt;br /&gt;# chmod 750 /dumps/amanda&lt;br /&gt;&lt;br /&gt;Now you have to create three important files used by Amanda.&lt;br /&gt;As amandabackup, go in your Amanda Configuration directory and type:&lt;br /&gt;&lt;br /&gt;bash3.1$ touch disklist tapelist changer.conf&lt;br /&gt;&lt;br /&gt;In the changer.conf file write the following statements as explained in the file /usr/lib/amanda/chg-zd-mtx.&lt;br /&gt;&lt;br /&gt;&lt;small&gt;&lt;hr /&gt;&lt;br /&gt;firstslot=1&lt;br /&gt;lastslot=20&lt;br /&gt;cleanslot=19&lt;br /&gt;driveslot=0&lt;br /&gt;autoclean=0&lt;br /&gt;autocleancount=99&lt;br /&gt;havereader=1&lt;br /&gt;offline_before_unload=0&lt;br /&gt;initial_poll_delay=0&lt;br /&gt;&lt;/small&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Edit the file /usr/lib/amanda/chg-zd-mtx commenting the following four lines with a sharp character (I suggest you to create a backup copy of the file before begin editing it):&lt;br /&gt;&lt;br /&gt;&lt;small&gt;&lt;hr /&gt;&lt;br /&gt;# test -z "$MT" &amp;&amp;amp; Exit 2 "&lt;none&gt;" "No mt command defined"&lt;br /&gt;# test ! -f "$MT" &amp;&amp;amp; Exit 2 "&lt;none&gt;" "mt command ($MT) doesn't exist"&lt;br /&gt;# test -z "$MTX" &amp;&amp;amp; Exit 2 "&lt;none&gt;" "No mtx command defined"&lt;br /&gt;# test ! -f "$MTX" &amp;&amp;amp; Exit 2 "&lt;none&gt;" "mtx command ($MTX) doesn't exist"&lt;br /&gt;&lt;/none&gt;&lt;/none&gt;&lt;/none&gt;&lt;/none&gt;&lt;/small&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;After that, test the setup following the instructions written in comment lines of the chg-zd-mtx file. Don't launch amtape DailySet1 update. This command registers all barcodes, but you need to label them in order to be used by Amanda.&lt;br /&gt;&lt;br /&gt;Now that the test has been completed successfully, become amandabackup user and reset your configuration:&lt;br /&gt;&lt;br /&gt;# su - amandabackup&lt;br /&gt;# amtape DailySet1 reset&lt;br /&gt;&lt;br /&gt;Now label your tapes:&lt;br /&gt;&lt;br /&gt;bash3.1$ amlabel -f DailySet1 DailySet1-001 slot 1&lt;br /&gt;(Repeat it for each slot you have configured  in the changer.conf file).&lt;br /&gt;&lt;br /&gt;Check the installation of the server:&lt;br /&gt;bash3.1$ amcheck -s DailySet1&lt;br /&gt;&lt;br /&gt;Reset the program in order to point to the first slot:&lt;br /&gt;&lt;br /&gt;bash3.1$ amtape DailySet1 reset&lt;br /&gt;&lt;br /&gt;Let Amanda update all its configuration files launching this command:&lt;br /&gt;&lt;br /&gt;bash3.1$ amtape DailySet1 update&lt;br /&gt;&lt;br /&gt;And now the last step of the server configuration.&lt;br /&gt;&lt;br /&gt;Go to the /var/lib/amanda directory and edit the .amandahosts file adding the clients whose folders you want to backup.&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;small&gt;&lt;hr /&gt;&lt;br /&gt;client1.domain.com root amindexd amidxtaped&lt;br /&gt;client2.domain.com root amindexd amidxtaped&lt;br /&gt;server.domain.com root amindexd amidxtaped&lt;br /&gt;server.domain.com amandabackup amdump&lt;br /&gt;&lt;hr /&gt;&lt;/small&gt;&lt;br /&gt;&lt;br /&gt;Ok. Let us have a look to the installation of Amanda client. Note that if the client to be backed up is the server itself, installing Amanda Client is useless.&lt;br /&gt;&lt;br /&gt;Move to the client you want to backup and install Amanda Client from &lt;a href="http://www.zmanda.com/downloads.html" target="_blank"&gt;http://www.zmanda.com/downloads.html&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;As root, install prerequisites on the client:&lt;br /&gt;&lt;br /&gt;# yum install xinetd tar sharutils gpg*&lt;br /&gt;&lt;br /&gt;As root user, move to the directory in which you have downloaded Zmanda and launch the command:&lt;br /&gt;&lt;br /&gt;# rpm -ivh amanda-backup_client-&lt;version_downloaded&gt;.rpm.&lt;br /&gt;&lt;br /&gt;If the client is the server itself, installing the amanda-backup client is useless because it is included in amanda-backup server.&lt;br /&gt;&lt;br /&gt;The Amanda services are started by xinetd.&lt;br /&gt;Create the startup file /etc/xinetd.d/amandaclient with this command:&lt;br /&gt;&lt;br /&gt;# touch /etc/xinetd.d/amandaclient&lt;br /&gt;&lt;br /&gt;Now open it with a text editor and write these lines:&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;small&gt;&lt;br /&gt;# default: on&lt;br /&gt;#&lt;br /&gt;# description: Amanda services for Amanda server and client.&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;service amanda&lt;br /&gt;{&lt;br /&gt;only_from       = ServerName.domain.com&lt;br /&gt;disable         = no&lt;br /&gt;socket_type     = stream&lt;br /&gt;protocol        = tcp&lt;br /&gt;wait            = no&lt;br /&gt;user            = amandabackup&lt;br /&gt;group           = disk&lt;br /&gt;groups          = yes&lt;br /&gt;server          = /usr/lib/amanda/amandad&lt;br /&gt;server_args     = -auth=bsdtcp amdump amindexd amidxtaped&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/small&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;Restart xinetd:&lt;br /&gt;&lt;br /&gt;# service xinetd restart&lt;br /&gt;&lt;br /&gt;And now the last step of the client configuration.&lt;br /&gt;&lt;br /&gt;Become the amandabackup user and append the line "ServerName.domain.com amandabackup amdump" to the /var/lib/amanda/.amandahosts file on the client.&lt;br /&gt;&lt;br /&gt;Remember to make changes to the .amandahosts file of the Amanda server too!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6242698816458395505-272789110542128667?l=robertolitrico.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://robertolitrico.blogspot.com/feeds/272789110542128667/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6242698816458395505&amp;postID=272789110542128667' title='4 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6242698816458395505/posts/default/272789110542128667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6242698816458395505/posts/default/272789110542128667'/><link rel='alternate' type='text/html' href='http://robertolitrico.blogspot.com/2007/04/installing-and-configuring-amanda-in.html' title='Installing and configuring Amanda in Fedora in order to work with a SCSI Tape Library'/><author><name>Robb11</name><uri>http://www.blogger.com/profile/01926338396328205792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6242698816458395505.post-6321894758930333588</id><published>2007-04-03T10:34:00.001+02:00</published><updated>2008-11-26T19:01:25.401+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='domain'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='samba'/><category scheme='http://www.blogger.com/atom/ns#' term='sadms'/><title type='text'>How to insert a Fedora server into a Windows 2003 domain using SADMS without the GUI interface</title><content type='html'>OS: Fedora releases (FC6 and higher)&lt;br /&gt;&lt;br /&gt;Do you need a server, such as a file server, inserted into a Windows 2003 domain but you have not enough money to license another copy of Windows 2003 Server? Here is the solution.&lt;br /&gt;&lt;br /&gt;In this tutorial we will see how to insert a Fedora OS into a Windows 2003 domain using SADMS (http://sadms.sourceforge.net/). SADMS is for Samba as Active Directory Member Server/Station.&lt;br /&gt;&lt;br /&gt;Samba is not so difficult to be installed. Its GUI is quite simple to be managed.&lt;br /&gt;So that now we will see how to install it on a minimal installation of Fedora which does not use any Window Manager.&lt;br /&gt;First of all, install a minimal Fedora on the server removing any additional package.  Remember to name it as nameserver.domain.com giving a static IP, the correct mask and all the informations about your DNSs, Gateway, etc.&lt;br /&gt;&lt;br /&gt;After having installed Fedora, login as root, create a working directory in which you will download the latest release of SADMS:&lt;br /&gt;&lt;hr /&gt;[root@localhost /]# mkdir /Software&lt;br /&gt;[root@localhost /]# cd /Software&lt;br /&gt;[root@localhost Software]# wget http://downloads.sourceforge.net/sadms/sadms-2.0.11-1fc.noarch.rpm?modtime=1182684815&amp;amp;big_mirror=0&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;Now install the following dependencies:&lt;br /&gt;&lt;hr /&gt;[root@localhost Software]# yum install pam_mount expect samba* krb* pygtk2 pygtk2-libglade&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;You can install SADMS now:&lt;br /&gt;&lt;hr /&gt;[root@localhost Software]# rpm -ivh sadms-2.0.11-1fc.noarch.rpm&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;Now change to the SADMS directory to configure it:&lt;br /&gt;&lt;hr /&gt;[root@localhost Software]# cd /usr/local/lib/sadms-2.0.11/&lt;br /&gt;[root@localhost sadms-2.0.11]# ./_install.sh 'DOMAIN.COM' 'domain.com' 'NAME-OF DC-SERVER' 'DOMAIN' 'NAME-OF-THIS-SERVER' 'Computers' 'Administrator' 'password_di_amministratore' 'Domain Users' '10.10.0.0/16 10.11.1.0/24' ''&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;Where the values are respectively:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The REALM Name (usually the domain name written in Capitol letters);&lt;/li&gt;&lt;li&gt;The domain name (i.e. microsoft.com);&lt;/li&gt;&lt;li&gt;A Domain Controller Name or IP;&lt;/li&gt;&lt;li&gt;The NetBios domain name;&lt;/li&gt;&lt;li&gt;The server name;&lt;/li&gt;&lt;li&gt;The Active Directory OU;&lt;/li&gt;&lt;li&gt;The account name of an Administrator;&lt;/li&gt;&lt;li&gt;The password of the previous account name chosen;&lt;/li&gt;&lt;li&gt;The OU of Users enable to use this server;&lt;/li&gt;&lt;li&gt;IPs enabled to access to this server.&lt;/li&gt;&lt;/ul&gt;This script will also start up smb, nmb and winbind daemons.&lt;br /&gt;&lt;br /&gt;And now, the final step, you have to install Pam:&lt;br /&gt;&lt;hr /&gt;[root@localhost sadms-2.0.11]# ./_install-pam.sh -w -h -m 'DOMAIN-CONTROLLER-NAME' '&amp;amp;' '~/.cifsmount' 'DOMAIN' '*'&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;Congratulations! You have installed SADMS.&lt;br /&gt;&lt;br /&gt;All the settings chosen with the installation of SADMS and all the network shares are included in the /etc/samba/smb.conf .&lt;br /&gt;&lt;br /&gt;If you want to modify it, adding shares for example, first of all I suggest you to create a backup copy.&lt;br /&gt;After that, open the /etc/samba/smb.conf file and edit it with your new settings.&lt;br /&gt;To commit new changes you must restart smb and winbind daemons:&lt;br /&gt;&lt;hr /&gt;[root@localhost samba]# service smb restart&lt;br /&gt;[root@localhost samba]# service winbind restart&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;Have a nice work with SADMS!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6242698816458395505-6321894758930333588?l=robertolitrico.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://robertolitrico.blogspot.com/feeds/6321894758930333588/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6242698816458395505&amp;postID=6321894758930333588' title='5 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6242698816458395505/posts/default/6321894758930333588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6242698816458395505/posts/default/6321894758930333588'/><link rel='alternate' type='text/html' href='http://robertolitrico.blogspot.com/2007/04/how-to-insert-fedora-core-6-server-into.html' title='How to insert a Fedora server into a Windows 2003 domain using SADMS without the GUI interface'/><author><name>Robb11</name><uri>http://www.blogger.com/profile/01926338396328205792</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry></feed>
