Hướng dẫn mở rộng ổ cứng Linux LVM (how to expand lvm Partition)
Để mở rộng ổ cứng Linux LVM bạn làm như sau:
1. Bước 1 dùng gparted để mở rộng ổ cứng
2. Bước 2 dùng các lệnh sau
#lvdisplay
#vgdisplay
lvextend -L+5G /dev/centos/var
xfs_growfs /dev/centos/var
+5G là dung lượng cần mở rộng
var là thư mục cần mở rộng
Tham khảo thêm chi tiết:
https://www.rootusers.com/lvm-resize...lvm-partition/
Ubuntu bạn làm như sau:
https://www.geoffstratton.com/expand...isk-ubuntu-lvm
pvdisplay
lvdisplay
lvextend -l+100%FREE /dev/ubuntu-1004/root
resize2fs /dev/mapper/ubuntu--1004-root
Chúc bạn thành công,