PVE磁盘扩容方案

初始安装系统的时候,硬盘只给我50G,在PVE面板增加了450G,那么操作系统里面需要进行扩容操作:

一、基于parted

文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/pve-parted-disk/

二、基于fdisk

# 备份当前分区表
$ sfdisk -d /dev/sda > sda_backup.txt
# 使用 fdisk
$ fdisk /dev/sda文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/pve-parted-disk/

d # 删除分区
5 # 删除交换分区
d # 删除分区
2 # 删除扩展分区
d # 删除分区
1 # 删除主分区文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/pve-parted-disk/

n # 创建新主分区
p # 主分区
1 # 分区号1
# 起始扇区:直接回车(使用默认2048)
# 结束扇区:+536G文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/pve-parted-disk/

n # 创建扩展分区
e # 扩展分区
2 # 分区号2
# 起始扇区:直接回车
# 结束扇区:直接回车(使用所有剩余空间)文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/pve-parted-disk/

n # 创建逻辑分区
# 起始扇区:直接回车
# 结束扇区:直接回车文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/pve-parted-disk/

t # 更改分区类型
5 # 选择分区5
82 # Linux swap文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/pve-parted-disk/

w # 保存并退出 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/pve-parted-disk/

文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/pve-parted-disk/文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/pve-parted-disk/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

 
Byrd
  • by Published onFebruary 5, 2026
  • 原文链接:https://note.t4x.org/basic/pve-parted-disk/
匿名

Comment

Anonymous

Slide puzzle verification.