Updating the storage size

ofiravocn

New Member
Jan 28, 2023
4
0
1
hi guys, I had some problem today "/usr/bin/xauth: unable to write authority file /home/administrator/.xauthority-n" I realized that the disk got full somehow, however, I added more space in the Proxmox UI and rebooted the VM.
After rebooting I still see the amount of storage space I had before, but on the Proxmox UI, I see the new amount of storage.
How can I update the Ubuntu terminal to recognize the additional space to the same storage he had before?

Proxmox UI:

1674899162796.png
Ubuntu Terminal:

1674899177826.png
 
It depends on the partitioning of the disk inside your Ubuntu VM. What is the output of gdisk -l /dev/sda (or whatever the actual disk is). Resize the partition and extend the ext4 filesystem with tune2fs (or the equivalent of the filesystem that you using inside the VM). This is not specific to Proxmox but specific to the partitioning and filesystem choices made during installation of Ubuntu.
Or simply boot the VM with a GParted Live ISO and you can do this easily via a GU, using the (temporary) virtual display of your VM.
 
It depends on the partitioning of the disk inside your Ubuntu VM. What is the output of gdisk -l /dev/sda (or whatever the actual disk is). Resize the partition and extend the ext4 filesystem with tune2fs (or the equivalent of the filesystem that you using inside the VM). This is not specific to Proxmox but specific to the partitioning and filesystem choices made during installation of Ubuntu.
Or simply boot the VM with a GParted Live ISO and you can do this easily via a GU, using the (temporary) virtual display of your VM.
Hi thanks for quick-reply!

That is the output I'm getting:

Code:
administrator@plex:~$ sudo gdisk -l /dev/sda
[sudo] password for administrator:
GPT fdisk (gdisk) version 1.0.8

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 88080384 sectors, 42.0 GiB
Model: QEMU HARDDISK
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 184B8064-BDCE-4A12-94AB-F944DE167708
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 41943006
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048            4095   1024.0 KiB  EF02
   2            4096         3719167   1.8 GiB     8300
   3         3719168        41940991   18.2 GiB    8300

What commands should I do to extend the filesystem? will It completely wipe my current data within the drive?
I'm kinda new to Ubuntu.

Thank you very much for helping!
 
and by doing 'lsblk'
I get this output:
Code:
sda                         8:0    0    42G  0 disk
├─sda1                      8:1    0     1M  0 part
├─sda2                      8:2    0   1.8G  0 part /boot
└─sda3                      8:3    0  18.2G  0 part
  └─ubuntu--vg-ubuntu--lv 253:0    0    10G  0 lvm  /
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!