<!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>Supprimer un volume physique d'un groupe de volumes</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="ch11.html" title="Chapitre 11. Tâches courantes" /><link rel="prev" href="ch11s05.html" title="Ajouter un volume physique à un groupe de volumes" /><link rel="next" href="ch11s07.html" title="Créer un volume logique" /></head><body><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Supprimer un volume physique d'un groupe de volumes</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="ch11s05.html">Précédent</a> </td><th align="center" width="60%">Chapitre 11. Tâches courantes</th><td align="right" width="20%"> <a accesskey="n" href="ch11s07.html">Suivant</a></td></tr></table><hr /></div><div class="sect1" lang="fr"><div class="titlepage"><div><div><h2 class="title"><a id="removepvsfromvg" />Supprimer un volume physique d'un groupe de volumes</h2></div></div></div><p> La commande « <span class="quote">pvdisplay</span> » permet de s'assurer que le volume physique n'est utilisé par aucun volume logique : </p><pre class="screen"> # pvdisplay /dev/hda1 --- Physical volume --- PV Name /dev/hda1 VG Name myvg PV Size 1.95 GB / NOT usable 4 MB [LVM: 122 KB] PV# 1 PV Status available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 4096 Total PE 499 Free PE 0 Allocated PE 499 PV UUID Sd44tK-9IRw-SrMC-MOkn-76iP-iftz-OVSen7 </pre><p> Si le volume physique est encore utilisé, il faut migrer les données vers un autre volume physique. </p><p> Utilisez ensuite « <span class="quote">vgreduce</span> » pour enlever le volume physique : </p><pre class="screen"> # vgreduce mon_groupe_de_volumes /dev/hda1 </pre></div><div class="navfooter"><hr /><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ch11s05.html">Précédent</a> </td><td align="center" width="20%"><a accesskey="u" href="ch11.html">Niveau supérieur</a></td><td align="right" width="40%"> <a accesskey="n" href="ch11s07.html">Suivant</a></td></tr><tr><td valign="top" align="left" width="40%">Ajouter un volume physique à un groupe de volumes </td><td align="center" width="20%"><a accesskey="h" href="index.html">Sommaire</a></td><td valign="top" align="right" width="40%"> Créer un volume logique</td></tr></table></div></body></html>