Veritas File System 5.0 Administrator's Guide (September 2006)
Allocating data from vol1 to vol2
◆
Assign an allocation policy that allocates user data from vol1 to vol2 if space
runs out on vol1:
# fsapadm define /mnt1 datapolicy vol1 vol2
Volume encapsulation
Multi-volume support enables the ability to encapsulate an existing raw volume
and make the volume contents appear as a file in the file system.
Encapsulating a volume involves the following actions:
■ Adding the volume to an existing volume set.
■ Adding the volume to the file system using fsvoladm.
Encapsulating a volume
The following example illustrates how to encapsulate a volume.
To encapsulate a volume
1
List the volumes:
# vxvset list myvset
VOLUME INDEX LENGTH STATE CONTEXT
vol1 0 102400 ACTIVE -
vol2 1 102400 ACTIVE -
The volume set has two volumes.
2
Create a third volume and copy the passwd file to the third volume:
# vxassist make dbvol 100m
# dd if=/etc/passwd of=/dev/vx/rdsk/rootdg/dbvol count=1
1+0 records in
1+0 records out
The third volume will be used to demonstrate how the volume can be accessed
as a file, as shown later.
127Multi-volume file systems
Volume encapsulation