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

推荐订阅源

博客园_首页
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
G
Google Developers Blog
B
Blog
Engineering at Meta
Engineering at Meta
阮一峰的网络日志
阮一峰的网络日志
The Register - Security
The Register - Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
The Cloudflare Blog
The Hacker News
The Hacker News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
雷峰网
雷峰网
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
A
About on SuperTechFans
量子位
Recorded Future
Recorded Future
博客园 - 三生石上(FineUI控件)
H
Help Net Security
Help Net Security
Help Net Security
P
Palo Alto Networks Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Troy Hunt's Blog
W
WeLiveSecurity
V
Vulnerabilities – Threatpost
T
The Exploit Database - CXSecurity.com
Know Your Adversary
Know Your Adversary
Apple Machine Learning Research
Apple Machine Learning Research
Scott Helme
Scott Helme
N
News | PayPal Newsroom
AWS News Blog
AWS News Blog
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
腾讯CDC
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
TaoSecurity Blog
TaoSecurity Blog
GbyAI
GbyAI
Y
Y Combinator Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
D
Docker

pve on 打工人日志

Proxmox VE(PVE) 更新到最新版本
Proxmox VE 在线扩容磁盘分区
作者 · 2022-01-19 · via pve on 打工人日志

Proxmox VE 在线扩容磁盘分区

添加磁盘大小

pve1-1

在 VM 上做扩容操作

  1. 安装 growpart
1yum install -y epel-release
2yum install -y cloud-utils
  1. 查看系统盘 路径
1fdisk -l
2df -h

pve1-2

  1. 扩容设备并重启
1growpart /dev/sda 2 #2代表是第二块系统分区,不是sda2,中间有空格
2reboot
  1. 重启执行命令
1xfs_growfs /dev/sda2 #(xfs 文件系统)
2resize2fs /dev/sda2 #(ext4 文件系统)
  1. 更新完成
1df -h

逻辑卷没有正常扩容的情况

  1. 检查当前逻辑卷属于哪个卷组:
1vgdisplay

pve1-1.png
检查卷组中是有足够的空间可以扩容,还有99g

  1. 扩展逻辑卷大小到200G:
1lvextend -L +99G /dev/mapper/ubuntu--vg-ubuntu--lv

pve1-2.png

  1. 调整文件系统大小到逻辑卷大小:
1resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

pve1-3.png
4. 检查

1df -h /dev/mapper/ubuntu--vg-ubuntu--lv

成功扩容