<!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>Chapitre 7. Scripts de démarrage pour LVM 1</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="index.html" title="Guide pratique de LVM" /><link rel="prev" href="ch06s02.html" title="Construire le module du noyau pour LVM 1" /><link rel="next" href="ch07s02.html" title="Debian" /></head><body><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Chapitre 7. Scripts de démarrage pour LVM 1</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="ch06s02.html">Précédent</a> </td><th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="ch07s02.html">Suivant</a></td></tr></table><hr /></div><div class="chapter" lang="fr"><div class="titlepage"><div><div><h2 class="title"><a id="boot_scripts" />Chapitre 7. Scripts de démarrage pour LVM 1</h2></div></div></div><div class="toc"><p><b>Table des matières</b></p><dl><dt><span class="sect1"><a href="ch07.html#initscriptcaldera">Caldera</a></span></dt><dt><span class="sect1"><a href="ch07s02.html">Debian</a></span></dt><dt><span class="sect1"><a href="ch07s03.html">Mandrake</a></span></dt><dt><span class="sect1"><a href="ch07s04.html">Redhat</a></span></dt><dt><span class="sect1"><a href="ch07s05.html">Slackware</a></span></dt><dt><span class="sect1"><a href="ch07s06.html">SuSE</a></span></dt></dl></div><p> Les scripts de démarrage ne sont pas fournis par la distribution de LVM, bien qu'ils soient simples à faire soi-même. </p><p> Le démarrage de LVM demande juste ces deux commandes : </p><pre class="screen"> # vgscan # vgchange -ay </pre><p> Et l'arrêt une seule : </p><pre class="screen"> # vgchange -an </pre><p> Suivez les instructions ci-dessous suivant la distribution de Linux que vous utilisez. </p><div class="sect1" lang="fr"><div class="titlepage"><div><div><h2 class="title"><a id="initscriptcaldera" />Caldera</h2></div></div></div><p> Il est nécessaire d'ouvrir le fichier <code class="filename">/etc/rc.d/rc.boot</code>. Insérez les lignes de commandes vgscan et vgchange juste avant les lignes qui disent « <span class="quote">Mounting local filesystems</span> ». </p><p> Vous pouvez aussi modifier le fichier <code class="filename">/etc/rc.d/init.d/halt</code> pour désactiver les groupes de volume à l'arrêt de la machine. Insérer la commande </p><pre class="screen"> vgchange -an </pre><p> près de la fin du fichier, juste après le démontage des systèmes de fichiers ou leur montage en lecture seule et avant le commentaire disant « <span class="quote">Now halt or reboot</span> ». </p></div></div><div class="navfooter"><hr /><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ch06s02.html">Précédent</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="ch07s02.html">Suivant</a></td></tr><tr><td valign="top" align="left" width="40%">Construire le module du noyau 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%"> Debian</td></tr></table></div></body></html>