This figure shows how data is stored by using the capacity saving function.
When you use the capacity saving function, make sure to set compression, deduplication, or disabled and compression for a V-VOL. When data is written to the V-VOL with compression set, the data compression function compresses the data. When data is written to the V-VOL with deduplication and compression enabled, the data compression function compresses the data, and then the deduplication function deletes the duplicate data and stores the original data in the deduplication system data volume (data store).
When you create a V-VOL with the deduplication and compression enabled, deduplication system data volumes (fingerprint and data store) are automatically created. If all V-VOLs with deduplication data enabled are deleted, all deduplication system data volumes are automatically deleted.
When data is written to the V-VOL whose capacity saving setting is disabled, the data is written without the data compression function or the deduplication function applied.
The following capacity saving setting changes can be made:
- Change from compression to deduplication and compression
- Change from deduplication and compression to compression
- Change from disabled to deduplication and compression or compression
- Change from deduplication and compression or compression to disabled
The capacity saving setting can be changed from deduplication and compression to compression. Only data compression is applied to data written after changing the setting from deduplication and compression to compression. However, deduplication (data store) for the duplicate data written before changing the setting from deduplication and compression to compression is not released. The deduplication function for the duplicate data is released when the target volume is formatted. A V-VOL that contains the duplicate data is displayed as a V-VOL with deduplication data enabled.
When the capacity saving setting is changed from disabled to deduplication and compression, deduplication system data volumes (fingerprint and data store) are automatically created. If all V-VOLs with deduplication data enabled are deleted, all deduplication system data volumes are automatically deleted.
When the capacity saving setting is changed from deduplication and compression or compression to disabled, the compression function for the compressed data written before the setting change is not disabled. The deduplication function (deleting duplicated data and storing original data in deduplication system data volumes (data store)) for the duplicated data written before the setting change is not disabled. The deduplication function for the duplicated data is disabled when the target volume is formatted. A V-VOL that contains the duplicated data is displayed as a V-VOL with deduplication data enabled.
When post-process data is updated again, the data stored in the data storage area is no longer required. This kind of data is called garbage data. The used capacity of the pool increases until garbage collection, which collects old data that is no longer required. The pool capacity that is eventually required is the sum of the physical data capacity after capacity saving plus the amount of metadata.
The temporary area and the data storage area are not assigned fixed capacities. They share the pool and use the pool as needed.
- The temporary area and the data storage area are not assigned fixed capacities. They share the pool and use the pool as needed.
- When the capacity saving function is enabled, the garbage data is created during the following processing and consumes the effective pool capacity:
- Update the data on a V-VOL with compression set.
- Update the data that is included on a V-VOL with deduplication and compression enabled but not included on a different V-VOL.
- Update the data on a V-VOL with disabled set.
- Delete the snapshot data of Thin Image Advanced.
- If the pool used capacity increases due to garbage data, garbage collection runs asynchronously. Garbage collection reclaims the garbage data, thereby increasing the free capacity of the pool.
The capacity overhead associated with the capacity saving function includes these items:
- Capacity consumed by metadata
- The capacity consumed by metadata for the capacity saving function (deduplication and compression) is approximately 3% of the consumed V-VOL capacity that has been processed by capacity saving. For example, if the consumed capacity of a V-VOL is 150 TB and the capacity saving feature has processed 100 TB of the 150 TB consumed capacity and reduced it to 30 TB, the capacity consumed by metadata for the capacity saving function is approximately 3 TB (3% of 100 TB). The total consumed capacity of this V-VOL at this instant is 83 TB (30 TB + 50 TB + 3 TB).
- Capacity consumed by garbage (invalid) data
- The capacity consumed by garbage data is approximately 7% of the total consumed capacity of all V-VOLs with capacity saving enabled. The capacity is dynamically consumed based on garbage data created by the capacity saving process and cleaned by the background garbage collection process. Garbage collection is a background process with a lower priority than host I/O, so the capacity consumed by garbage data depends on both the garbage created and the host I/O rate.
For a DRS-VOL, the total effective capacity consumed by metadata and garbage data is about 13% of the effective pool capacity. The effective pool capacity is dynamically consumed based on the data reduction processing usage.
During periods of high write activity from the host, this effective pool capacity might increase over 13% temporarily, and then it returns to around 13% when host write activity decreases.
When the free space in a pool becomes 1% or 120 GB or less, capacity deletion processing might stop, or performance might degrade. This problem continues until the free capacity percentage increases to 1% or more, and the free capacity increases to 240 GB or more.
Capacity saving processing for existing data
The deduplication and compression processing is performed asynchronously for pages that store data, and the free area of the pool can be increased, thereby reducing the cost of purchasing drives over time. The following figure shows the effects of the capacity saving function on reducing user data.
Capacity saving processing for new write data
The capacity saving mode of a V-VOL (post-process mode or inline mode) determines how capacity saving is applied to new write data from the host:
- Inline mode (default)
- When you apply capacity saving with the inline mode to a V-VOL, the compression and deduplication processing are performed synchronously for new write data. The inline mode minimizes the pool capacity required to store new write data but can impact I/O performance more than the post-process mode. The inline mode should be applied when writing data with sequential I/Os, for example, when writing data to target volumes of data migration or secondary volumes of copy pairs. When the data migration or copy pair creation has completed, the mode should be changed from the inline mode to the post-process mode to minimize the impact on I/O performance.
- If the capacity saving mode is unintentionally set to the inline mode, make sure to change it to the post-process mode. If a DRS-VOL is used in Thin Image Advanced, the capacity saving mode setting applies only to a parent volume, and therefore verify the setting only for the parent volume. For more information about changing the capacity saving mode, see the Command Control Interface Command Reference.
- If you want to change the default mode (inline) to post-process mode, you must use CCI (raidcom add ldev [-capacity_saving_mode <saving mode>] or raidcom modify ldev [-capacity_saving_mode <saving mode>]).
- Post-process mode
- When you apply capacity saving with the post-process mode to a V-VOL, the compression and deduplication processing are performed asynchronously for new write data. Since capacity saving processing is not performed at the time the new data is written, the post-process mode can reduce the impact of capacity saving processing on I/O performance. However, pool capacity is required to store the new write data until the capacity saving processing is performed.
The following example shows how the pool used capacity changes over time when data migration is performed. The red line shows the capacity when the post-process mode is applied, and the black line shows the capacity when the inline mode is applied. This example assumes that the writing speed (GB/h) for the new data is faster than the initial capacity saving processing (GB/h).
When inline mode is applied, capacity saving processing is performed synchronously for the writing of data. When post-process mode is applied, capacity saving processing is performed asynchronously for the writing of data, and the effective pool capacity of a temporary storage area is required for the write data. The effective capacity required for the temporary storage area depends on the writing speed of the new data or on the frequency of data updates during migration.
This table shows the processing method (synchronous or asynchronous) for initial data, new write data, and updated data. For new write data, capacity saving processing is performed at different times for post-process mode and inline mode. For a DRS-VOL with capacity saving disabled, the following capacity saving mode is not applied.
|
Mode |
Initial data1 |
New write data |
Updated write data |
||
|---|---|---|---|---|---|
|
Compression processing |
Deduplication processing |
Compression processing |
Deduplication processing |
||
|
Post-process mode |
Asynchronous |
Synchronous |
Asynchronous |
Synchronous3 |
Asynchronous |
|
Inline mode |
Asynchronous |
Synchronous |
Synchronous2 |
Synchronous3 |
Asynchronous |
Notes
- The initial data is the existing data on the V-VOL when the capacity saving function is enabled. The (initial) capacity saving processing is performed for the initial data.
- Applied to sequential I/O data, such as writing large amounts of data sequentially. Deduplication of random I/O data, such as updating files irregularly, is performed in post-process mode.
- Indicates the compression method of the written data when compressed data is updated. If uncompressed data before initial capacity deletion is updated, compression of the written data is performed in post-process mode.