 <?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.lhep.unibe.ch/index.php?action=history&amp;feed=atom&amp;title=Admin_how-to</id>
	<title>Admin how-to - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lhep.unibe.ch/index.php?action=history&amp;feed=atom&amp;title=Admin_how-to"/>
	<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=Admin_how-to&amp;action=history"/>
	<updated>2026-05-14T00:19:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.lhep.unibe.ch/index.php?title=Admin_how-to&amp;diff=592&amp;oldid=prev</id>
		<title>Lhep at 13:04, 23 June 2016</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=Admin_how-to&amp;diff=592&amp;oldid=prev"/>
		<updated>2016-06-23T13:04:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:04, 23 June 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== 1 NOTE: this page is OBSOLETE and NO LONGER MAINTAINED. ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;h3&amp;gt; yum &amp;lt;/h3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;h3&amp;gt; yum &amp;lt;/h3&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
	<entry>
		<id>https://wiki.lhep.unibe.ch/index.php?title=Admin_how-to&amp;diff=79&amp;oldid=prev</id>
		<title>Lhep: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=Admin_how-to&amp;diff=79&amp;oldid=prev"/>
		<updated>2015-03-18T07:49:23Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:49, 18 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
	<entry>
		<id>https://wiki.lhep.unibe.ch/index.php?title=Admin_how-to&amp;diff=78&amp;oldid=prev</id>
		<title>Lhep at 11:54, 19 September 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.lhep.unibe.ch/index.php?title=Admin_how-to&amp;diff=78&amp;oldid=prev"/>
		<updated>2011-09-19T11:54:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;h3&amp;gt; yum &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- make sure to have a /etc/profile.d/proxy.sh with&lt;br /&gt;
   export http_proxy=http://proxy.unibe.ch:80&lt;br /&gt;
&lt;br /&gt;
- make sure to have a line with the IP of the localhost in /etc/hosts&lt;br /&gt;
   example:&lt;br /&gt;
  127.0.0.1	localhost.localdomain localhost &lt;br /&gt;
  ==&amp;gt; this one ==&amp;gt; 130.92.139.94   lheppc44.unibe.ch lheppc44  pc44&lt;br /&gt;
&lt;br /&gt;
- &amp;quot;yum clean all&amp;quot; is a good first thing to do when getting stuck&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; copy large directories &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
- seen rsync not to work (runs and runs and runs and runs.... and does nothing...)&lt;br /&gt;
&lt;br /&gt;
- example of &amp;quot;tar&amp;quot; use with &amp;quot;ssh&amp;quot;:&lt;br /&gt;
  tar c -P -f - /terabig | ssh root@lheppc44 tar x -P &lt;br /&gt;
&lt;br /&gt;
- to sync with the files changed in the last 5h:&lt;br /&gt;
  tar c -P -f - `find /terabig -cmin -300` | ssh root@lheppc44 tar x -P&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Ganglia&amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
rpm -Uvh /terabig/atlsoft/slc4/ganglia-gmond-3.0.3-1.rhel4.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; LDAP&amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 - MAIN LDAP server lhepp44&lt;br /&gt;
 - lheppc7 is replica server (using syncrepl)&lt;br /&gt;
 - on both, ldap starts at boot time&lt;br /&gt;
 - a backup of the DB in ~webermi&lt;br /&gt;
&lt;br /&gt;
 - to create a replica, add the following in /etc/openldap/slapd.conf:&lt;br /&gt;
&lt;br /&gt;
   For the PROVIDER server:&lt;br /&gt;
   access to attr=userPassword&lt;br /&gt;
    by dn=&amp;quot;uid=syncuser,dc=atlas-unibe,dc=ch&amp;quot; read   &amp;lt;== to add acces to passwords to user syncuser&lt;br /&gt;
&lt;br /&gt;
   For the REPLICA server:&lt;br /&gt;
   # Sync the LDAP database with lheppc44&lt;br /&gt;
   syncrepl rid=001&lt;br /&gt;
        provider=ldap://lheppc44:389&lt;br /&gt;
        type=refreshOnly&lt;br /&gt;
        interval=01:00:00:00&lt;br /&gt;
        bindmethod=simple&lt;br /&gt;
        searchbase=&amp;quot;dc=atlas-unibe,dc=ch&amp;quot;&lt;br /&gt;
        binddn=&amp;quot;uid=syncuser,dc=atlas-unibe,dc=ch&amp;quot;&lt;br /&gt;
        credentials=******** (the secret password)&lt;br /&gt;
&lt;br /&gt;
(Following is obsolete) Problem on booting (on pc50 ?) since 1/9/09 (slapd does not run as user ldap, but only as root...:&lt;br /&gt;
  - boot in single user mode&lt;br /&gt;
  - maybe needed: go to /var/lib/ldap and run &amp;#039;db_recover -c -h /tmp/ldap&amp;#039;&lt;br /&gt;
  - maybe needed: copy /tmp/ldap/log.0000[something] to /var/lib/ldap&amp;#039;&lt;br /&gt;
  - start sldapd manually (i.e. execude slapd)&lt;br /&gt;
  - init 5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; cfengine &amp;lt;/h3&amp;gt;&lt;br /&gt;
server: lheppc10&lt;br /&gt;
&lt;br /&gt;
- For a new machine for ATLAS:&lt;br /&gt;
  yum install cfengine&lt;br /&gt;
  yum install rapidsvn (if needed)&lt;br /&gt;
  svn co http://svn.lhep.unibe.ch/subv/atlas/cfengine/masterfiles/inputs /var/cfengine/inputs&lt;br /&gt;
  you may need to run cfkey&lt;br /&gt;
  cfagent -q&lt;br /&gt;
  [done]&lt;br /&gt;
&lt;br /&gt;
- To force an update on all nodes, do a &amp;#039;cfrun&amp;#039; on the cfengine server&lt;br /&gt;
&lt;br /&gt;
- On the server, svn co http://svn.lhep.unibe.ch/subv/atlas/cfengine/masterfiles /var/cfengine/masterfiles,&lt;br /&gt;
  and start cfservd&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; Bonding of eth0 and eth1 to bond0 (example pc51) &amp;lt;/h3&amp;gt;&lt;br /&gt;
  /etc/sysconfig/network-scripts/ifcfg-bond0&lt;br /&gt;
  TYPE=Ethernet&lt;br /&gt;
  DEVICE=bond0&lt;br /&gt;
  BOOTPROTO=&amp;#039;static&amp;#039;&lt;br /&gt;
  IPADDR=130.92.139.151&lt;br /&gt;
  NETMASK=255.255.255.0&lt;br /&gt;
  GATEWAY=130.92.139.1&lt;br /&gt;
  NETWORK=130.92.139.0  &lt;br /&gt;
  BROADCAST=130.92.139.255&lt;br /&gt;
  ONBOOT=yes&lt;br /&gt;
  USERCTL=no&lt;br /&gt;
  NAME=&amp;#039;Bonding device 0&amp;#039;&lt;br /&gt;
  STARTMODE=&amp;#039;auto&amp;#039;&lt;br /&gt;
  IPV6INIT=no&lt;br /&gt;
  PEERDNS=yes&lt;br /&gt;
&lt;br /&gt;
 /etc/sysconfig/network-scripts/ifcfg-eth0&lt;br /&gt;
  TYPE=Ethernet&lt;br /&gt;
  DEVICE=eth0&lt;br /&gt;
  SLAVE=yes&lt;br /&gt;
  MASTER=bond0&lt;br /&gt;
  BOOTPROTO=none&lt;br /&gt;
  HWADDR=00:15:17:4C:6A:D8&lt;br /&gt;
  ONBOOT=yes&lt;br /&gt;
&lt;br /&gt;
 /etc/sysconfig/network-scripts/ifcfg-eth1&lt;br /&gt;
  TYPE=Ethernet&lt;br /&gt;
  DEVICE=eth1&lt;br /&gt;
  SLAVE=yes&lt;br /&gt;
  MASTER=bond0&lt;br /&gt;
  BOOTPROTO=none&lt;br /&gt;
  ONBOOT=yes&lt;br /&gt;
&lt;br /&gt;
  /etc/modprobe.conf # Had to add the last line on 2009-05-22 to get the bounding work. &lt;br /&gt;
  alias scsi_hostadapter usb-storage &lt;br /&gt;
  alias scsi_hostadapter1 ahci&lt;br /&gt;
  alias eth0 e1000&lt;br /&gt;
  alias eth1 e1000&lt;br /&gt;
  alias scsi_hostadapter2 3w-9xxx&lt;br /&gt;
  alias usb-controller ehci-hcd&lt;br /&gt;
  alias usb-controller1 uhci-hcd&lt;br /&gt;
  alias bond0 bonding&lt;br /&gt;
  alias char-major-89 i2c-dev&lt;br /&gt;
  install bond0 /sbin/modprobe/ bonding -o bonding0 mode=1 miimon=100&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; How to create a new hotspare after drive failure &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
tw_cli&lt;br /&gt;
maint createunit c0 rspare p6&lt;br /&gt;
&lt;br /&gt;
where you must replace c0 with your controller and p6 with the port the drive is at&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt; How to test network performance between nodes &amp;lt;/h3&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Comment: the tool &amp;quot;netcat&amp;quot; or &amp;quot;nc&amp;quot; is used to create very simple network connections. On some system, the tool is named &amp;quot;nc&amp;quot;, where on other sytsems it is &amp;quot;netcat&amp;quot;. So replace where appropriate.&lt;br /&gt;
&lt;br /&gt;
On the receiving host: enter: (you don&amp;#039;t need to be root)&lt;br /&gt;
 netcat -v -v -l -n -p 2222 &amp;gt; /dev/null&lt;br /&gt;
This opens the network port 2222, and discards everything that it receives (/dev/null)&lt;br /&gt;
&lt;br /&gt;
On the sending host, type: (replace &amp;lt;IPoflisteninghost&amp;gt; with the IP address of the host above )&lt;br /&gt;
 time yes | nc -v -v -n &amp;lt;IPoflisteninghost&amp;gt; 2222 &amp;gt;/dev/null&lt;br /&gt;
This sends thousands of &amp;quot;y&amp;quot;&amp;#039;s to the listening host.&lt;br /&gt;
&lt;br /&gt;
After some time, you can abort (control-C) and you will seh how many bytes were sent. You can calculate the average speed by dividing by the time you let the test run.&lt;br /&gt;
&lt;br /&gt;
Keep in mind that the sped s always limited by the slowest machine. So if you have set up network bonding, you should consider running severel servers at a tim eon the receiving host, and connecting from several machines:&lt;br /&gt;
To test the full speed, I opened severel ports (2222, 2223, 2224) and sent from pc44,  pc50, and lhepatsomething.&lt;/div&gt;</summary>
		<author><name>Lhep</name></author>
	</entry>
</feed>