Contenu connexe
Plus de mapr-academy (12)
81 lab-disaster recovery
- 1. LAB: Disaster Recovery July 2012
LAB: Disaster Recovery
Goal
In these exercises you will learn how to prepare for and recover from a disaster
using different approaches. You will create and restore from a dump file, create a
remote mirror, and copy read-only data from a mirror volume.
Exercise: Create a Dump File
Connect to your node via ssh
Create a full dump of a volume on your cluster
o Note: ‘x’ in the volume name and path is your student #
o maprcli volume dump create -name </studentxvol2>-
dumpfile<studentxfulldump> -e
<studentxstatefile1>
Make some changes to the data on your volume (edit a file, create a file, etc)
Create an incremental dump of a volume on your cluster
o maprcli volume dump create -s
<studentxstatefile2>-e <studentxstatefile3>-name
</studentxvol2>-dumpfile<studentxincrdump>
Exercise: Create a Remote Mirror
Create a mirror on the backup cluster
o maprcli volume create -name <studentxmirrorvol1>-
source <studentxvol2@cluster_name>type 1
Initiate mirroring
o maprcli volume mirror start –
name<studentxmirrorvol1>
Exercise: Restore from a Dump File
Create a new volume named studentxrestorevol for your restoration
target (either via the MCS or CLI)
Restore from the full dump
o maprcli volume dump restore –
dumpfile<studentxfulldump>-name
</studentxrestorevol>–n
Restore from the incremental dump
o maprcli volume dump restore –
dumpfile<studentxincrdump>-name
</studentxrestorevol>
Exercise: Copy Read-Only Data
Mount the mirror volume
o maprcli volume mount –name <studentxmirrorvol1>-
path pathToRO
© 2012 by MapR Technologies Page 1 of 2
- 2. LAB: Disaster Recovery July 2012
Restore from the incremental dump
o maprcli volume dump restore –
dumpfile<studentxincrdump>-name
</studentxrestorevol>
© 2012 by MapR Technologies Page 2 of 2