Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

Shrink (virtual) hard disk

$
0
0
Good morning,

I have one serverthat is pushing it´s limits in terms of hard disk space. It is all hosted on one big, (virtual) hard disk, and I was absolutely not aware that data usage will grow that much.

Code:

NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0  2,2T  0 disk
├─sda1  8:1    0  487M  0 part /boot
├─sda2  8:2    0  3,7G  0 part [SWAP]
├─sda3  8:3    0  3,7G  0 part /
├─sda4  8:4    0    1K  0 part
├─sda5  8:5    0  3,7G  0 part /usr
├─sda6  8:6    0  1,9G  0 part /home
├─sda7  8:7    0  7,5G  0 part /tmp
├─sda8  8:8    0 14,9G  0 part /var
└─sda9  8:9    0  1,9T  0 part /srv

So my plan is to add another disk, migrate /srv there, kill sda9 and then shrink the hard disk as much as possible (the actual file system), and then offline shrink the virtual hdd.
This worked once for me on a windows box, but I am not sure if this is a feasable way here on ubuntu. I would like to avoid further migrations (in terms of reinstall), if possible.

But, if you have other ways to accomplish that, I am more than interrested to hear them :)

Thanks in advance
Johannes

//Edit: I posted it here in hardware, since it is not strictly related to virtualisation....

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>