首页 > 其他分享 >pve 下的群晖虚拟机硬盘空间扩容的记录

pve 下的群晖虚拟机硬盘空间扩容的记录

时间:2024-03-25 20:33:38浏览次数:25  
标签:4096 sectors 虚拟机 bytes dev pve 群晖 512 size

pve下,105号群晖虚拟机,btrfs系统,sata硬盘。

虚拟机容量硬盘130G,扩展至140G,还需要命令行和网页存储管理器界面操作,以实现扩容的目的。

df -h

Filesystem Size Used Avail Use% Mounted on
/dev/md0 7.9G 1.8G 6.0G 23% /
devtmpfs 954M 0 954M 0% /dev
tmpfs 986M 80K 986M 1% /dev/shm
tmpfs 986M 23M 964M 3% /run
tmpfs 986M 0 986M 0% /sys/fs/cgroup
tmpfs 986M 660K 985M 1% /tmp
/dev/mapper/cachedev_0 115G 98G 18G 86% /volume1
使用 qm resize 105 sata1 +10G 命令或者在web界面手动扩展磁盘空间,增加磁盘空间大小。

parted /dev/sata1 print

Model: QEMU HARDDISK (scsi)
Disk /dev/sata1: 150GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 4194kB 8594MB 8590MB primary raid
2 8594MB 10.7GB 2147MB primary raid
3 10.9GB 140GB 129GB extended lba
5 10.9GB 140GB 129GB logical raid

parted /dev/sata1 resizepart 3 100%

Information: You may need to update /etc/fstab.

parted /dev/sata1 resizepart 5 100%

登录网站界面上存储管理器下手动扩容,

最后查看

fdisk -l

Disk /dev/ram0: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram1: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram2: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram3: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram4: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram5: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram6: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram7: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram8: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram9: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram10: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram11: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram12: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram13: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram14: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram15: 640 MiB, 671088640 bytes, 1310720 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/sata1: 140 GiB, 150323855360 bytes, 293601280 sectors
Disk model: HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x215332f1

Device Boot Start End Sectors Size Id Type
/dev/sata1p1 8192 16785407 16777216 8G fd Linux raid autodetect
/dev/sata1p2 16785408 20979711 4194304 2G fd Linux raid autodetect
/dev/sata1p3 21241856 293601279 272359424 129.9G f W95 Ext'd (LBA)
/dev/sata1p5 21257952 293601279 272343328 129.9G fd Linux raid autodetect

Disk /dev/synoboot: 1 GiB, 1073741824 bytes, 2097152 sectors
Disk model: HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xf110ee87

Device Boot Start End Sectors Size Id Type
/dev/synoboot1 * 2048 104447 102400 50M b W95 FAT32
/dev/synoboot2 104448 206847 102400 50M 83 Linux
/dev/synoboot3 206848 2097151 1890304 923M 83 Linux

Disk /dev/md0: 8 GiB, 8589869056 bytes, 16777088 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/zram0: 296 MiB, 310378496 bytes, 75776 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/zram1: 296 MiB, 310378496 bytes, 75776 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/zram2: 296 MiB, 310378496 bytes, 75776 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/zram3: 296 MiB, 310378496 bytes, 75776 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/md1: 2 GiB, 2147418112 bytes, 4194176 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/md2: 129.9 GiB, 139438718976 bytes, 272341248 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/vg1-syno_vg_reserved_area: 12 MiB, 12582912 bytes, 24576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/vg1-volume_1: 129 GiB, 138512695296 bytes, 270532608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/cachedev_0: 129 GiB, 138512695296 bytes, 270532608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

可能注意到fdisk -l 与 parted /dev/sata1 print 显示的最大容量不一致。

标签:4096,sectors,虚拟机,bytes,dev,pve,群晖,512,size
From: https://www.cnblogs.com/geyee/p/18095257

相关文章

  • ESXI虚拟机操作系统上安装部署VCSA
    目录一、配置安装VCSA系统二、配置安装VCSA服务三、登录VCSA初始化操作工具:VMware工作站版、VCSA镜像前提工作:VMware工作站版中创建ESXI虚拟机、配置网络口和DNSweb登录虚拟机,检查许可、NTP服务状态、添加数据存储这里我已经添加完成一、配置安装VCSA系统......
  • vmware虚拟机安装2024(超详细)
    vmware虚拟机安装(超详细)前言前言之前安装vmware时发现没有适合小白下载的详细步骤,发现大部分博客一部分详细一部分不详细,并且没有2024版的,我就出了一个非常详细的步骤,直接傻瓜式安装,照着点就可以了。一、安装vmware下载vmware链接链接:https://www.vmware.com/......
  • jvm虚拟机优化
    CMS优点:1、程序运行的同时可以进行垃圾回收缺点:1、清除大对象产生内存碎片2、会消耗额外的CPU资源虚拟机优化参数详解1、-XX:+UseConcMarkSweepGC使用并发垃圾回收器2、优化GETSET方法-XX:UseFastAccessorMethods3、PermenSize设置128M-XX:LargePageSizeInBytes=128M......
  • Centos7虚拟机中oracle19c数据库安装
    目录[-]  1. Centos7虚拟机中oracle19c数据库安装1.1. 1.先诀条件1.2. 2.oracle19c安装准备(root用户下执行)1.3. 3.CentOS7上安装oracle19c1.先诀条件 本文在安装oracle19c时,各项oracle配置操作都通过图形界面进行。因此CentOS7系统需要安装gn......
  • 虚拟机 Centos 7 磁盘空间不足扩容 (默认分区-vgdisplay无回显)
    前提centos7系统新建系统时选择的默认分区vgs等查看卷组命令无回显根目录磁盘空间不足大致流程及注意事项处理方法:删除再重建不会导致其中的数据丢失防止出现意外,请备份或者快照1.率先在VMware中对虚拟机进行磁盘容量扩容此处进行20g-->40g的扩容2.再在虚拟机......
  • 本地主机连接Linux虚拟机中的mongodb,并使用studio 3T连接,同时项目启动连接mongodb刷新
    本部分只做个人纪录**1.安装mongodb**本部分为尚硅谷的电影推荐系统的文档,具体以实际存放位置为准//通过WGET下载Linux版本的MongoDB[bigdata@linux~]$wgethttps://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel62-3.4.3.tgz//将压缩包解压到指定目录[......
  • VMWare17.5.0版本避坑,安装虚拟机后按下键盘和鼠标,界面会卡死
    问题描述在使用VMWare17.5.0版本安装ubuntu22.0.4.4的时候遇到问题。安装完成ubuntu之后,我在虚拟机中点击鼠标左键没有问题,单独按下键盘也没有问题,但是如果按下键盘的同时在按下鼠标左键就会卡住。而且100%稳定复现。具体的卡死按键:ctrl+鼠标左键alt+鼠标左键其实并不是真......
  • 利用termux和qemu虚拟机使用docker
    操作前提由于大部分手机的内核并不满足使用docker的要求,因此需要用root权限修改手机部分kernel来满足,但是手机root并不适用所有手机,而且root也有一定的风险,因此使用termux终端来通过qemu虚拟机进行容器化操作可以实现满足docker运行的要求。操作步骤安装termux或者zerotermux......
  • 多开随机硬件防封过检测VM虚拟机过鲁大师 NP,HP,VMP,SE,TMD,WL,ENIGMA,SP等检测。
    网上各种虚拟机过检测多开,这些都是吹的天花乱坠,但是卖的虚拟机只是一个硬件复制多台,这样多开稳死,过检测也无济于事。我们的随机硬件虚拟机就是解决了这个痛点,每个新建立的虚拟机都是不同硬件达到多开更稳更安心的程度,这款多开虚拟机是win7/win10高帧版本,流畅自如。支持很多游戏......
  • 2020-8-6-JVM虚拟机
    运行时数据区域、溢出、垃圾收集、问题解决运行时数据区域Java虚拟机在执行Java程序的过程中会把它所管理的内存划分为若干个不同的数据区域1)程序计数器(1)一块较小的内存空间,它可以看作是当前线程所执行的字节码的行号指示器(2)字节码解释器工作时就是通过改变这个计数器的......