编程知识 cdmana.com

Expansion of CentOS 6.8 system disk

Recently, there is not enough hard disk space on one server , It needs to be expanded , Because it is centos6.8 Of , And the kernel version is less than 3.6, however centos6 The life cycle of is over , So when you install the software , Or tossed about , Record it here .

  1. Back up the original yum Source

  2. Download Ali yum Source , There are some changes to be made after downloading , Or you can't use it .

sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo

sed -i  's/http/https/g' /etc/yum.repos.d/CentOS-Base.repo

sed -i  's/$releasever/6.8/g' /etc/yum.repos.d/CentOS-Base.repo

sed -i  's/centos/centos-vault/g' /etc/yum.repos.d/CentOS-Base.repo

3.yum clean all && yum makecache

4. install epel Source

yum install -y http://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm

yum install cloud-utils-growpart

版权声明
本文为[osc_ lgbm94am]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224124651493d.html

Scroll to Top