Hallo
Ich moechte aus einer Volumen Group eine Festplatte / Partiton löschen bzw. wieder entfernen.
Was ich gemacht habe:
Code:
pcvcreate /dev/xvdc4
vgextend cad /dev/xvdc4
lvextend -l +100%FREE /dev/cad/cad
Danach habe ich festgestellt, das ich die falsche Partiotion hinzugefuegt habe.
Wie kann ich diese wieder entfernen?
Aktuelle sieht es so aus:
lvs:
Code:
cad cad -wi-ao 799,91G
pvs:
Code:
/dev/xvdc1 data lvm2 a- 249,97G 0
/dev/xvdc2 data lvm2 a- 149,97G 0
/dev/xvdc4 cad lvm2 a- 200,00G 0
/dev/xvdf1 cad lvm2 a- 144,97G 0
/dev/xvdf2 cad lvm2 a- 104,97G 0
/dev/xvdf3 cad lvm2 a- 149,97G 0
/dev/xvdf4 cad lvm2 a- 200,00G 0
lvdisplay
Code:
--- Logical volume ---
LV Name /dev/cad/cad
VG Name cad
LV UUID wnIKk3-1fqM-VI9l-dpLH-0mc3-LOib-EKlfM3
LV Write Access read/write
LV Status available
# open 1
LV Size 799,91 GB
Current LE 25597
Segments 5
Allocation inherit
Read ahead sectors auto
- currently set to 256
vgs
Code:
vgs
VG #PV #LV #SN Attr VSize VFree
cad 5 1 0 wz--n- 799,91G 0
pvdisplay
Code:
--- Physical volume ---
PV Name /dev/xvdc4
VG Name cad
PV Size 200,01 GB / not usable 5,22 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 6400
Free PE 0
Allocated PE 6400
PV UUID ww1Sgj-mObU-qMwW-XPNS-3EB5-1Uui-2kQozx
Das Dateisystem ext4 habe ich noch nicht vergrössert
Vielen Dank
Lesezeichen