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

推荐订阅源

D
Docker
爱范儿
爱范儿
T
The Exploit Database - CXSecurity.com
量子位
T
Tailwind CSS Blog
T
Threatpost
The GitHub Blog
The GitHub Blog
AWS News Blog
AWS News Blog
云风的 BLOG
云风的 BLOG
K
Kaspersky official blog
P
Proofpoint News Feed
博客园 - 司徒正美
L
LangChain Blog
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
S
Secure Thoughts
The Last Watchdog
The Last Watchdog
Spread Privacy
Spread Privacy
H
Hacker News: Front Page
T
Troy Hunt's Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
W
WeLiveSecurity
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Proofpoint News Feed
T
Tor Project blog
T
The Blog of Author Tim Ferriss
I
Intezer
P
Privacy & Cybersecurity Law Blog
美团技术团队
N
Netflix TechBlog - Medium
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost
Application and Cybersecurity Blog
Application and Cybersecurity Blog
G
Google Developers Blog
Attack and Defense Labs
Attack and Defense Labs
T
Tenable Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
Last Week in AI
Last Week in AI

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

成功扩容