V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Eaglemask
V2EX  ›  程序员

PVE 中的 win 主机为什么无法备份?

  •  
  •   Eaglemask · 259 天前 · 1359 次点击
    这是一个创建于 259 天前的主题,其中的信息可能已经有所发展或是发生改变。

    不管 win 主机是开机还是关机状态都不行, 下面是 log , 可能问题会在哪里?

    INFO: starting new backup job: vzdump 888 --compress zstd --node datacenter --mode snapshot --storage local --remove 0 --notes-template '{{guestname}}' INFO: Starting Backup of VM 888 (qemu) INFO: Backup started at 2023-08-30 08:21:47 INFO: status = stopped INFO: backup mode: stop INFO: ionice priority: 7 INFO: VM Name: Win11-EN INFO: include disk 'virtio0' 'local-lvm:vm-888-disk-2' 600G INFO: include disk 'efidisk0' 'local-lvm:vm-888-disk-0' 4M INFO: include disk 'tpmstate0' 'local-lvm:vm-888-disk-1' 4M INFO: creating vzdump archive '/var/lib/vz/dump/vzdump-qemu-888-2023_08_30-08_21_47.vma.zst' INFO: starting kvm to execute backup task swtpm_setup: Not overwriting existing state file. INFO: attaching TPM drive to QEMU for backup INFO: started backup task '5f06b0fb-9ea3-4ca0-8dff-f7777be72d2d' INFO: 0% (775.8 MiB of 600.0 GiB) in 3s, read: 258.6 MiB/s, write: 227.9 MiB/s INFO: 1% (6.0 GiB of 600.0 GiB) in 31s, read: 192.8 MiB/s, write: 191.3 MiB/s zstd: error 25 : Write error : No space left on device (cannot write compressed block) INFO: 2% (12.3 GiB of 600.0 GiB) in 1m 1s, read: 212.8 MiB/s, write: 203.7 MiB/s ERROR: vma_queue_write: write error - Broken pipe INFO: aborting backup job INFO: stopping kvm after backup task trying to acquire lock... OK ERROR: Backup of VM 888 failed - vma_queue_write: write error - Broken pipe INFO: Failed at 2023-08-30 08:22:50 INFO: Backup job finished with errors TASK ERROR: job errors

    第 1 条附言  ·  259 天前

    遇到个很奇怪的问题, 见截图, 明明4T硬盘,还有最少3T的足够空间, 但是只显示 95.95 GiB, 这是个什么情况?

    https://imgur.com/a/6rFeTXp

    https://imgur.com/pSEaOg9

    此外有个VM起不来, 提示:

    TASK ERROR: NUMA needs to be enabled for memory hotplug

    第 2 条附言  ·  259 天前
    发现问题所在了 fdisk -l 看了下, 需要扩容了。


    Disk /dev/mapper/pve-root: 96 GiB, 103079215104 bytes, 201326592 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
    7 条回复    2023-08-30 17:19:43 +08:00
    Quarter
        1
    Quarter  
       259 天前 via Android
    看错误是没空间了😳
    supertan
        2
    supertan  
       259 天前
    Write error : No space left on device (cannot write compressed block)
    Tink
        3
    Tink  
       259 天前 via Android
    没空了
    defunct9
        4
    defunct9  
       259 天前
    分区分错了把。
    jayeli
        5
    jayeli  
       259 天前
    安装 PVE 的时候默认用了 LVM 分区,只显示 95.95GiB 这个是 lvm_root ,应该还有 lvm_swap 和 lvm_data 之类的。另外,备份时空间不足是因为只能备份到 lvm_root 。解决方案是安装的时候就考虑到分区的大小或者你先试试调整 lvm 分区大小。我自己是有两块盘,所以没这个问题。
    Eaglemask
        6
    Eaglemask  
    OP
       259 天前
    @jayeli

    @defunct9

    按照这个教程扩容 pve-root, 用了几年 pve 了,今天才发现竟然还有 pve-root 容量限制这么个回事。

    https://zhuanlan.zhihu.com/p/624319515?utm_id=0
    busier
        7
    busier  
       259 天前
    @Eaglemask 明摆着是个 pve-root 是个 lvm 逻辑卷,好比普通分区,初始化肯定要指定一个分区大小,而并非什么容量限制!

    你应该庆 pve 幸用了 lvm 逻辑卷,不然扩展容量会变得极为麻烦!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3446 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 11:23 · PVG 19:23 · LAX 04:23 · JFK 07:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.