Veritas™ File System Programmer's Reference Guide - Solaris
- Veritas File System software developer's kit
- File Change Log
- About the File Change Log file
- Record types
- File Change Log tunables
- Application programming interface for File Change Log
- API functions
- File Change Log record
- Copying File Change Log records
- Veritas File System and File Change Log upgrade and downgrade
- Reverse path name lookup
- Multi-volume support
- Named data streams
- Veritas File System I/O
- Caching advisories
- Extents
- Thin Reclamation
Directing file allocations
Figure: Directing File Allocations shows how you might use the allocation policies to direct file allocations.
The /mnt file system has 3 volumes in its volume set: vol-01, vol-02, and vol-03. These volumes correspond to policy1, policy2, and policy3, respectively.
The file system has a policy assignment that allocates metadata as directed bypolicy1 and data as directed by policy2. These policies cause files to be allocated on vol-01 and vol-02, except for dir1, which has overriding assignments for allocation on vol-03.
When the file3 and file4 files are created, they are allocated on vol-02 as directed by the policy1 and policy2 assignments. When file1 and file2 are created, they are allocated on vol-03, as specified by policy3.
When file4 is created, the initial allocation is on vol-01 and vol-02. To move file4 to vol-03, assign policy3 to file4 and enforce that policy on the file. This reallocates file4 to vol-03.
To direct file allocations
- Create the allocation policies on the /mnt file system.
- Assign the data and metadata allocation policies to the /mnt file system as policy1 and policy2.
- Assign the data and metadata allocation policies to dir1 with the INHERIT flag, with both as policy3.
- Create file4 (100MB), which becomes allocated to vol-02.
- Create file3 (10MB), which becomes allocated to vol-02.
- Create file2 (100MB), which becomes allocated to vol-03.
- Create file1 (100MB), which becomes allocated to vol-03.
- Assign the data and metadata allocation policies to file4, with both as policy3.
- Enforce the allocation policies on file4, which reallocates the file to vol-03.