Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-72-1573589.1
Update Date:2013-08-28
Keywords:

Solution Type  Problem Resolution Sure

Solution  1573589.1 :   Sun Storage 7000 Unified Storage System: Filenames containing non-ASCII Characters are garbled or incorrect after NFS copy  


Related Items
  • Sun ZFS Storage 7320
  •  
  • Sun Storage 7210 Unified Storage System
  •  
  • Sun Storage 7410 Unified Storage System
  •  
  • Sun ZFS Storage 7420
  •  
  • Sun Storage 7310 Unified Storage System
  •  
  • Sun ZFS Storage 7120
  •  
  • Sun Storage 7110 Unified Storage System
  •  
Related Categories
  • PLA-Support>Sun Systems>DISK>ZFS Storage>SN-DK: 7xxx NAS
  •  




In this Document
Symptoms
Cause
Solution


Created from <SR 3-7226609071>

Applies to:

Sun Storage 7410 Unified Storage System - Version All Versions to All Versions [Release All Releases]
Sun ZFS Storage 7420 - Version All Versions to All Versions [Release All Releases]
Sun ZFS Storage 7320 - Version All Versions to All Versions [Release All Releases]
Sun ZFS Storage 7120 - Version All Versions to All Versions [Release All Releases]
Sun Storage 7210 Unified Storage System - Version All Versions to All Versions [Release All Releases]
7000 Appliance OS (Fishworks)

Symptoms

To discuss this information further with Oracle experts and industry peers, we encourage you to review, join or start a discussion in the My Oracle Support Community - Disk Storage ZFS Storage Appliance Community

Files with non-ASCII characters in their filenames copied via NFS appear to have corrupt filenames.

Example:

[root@zfssa]# ls
:089RV00  Adobe Creative Suite 5.5 Design Premium  :AKSS900  English  Français  :L79RV00  Nederlands  Polski     Svenska   :TK0B800
:0L0B800  Adobe Creative Suite 5_5 Web Premium     Deutsch   Español  Italiano  Magyar    :P79RV00    Português  :T79RV00  Türkçe

  The non-ASCII characters are most commonly found in international names or certain punctuation.

Cause

The ZFS Storage Appliance uses UTF-8 (8-bit Unicode Transformation Format) for directory and file name storage.

By default, the ZFSSA assumes that all file name and directory name data received from NFS clients is already UTF-8 encoded, i.e. using a UTF-8 locale.

In cases where the filenames are encoded with a different method, they will be unreadable in a similar way to the example above.

Solution

1) Use ls or a similar tool to ensure that the client used to copy the files can properly read the filenames. Of course, the client must be able to read the filenames to successfully write them. This step is absolutely critical and commonly missed. Be sure you are specifically checking the data with the extended characters. If the data is not readable, find a client that is using a different encoding method, or work directly from the source where possible.

2) Determine the locale of your client. On Solaris and Linux, use the "locale" command from the shell. If the locale is listed as "C", use ISO8859-1 for the following steps.

Example:

user@client$ locale
LANG="en_US.utf-8"
LC_COLLATE="en_US.utf-8"
LC_CTYPE="en_US.utf-8"
LC_MESSAGES="en_US.utf-8"
LC_MONETARY="en_US.utf-8"
LC_NUMERIC="en_US.utf-8"
LC_TIME="en_US.utf-8"
LC_ALL=

  In this example, since the data is already written in a UTF-8 format, no further configuration or workaround is needed. Assuming this is not the case, proceed to step 3.

3) Navigate to the Shares/Protocols tab. We'll be working with the top section, NFS.

4) Create an NFS exception for the client, and set the "charset" field to match the client encoding. If you have multiple clients with different locales, you may need to repeat this step, while restricting the scope for each set of clients by IP address. If all of your NFS clients use the same encoding, you can skip the exception and define this encoding as the default character encoding at the top of the tab. NFS clients that need to read or write data with non-ASCII filenames will require this setting. Windows clients do not require any configuration.

For detailed instructions on defining NFS exceptions, see this section of the ZFSSA admin guide.

5) Re-migrate the data.

Note: Do not attempt to change the locale setting on the client. This will not work, because the data has already been written using a particular encoding, and this could cause problems reading local data.

 


Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback