tencent cloud

Cloud File Storage

Releases Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Strengths
Storage Classes and Performance
Use Cases
Recommended Regions
Use Limits
Service Regions and Service Providers
Purchase Guide
Billing Overview
Pricing Overview
General Series Billing
Turbo Series Billing
High-Throughput CFS Billing
Billing Mode
IA ‍Storage Billing
Storage Resource Units
Resource Purchase
Viewing Bills
Arrears Reminder
Getting Started
Creating File Systems and Mount Targets
Using CFS File Systems on Linux Clients
Using CFS File Systems on Windows Clients
Using CFS Turbo on Linux Clients
Using the CFS Client Assistant to Mount File Systems
Operation Guide
Access Management
Managing File Systems
Permission Management
Using Tags
Snapshot Management
Guide for Cross-AZ and Cross-Network Access
Automatically Mounting File Systems
Data Migration Service
User Permission Management
User Quotas
Data Encryption
Data Lifecycle Management
Upgrading Standard File Systems
Practical Tutorial
Selecting Kernels for NFS Clients
Managing Turbo CFS Directories
Terminating Compute Instances
Using CFS on TKE
Using CFS on SCF
Using CFS Turbo on TKE
Using CFS Turbo on TKE Serverless Cluster
Selecting a Network for Turbo CFS
Copying Data
CFS Storage Performance Testing
API Documentation
History
Introduction
API Category
Snapshot APIs
File system APIs
Lifecycle APIs
Other APIs
Data Flow APIs
Making API Requests
Permission Group APIs
Service APIs
Scaling APIs
Data Migration APIs
Data Types
Error Codes
Troubleshooting
Client Use Bottleneck due to Large Number of Small Files or Parallel Requests
FAQs
CFS Service Level Agreement
Contact Us
Glossary
ドキュメントCloud File StorageOperation GuideAutomatically Mounting File Systems

Automatically Mounting File Systems

PDF
フォーカスモード
フォントサイズ
最終更新日: 2024-01-22 22:15:48

Overview

You can configure a Linux or Windows client to which a Cloud File Storage (CFS) file system is mounted, so that the file system can be automatically mounted after the client is restarted.

Directions

Automatically mounting an NFS file system on Linux

1. Connect to the CVM instance that needs to automatically mount the file system by logging in to the CVM console or performing remote login. Then, open the "/etc/fstab" file (make sure that your login account has the root privileges).
// Run the following command to open the "fstab" file
vi /etc/fstab
2. Enter "i" (insert) and add the following command to /etc/fstab. The mounting methods are as follows:
Mount the file system with NFS v4.0
<Mount target IP>:/ <target mount directory> nfs vers=4,minorversion=0,hard,timeo=600,retrans=2,_netdev,noresvport 0 0
Example: 10.10.19.12:/ /local/test nfs vers=4,minorversion=0,hard,timeo=600,retrans=2,_netdev,noresvport 0 0
Mount the file system with NFS v3.0
<Mount target IP>:/<fsid> <target mount directory> nfs vers=3,nolock,proto=tcp,hard,timeo=600,retrans=2,_netdev,noresvport 0 0
Example: 10.10.19.12:/djoajeo4 /local/test nfs vers=3,nolock,proto=tcp,hard,timeo=600,retrans=2,_netdev,noresvport 0 0
Mount the file system with Turbo
<Mount target IP>@tcp0:/<fsid>/cfs <target mount directory> lustre defaults,_netdev 0 0
Example: 172.16.0.7@tcp0:/01184207/cfs /root/turbo lustre defaults,_netdev 0 0

3. Press Esc and enter ":wq" to save the change. Restart the client, with the file system automatically mounted.
Note:
When the command for automatic mounting is added, but the shared file system is abnormal, Linux may not be started normally, because the automatic start command in fstab is not executed. To solve this problem, enter "Single User Mode" upon startup, delete the automatic mounting command in fstab, and then restart the server.

Automatically mounting a file system on Windows

When mounting a file system, select "Reconnect at login". For more information, see Using CFS File Systems on Windows Clients.



ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック