Can the volume language be changed after creation in ONTAP?
Applies to
- ONTAP 9.7P1 and later
- Cloud backup
- Snapmirror
Answer
- Yes, the volume language can be changed from *.UTF-8 to utf8mb4 in ONTAP 9.7P1 and later.
- Note: This is only possible if the current volume language matches *.UTF-8 (such as en_US.UTF-8 or C.UTF-8) and if the new volume language is utf8mb4.
- Changing the volume language to utf8mb4 provides support for 4-byte, UTF-8 encoded names, and can allow creation and display of names that include Unicode supplementary characters.
- This is non-disruptive as no on-disk conversion takes place.
- Alternatively, create a new utf8mb4 volume and migrate the data over using a file-based copy
- Modifying language of snapmirror (regular and sync snapmirror) source and destination volumes is not allowed
- For more information, see: Unable to change FlexVol language for SnapMirror source
The utf8mb4 language set supports both CIFS and NFS. However, note the following warning:
|
Files created with 4-byte Unicode by NFS clients will still display incorrectly after conversion as the data is stored in the "bag of bits" - the conversion does not scan for the presence of the "bag of bits" and convert that information |
- Before modifying the volume language, confirm the protocols used to access the data on the volume:
::> volume show -vserver <svm_name> -volume <volume_name> -fields security-style
To change the volume language, use the following steps:
- Verify volume language before and after language modification:
vol show -volume <volumename> -fields language
- To change the volume language:
::> set diag::*> volume modify -vserver <vserver> -volume <volume> -language utf8mb4
