Extend directory

ksl28

New Member
Aug 31, 2023
27
4
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: