当前位置:网站首页>VMware disk expansion record
VMware disk expansion record
2022-07-30 02:52:00 【LOOPY_Y】
VMwareDisk expansion record
1 Original disk size

2 VMwareDisk expansion settings
VMware面板中"我的计算机"Select the virtual machine that needs disk expansion,右击“设置”,在“虚拟机设置”页面,选择“硬盘”–>“扩展”:
调整磁盘大小:
Click the extension to get the following tips,点击确认即可.
3 operating system settings
1、Increase the disk partition
fdisk /dev/sda
依次输入m、n、p、回车、回车、w保存,Forgot to take screenshots in this section,具体操作可参考https://blog.csdn.net/qq_44297579/article/details/107318096中的“2.管理sda磁盘”内容.
2、重启操作系统
3、进行第三步操作–>添加新LVM到已有的LVM组,实现卷扩容
lvm #进入lvm管理
lvm>pvcreate /dev/sda4 #这是初始化刚才的分区4
lvm>vgextend centos /dev/sda4 #将初始化过的分区加入到虚拟卷组centos (卷和卷组的命令可以通过 vgdisplay )
————————————————
版权声明:本文为CSDN博主「Lang Scholar.」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明.
原文链接:https://blog.csdn.net/qq_44297579/article/details/107318096
直接执行vgextend centos /dev/sda4后报错,After thinkingcentosShould be the name of a volume or volume group,It should be different from the original blogger,根据后面的注释,执行vgdisplay命令,结果为空.至此,The subsequent actions cannot be followed(If it can go well,You can continue to operate according to the steps of the original blogger).
4、创建物理卷和卷组
pvcreate /dev/sda4
5、添加挂载点
[[email protected] /]# mount /dev/sda4 /testspace
mount: unknown filesystem type 'LVM2_member'
[[email protected] /]#
如上,报错.
参考文章 https://blog.csdn.net/whatday/article/details/106135126 ,Check the current status of the server as follows --> This workaround does not apply to this issue.
# 查看物理卷
[[email protected] /]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda4 lvm2 --- 10.00g 10.00g
[[email protected] /]#
# 查看卷组 --> 无数据
[[email protected] /]# vgs
[[email protected] /]#
# 查看逻辑卷 --> 无数据
[[email protected] /]# lvdisplay
[[email protected] /]#
最后,参考文章 https://blog.csdn.net/colin_yu/article/details/77892918 中的方案二 The partition was formatted directly:
[[email protected] opt]# mkfs -t ext4 -c /dev/sda4
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
655360 inodes, 2621440 blocks
131072 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2151677952
80 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Checking for bad blocks (read-only test): done
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
[[email protected] opt]#
[[email protected] opt]#
再次挂载 --> 成功:
[[email protected] opt]# mount /dev/sda4 /testspace
[[email protected] opt]#
4 Check the disk status after expansion
# 查看磁盘分区情况
[[email protected] opt]# lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 xfs 1fa69e42-5da6-4b40-bcfe-e0bf0c55caa6 /boot
├─sda2 swap 381a2635-6532-43dc-b7c7-a4960e0e1cf7 [SWAP]
├─sda3 xfs 8026eed4-5e29-444e-8b78-5c33ee8c0582 /
└─sda4 ext4 d644de99-a88c-4e20-a527-18d43a4f2a26 /testspace
sr0
[[email protected] opt]#
# Check the disk status after expansion
[[email protected] opt]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 13M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/sda3 18G 14G 4.7G 74% /
/dev/sda1 297M 163M 134M 55% /boot
tmpfs 378M 12K 378M 1% /run/user/42
tmpfs 378M 0 378M 0% /run/user/0
/dev/sda4 9.8G 37M 9.2G 1% /testspace
[[email protected] opt]#
[[email protected] opt]#
边栏推荐
- 再度入围|“国产化”大潮来袭,汉得助力乘风破浪!
- 详解轮播图二-通过left定位来轮播图片
- English grammar_indefinite pronouns -some & any
- 杜教筛【莫比乌斯前缀和,欧拉函数前缀和】推导与模板【一千五百字】
- 【C语言刷LeetCode】592. 分数加减运算(M)
- 解决:npm ERR code ELIFECYCLE npm ERR errno 1(安装脚手架过程中,在npm run dev 时发生错误)
- houdini 使用HDA Processor 实现处理HDA输入输出
- B. Different Divisors- Codeforces Round #696 (Div. 2)
- HCIP实验(05)OSPF综合实验
- FL Studio官方20.9中文版无需汉化补丁,正确安装并设置切换
猜你喜欢
![[3D检测系列-PointRCNN]复现PointRCNN代码,并实现PointRCNN3D目标检测可视化,包含预训练权重下载链接(从0开始以及各种报错的解决方法)](/img/ca/17c047b8b1f030cc4ebb7e354070d9.png)
[3D检测系列-PointRCNN]复现PointRCNN代码,并实现PointRCNN3D目标检测可视化,包含预训练权重下载链接(从0开始以及各种报错的解决方法)

运营人必须掌握的6大类26个基本模型

【高性能计算】openMP

JS Navigator appName appVersion userAgent platform

超详细的MySQL三万字总结

leetcode 5 questions a day-Day01

JUC (7): Thread Safety Analysis of Variables

实现批量导出功能

机器学习1一回归模型(一)

STM32L4R9ZIY6PTR STM32L4 high-performance embedded-MCU
随机推荐
Mysql中事务是什么?有什么用?
共享内存-内存映射-共享文件对象
超详细的MySQL三万字总结
VMware磁盘扩容记录
uni-app如何配置APP自定义顶部标题栏
HCIP实验(05)OSPF综合实验
代码可读性,前置检查、注释及总结
还在用命令行看日志?快用Kibana吧,可视化日志分析YYDS
A transaction is in Mysql?What's the use?
go grpc custom interceptor
【MySQL】SQL学习
Fudan-Washington University EMBA Kechuang's Ao E丨The Magical Materials and We Are Shaped
【机器学习】通俗易懂决策树(原理篇)
复星医药募资44.84亿:高毅资产认购20亿 成第三大股东
JNPF3.4.2 system upgrade announcement
JS Navigator appName appVersion userAgent platform
票房破7.9亿美元,最近这部恐龙爽片你看了吗?
nrm ls 为什么前面不带 *了
leetcode 5 questions a day-Day01
STM32L4R9ZIY6PTR STM32L4 high-performance embedded-MCU