Home Tutorials Connecting Juice FS to American Cloud A2 Object Storage

Connecting Juice FS to American Cloud A2 Object Storage

Last updated on Aug 30, 2024
  1. Login to the Web Portal with a valid American Cloud account.

  2. On the left navigation column choose 'Object Storage'

  3. Click on 'Create A2 Storage Unit' to create object storage.

  4. Choose and fill out the following information location, project, A2 storage name, and volume size

  5. Obtain the A2 access key and secret key, which will be needed to configure JuiceFS.

  6. Under the newly create A2 storage click on 'Create Bucket'

  7. Enter a custom name in 'Bucket Name'

  8. From your JuiceFS machine use the JuiceFS CLI tool to create a new filesystem that is backed by the American Cloud A2 bucket you created in step 7. You can use the following command, replacing the values in brackets with your own information

    
    juicefs create --backend s3 \
    --bucket [your-bucket-name] \
    --access-key [your-access-key] \
    --secret-key [your-secret-key] \
    --endpoint https://a2-west.americancloud.com/juicefsa2bucket \
    --region a2-west
    

    Note: Replace the --endpoint and --region values with the region where you created your American Cloud A2 bucket.

  9. Once your new filesystem is created, you can mount it on your JuiceFS machine and use it like any other filesystem. For example, you can use the following command to mount the filesystem:

    
    sudo juicefs mount [local-mount-point] [juicefs-mount-point]
    

    Note: Replace [local-mount-point] with the path where you want to mount the filesystem on your JuiceFS machine, and replace [juicefs-mount-point] with the name of the JuiceFS filesystem you created in step 3.

  10. You can also configure JuiceFS to use American Cloud A2 as a shared file system by setting up a shared file system using NFS or other network filesystem protocols.