Veritas™ File System 5.0.1 Administrator's Guide
6
Encapsulate dbvol:
# fsvoladm encapsulate /mnt1/dbfile dbvol 100m
# ls -l /mnt1/dbfile
-rw------- 1 root other 104857600 May 22 11:30 /mnt1/dbfile
7
Examine the contents of dbfile to see that it can be accessed as a file:
# head -2 /mnt1/dbfile
root:x:0:1:Super-User:/:/sbin/sh
daemon:x:1:1::/:
The passwd file that was written to the raw volume is now visible in the new
file.
Note: If the encapsulated file is changed in any way, such as if the file is
extended, truncated, or moved with an allocation policy or resized volume,
or the volume is encapsulated with a bias, the file cannot be de-encapsulated.
Deencapsulating a volume
The following example illustrates how to deencapsulate a volume.
To deencapsulate a volume
1
List the volumes:
# vxvset -g dg1 list myvset
VOLUME INDEX LENGTH STATE CONTEXT
vol1 0 102400 ACTIVE -
vol2 1 102400 ACTIVE -
dbvol 2 102400 ACTIVE -
The volume set has three volumes.
2
Deencapsulate dbvol:
# fsvoladm deencapsulate /mnt1/dbfile
Reporting file extents
MVS feature provides the capability for file-to-volume mapping and volume-to-file
mapping via the fsmap and fsvmap commands. The fsmap command reports the
Multi-volume file systems
Reporting file extents
136