<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.inthewings.net/index.php?action=history&amp;feed=atom&amp;title=Lustre-server</id>
	<title>Lustre-server - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.inthewings.net/index.php?action=history&amp;feed=atom&amp;title=Lustre-server"/>
	<link rel="alternate" type="text/html" href="http://wiki.inthewings.net/index.php?title=Lustre-server&amp;action=history"/>
	<updated>2026-05-09T02:45:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>http://wiki.inthewings.net/index.php?title=Lustre-server&amp;diff=2294&amp;oldid=prev</id>
		<title>Jka at 18:52, 10 October 2007</title>
		<link rel="alternate" type="text/html" href="http://wiki.inthewings.net/index.php?title=Lustre-server&amp;diff=2294&amp;oldid=prev"/>
		<updated>2007-10-10T18:52:42Z</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;This is a script that I wrote in order to start and stop a lustre server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# luster-server This shell script takes care of starting and stopping&lt;br /&gt;
#               a Lustre server.&lt;br /&gt;
#&lt;br /&gt;
# chkconfig: 345 27 73&lt;br /&gt;
#&lt;br /&gt;
# description:  Lustre is a parallel filesystem.&lt;br /&gt;
&lt;br /&gt;
# Source function library.&lt;br /&gt;
. /etc/init.d/functions&lt;br /&gt;
&lt;br /&gt;
# Source networking configuration.&lt;br /&gt;
. /etc/sysconfig/network&lt;br /&gt;
&lt;br /&gt;
# Check that networking is up.&lt;br /&gt;
[ ${NETWORKING} = &amp;quot;no&amp;quot; ] &amp;amp;&amp;amp; exit 0&lt;br /&gt;
&lt;br /&gt;
RETVAL=0&lt;br /&gt;
LUSTRE_HOME=/opt/lustre/1.6.2&lt;br /&gt;
MDT_TARGET=/lustre/mri/mdt0&lt;br /&gt;
LUSTRE_MDT=/dev/sda&lt;br /&gt;
E2_HOME=/opt/e2fsck&lt;br /&gt;
OST_LV=&amp;quot;f2c0l0 f2c0l1 f2c1l0 f2c1l1 f3c0l0 f3c0l1 f3c1l0 f3c1l1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
start() {&lt;br /&gt;
    action $&amp;quot;Loading Lustre lnet module: &amp;quot; modprobe lnet&lt;br /&gt;
    action $&amp;quot;Starting nids: &amp;quot; ${LUSTRE_HOME}/sbin/lctl network up&lt;br /&gt;
    action $&amp;quot;Mounting MDT: &amp;quot; mount -t lustre $LUSTRE_MDT $MDT_TARGET&lt;br /&gt;
    for LV in $OST_LV&lt;br /&gt;
      do &lt;br /&gt;
      if [ -d /lustre/`${E2_HOME}/sbin/e2label /dev/${LV}/lv-${LV}` ]; then&lt;br /&gt;
          mount -t lustre /dev/$LV/lv-$LV /lustre/`${E2_HOME}/sbin/e2label /dev/${LV}/lv-${LV}` &lt;br /&gt;
      else&lt;br /&gt;
          mkdir /lustre/`${E2_HOME}/sbin/e2label /dev/${LV}/lv-${LV}`&lt;br /&gt;
          mount -t lustre /dev/$LV/lv-$LV /lustre/`${E2_HOME}/sbin/e2label /dev/${LV}/lv-${LV}` &lt;br /&gt;
      fi&lt;br /&gt;
    done&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
stop() {&lt;br /&gt;
    for LV in $OST_LV&lt;br /&gt;
      do&lt;br /&gt;
      umount /lustre/`${E2_HOME}/sbin/e2label /dev/${LV}/lv-${LV}`&lt;br /&gt;
    done&lt;br /&gt;
    umount $MDT_TARGET&lt;br /&gt;
    action $&amp;quot;Unconfiguring LIDS: &amp;quot; ${LUSTRE_HOME}/sbin/lctl network unconfigure&lt;br /&gt;
    ${LUSTRE_HOME}/sbin/lctl modules | awk &amp;#039;{print $2}&amp;#039; | xargs rmmod&lt;br /&gt;
    action $&amp;quot;Removing lnet modules: &amp;quot; &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# See how we were called.&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
  start)&lt;br /&gt;
        start&lt;br /&gt;
        ;;&lt;br /&gt;
  stop)&lt;br /&gt;
        stop&lt;br /&gt;
        ;;&lt;br /&gt;
  restart|reload)&lt;br /&gt;
        stop&lt;br /&gt;
        start&lt;br /&gt;
        RETVAL=$?&lt;br /&gt;
        ;;&lt;br /&gt;
  *)&lt;br /&gt;
        echo $&amp;quot;Usage: $0 {start|stop|restart}&amp;quot;&lt;br /&gt;
        exit 1&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit $RETVAL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jka</name></author>
		
	</entry>
</feed>