Purpose
The md_backup
command creates a backup file containing metadata for one or more disk groups.
Syntax and Description
md_backup backup_file [-G 'diskgroup [,diskgroup,...]']
Table 10-52 describes the options for the md_backup
command.
Table 10-52 Options for the md_backup command
Option | Description |
---|---|
|
Specifies the backup file in which you want to store the metadata. |
|
Specifies the disk group name of the disk group that must be backed up |
By default all the mounted disk groups are included in the backup file, which is saved in the current working directory if a path is not specified with the file name.
Oracle Automatic Storage Management Cluster File System (Oracle ACFS) file system and Oracle ASM Dynamic Volume Manager(Oracle ADVM) volume information is not backed up.
Example
The first example shows the use of the backup command when run without the disk group option. This example backs up all the mounted disk groups and creates the backup image in the /scratch/backup/alldgs20100422
file. The second example creates a backup of the data
disk group. The metadata backup that this example creates is saved in the /scratch/backup/data20100422
file.
Example 10-61 Using the ASMCMD md_backup command
ASMCMD [+] > md_backup /scratch/backup/alldgs20100422 Disk group metadata to be backed up: DATA Disk group metadata to be backed up: FRA Current alias directory path: ORCL/ONLINELOG Current alias directory path: ORCL/PARAMETERFILE Current alias directory path: ORCL Current alias directory path: ASM Current alias directory path: ORCL/DATAFILE Current alias directory path: ORCL/CONTROLFILE Current alias directory path: ASM/ASMPARAMETERFILE Current alias directory path: ORCL/TEMPFILE Current alias directory path: ORCL/ARCHIVELOG/2010_04_20 Current alias directory path: ORCL Current alias directory path: ORCL/BACKUPSET/2010_04_21 Current alias directory path: ORCL/ARCHIVELOG/2010_04_19 Current alias directory path: ORCL/BACKUPSET/2010_04_22 Current alias directory path: ORCL/ONLINELOG Current alias directory path: ORCL/BACKUPSET/2010_04_20 Current alias directory path: ORCL/ARCHIVELOG Current alias directory path: ORCL/BACKUPSET Current alias directory path: ORCL/ARCHIVELOG/2010_04_22 Current alias directory path: ORCL/DATAFILE Current alias directory path: ORCL/CONTROLFILE Current alias directory path: ORCL/ARCHIVELOG/2010_04_21 ASMCMD [+] > md_backup /scratch/backup/data20100422 -G data Disk group metadata to be backed up: DATA Current alias directory path: ORCL/ONLINELOG Current alias directory path: ASM Current alias directory path: ORCL/CONTROLFILE Current alias directory path: ASM/ASMPARAMETERFILE Current alias directory path: ORCL/PARAMETERFILE Current alias directory path: ORCL Current alias directory path: ORCL/DATAFILE Current alias directory path: ORCL/TEMPFILE