renommer un LV

This commit is contained in:
jlecour 2017-09-19 16:56:26 +02:00
parent a91ca3fe59
commit a00f5af373

View file

@ -372,21 +372,28 @@ The filesystem on /dev/vg00/lvmirror is now 53739520 blocks long.
Removed "/dev/hde1" from volume group "mylvmtest" 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 Using logical volume(s) on command line
Do you really want to remove active logical volume "testlvm2"? [y/n]: y Do you really want to remove active logical volume "testlv"? [y/n]: y
Archiving volume group "testlvm" metadata. Archiving volume group "vg00" metadata.
Found volume group "testlvm" Found volume group "vg00"
Removing testlvm-testlvm2 Removing vg00-testlv
Found volume group "testlvm" Found volume group "vg00"
Releasing logical volume "testlvm2" Releasing logical volume "testlv"
Creating volume group backup "/etc/lvm/backup/testlvm" Creating volume group backup "/etc/lvm/backup/vg00"
Logical volume "testlvm2" successfully removed 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 ### Augmenter la taille d'un LV
`lvextend` peut se charger d'augmenter le système de fichier sous-jacent `lvextend` peut se charger d'augmenter le système de fichier sous-jacent