MEMO Storage
  • Introduction
    • MEMO and MEFS
      • MEMO Website
    • Concepts
      • Characteristics and Advantages
      • How to check the balance
      • How to Pledge MEMO
      • MEMO TOKEN ECONOMICS
      • Payment of Memo
      • Requirements
      • Role Introduction
    • Version Introduction
      • Version1-Phecda
      • Version2-Megrez
        • Difference from Phecda
      • Latest Version-Megrez 2.5
  • Start Usage
    • Start user in windows
    • Start user in docker
      • How to start
      • How to use
        • Bucket Operation
        • Upload and Download
    • Start provider in docker
      • How to start
      • Hardware Recommendation
    • How to use user
    • Gateway Mode
    • HTTP Operation
    • Docker Installation
      • For Windows
      • For Linux
  • Commandline Usage
    • Keeper Commandline Mannual
    • Provider Commandline Mannual
    • User Commandline Mannual
  • FAQ
    • Check Log File
    • Common
    • Connection
    • Startup problems
    • Disconnection problems
    • Others
    • Q&A for V1
      • Common
      • User
      • Provider
      • Check Log File
      • Others
  • RAFI
  • Version Update
    • Upgrade to Megrez2.5
    • Volunteer Recruitment Plan
  • Resources
Powered by GitBook
On this page
  • Create bucket
  • Check bucket list
  • Check bucket information

Was this helpful?

Export as PDF
  1. Start Usage
  2. Start user in docker
  3. How to use

Bucket Operation

Create bucket

Command description: Enter createBucket to create a bucket according to the BucketName. Each bucket can be set with a different redundancy policy. The redundancy policy is multi-replica or erasure code. The redundancy level can be determined by adjusting the number of the data block and parity block. 3 data blocks and erasure code of 2 parity blocks are used by default, the loss of two blocks is tolerable.

mefs provides dedicated encrypted storage space (LFS) for each user, each storage space contains multiple buckets, buckets are containers that users use to store objects, and each bucket contains multiple objects. We can think of objects as files. The redundancy policy of a bucket can be specified at creation time (all objects stored in the bucket use this redundancy policy).

When creating a bucket policy, the value of dc+pc should be less than the number of providers in the group where the current user belongs. Users can modify the number of dc and pc according to their own needs.

mefs-user lfs createBucket --bn=test2 --dc=3 --pc=6	
Name: test2				
Bucket ID: 2
Creation Time: 2022-03-23 14:42:06 CST
Modify Time: 2022-03-23 14:42:06 CST
Object Count: 0
Policy: erasure code				
Data Count: 3								
Parity Count: 6				
Reliability: High
Used Bytes: 0 B

Check bucket list

Command description: Enter listBuckets to display all buckets created by this user, including the name of each bucket, creation time, redundancy policy and redundancy parameters (DataCount, ParityCount).

mefs-user lfs listBuckets
List buckets:

Name: test
Bucket ID: 1
Creation Time: 2022-03-23 14:25:41 CST
Modify Time: 2022-03-23 14:38:44 CST
Object Count: 1
Policy: erasure code
Data Count: 7
Parity Count: 7
Reliability: High
Used Bytes: 10.17 MiB

Name: test2
Bucket ID: 2
Creation Time: 2022-03-23 14:42:06 CST
Modify Time: 2022-03-23 14:42:06 CST
Object Count: 0
Policy: erasure code
Data Count: 3
Parity Count: 6
Reliability: High
Used Bytes: 0 B

Check bucket information

Command description: If BucketName exists, entering headBucket displays its creation time, redundancy policy and redundancy parameters. If BucketName does not exist, it displays that bucket does not exist.

mefs-user lfs headBucket --bn=test2
Head bucket:
Name: test2
Bucket ID: 2
Creation Time: 2022-03-23 14:42:06 CST
Modify Time: 2022-03-23 14:42:06 CST
Object Count: 0
Policy: erasure code
Data Count: 3
Parity Count: 6
Reliability: High
Used Bytes: 0 B
PreviousHow to useNextUpload and Download

Last updated 1 year ago

Was this helpful?