XFS storage format
To provide a safer and more manageable network environment for your machine, as well as to support a wider range of application scenarios on our platform, we require you to adjust your disk format to XFS. Please refer to the content below for guidance on how to set it up.
Install XFS tools
sudo apt update
sudo apt install xfsprogs
Unmount the Target Partition
Before formatting, ensure that the target partition is not mounted. Use the umount
command to unmount the partition. Replace /dev/sdXN
with your actual partition.
sudo umount /dev/sdXN
Format the Partition as XFS
Use the mkfs.xfs
command to format the partition. Please confirm the partition path again, as this operation will delete all data on the partition.
sudo mkfs.xfs /dev/sdXN
Mount the XFS Partition
After formatting is complete, you can mount the new XFS filesystem to a directory. First, create a mount point (if you don't have one already).
sudo mkdir /data
Update /etc/fstab
/etc/fstab
To automatically mount this XFS partition at system startup, you need to edit the /etc/fstab
file and add a new entry. Back up the /etc/fstab
file.
sudo cp /etc/fstab /etc/fstab.backup
Edit the /etc/fstab
file using a text editor, for example, using nano.
sudo nano /etc/fstab
Add the following line (replace /dev/sdXN
with your partition and /mnt/myxfs
with your mount point).
...
/dev/sdXN /data xfs defaults,pquota 0 0
...
Save the file and exit the editor.
Mount the XFS partition.
sudo mount /data
Last updated
Was this helpful?