P
P
Pavel Belyaev2017-09-17 19:28:01
linux
Pavel Belyaev, 2017-09-17 19:28:01

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

2 answer(s)
D
Dmitry, 2017-09-17
@Tabletko

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

P
Pavel Belyaev, 2017-09-19
@PavelBelyaev

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 question

Ask a Question

731 491 924 answers to any question