Enabling SmartDedupe and SmartCompression
If you have enabled neither SmartDedupe nor SmartCompression when you create a LUN, you cannot enable any of them after the LUN is created. You can only enable SmartDedupe and SmartCompression for a thin LUN only when you create it. After they are enabled, the storage system deduplicates and compresses the data that has been newly written into the LUN.
Prerequisites
- The LUN to be created is a thin LUN.
- The storage system has a storage pool that provides storage space for LUNs. Create a storage pool if one does not exist.
Context
You can choose to enable both SmartDedupe and SmartCompression at the same time or to enable just one of them.
- If SmartDedupe is enabled, the storage system deduplicates the data that has been newly written into the LUN.
- If SmartCompression is enabled, the storage system compresses the data that has been newly written into the LUN.
- If both SmartDedupe and SmartCompression are enabled, the storage system first deduplicates the data that has been newly written into the LUN and then compresses it.
Procedure
- Go to the Create LUN dialog box.
- Non-vStore scenario
- On the right navigation bar, click
Provisioning.
- In the Block Storage Service area, click
LUN.
- In the information pane, click the LUN tab.
- Click Create.
The Create LUN dialog box is displayed.
- On the right navigation bar, click
- vStore scenario
- System user: On the right navigation bar, click
vStore. On the displayed page, click Details. In the left navigation tree, choose Provisioning > LUN.
- vStore user: Choose Provisioning > LUN.
- System user: On the right navigation bar, click
- Non-vStore scenario
- Create a thin LUN.
- Select Enable next to SmartThin and create a thin LUN.
- Set other parameters of the LUN as required.
- Enable SmartDedupe and SmartCompression for the thin LUN.
- Click Advanced.
The Advanced dialog box is displayed.
- Click the Tuning tab.
- In the SmartDedupe&SmartCompression area, enable SmartDedupe or SmartCompression based on your service requirements.
- If you want to enable SmartDedupe, select Enable deduplication.
- If you want to enable SmartCompression, select Enable data compression.
- If you want to enable both SmartDedupe and SmartCompression, select both Enable deduplication and Enable data compression.
1.4 Application Scenarios shows the scenarios where you are advised to enable SmartDedupe or SmartCompression.
- Click OK.
The system returns to the Create LUN dialog box.
- Click Advanced.
- Confirm that you have created a thin LUN with SmartDedupe and SmartCompression enabled.
- Click OK. The Execution Result dialog box is displayed, indicating that the operation succeeded.
- Click Close.
Follow-up Procedure
- If you have enabled either SmartDedupe or SmartCompression and want to enable the other in follow-up operations, you can modify the settings in the Properties of LUN dialog box.
- Once enabled, to configure policies related to SmartDedupe and SmartCompression, run change lun on the CLI, and use parameters such as bytecomparison_enabled.
For details about how to use the change lun command, see the command reference of the corresponding product model.
- After SmartDedupe and SmartCompression are enabled for a LUN, you cannot run the change lun command to set Write Policy of the LUN to Write Through.
- After SmartDedupe and SmartCompression are enabled for a LUN, you can view redundant data deduplication and data compression information when checking LUN properties. For details, see 3.1 Viewing Information About SmartDedupe and SmartCompression.