centos7重新安裝分區(qū) Centos7如何減少/home分區(qū),擴(kuò)大/root分區(qū)?
Centos7如何減少/home分區(qū),擴(kuò)大/root分區(qū)?備份/home內(nèi)容,刪除/home文件系統(tǒng)所在的邏輯卷,展開/root文件系統(tǒng),并創(chuàng)建新的/home:[tar CVF/tmp]/主頁.tar
Centos7如何減少/home分區(qū),擴(kuò)大/root分區(qū)?
備份/home內(nèi)容,刪除/home文件系統(tǒng)所在的邏輯卷,展開/root文件系統(tǒng),并創(chuàng)建新的/home:[tar CVF/tmp]/主頁.tar/Home#備份/Home
卸載/Home#卸載/Home。如果無法卸載,首先使用/home文件系統(tǒng)終止進(jìn)程
lvremove/dev/CentOS/home#刪除/home所在的LV
lvextend-L 50g/dev/CentOS/root#展開/root所在的LV并添加50g
XFS?Grow FS/dev/CentOS/root?擴(kuò)展/root文件系統(tǒng)
lvcreate-L 56g-N home CentOS?重新創(chuàng)建home呂mkfs.xfs文件/Dev/CentOS/home#創(chuàng)建文件系統(tǒng)
掛載/Dev/CentOS/home/home#掛載
DF-H