Extend directory

ksl28

New Member
Aug 31, 2023
23
2
3
Hi,

I have deployed the PBS server on top of VE, to test it out, before potentially rolling it out in production.

I initially created a 100GB disk for the backup, and then wanted to extend it afterwards with 50GB.
The PBS instance can see the new size, but i cant seem to figure out how to get XFS to extend.

1693733241422.png

1693733437566.png


Can you guide me, on how to extend the directory? :)
 
Hi,
with `xfs_growfs` you will only increase the size of the filesystem, but first you need to resize the underlying partition. If the data on the partition is important, you could quickly make a backup, just to be on the safe side:
Bash:
xfsdump -f /path/to/backup.xfs -L MySession -M MyMedia /mount/point
and
Bash:
xfsrestore -f /path/to/backup.xfs /mount/point

Then we can resize the partition using fdisk (by deleting and recreating it):
Bash:
fdisk /dev/sdd

# removes the partition
Command (m for help): d
...

# create new partition
# Accepting all the defaults is fine. When
# prompted to "remove the signature", select "No"
Command (m for help): n
...

# write to disk and exit
Command (m for help): w
...

The filesystem should be resized automatically, if not, execute:
Bash:
xfs_growfs /mount/point
 
Last edited:

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!