centos6.8系統盤擴容

最近一臺服務器的硬盤空間不夠了,要進行擴容,由於是centos6.8的,且內核版本小於3.6,但是centos6的生命週期已經結束了,所以在安裝軟件時,還是折騰了一番,在此記錄下。

  1. 備份原有yum源

  2. 下載阿里yum源,下載後要進行一些修改,不然還是使用不了。

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.安裝epel源

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

yum install cloud-utils-growpart

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章