From a00f5af373737fb34e8a88db99d43050baf57b4c Mon Sep 17 00:00:00 2001 From: jlecour Date: Tue, 19 Sep 2017 16:56:26 +0200 Subject: [PATCH] renommer un LV --- HowtoLVM.md | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/HowtoLVM.md b/HowtoLVM.md index cce43420..06658c2b 100644 --- a/HowtoLVM.md +++ b/HowtoLVM.md @@ -372,21 +372,28 @@ The filesystem on /dev/vg00/lvmirror is now 53739520 blocks long. Removed "/dev/hde1" from volume group "mylvmtest" ~~~ -### Supprimer un LV +### Supprimer un LV `testlv` dans le VG `vg00` ~~~ -# lvremove -v /dev/testlvm/testlvm2 +# lvremove -v /dev/vg00/testlv Using logical volume(s) on command line -Do you really want to remove active logical volume "testlvm2"? [y/n]: y - Archiving volume group "testlvm" metadata. - Found volume group "testlvm" - Removing testlvm-testlvm2 - Found volume group "testlvm" - Releasing logical volume "testlvm2" - Creating volume group backup "/etc/lvm/backup/testlvm" - Logical volume "testlvm2" successfully removed +Do you really want to remove active logical volume "testlv"? [y/n]: y + Archiving volume group "vg00" metadata. + Found volume group "vg00" + Removing vg00-testlv + Found volume group "vg00" + Releasing logical volume "testlv" + Creating volume group backup "/etc/lvm/backup/vg00" + Logical volume "testlv" successfully removed ~~~ +### Renommer un LV `lvold` en `lvnew` au sein du VG `vg00` + +~~~ +# lvrename vg00 lvold lvnew +~~~ + + ### Augmenter la taille d'un LV `lvextend` peut se charger d'augmenter le système de fichier sous-jacent