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
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.
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.
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).
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.
Edit the /etc/fstab
file using a text editor, for example, using nano.
Add the following line (replace /dev/sdXN
with your partition and /mnt/myxfs
with your mount point).
Save the file and exit the editor.
Mount the XFS partition.
Last updated