Batch mounting and unmounting NFS CFS on multiple BCC

CFS

  • Updates and Announcements
    • Function Release Records
    • Product Announcement
      • Announcement on CFS Metric Adjustments
  • Product Description
    • Product Introduction
    • Basic concepts
    • Product features
    • Product specifications
    • Usage Limits and Recommendations
    • Selection Guide
      • How to Choose Between CFS and PFS
      • How to Choose Between CFS, BOS and CDS
    • Application scenarios
  • Product pricing
    • Pay-as-you-go
    • Storage package billing
    • Insufficient balance reminders and debt handling
    • Billing Cases
  • Quick Start
    • Getting Started Overview
    • Quick start (Linux)
    • Quick start (Windows)
  • Operation guide
    • Activate Service
    • Manage File System
      • Create file system
      • Delete a file system
      • View file system details
      • Set File System Capacity Upper Limit
    • Mount and Access
      • Add mount target
      • Mount and Unmount CFS on BCC
        • Mount and Unmount on Linux System
          • Mount and Unmount SMB Protocol CFS on Single BCC
          • Batch mounting and unmounting NFS CFS on multiple BCC
          • Mounting and unmounting NFS CFS on a single BCC
        • Mount and Unmount SMB Protocol CFS on Windows System
        • Mount CFS File System When Purchasing New BCC
      • Using CFS in CCE
    • Permission Group Management
    • Identity and access management
    • Data encryption
    • Management Tags
    • Backup
    • Monitor and Alarm
      • View monitoring
      • Alarm management
      • Metric definition
    • Cloud Audit
  • Typical Practices
    • Set Different User Permissions for Different Directories
    • Using File Systems Across Regions Or Accounts
    • Use SFTP to Upload and Download CFS File System Data
    • Use Rsync to Sync From Old File System to CFS File System
    • Best Practices for Managing CFS with Terraform
    • Performance Testing Methods
      • Linux System Performance Testing Methods
      • Windows System Performance Testing Methods
  • API Reference
    • API Function Update Records
    • API Overview
    • Interface Overview
    • General Description
    • Service domain
    • Error code
    • File System Related Interfaces
      • Create file system
      • Update file system
      • Query file system
      • Query mount client
      • Drop file system
      • Update file system tags
    • mount target Related Interfaces
      • Create mount target
      • Query mount targets
      • Delete mount target
    • Permission Group-related APIs
      • Create Permission Group
      • Update permission group
      • Query Permission Groups
      • Delete permission group
      • Create permission group rules
      • Update permission group rules
      • Query permission group rules
      • Delete permission group rule
    • Data type
  • Go-SDK
    • Overview
    • Initialization
    • File system
    • Mount target
    • Error handling
  • FAQs
    • Common Questions Overview
    • General Problems
    • Billing Problems
    • NFS protocol questions
    • SMB Protocol Issues
  • Service Level Agreement (SLA)
    • CFS Service Level Agreement (SLA)
All documents
menu
No results found, please re-enter

CFS

  • Updates and Announcements
    • Function Release Records
    • Product Announcement
      • Announcement on CFS Metric Adjustments
  • Product Description
    • Product Introduction
    • Basic concepts
    • Product features
    • Product specifications
    • Usage Limits and Recommendations
    • Selection Guide
      • How to Choose Between CFS and PFS
      • How to Choose Between CFS, BOS and CDS
    • Application scenarios
  • Product pricing
    • Pay-as-you-go
    • Storage package billing
    • Insufficient balance reminders and debt handling
    • Billing Cases
  • Quick Start
    • Getting Started Overview
    • Quick start (Linux)
    • Quick start (Windows)
  • Operation guide
    • Activate Service
    • Manage File System
      • Create file system
      • Delete a file system
      • View file system details
      • Set File System Capacity Upper Limit
    • Mount and Access
      • Add mount target
      • Mount and Unmount CFS on BCC
        • Mount and Unmount on Linux System
          • Mount and Unmount SMB Protocol CFS on Single BCC
          • Batch mounting and unmounting NFS CFS on multiple BCC
          • Mounting and unmounting NFS CFS on a single BCC
        • Mount and Unmount SMB Protocol CFS on Windows System
        • Mount CFS File System When Purchasing New BCC
      • Using CFS in CCE
    • Permission Group Management
    • Identity and access management
    • Data encryption
    • Management Tags
    • Backup
    • Monitor and Alarm
      • View monitoring
      • Alarm management
      • Metric definition
    • Cloud Audit
  • Typical Practices
    • Set Different User Permissions for Different Directories
    • Using File Systems Across Regions Or Accounts
    • Use SFTP to Upload and Download CFS File System Data
    • Use Rsync to Sync From Old File System to CFS File System
    • Best Practices for Managing CFS with Terraform
    • Performance Testing Methods
      • Linux System Performance Testing Methods
      • Windows System Performance Testing Methods
  • API Reference
    • API Function Update Records
    • API Overview
    • Interface Overview
    • General Description
    • Service domain
    • Error code
    • File System Related Interfaces
      • Create file system
      • Update file system
      • Query file system
      • Query mount client
      • Drop file system
      • Update file system tags
    • mount target Related Interfaces
      • Create mount target
      • Query mount targets
      • Delete mount target
    • Permission Group-related APIs
      • Create Permission Group
      • Update permission group
      • Query Permission Groups
      • Delete permission group
      • Create permission group rules
      • Update permission group rules
      • Query permission group rules
      • Delete permission group rule
    • Data type
  • Go-SDK
    • Overview
    • Initialization
    • File system
    • Mount target
    • Error handling
  • FAQs
    • Common Questions Overview
    • General Problems
    • Billing Problems
    • NFS protocol questions
    • SMB Protocol Issues
  • Service Level Agreement (SLA)
    • CFS Service Level Agreement (SLA)
  • Document center
  • arrow
  • CFS
  • arrow
  • Operation guide
  • arrow
  • Mount and Access
  • arrow
  • Mount and Unmount CFS on BCC
  • arrow
  • Mount and Unmount on Linux System
  • arrow
  • Batch mounting and unmounting NFS CFS on multiple BCC
Table of contents on this page
  • Batch Mount
  • Prerequisites
  • Usage restrictions
  • Operation steps
  • Batch unmount

Batch mounting and unmounting NFS CFS on multiple BCC

Updated at:2025-11-11

Batch Mount

If your business requires multiple BCC instances to share data in the same CFS file system, you can use the Cloud Assistant to execute batch mount commands, allowing multiple BCC instances to mount the same CFS file system with one click.

Prerequisites

Before performing batch mount, the following conditions must be met:

  • The following has been down: Create File System, Add Mount Target.
  • BCC instance and CFS mount target reside in the same VPC
  • The BCC instance has been authorized in the permission group of the CFS file system mount target. For details, refer to Permission Group Management.

Usage restrictions

Before performing batch mount, you should master the following limitations for the operation:

  • Only Linux operating systems on BCC instances support mounting NFS CFS file systems.
  • Only BCC instances in the "Running" status are supported. If the BCC instance is in the "Starting" or "Stopped" status, please restore it to "Running" first.
  • The Cloud Assistant is functioning normally.
  • The BCC instance and the CFS file system must be in the same region. The Cloud Assistant does not support mounting BCC instances across different regions.

Operation steps

  1. Sign in to the Baidu Cloud Compute (BCC) console, and select O&M & & Monitor - Cloud Assistant in the left navigation bar.
  2. Log in to the Cloud Assistant Console, navigate to the Public Commands section in the left navigation bar, select the Batch Mount CFS command, and click Execute.
  3. Go to the command execution panel to configure the required command parameters, such as MountTargetDomain, LocalPath, CFSRemotePath, and AutomountOnBoot.

00-001.png

Command parameter
Parameter description
MountTargetDomain Enter the file system mount target address, which can be viewed in the mount target list of the target file system on the CFS console, e.g., cfs****.baidubce.com. For detailed operations, refer to View File System Details
LocalPath Specify the local path on the current server where the CFS file system will be mounted. It must be an absolute path starting with / (e.g., /mnt/cfs). If the path doesn’t exist, it will be created automatically.
CFSRemotePath Provide the directory path for the CFS file system. This can be set to the root directory of CFS (e.g., /) or an existing subdirectory (e.g., /dir0).
AutomountOnBoot Set options for automatic mounting of the file system at startup. Values can be true or false. When automatic mounting is enabled, the mount operation does not need to be redone after restarting the BCC instance.

Select multiple BCC instances for batch mounting based on your service requirements. You can manually select instances, select all instances, specify instance tags, or import an instance inventory.

00-002.png

After clicking Execute, you can view the execution status in the records. Upon success, each BCC instance will display a success status. If it fails, troubleshoot using the error message and retry.

00-003.png

You can log in to a specific BCC instance to verify the mount. Use the following command to check. If the specified message is returned, it indicates a successful mount.

df -h

00-004.png

Batch unmount

If multiple BCC instances no longer need to share data in the same CFS file system, you can use Cloud Assistant to execute batch unmount commands.

  1. On the Public Command page in the Cloud Assistant Console, select the Batch Unmount CFS command and click Execute.
  2. Access the command execution panel and configure the LocalPath command parameter.

00-005.png

  1. Select the BCC instances to batch unmount, then click Execute to finalize the process.

Previous
Mount and Unmount SMB Protocol CFS on Single BCC
Next
Mounting and unmounting NFS CFS on a single BCC