我有一个服务器与多个逻辑卷。 我删除了一个,但是我无法利用这个空闲空间。
root@ubuntu:/tmp# lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert logs system -wi-ao 6.48g root system -wi-ao 7.45g swap_1 system -wi-ao 1.86g var system -wi-ao 6.52g server system -wi-ao 7.45g root@ubuntu:/tmp# vgs VG #PV #LV #SN Attr VSize VFree system 1 4 0 wz--n- 29.76g 0
删除服务器逻辑卷后,我不能使用空闲空间:
root@ubuntu:/tmp# vgs VG #PV #LV #SN Attr VSize VFree system 1 4 0 wz--n- 29.76g 7.45g root@ubuntu:/tmp# lvextend -l 100%FREE /dev/system/root New size (1907 extents) matches existing size (1907 extents) Run `lvextend --help' for more information.
你必须使用
lvextend -l +100%FREE /dev/system/root
如果没有加号,则尝试将LV的大小调整为可用空间,而不是增加它。 在你的情况下,这与当前的大小相符。