惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
有赞技术团队
有赞技术团队
V
Visual Studio Blog
T
The Blog of Author Tim Ferriss
爱范儿
爱范儿
Vercel News
Vercel News
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
D
DataBreaches.Net
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
The Cloudflare Blog
宝玉的分享
宝玉的分享
V
V2EX
Microsoft Azure Blog
Microsoft Azure Blog

博客园 - 李文学

Windows Server 2016 64位 ASP+Access(.mdb) 80004005 最简解决方案 Oracle查询表中指定库名,表约束名的上下表依赖关系 linux简版启动,关闭jar命令 Oracle11.2实例重启 主流数据库 “匹配更新、不匹配插入” 语法详解(Oracle/MSSQL/MySQL) wps,两个页签比较常用函数 Oracle常见SQL示例 VUE-手机号验证 Centos7安装mysql8 Centos7安装ffmpeg 不同数据库标识长度检查 Centos7重置网络 Centos7磁盘空间自动处理 Oracle11新建业务库账号信息 Java启动JAR,.sh版 linux常用命令 centos7防火墙IP白名单维护 centos7安装lamp,php5.6,mysql5.7,xdebug MSSQL最大内存设置
Centos7扩容2
李文学 · 2025-12-08 · via 博客园 - 李文学

1.查看服务器磁盘基本情况

image

 根据截图分析/dev/sdb需要扩容到

/dev/mapper/centos-home下面

2.扩容实现

2.1.创建物理卷(PV)
pvcreate /dev/sdb

2.2将物理卷添加到卷组(VG)centos中
vgextend centos /dev/sdb

2.3扩展逻辑卷(LV)centos/home
lvextend -l +100%FREE /dev/mapper/centos-home

2.4扩展文件系统(假设是xfs文件系统,根据你的系统实际情况选择命令)
xfs_growfs /dev/mapper/centos-home # 如果是xfs文件系统
或者
resize2fs /dev/mapper/centos-home # 如果是ext4文件系统

2.5验证

df -h /home

lvs

3.扩容验证

image

posted @ 2025-12-08 17:00  李文学  阅读(14)  评论(0)    收藏  举报