当前位置:网站首页>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]#
边栏推荐
- Successfully resolved pydotplus.graphviz.InvocationException: GraphViz's executables not found
- Oracle超全SQL,细节狂魔
- 【ModelArts系列】华为ModelArts Notebook训练yolov3模型(开发环境)
- 戴尔首款纯软产品,再定义下一代对象存储
- Oracle 进程数和会话数的关系
- Fudan-Washington University EMBA Kechuang's Ao E丨The Magical Materials and We Are Shaped
- FL Studio官方20.9中文版无需汉化补丁,正确安装并设置切换
- Simple Operations on Sequence
- 菜刀、冰蝎、蚁剑、哥斯拉的流量特征
- JUC(八):synchronized小练习
猜你喜欢
随机推荐
【基于RT-Thread+RA6M4的智能鱼缸系统设计之鱼我所欲也】
杜教筛【莫比乌斯前缀和,欧拉函数前缀和】推导与模板【一千五百字】
QT基础第三天(3)widget,dialog和mainwindow
再度入围|“国产化”大潮来袭,汉得助力乘风破浪!
JS Bom window innerWidth clientWidth onresize 窗口滚动偏移量 返回顶部
Hyperchain超块链创始人史兴国接受21世纪经济报道采访,解读上海NFT新规及数藏发展
selenium应用之拉勾简历邀约数据抓取与分析
A transaction is in Mysql?What's the use?
Drawing Problem Log
Kotlin接口
golang的channel实现原理
Redis (ten) - Redission principle and practice
【服务器存储数据恢复】华为OceanStor某型号存储raid5数据恢复案例
REUSE_ALV_GRID_DISPLAY详解
单片机没有随机数发生器如何生成随机数——2022.07.26
力扣(LeetCode)210. 课程表 II(2022.07.29)
生死时速,分秒必争
五种绑定彻底弄懂this,默认绑定、隐式绑定、显式绑定、new绑定、箭头函数绑定详解
解决导航栏变黑色
binary search tree









