• qemu-img resize nameoffile.img "size of disk you want"


    Cobragt88
    • Closed

    So everyone not sure if this is a bug but I thought i'd post it. I increased a vdisk by mistake & like normal I was going to use command line to resize the vdisk. I get this this error now....

     

    /mnt/user/domains/Windows Server 2019# qemu-img resize vdisk2.img 30G
    WARNING: Image format was not specified for 'vdisk2.img' and probing guessed raw.
             Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
             Specify the 'raw' format explicitly to remove the restrictions.
    qemu-img: Use the --shrink option to perform a shrink operation.
    qemu-img: warning: Shrinking an image will delete all data beyond the shrunken image's end. Before performing such an operation, make sure there is no important data there.

     

    Ok So I try shrink here is the output of that:

     

    /mnt/user/domains/Windows Server 2019# qemu-img shrink vdisk2.img 30G
    qemu-img: Command not found: shrink
    Try 'qemu-img --help' for more information

     

    and lets say shrink is in the help telling you how to use shrink.......;.l../.!

     

    What the @#$&&#^$^@^@! I need to get this file size back to 30G from 300G. 

    • Like 1



    User Feedback

    Recommended Comments



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.