Cloud Path Details
When using Object Mount for linux from the Object Mount CLI
Specifying Cloud Paths
When accessing cloud-based, object storage volumes using the Object Mount CLI, there are two primary ways of interacting with the remote files and directories:
- The URI format, e.g.:
s3://my-bucket/dir/file.txt - The directory format, e.g.:
/cuno/s3/my-bucket/dir/file.txt
URI Format
The following table describes URI prefixes for supported cloud providers:
| Cloud Provider | URI Format |
|---|---|
| AWS S3 | s3://<bucket_name> |
| Storj | s3://<bucket_name> |
| Google Cloud Storage | gs://<bucket_name> |
| Azure Blob Storage | az://<account_name>/<container_name> |
| Other S3 Compatible | s3://<bucket_name> |
Directory Format
The following table describes directory format for supported cloud providers:
| Cloud Provider | Directory Format |
|---|---|
| AWS S3 | /cuno/s3/<bucket_name> |
| Storj | /cuno/s3/<bucket_name> |
| Google Cloud Storage | /cuno/gs/<bucket_name> |
| Azure Blob Storage | /cuno/az/<account_name>/<container_name> |
| Other S3 Compatible | /cuno/s3/<bucket_name> |
URI Format Support
Some software tools cannot process the URI format. Use the directory format instead in such cases.
Examples
Some examples of using Object Mount are given below:
List the contents of a remote container
my-bucketon AWS S3:or
Move a text file
sample.txtfrom the local filesystem to a remote Google Cloud Storage containermy-bucket:or
List the contents of a subdirectory
dirin a remote Google Cloud Storage containermy-bucket:or
Use UNIX coreutils (e.g.
head) on a remote filesample.txton AWS S3:
Microsoft Azure Blob Storage Usage
When using Microsoft’s Azure Storage, the associated Account Name must be included in both the URI and directory format:
or:
AWS S3 Access Point Support
Object Mount supports using an AWS S3 Access Point instead of a bucket as an endpoint.
Access Points are unique addresses that customers can create to enforce distinct permissions and network controls for requests made through that Access Point.
To use an Access Point instead of a container, provide the full Amazon Resource Name (ARN) in place of the bucket name:
This applies to all places a container can be specified, such as within cuno creds or console commands:
File System Behaviors When Using Object Mount
Symbolic Links
WHen not using POSIX Mode, symbolic links can only be created (via ln --symbolic or ln -s) to point from a local system to a cloud location. Either URI or directory format can be used.
Hard Links and Server-Side Copy
Conversely, hard links cannot be created from the local system to a remote cloud location.
Use hard-linking to trigger a more efficient cloud-only copy mechanism within a cloud region.
mv or cp within a single cloud vendor will trigger a server-side copy, which is more efficient than a download followed by an upload.
POSIX Mode
Symbolic links can be created (via ln --symbolic or ln -s) between local and cloud objects in either direction when POSIX mode in enabled.
Hard links can be created (using ln) between cloud objects in the same bucket when POSIX mode in enabled.
See the Getting Started Guide article POSIX File Access for more details.
HardLinks and SymLink on File Deletion
If the target file/object is deleted or moved, both symbolic and hard links will break.
File Metadata
ls --long (or ls -l) will list the current user as the owner of the remote objects, and the permissions will be 777.
The creation date of a remote directory is not always available to system calls.
Performance Optimizations
Object Mount uses multiple concurrent connections to remote objects to achieve the highest performance.
It can also execute operations on objects entirely remotely where possible.
Some optimized operations provided by Object Mount are listed below:
mvcommands between locations within the same object storage provider will invoke a server-side remote-copy operation to avoid streaming through the client.lnhard links between locations within the same object storage provider will invoke a server-side remote-copy operation to avoid streaming through the client.- Hard links between objects in the same bucket will work like local hard links when POSIX mode in enabled.