Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 14-12-2020, 10:54 AM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
Mở rộng disk LVM trên CentOS
Mở rộng disk LVM trên CentOS (how to expand disk LVM CentOS)





fdisk /dev/sda Sau đó chọn các option sau:

n
p
3 --> chổ này default có thể 3 hoặc 4, nếu 3 thì các bước tiếp theo mình gõ 3 nha
t
3
8e
w

Reboot

Trên CentOS 7:


Tạo partition

pvcreate /dev/sda3
vgextend /dev/centos /dev/sda3

Xem thông tin

vgdisplay -v

lvextend /dev/centos/root /dev/sda3

Resize partition LVM

xfs_growfs /dev/centos/root


Trên CentOS 8:


Tạo partition

pvcreate /dev/sda4
vgextend /dev/cl /dev/sda4

Xem thông tin

vgdisplay -v

lvextend /dev/cl/root /dev/sda4

Resize partition LVM

xfs_growfs /dev/cl/root


Để xem kết quả


df -h


Gôm home to /




umount /dev/mapper/centos-home
lvremove /dev/mapper/centos-home
lvextend -r -l +100%FREE /dev/mapper/centos-root


hoặc

B1: Vào /etc/fstab xóa bỏ dòng mount liên quan đến home
umount /dev/mapper/cl-home
lvremove /dev/mapper/cl-home
lvextend -r -l +100%FREE /dev/mapper/cl-root






tham khảo: https://serverfault.com/questions/77...d4586f51f7bb8b



  Trả lời ngay kèm theo trích dẫn này
Gửi trả lời


Công Cụ
Xếp Bài

Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 05:31 AM. Giờ GMT +7



Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.