LVM1) ist unter anderem deswegen praktisch, weil man damit die einzelnen "logischen" Festplattenpartionen 2) erstmal nur so groß macht wie man sie am Anfang braucht und dann bei Bedarf vergrößern kann …
Status ansehen mit df -h
und lvdisplay
:
root@afrika:~# df -h /data /dev/mapper/vg00-data 568G 412G 129G 77% /data root@afrika:~# lvdisplay /dev/mapper/vg00-data --- Logical volume --- LV Path /dev/vg00/data LV Name data VG Name vg00 LV UUID wO2F4j-VaRK-Ot0X-iJ7l-kvf2-TZhq-8GaFtd LV Write Access read/write LV Creation host, time afrika, 2014-07-12 15:42:56 +0200 LV Status available # open 1 LV Size 576.84 GiB Current LE 147670 Segments 2 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:3
vergrößern mit lvextend
und resize2fs
:
root@afrika:~# lvextend -L +300G /dev/vg00/data root@afrika:~# resize2fs /dev/vg00/data resize2fs 1.42.9 (4-Feb-2014) Filesystem at /dev/vg00/data is mounted on /data; on-line resizing required old_desc_blocks = 37, new_desc_blocks = 55 The filesystem on /dev/vg00/data is now 229857280 blocks long.
freuen über mehr Platz:
root@afrika:~# df -h /data /dev/mapper/vg00-data 568G 412G 129G 77% /data root@afrika:~# lvdisplay /dev/mapper/vg00-data --- Logical volume --- LV Path /dev/vg00/data LV Name data VG Name vg00 LV UUID wO2F4j-VaRK-Ot0X-iJ7l-kvf2-TZhq-8GaFtd LV Write Access read/write LV Creation host, time afrika, 2014-07-12 15:42:56 +0200 LV Status available # open 1 LV Size 576.84 GiB Current LE 147670 Segments 2 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:3
gilt für alle Tipps, Tricks & Spickzettel:
dies sind einfache, teils banale Notizen für meinen persönlichen Gebrauch,
die hier eher zufällig auch öffentlich lesbar sind
(vielleicht hilft es ja jemandem weiter). Verwendung auf eigene Gefahr
Fehler-Hinweise, Dankesschreiben , etc. bitte an: web.21@unixwitch.de
weitere Tools / Spickzettel