enlarging a partition on a remote server
Liam Proven
lproven at gmail.com
Thu Dec 17 15:21:02 UTC 2020
On Thu, 17 Dec 2020 at 14:42, robert rottermann <robert at redcor.ch> wrote:
>
> Hi friends in Ubuntu
>
> on a remote server I have a 500GB disk, of which only a 50GB partition is us.
"us" here means "used" or "in use", right?
If so, OK, that sounds fair enough. But the info that you follow it
with contradicts what you said.
> Disk /dev/sda: 500 GiB, 536870912000 bytes, 1048576000 sectors
500 GiB disk, OK, fine.
> /dev/sda1 * 2048 999423 997376 487M 83 Linux
sad1 is not 50GB as you said. It is 486 *meg*, i.e. just under half of 1GB.
> /dev/sda2 1001470 1048573951 1047572482 499.5G 5 Extended
OK -- you said the rest of the disk was not in use, but it is.
> /dev/sda5 1001472 1048573951 1047572480 499.5G 8e Linux LVM
It has an LVM volume in it.
The disk is full. The _real_ question is what is in that LVM volume.
It could be a partition or lots of partitions or part of a volume set
spread across other disks -- LVM can do all of that. It could also be
a single encrypted volume. We can't tell you. Only you can find out
what is in there and decide if you can get rid of it.
> The sda1 partition is nearly full, 1GB left.
Since its total size is less than a gig, I think this is wrong. Maybe 1MB left?
There is an entirely separate question here, too: *how* to enlarge it.
This is a virtual disk. So therefore, it is on a virtual machine,
under some kind of remote hypervisor. What kind of hypervisor? How do
you access it?
I am not very familiar with working with remote VMs. I've done it but
not a lot. so I cannot even say what the normal or standard way of
doing this might be; I don't know.
If it was a _local_ VM and I had access to a graphical console to it,
I'd boot it from a live medium -- i.e. the ISO of a recent version of
Ubuntu -- and use GParted to enlarge the partition. But this may not
be possible for you. As you've not said what the remote system is or
what access you have, we can't advise further.
--
Liam Proven – Profile: https://about.me/liamproven
Email: lproven at cix.co.uk – gMail/gTalk/gHangouts: lproven at gmail.com
Twitter/Facebook/LinkedIn/Flickr: lproven – Skype: liamproven
UK: +44 7939-087884 – ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053
More information about the ubuntu-users
mailing list