Next | Prev | Up | Top | Contents | Index

Media Layout

The following section introduces some terminology and then describes the way xfsdump formats data on the storage media for use by xfsrestore.


Terminology

This section introduces terminology used in the rest of this chapter.

While xfsdump and xfsrestore are often used with tape media, the utilities actually support multiple kinds of media, so in the following discussions, the term media object is used to refer to the media in a generic fashion. The term dump refers to the result of a single use of the xfsdump command to output data files to the selected media object(s). An instance of the use of xfsdump is referred to as a dump session.

The dump session sends a single dump stream to the media object(s). The dump stream may contain as little as a single file or as much as an entire filesystem. The dump stream is composed of dump objects, which are:

The data segment(s) contains the actual data, the dump inventory contains a list of the dump objects in the dump, and the stream terminator marks the end of the dump stream. When a dump stream is composed of multiple dump objects, each object is contained in a media file. Some output devices, for example standard output, do not support the concept of media files--the dump stream is only the data.


Possible Dump Layouts

The simplest dump, for example the dump of a small amount of data to a single tape, produces a data segment and a stream terminator as the only dump objects. If the optional inventory object is added, you have a dump such as that illustrated in Figure 2-1. (In the data layout diagrams in this section, the optional inventory object is always included.)

Figure 2-1 : Single Dump on Single Media Object You can also dump data streams that are larger than a single media object. The data stream can be broken between any two media files including data segment boundaries. (The inventory is never broken into segments.) In addition, if multiple drives are specified, the dump is automatically broken into multiple streams. The xfsdump utility prompts for a new media object when the end of the current media object is reached. Figure 2-2 illustrates the data layout of a single dump session that requires two media objects on each of two devices.

Figure 2-2 : Single Dump on Multiple Media Objects The xfsdump utility also accommodates multiple dumps on a single media object. When dumping to tape, for example, the tape is automatically advanced past the existing dump session(s) and the existing stream terminator is erased. The new dump data is then written, followed by the new stream terminator[1]. Figure 2-3 illustrates the layout of media files for two dumps on a single media object.

Figure 2-3 : Multiple Dumps on Single Media Object Figure 2-4 illustrates a case in which multiple dumps use multiple media objects. If media files already exist on the additional media object(s), the xfsdump utility finds the existing stream terminator, erases it, and begins writing the new dump data stream.

Figure 2-4 : Multiple Dumps on Multiple Media Objects


[1] For drives that do not permit termination to operate in this way, other means are used to achieve the same effective result.
Next | Prev | Up | Top | Contents | Index