Directing File Allocations shows how you might use the allocation policies to direct file allocations.
Click the thumbnail above to view full-sized image.
Directing File Allocations
The /mnt
file system has three volumes in its volume set: vol-01
, vol-02
, and vol-03
. These volumes correspond to policy1
, policy2
, and policy3
, respectively.
/mnt
file system.
/mnt
file system as policy1
and policy2
.
dir1
with the INHERIT
flag, with both as policy3
.
file4
(100MB), which becomes allocated to vol-02
.
file3
(10MB), which becomes allocated to vol-02
.
file2
(100MB), which becomes allocated to vol-03
.
file1
(100MB), which becomes allocated to vol-03
.
file4
, with both as policy3
.
file4
, which reallocates the file to vol-03
.
The file system has a policy assignment that allocates data as directed by policy1
and metadata 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
.