- Documentation
Torch Object Storage
Tool Guide
FSX
FSX best practices
Automatically remounting a bucket
FSX best practices
Automatically remounting a bucket
Automatically remounting a bucket
After a cloud server is shut down or restarted, the mount point becomes unmounted. In this case, you will need to use FSX to remount the bucket. You can create an auto-start script that will cause FSX to start and remount the bucket automatically when the cloud server starts up. This topic describes the prerequisites and steps for enabling automatic remounting.
- Run this command to create the script.sh file in the root directory.
- Open the script.sh file, write the following content, and save it.
- Modify the parameters region, endpoint, and credential_filepath in the script.sh file according to your environment. The descriptions are as follows:
- Run this command to modify the access permissions of the /root/script.sh file. This will give the owner read, write, and execute permissions, and give others read and execute permissions.
- Run this command to create the fuse-fsx.service file in the /etc/systemd/system/ directory.
- Open the fuse-fsx.service file, write the following content, and save it.
- Run this command to load the fuse-fsx.service file.
- Run this command to set the fuse-fsx.service service to start on boot.
- Once you have finished configuring, reboot the ECS instance. After rebooting, the system will automatically mount the bucket.
Last updated: 2026.01.16 18:20:46