Network and Storage Protocols

NFSv3 vs. CIFS - Unicode filenames getting mangled

bepresseditor
7,032 Views

On our Data ONTap 7.3.3 box we're having issues.

For example a file created via CIFS named
"Delta δ Δ - XP CIFS.txt"
becomes
":KV7R100" on the nfs mount.
NFSv3 originated file
"Delta δ Δ - Ubuntu.txt"
shows up on SMB with substitution character 0094:
"Delta δ Î ” ␚  - Ubuntu.txt"
The settings on the volume are as follows:
Name:
cabinet_main

Type:
Flexible
Root Volume?
-
FlexClone ?
-
Containing Aggregate:
aggr0
Status:
online,raid_dp

Used Capacity:
42.6 GB
Space Guarantee
volume
% Used:
35%
Language:
C
Total Capacity:
120 GB
Total Size:
150 GB
Number of Files:
98.3 k
Max Directory Size:
8.96 MB
Max Files:
4.67 m

SNAP Mirror?
-
SNAP Directory?
/na_admin/images/check12x12white.gif
SNAP?
/na_admin/images/check12x12white.gif
Resync SNAP Time:
60
SVO Enable?
-
SVO Checksum?
-
Allow SVO RMAN?
-
SVO Reject Errors?
-
Create Unicode?
/na_admin/images/check12x12white.gif
Convert Unicode?
/na_admin/images/check12x12white.gif
Minimal Read Ahead?
-
NV Fail?
-
Fractional Reserve :
100
Extent?
-
FS Size Fixed?
-
Update Access time?
/na_admin/images/check12x12white.gif
I2P?
/na_admin/images/check12x12white.gif
Ignore Inconsistent??
-
Can anyone shed insight into this issue?
1 ACCEPTED SOLUTION

aborzenkov
7,032 Views

You probably want to set language to C.UTF-8 instead of plain C. File names that have been created before will remain mangled though.

View solution in original post

8 REPLIES 8

reena
7,032 Views

Do you have the volume options “convert_ucode” and “create_ucode” turned on ?

Reena

bepresseditor
7,032 Views

Reena: please look above under the checkboxes for "Create Uncode?" and "Convert Unicode?"

reena
7,032 Views

Try to turn these options ON for that specific volume, where the files have been created from the Linux client. CIFS would freak out, if these options are not turned on.

Reena

bepresseditor
7,032 Views

Please look above.

The options are on.

Were on.

Always were on.

I  can't turn them on when they are already... on.

reena
7,032 Views

I’m sorry, the screenshot actually doesn’t show it, that’s why I asked.

Reena

bepresseditor
7,032 Views

Look below the screenshot at:

Create Unicode?
/na_admin/images/check12x12white.gif
Convert Unicode?
/na_admin/images/check12x12white.gif

aborzenkov
7,033 Views

You probably want to set language to C.UTF-8 instead of plain C. File names that have been created before will remain mangled though.

bepresseditor
7,032 Views

That was it.  Apparently there are three unicode controls on a NetApp filer, only two of which can be changed from the web interface on an existing volume. And you have to reboot the filer after changing the language!

The C.utf8 language worked to keep both our CIFS and NFS clients happily in Unicode filenames.  Thanks.

Data ONTAP 7.3 Storage Management Guide (210-04122_A0)

Protocols in useVolume language
NFS Classic (v2 or v3) onlyLanguage setting does not matter
NFS Classic (v2 or v3) and CIFSLanguage of the clients
NFS v4, with or without CIFScl_lang.UTF-8, where cl_lang is the language of the clients.
Note: If you use NFS v4, all NFS Classic clients must be configured to present file names using UTF-8.
Public