Professional Documents
Culture Documents
ADM201 L6 ConfigureVolumes
ADM201 L6 ConfigureVolumes
L6-1
Learning Goals
L6-2
Review: Storage Architecture
Containers, striped
across storage pools
https://youtu.be/TOFQq9PHJHk L6-3
Review: Storage Architecture
Files are sharded into chunks and written to containers
L6-4
Review: Storage Architecture
Volumes are collections of containers
L6-5
What Is a MapR Volume?
• Comprised of containers
– Name containers
– Data containers
L6-6
Volume Properties: Name and Mount Path
/work/projects
L6-7
Volume Properties: Permissions
Root directory
permissions
Volume
permissions
L6-8
Volume Properties: Permissions
Volume permissions can be granted to users or groups
L6-9
Volume Properties: Topology
/data /data
L6-10
Volume Properties: Quotas
Hard quota
No more data written to volume
Advisory quota
Alarm is generated
my_volume
L6-11
Volume Properties: Quotas
• 10 GB source file: 10 GB
• Compressed to 8 GB: 8 GB
• Replicated 3 times: 24 GB
L6-12
Volume Properties: Accountable Entity (AE)
• Entity (user or group) accountable for a volume’s usage
L6-13
Accountable Entities and Quotas
L6-14
Volumes and Accountable Entities
Accountable Entities
Users
root
Cobra
production
marje cobra-dev
cobra-prod rattler-prod
L6-15
Volumes and Accountable Entities
Cobra
Volumes under
marje can have users development Rattler
different accountable
entities
production
marje cobra-dev
cobra-prod rattler-prod
L6-16
Volumes and Accountable Entities
Accountable Entities
cobra-related volumes
are all accountable to Users
root
the group Cobra
Cobra
production
marje cobra-dev
cobra-prod rattler-prod
L6-17
Volumes, Accountable Entities, and Quotas
Hard Quotas
root
AE: Cobra 40 TB 40 TB
Vol: cobra-dev 30 TB
Vol: cobra-prod 30 TB 62 TB
users development Vol: marje-cobra 2 TB
production
marje cobra-dev
cobra-prod rattler-prod
L6-18
Volume Property: Replication Factor
• Replication factor
Master – Desired number of copies
container
L6-21
Volume Property: Replication Type
L6-24
Typical Volume Layout
/mapr/<cluster name>/
L6-25
Volumes Best Practices
L6-26
Create Volumes With MCS
L6-27
Create Volumes With MCS: Volume Setup
Volume name
must be unique
L6-28
Create Volumes With MCS: Volume Setup
L6-29
Create Volumes With MCS: Volume Setup
Assign topology
L6-30
Create Volumes With MCS: Volume Setup
L6-31
Create Volumes With MCS: Volume Setup
Assign accountable
entity (mapr by default)
L6-32
Create Volumes With MCS: Permissions
Root directory
permissions in
octal format
Volume permissions
L6-33
Create Volumes With MCS: Usage Tracking (Quotas)
Format: <num><units>
<units> is:
M (Megabytes)
G (Gigabytes)
T (Terabytes)
Advisory and
hard quotas
L6-34
Create Volumes With MCS: Replication
Replication pattern
L6-35
Create Volumes With MCS: Scheduling
Snapshots and scheduling are covered in a later module
L6-36
Create Volumes With MCS: Data Access
Create Access Control Expressions to define access to volume data
L6-37
Create Volumes With CLI
• Create a volume and mount it with:
<name>
L6-38
Volume Create Options With CLI
-advisoryquota <quota> Sets advisory quota
-quota <quota> Sets hard quota
-ae <entity> Sets accountable entity
-aetype <type> 0=user; 1=group
-auditenabled Enables volume auditing if specified (no arguments)
-readonly <value> 0=read/write; 1=read-only
-replication <num> Replication factor of <num> for data containers
L6-40
Modify a Volume
• Through MCS:
L6-41
Lab : Create Volumes and Set Quotas
1_Lab Seperator
L6-42
Next Steps
ADM 201 – Configure a MapR Cluster
L6-43