Problem
How to create a metasave
Solution
This article is a part of a set on troubleshooting file system corruption. Click here to start at the beginning: https://www.veritas.com/content/support/en_US/article.100009174.html |
Table of Contents
1. Introduction
2. Estimating time and disk space requirements
3. Creating the metasave
4. Verifying a metasave output file
1. Introduction
Use one of the metasave scripts to create a file that contains a copy of the metadata of a volume. The metadata is a data structure that contains attributes about the data within a filesystem, but does not contain the actual data itself.
2. Estimating time and disk space requirements
The metasave process reads through the metadata of a file system, seeking and examining each individual inode entry. The amount of time that is required to create a metasave depends on how quickly the system can perform I/O reads, along with the overall level of system resources available.It is possible to estimate the time and size requrements for a metasave by using the "fsadm -E" command.
"How to estimate time and disk space requirements for collecting a metasave"
https://www.veritas.com/content/support/en_US/article.100016698.html
3. Creating the metasave
Dismount the volume and then create a metasave (Figure 1). The metasave collects the file system metadata, which is the portion of a filesystem that contains the attributes of the data, but does not contain the actual data itself.
Figure 1 - Creating a metasave
Syntax: /opt/VRTSspt/FS/MetaSave/metasave_<os> -f <output file> /dev/vx/rdsk/<dg>/<vol>
Note: Replace "<os>" with the correct platform. Several metasave scripts exists, each corresponding to a different platform.
Example, with typical output:
# umount /vol1
|
4. Verifying the metasave output file
To verify a metasave output file, use the same metasave script that was used to create the file.
Figure 2 - Verifying a metasave
Syntax: /opt/VRTSspt/FS/MetaSave/metasave_<os> -i <output file>
Note: Replace "<os>" with the correct platform. Several metasave scripts exists, each corresponding to a different platform.
#./metasave_10 -i /var/tmp/metasave.out |