Weitere ähnliche Inhalte
Ähnlich wie 51 lab-volumes
Ähnlich wie 51 lab-volumes (20)
Mehr von mapr-academy (18)
51 lab-volumes
- 1. LAB: Volumes July 2012
LAB: Volumes
Goal
In these exercises you will create, modify, move and set permissions on a volume. In
addition you will create a schedule and apply it to a snapshot and mirror
synchronization.
Exercise: Volumes
Connect to your MCS for your cluster
Create a volume for your student #
o Click Volumes under MapR-FS in the Navigation pane
o Click the New Volume button
o Select Standard Volume for the Volume Type
o Enter a volume name (e.g. “studentxvol1” where x is your student #)
in the Volume Name field
o Type the path /studentxvol1 (where x is your student #) in the Mount
Path field
o Select /default-rack in the Topology field
o Scroll to the bottom and click OK to create the volume
Connect to your node via ssh
Create a second volume for your student #
o Note: ‘x’ in the volume name and path is your student #
o maprcli volume create –name <studentxvol2> -mount
1 –path </studentxvol2>
Use the MCS or CLI to set permissions on your volume so the mapr user can
edit
o CLI example:
maprcliacl edit –name <studentxvol2> -type
volume –user mapr
Use the MCS or CLI to modify the quota on your volume
o CLI example:
maprcli volume modify –name <studentxvol2> -
quota <quota>
Use the MCS or CLI to move the volume
o CLI example:
maprcli volume move –name <studentxvol2> -
topology<new_topology>
© 2012 by MapR Technologies Page 1 of 2
- 2. LAB: Volumes July 2012
Exercise: Snapshots & Schedules
Connect to your node via ssh or connect to the cluster MCS
Use the MCS or CLI to manually create a snapshot
o CLI example:
maprcli volume snapshot create –
volume<studentxvol2> -
snapshotname<snapshot_name>
Explore the .snapshot directory
o If you have not done so already connect to your node via ssh
o Change directory into <studentxvol2>/.snapshot and list the directory
contents
o Notice that there is a directory with the name of your snapshot. Feel
free to explore the contents of this directly. They should be identical
to the contents of the volume at the time you took the snapshot.
Use the MCS to create a schedule
o Click Schedules under MapR-FS in the navigation pane
o Click the New Schedule button
o Give the schedule a name and a rule (e.g. daily at 1PM)
o Note: the schedule is not currently applied to any volumes
Use the MCS to apply the schedule you created in the previous step as a
snapshot schedule for one of your volumes
o Click Volumes under MapR-FS in the Navigation pane
o Click the name of one of your volumes
o Scroll down to the Snapshot Scheduling section and select the
schedule you created in the previous step
o Click the Modify Volume button
Exercise: Mirrors & Schedules
Connect to your node via ssh or connect to the cluster MCS
Use the MCS or CLI to manually create a mirror volume
o CLI example:
maprcli volume create –
name<studentxvol2mirror> -
source<studentxvol2mirror> -type 1 –schedule
<schedule_name>
Use the MCS or CLI to initiate a mirror sync
o CLI example:
maprcli volume mirror start –
name<mirror_volume_name>
OR
maprcli volume mirror push –
name<source_volume_name>
© 2012 by MapR Technologies Page 2 of 2