Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > a412ceb851151854794ced2a242192bb > files > 1694

howto-html-fr-20080722-1mdv2010.0.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Debian</title><link href="style.css" rel="stylesheet" type="text/css" /><meta content="DocBook XSL Stylesheets V1.73.2" name="generator" /><link rel="start" href="index.html" title="Guide pratique de LVM" /><link rel="up" href="ch07.html" title="Chapitre 7. Scripts de démarrage pour LVM 1" /><link rel="prev" href="ch07.html" title="Chapitre 7. Scripts de démarrage pour LVM 1" /><link rel="next" href="ch07s03.html" title="Mandrake" /></head><body><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Debian</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="ch07.html">Précédent</a> </td><th align="center" width="60%">Chapitre 7. Scripts de démarrage pour LVM 1</th><td align="right" width="20%"> <a accesskey="n" href="ch07s03.html">Suivant</a></td></tr></table><hr /></div><div class="sect1" lang="fr"><div class="titlepage"><div><div><h2 class="title"><a id="initscriptdebian" />Debian</h2></div></div></div><p>
        Si vous téléchargez le paquet Debian lvm-common (pour LVM 1) ou lvm2,
        un script d'initialisation devrait être installé pour vous.
      </p><p>
        Si vous installez LVM à partir des sources,
        vous devez créer votre propre fichier d'initialisation :
      </p><div class="itemizedlist"><ul><li><p>
             Créez le script de démarrage <code class="filename">/etc/init.d/lvm</code>
             contenant les lignes suivantes :
        </p><pre class="screen">
#!/bin/sh

case "$1" in
  start)
    /sbin/vgscan
    /sbin/vgchange -ay
    ;;
  stop)
    /sbin/vgchange -an
    ;;
  restart|force-reload)
    ;;
esac

exit 0
</pre></li><li><p>
        Ensuite, exécutez les commandes :
      </p><pre class="screen">
# chmod 0755 /etc/init.d/lvm
# update-rc.d lvm start 26 S . stop 82 1 .
</pre><p>
        Remarquez les points dans la dernière commande.
      </p></li></ul></div></div><div class="navfooter"><hr /><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ch07.html">Précédent</a> </td><td align="center" width="20%"><a accesskey="u" href="ch07.html">Niveau supérieur</a></td><td align="right" width="40%"> <a accesskey="n" href="ch07s03.html">Suivant</a></td></tr><tr><td valign="top" align="left" width="40%">Chapitre 7. Scripts de démarrage pour LVM 1 </td><td align="center" width="20%"><a accesskey="h" href="index.html">Sommaire</a></td><td valign="top" align="right" width="40%"> Mandrake</td></tr></table></div></body></html>