SlideShare ist ein Scribd-Unternehmen logo
1 von 2
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
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

Weitere ähnliche Inhalte

Mehr von mapr-academy

70a monitoring & troubleshooting
70a monitoring & troubleshooting70a monitoring & troubleshooting
70a monitoring & troubleshootingmapr-academy
 
42 lab-managing services
42 lab-managing services42 lab-managing services
42 lab-managing servicesmapr-academy
 
41a managing services
41a managing services41a managing services
41a managing servicesmapr-academy
 
3 map r installation & setup administration course description
3 map r installation & setup administration course description3 map r installation & setup administration course description
3 map r installation & setup administration course descriptionmapr-academy
 

Mehr von mapr-academy (12)

70a monitoring & troubleshooting
70a monitoring & troubleshooting70a monitoring & troubleshooting
70a monitoring & troubleshooting
 
58a migration
58a migration58a migration
58a migration
 
53 lab-nfs
53 lab-nfs53 lab-nfs
53 lab-nfs
 
42 lab-managing services
42 lab-managing services42 lab-managing services
42 lab-managing services
 
41a managing services
41a managing services41a managing services
41a managing services
 
22 configuration
22 configuration22 configuration
22 configuration
 
14 lab-planing
14 lab-planing14 lab-planing
14 lab-planing
 
20a installation
20a installation20a installation
20a installation
 
13c planning
13c planning13c planning
13c planning
 
12a architecture
12a architecture12a architecture
12a architecture
 
10c introduction
10c introduction10c introduction
10c introduction
 
3 map r installation & setup administration course description
3 map r installation & setup administration course description3 map r installation & setup administration course description
3 map r installation & setup administration course description
 

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