Benutzer-Werkzeuge

Webseiten-Werkzeuge


de:sysadmin:tools:linux-lvm

Linux LVM - Partition vergrößern

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
de/sysadmin/tools/linux-lvm.txt · Zuletzt geändert: 2016-01-04 16:02 von hella

Seiten-Werkzeuge