esxi-linux-lvm磁盘扩容

before:esxi调整磁盘空间

在这里插入图片描述

修改磁盘

1、查看磁盘分配:lsblk

可以看到sda总300,sda3挂载的lv只使用了120

root@sin:~# lsblk
NAME                     MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                        8:0    0  300G  0 disk 
├─sda1                     8:1    0    1M  0 part 
├─sda2                     8:2    0    1G  0 part /boot
└─sda3                     8:3    0  119G  0 part 
  └─ubuntu--vg-ubuntu_lv 253:0    0  119G  0 lvm  /
sr0                       11:0    1  1.2G  0 rom 
2、fdisk /dev/sda 进入调整
root@sin:~# fdisk /dev/sda

Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

GPT PMBR size mismatch (251658239 != 629145599) will be corrected by write.
3、新建分区 n
Command (m for help): n
Partition number (4-128, default 4): 	# 回车默认4分区
First sector (251656192-629145566, default 2
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值