Search results for query: shrink

  1. fiona

    VM - Resize Disk - BUG?

    Unfortunately shrinking disks is notoriously easy to mess up. Best to have a restore-tested backup before attempting anything! Now the partitions inside the VM are not using the full space, so in principle, it should be fine to shrink it down. I haven't actually shrunk a ZFS volume myself, but...
  2. mattlach

    Replace Mirrored ZFS Boot Pool (rpool) with Smaller Devices

    ...install to my new smaller drives and copying over the content of /etc and /var/lib/pve-cluster/config.db. This was surprisingly easy the last time I upgraded my server and did a clean install, so I wonder if I am just over-complicating things by trying to duplicate and shrink my boot drives.
  3. R

    Can't trim Windows disk after restore

    ...can't run ReTrim on disk partition over about 4TB but I have not been able to find any supporting documentation. If I take the same 10TB and shrink the partition down to less then 4TB then it will run but will not remove all of the unused space, it only removed about 2.9TB of space on the...
  4. T

    How to store backups on same physical disk, but NOT on root partition - maybe its own LV?

    ...LV 7.58 GiB = 8.14 GB data LV 77.9 GiB = 83.64 GB By default, the "data" LV-Thin volume is 77.9 GiB on my system, so first job is to shrink this. Apparently, according to this post: "LVM only supports the extension of thin pools, you cannot shrink them. Otherwise, you would have to...
  5. K

    How to shrink qcow2 file?

    Hello. I have a qcow2 VM with freebsd installed. The freebsd is installed on ZFS inside VM. In the past I shrinked qcow2 file in this situation by setting a quota on the ZFS inside VM and then doing qemu-img convert. Unfortunately this time it does not work. I have no more than 40GB data on...
  6. dakralex

    [SOLVED] Wrong size calculation in web-UI when using ZFS datasets within "images"?

    ...(temporarily) move some larger file to zpool-hdd/pve/images/100, the "total size" in the Usage bar of your zpool-hdd/pve storage in PVE will shrink by roughly that amount, because it was "taken away" from the zpool-hdd/pve ZFS directory by the zpool-hdd/pve/images/100 ZFS directory in your...
  7. C

    Shrink BTRFS LXC container?

    ...expanded my LXC container which is located on a BTRFS file system far beyond what I intended (I put in 10000 GB). But now I don't know how to shrink it. All the documentation online assume ext4 or ZFS. Any ideas? Update: I fixed it! First, I changed the size of the container in the *.conf...
  8. K

    shrinking qcow2 file does not free up space on host

    ...response is exactly what I suspected. However I cannot find any information in this thread, or in google, how to check the actual space the UNSHRINKED! qcow2 file is occupying on the filesystem. stat and du both show 33GB as showed above for the file that was not compressed Yes I did follow...
  9. G

    shrinking qcow2 file does not free up space on host

    ...uses 32G, qcow2 is sparse which means zero-filled blocks shouldn’t actually take up any space but if you use the space it doesn’t just shrink on itself. I’m not sure how you measure free space, but depending on how accounting works on the file system, you likewise get a state where you...
  10. fireon

    VIRTIO SCSI vs VIRTIO SCSI single

    That's a good question. Make a backup and test it for us... I'm curious myself...
  11. P

    VIRTIO SCSI vs VIRTIO SCSI single

    ...pretty old thread but best search result for "VIRTIO SCSI vs VIRTIO SCSI single" My question: "Shrink Qcow2 Disk Files" says controller must be set to "VIRTIO SCSI". Is that just outdated info and "VIRTIO SCSI single" is fine as well or does it have to be "VIRTIO SCSI"?
  12. B

    VM STORAGE .VDI FILE

    ...question anyways. I don't have any experience with Virtualbox, but I guess the VDI files work similar to qcow2, in that you have to manually shrink it because of Snapshots and since the storage cannot differentiate between deletes and zero writes. A quick google search brought me to this...
  13. P

    Disk exceeding boot size?

    I think this is just a conversion issue. Some systems use megabytes and some use mebibytes. Meanwhile I have had to shrink some other VMs' bootdisks and I have also set a limit on how much of the 750 Gi the NFS server can use. I never did manage to shrink the NFS disk without risking data loss...
  14. leesteken

    qcow2 shrinking?

    Boot the VM from an Linux ISO (like GParted Live) and chroot into it to re-install GRUB and fix boot. Search the internet for "GRUB rescue chroot" for examples and guides for your Linux distribution inside the VM.
  15. D

    qcow2 shrinking?

    Ok so working with G-Parted... - 32G virtual disk created within proxmox - Boot into G-Parted - Shrink partition on 128G disk to <30G, - Copy EXT4 from 128G disk to 32G disk, - Create extended partition on 32G disk, - Copied swap partition from 128G disk to 32G disk, - Exit G-Parted, adjust boot...
  16. leesteken

    qcow2 shrinking?

    Don't make partitions except for Create Partition Table. Shrink the partition to fit within the new space. And then se Copy on the original partition and Paste on the new drive. Since you use MBR, it's a bit of a hassle with the "Extended partition". Make sure the original partitions are not...
  17. D

    qcow2 shrinking?

    attempted manual setup of 2nd disk, got all the partitions made and flagged, couldnt figure out how to get gparted to copy the data over... attempted DD but "ran out of space". i just dont have the 2nd drive mounted in above screenshot. sorry for the confusion for me, its a possible work...
  18. LnxBil

    qcow2 shrinking?

    Exactly, you need to write a new compacted file with qemu-img convert offline AFTER you fstrimmed everything.
  19. leesteken

    qcow2 shrinking?

    You cannot shrink your existing virtual disk. My suggestion was to create a second/new/extra virtual disk (of 32GB) and use GParted Live to copy the partitions from the 128GB to the 32GB (but not delete them). And then see if you can boot the VM from the new smaller virtual disk (and only remove...
  20. leesteken

    qcow2 shrinking?

    Yes, local-btrfs is thin provisioned (and it shows as raw). Shrinking drives is always a chore. I don't think you can shrink a qcow2 in-place nor by moving it. I think the simplest approach might be to create a new virtual disk on your local-btrfs (which will be thin and smaller) and copy your...