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 xfsprogsUnmount 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/sdXNFormat 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/sdXNMount 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 /dataUpdate /etc/fstab
/etc/fstabTo 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.backupEdit the /etc/fstab file using a text editor, for example, using nano.
sudo nano /etc/fstabAdd 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 /dataLast updated
Was this helpful?