
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="https://mediawiki.ceinge.unina.it/skins/common/feed.css?63"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>biolocal:Nodedisk - Revision history</title>
		<link>https://mediawiki.ceinge.unina.it/index.php?title=biolocal:Nodedisk&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.10.0</generator>
		<lastBuildDate>Wed, 26 Aug 2026 09:33:23 GMT</lastBuildDate>
		<item>
			<title>Mauro at 11:05, 28 October 2009</title>
			<link>https://mediawiki.ceinge.unina.it/index.php?title=biolocal:Nodedisk&amp;diff=1513&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table border='0' width='98%' cellpadding='0' cellspacing='4' style=&quot;background-color: white;&quot;&gt;
			&lt;tr&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;Revision as of 11:05, 28 October 2009&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 26:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 26:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;,104127,L&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;,104127,L&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;EOF&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;EOF&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;                /sbin/mkswap /dev/hda1; /sbin/mkswap &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;/dev/hda2; /sbin/swapon /dev/hda1; /sbin/swapon &lt;/del&gt;/dev/hda2;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;                /sbin/mkswap /dev/hda1; /sbin/mkswap /dev/hda2;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;                /sbin/mkfs -t ext3 -L scratch /dev/hda3; /bin/mount LABEL=scratch&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;                /sbin/mkfs -t ext3 -L scratch /dev/hda3; /bin/mount LABEL=scratch&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;        fi&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;        fi&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;fi&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;fi&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;/sbin/swapon /dev/hda1; /sbin/swapon /dev/hda2;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&amp;lt;/PRE&amp;gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&amp;lt;/PRE&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Wed, 28 Oct 2009 11:05:12 GMT</pubDate>			<dc:creator>Mauro</dc:creator>			<comments>https://mediawiki.ceinge.unina.it/index.php/:Nodedisk</comments>		</item>
		<item>
			<title>Gianluca at 12:54, 4 August 2009</title>
			<link>https://mediawiki.ceinge.unina.it/index.php?title=biolocal:Nodedisk&amp;diff=1361&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table border='0' width='98%' cellpadding='0' cellspacing='4' style=&quot;background-color: white;&quot;&gt;
			&lt;tr&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;Revision as of 12:54, 4 August 2009&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 7:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 7:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;The new CentOS 5 cluster installation is based on labels for disk partitioning.&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;The new CentOS 5 cluster installation is based on labels for disk partitioning.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;A script is installed in /usr/local/sbin/build_disk.sh to create at boot time the disk partitioning if the expected partitions &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;doesn&lt;/del&gt;'t exist.&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;A script is installed in /usr/local/sbin/build_disk.sh to create at boot time the disk partitioning if the expected partitions &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;don&lt;/ins&gt;'t exist.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&amp;lt;PRE&amp;gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&amp;lt;PRE&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 32:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 32:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&amp;lt;/PRE&amp;gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&amp;lt;/PRE&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;This script is called by rc.local and works only if the partition label &amp;quot;scratch&amp;quot; &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;doesn0&lt;/del&gt;'t &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;exist &lt;/del&gt;and any hda partition is already mounted.&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;This script is called by rc.local and works only if the partition label &amp;quot;scratch&amp;quot; &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;isn&lt;/ins&gt;'t &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;found &lt;/ins&gt;and any hda partition is already mounted.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;sfdisk takes some command from the std input to create the partitions:&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;sfdisk takes some command from the std input to create the partitions:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;from 0 cylinder, with size 4161 cylinders, of type swap&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;*&lt;/ins&gt;from 0 cylinder, with size 4161 cylinders, of type swap &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;(0,4161,S)&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;from last cyl, with size 4161 cylinders, of type swap&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;*&lt;/ins&gt;from last cyl, with size 4161 cylinders, of type swap &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;(,4161,S)&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;from last cyl, with size 104127 cylinders, of type linux&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;*&lt;/ins&gt;from last cyl, with size 104127 cylinders, of type linux &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;(,104127,L)&lt;/ins&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;Finally the partitions are created and mounted.&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;Finally the partitions are created and mounted.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;''Note : The swap partition should always exist, otherwise the scheduler wouldn't get the node (it looks for nodes with free swap space)''&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;''Note : The swap partition should always exist, otherwise the scheduler wouldn't get the node (it looks for nodes with free swap space)''&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 04 Aug 2009 12:54:22 GMT</pubDate>			<dc:creator>Gianluca</dc:creator>			<comments>https://mediawiki.ceinge.unina.it/index.php/:Nodedisk</comments>		</item>
		<item>
			<title>Gianluca: New page: Each node should be initialized with the following partitions on the local disk: * swap1 - 2Gb * swap2 - 2Gb * scratch - 50Gb   The new CentOS 5 cluster installation is based on labels for...</title>
			<link>https://mediawiki.ceinge.unina.it/index.php?title=biolocal:Nodedisk&amp;diff=1360&amp;oldid=prev</link>
			<description>&lt;p&gt;New page: Each node should be initialized with the following partitions on the local disk: * swap1 - 2Gb * swap2 - 2Gb * scratch - 50Gb   The new CentOS 5 cluster installation is based on labels for...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Each node should be initialized with the following partitions on the local disk:&lt;br /&gt;
* swap1 - 2Gb&lt;br /&gt;
* swap2 - 2Gb&lt;br /&gt;
* scratch - 50Gb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The new CentOS 5 cluster installation is based on labels for disk partitioning.&lt;br /&gt;
&lt;br /&gt;
A script is installed in /usr/local/sbin/build_disk.sh to create at boot time the disk partitioning if the expected partitions doesn't exist.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
cat /usr/local/sbin/build_disk.sh&lt;br /&gt;
&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
/sbin/findfs LABEL=scratch 2&amp;gt;1 &amp;gt; /dev/null;&lt;br /&gt;
&lt;br /&gt;
if [ $? -ne 0 ];&lt;br /&gt;
then&lt;br /&gt;
        /bin/mount | grep hda&lt;br /&gt;
        if [ $? -ne 0 ];&lt;br /&gt;
        then&lt;br /&gt;
                /sbin/sfdisk /dev/hda &amp;lt;&amp;lt; EOF&lt;br /&gt;
0,4161,S&lt;br /&gt;
,4161,S&lt;br /&gt;
,104127,L&lt;br /&gt;
EOF&lt;br /&gt;
                /sbin/mkswap /dev/hda1; /sbin/mkswap /dev/hda2; /sbin/swapon /dev/hda1; /sbin/swapon /dev/hda2;&lt;br /&gt;
                /sbin/mkfs -t ext3 -L scratch /dev/hda3; /bin/mount LABEL=scratch&lt;br /&gt;
        fi&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This script is called by rc.local and works only if the partition label &amp;quot;scratch&amp;quot; doesn0't exist and any hda partition is already mounted.&lt;br /&gt;
&lt;br /&gt;
sfdisk takes some command from the std input to create the partitions:&lt;br /&gt;
from 0 cylinder, with size 4161 cylinders, of type swap&lt;br /&gt;
from last cyl, with size 4161 cylinders, of type swap&lt;br /&gt;
from last cyl, with size 104127 cylinders, of type linux&lt;br /&gt;
&lt;br /&gt;
Finally the partitions are created and mounted.&lt;br /&gt;
&lt;br /&gt;
''Note : The swap partition should always exist, otherwise the scheduler wouldn't get the node (it looks for nodes with free swap space)''&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2009 12:51:15 GMT</pubDate>			<dc:creator>Gianluca</dc:creator>			<comments>https://mediawiki.ceinge.unina.it/index.php/:Nodedisk</comments>		</item>
	</channel>
</rss>