22
0
Fork 0

renommer un LV

This commit is contained in:
jlecour 2017-09-19 16:56:26 +02:00
parent a91ca3fe59
commit a00f5af373
1 changed files with 17 additions and 10 deletions

View File

@ -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