You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/file-sync/file-sync-cloud-tiering-policy.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Details on how the date and volume free space policies work togethe
4
4
author: khdownie
5
5
ms.service: storage
6
6
ms.topic: conceptual
7
-
ms.date: 04/13/2021
7
+
ms.date: 06/07/2022
8
8
ms.author: kendownie
9
9
ms.subservice: files
10
10
---
@@ -15,35 +15,35 @@ Cloud tiering has two policies that determine which files are tiered to the clou
15
15
16
16
The **volume free space policy** ensures that a specified percentage of the local volume the server endpoint is located on is always kept free.
17
17
18
-
The **date policy** tiers files last accessed x days ago or later. The volume free space policy will always take precedence; when there isn't enough free space on the volume to store as many days worth of files as described by the date policy, Azure File Sync will override the date policy and continue tiering the coldest files until the volume free space percentage is met.
18
+
The **date policy** tiers files last accessed x days ago or later. The volume free space policy will always take precedence. When there isn't enough free space on the volume to store as many days worth of files as described by the date policy, Azure File Sync will override the date policy and continue tiering the coldest files until the volume free space percentage is met.
19
19
20
20
## How both policies work together
21
21
22
-
We'll use an example to illustrate how these policies work: Let's say you configured Azure File Sync on a 500GiB local volume, and cloud tiering was never enabled. These are the files in your file share:
22
+
We'll use an example to illustrate how these policies work: Let's say you configured Azure File Sync on a 500-GiB local volume, and cloud tiering was never enabled. These are the files in your file share:
23
23
24
24
|File Name |Last Access Time |File Size |Stored In |
|File 1 | 2 days ago | 10 GiB | Server and Azure file share
27
27
|File 2 | 10 days ago | 30 GiB | Server and Azure file share
28
28
|File 3 | 1 year ago | 200 GiB | Server and Azure file share
29
-
|File 4 | 1 year, 2 days ago | 130 GiB | Server and Azure file share
29
+
|File 4 | 1 year, 2 days ago | 120 GiB | Server and Azure file share
30
30
|File 5 | 2 years, 1 day ago | 140 GiB | Server and Azure file share
31
31
32
32
**Change 1:** You enabled cloud tiering, set a volume free space policy of 20%, and kept the date policy disabled. With that configuration, cloud tiering ensures 20% (in this case 100 GiB) of space is kept free and available on the local machine. As a result, the total capacity of the local cache is 400 GiB. That 400 GiB will store the most recently and frequently accessed files on the local volume.
33
33
34
-
With this configuration, only files 1 through 4 would be stored in the local cache, and file 5 would be tiered. This is only 370 GiB out of the 400 GiB that could be used. File 5 is 140 GiB and would exceed the 400GiB limit if it was locally cached.
34
+
With this configuration, only files 1 through 4 would be stored in the local cache, and file 5 would be tiered. This only accounts for 360 GiB out of the 400 GiB that could be used. File 5 is 140 GiB and would exceed the 400-GiB limit if it was locally cached.
35
35
36
-
**Change 2:** Say a user accesses file 5. This makes file 5 the most recently accessed file in the share. As a result, File 5 would be stored in the local cache and to fit under the 400GiB limit, file 4 would be tiered. The following table shows where the files are stored, with these updates:
36
+
**Change 2:** Say a user accesses file 5. This makes file 5 the most recently accessed file in the share. As a result, File 5 would be stored in the local cache and to fit under the 400-GiB limit, file 4 would be tiered. The following table shows where the files are stored, with these updates:
37
37
38
38
|File Name |Last Access Time |File Size |Stored In |
|File 5 | 2 hours ago | 140 GiB | Server and Azure file share
41
41
|File 1 | 2 days ago | 10 GiB | Server and Azure file share
42
42
|File 2 | 10 days ago | 30 GiB | Server and Azure file share
43
43
|File 3 | 1 year ago | 200 GiB | Server and Azure file share
44
-
|File 4 | 1 year, 2 days ago | 130 GiB | Azure file share, tiered locally
44
+
|File 4 | 1 year, 2 days ago | 120 GiB | Azure file share, tiered locally
45
45
46
-
**Change 3:**Let's say you updated the policies so that the date-based tiering policy is 60 days and the volume free space policy is 70%. Now, only up to 150 GiB can be stored in the local cache. Although File 2 has been accessed less than 60 days ago, the volume free space policy will override the date policy, and file 2 is tiered to maintain the 70% local free space.
46
+
**Change 3:**Imagine you updated the policies so that the date-based tiering policy is 60 days and the volume free space policy is 70%. Now, only up to 150 GiB can be stored in the local cache. Although File 2 has been accessed less than 60 days ago, the volume free space policy will override the date policy, and file 2 is tiered to maintain the 70% local free space.
47
47
48
48
**Change 4:** If you changed the volume free space policy to 20% and then used `Invoke-StorageSyncFileRecall` to recall all the files that fit on the local drive while adhering to the cloud tiering policies, the table would look like this:
49
49
@@ -53,7 +53,7 @@ With this configuration, only files 1 through 4 would be stored in the local cac
53
53
|File 1 | 2 days ago | 10 GiB | Server and Azure file share
54
54
|File 2 | 10 days ago | 30 GiB | Server and Azure file share
55
55
|File 3 | 1 year ago | 200 GiB | Azure file share, tiered locally
56
-
|File 4 | 1 year, 2 days ago | 130 GiB | Azure file share, tiered locally
56
+
|File 4 | 1 year, 2 days ago | 120 GiB | Azure file share, tiered locally
57
57
58
58
In this case, files 1, 2 and 5 would be locally cached and files 3 and 4 would be tiered. Because the date policy is 60 days, files 3 and 4 are tiered, even though the volume free space policy allows for up to 400 GiB locally.
59
59
@@ -62,7 +62,7 @@ In this case, files 1, 2 and 5 would be locally cached and files 3 and 4 would b
62
62
63
63
## Multiple server endpoints on a local volume
64
64
65
-
Cloud tiering can be enabled for multiple server endpoints on a single local volume. For this configuration, you should set the volume free space to the same amount for all the server endpoints on the same volume. If you set different volume free space policies for several server endpoints on the same volume, the largest volume free space percentage will take precedence. This is called the **effective volume free space policy**. For example, if you have three server endpoints on the same local volume, one set to 15%, another set to 20%, and a third set to 30%, they will all begin to tier the coldest files when they have less than 30% free space available.
65
+
Cloud tiering can be enabled for multiple server endpoints on a single local volume. For this configuration, you should set the volume free space to the same amount for all the server endpoints on the same volume. If you set different volume free space policies for several server endpoints on the same volume, the largest volume free space percentage will take precedence. This is called the **effective volume free space policy**. For example, if you have three server endpoints on the same local volume, one set to 15%, another set to 20%, and a third set to 30%, they'll all begin to tier the coldest files when they have less than 30% free space available.
0 commit comments