LVM Snapshot VG insufficient free space

  • Hi guys,


    I am trying to play around with LVM snapshots on ext4. I have shrunk my fs, shrunk my volume and now have 10% free space in my VG. When I go to create a snapshot in the GUI I get


    Code
    00 - Internal Server Error
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; lvcreate --snapshot --name 'XXX_snapshot_20220821-140808' --size 7032627200K '/dev/mapper/XXX-XXX' 2>&1' with exit code '5': File descriptor 3 (socket:[16624]) leaked on lvcreate invocation. Parent PID 113640: sh File descriptor 4 (socket:[503963]) leaked on lvcreate invocation. Parent PID 113640: sh Volume group "XXX" has insufficient free space (190772 extents): 1716950 required. 

    There is no way to specify a snapshot size in the GUI and it is trying to create a snapshot as large as the volume itself.


    Is there a way to create smaller snapshot?

    • Offizieller Beitrag

    create a snapshot as large as the volume itself.

    After looking at the code, that is what it does. Seems a bit much but it does guarantee not filling it.

    Is there a way to create smaller snapshot?

    Command line will work fine.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!