Answer the question
In order to leave comments, you need to log in
How to reduce linux disk size inside hyper-v?
I understand that it may sound strange, but it so happened that there is a powerful machine on Windows and a server on Debian is running in it, everything is super, everything flies both the network and the disk, but it turned out that the size of the disk (virtual) is about 130 gigabytes, and In fact, only 5 gigs are currently occupied. I have a 512 gig SSD, I can’t scatter space, besides, there are several virtual machines.
How to shrink a dynamically expanding disk correctly?
Answer the question
In order to leave comments, you need to log in
0. Make a backup
of the virtual machine 1. Shrink the file system inside the virtual machine
2. Reduce the virtual disk
In order to avoid problems, it is better to perform operations to reduce the virtual machine with the virtual machine turned off
In general, I dug up this:
1. It is desirable to cling to the SCSI disk
2. You need to create a virtual disk through PowerShell with a block size of 1MB, and not 32, as by default
3. Use ext4
4. e4defrag, fstrim, zerofree and then through PowerShell -Full disk optimization
5. noop scheduler
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question