Uploading objects
You can upload objects that are in the LU-mode.
Complete the following steps to upload an object:
- Create LU-mode objects on a cloud object storage.
# mmafmcosconfig fs1 localupdates --endpoint http://c1f1u11n07 --uid 0 --gid 0 --new-bucket localupdates --mode lu --cleanup
A sample output is as follows:
Created 3 objects on COS: Name : obj1 Date : 2020-10-23 06:07:29 EDT Size : 2.2 KiB ETag : 6fdfdb7af5eb5ad7f610014985951941 Type : file Metadata : Content-Type: application/x-sh Name : obj2 Date : 2020-10-23 06:07:31 EDT Size : 2.2 KiB ETag : 6fdfdb7af5eb5ad7f610014985951941 Type : file Metadata : Content-Type: application/x-sh Name : obj3 Date : 2020-10-23 06:07:33 EDT Size : 2.2 KiB ETag : 6fdfdb7af5eb5ad7f610014985951941 Type : file Metadata : Content-Type: application/x-sh
- Download the created objects.
# mmafmcosctl fs1 localupdates /gpfs/fs1/localupdates/ download --all
A sample output is as follows:
Queued Failed AlreadyCached TotalData (approx in Bytes) 3 0 0 6816 Object Download successfully queued at the gateway.
- Check the fileset status.
# mmafmctl fs1 getstate
A sample output is as follows:
Fileset Name Fileset Target Cache State Gateway Node Queue Length Queue numExec ------------ -------------- ------------- ------------ ------------ ------------- localupdates http://c1f1u11n07:80/localupdates Active c7f2n05 0 10
- Write data into objects, which will not be synchronized to a cloud object
storage.
# echo 11111 >> /gpfs/fs1/localupdates/obj1 # echo 11111 >> /gpfs/fs1/localupdates/obj2
- Check the fileset status.
# mmafmctl fs1 getstate
A sample output is as follows:
Fileset Name Fileset Target Cache State Gateway Node Queue Length Queue numExec ------------ -------------- ------------- ------------ ------------ ------------- localupdates http://c1f1u11n07:80/localupdates Active c7f2n05 0 10
These changes are local and are not pushed to the cloud object storage because it is in the LU-mode.
-
To synchronize objects to a cloud object storage, upload the objects.
# mmafmcosctl fs1 localupdates /gpfs/fs1/localupdates upload --all
Sample outputs are as follows:
Queued Failed TotalData (approx in Bytes) 3 0 6828 Object Upload successfully queued at the gateway.
Objects are synced to COS: Name : obj1 Date : 2020-10-23 06:15:01 EDT Size : 2.2 KiB ETag : 5a210361a71c03cb29565c4c2ae613cb Type : file Metadata : Content-Type: application/octet-stream Name : obj2 Date : 2020-10-23 06:15:01 EDT Size : 2.2 KiB ETag : 5a210361a71c03cb29565c4c2ae613cb Type : file Metadata : Content-Type: application/octet-stream