INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

tesxt files becoming data files

tesxt files becoming data files

(OP)
I have text files that reside on a NAS drive that are text files. Over the past couple of months, three of the files are now data files. They are shared on three different servers and today when I noticed another file has converted, if I look at the same file on another server it is still text. Running a file on it, I get data on one server and text on another server. The magic file on both servers is identical.

Any suggestions?

Thanks,

Blue Dragon

If I wasn't Blue, I would just be a Dragon...

RE: tesxt files becoming data files

I don't understand, text is data. What exactly do you mean? Can you give an example?

RE: tesxt files becoming data files

(OP)
sorry, binary/exe type file. If you cat it, it comes back like cat'ing an executable.

Blue Dragon

If I wasn't Blue, I would just be a Dragon...

RE: tesxt files becoming data files

Since it still looks like text from at least one server, I assume the file isn't actually being changed. Confirm this with the file modification date/time.

Try running cksum on the file from each system. This gives a checksum of the contents of the file. This will let you know if the file is actually the same, or different.

If the cksum command shows the same numbers, then it's how the file is being interpreted or displayed that's different.

I would first start by looking at mount options. Maybe the filesystem is being mounted on one system in a way that the file isn't being seen properly.

Check the file with cat's "-vet" options (man cat). This will show unprintable characters. It's possible your terminal/session settings on one system cause binary characters to be displayed on one system, but ignored on another.

Check the file with od on both systems. Again, this will show you what's really in the file. This will let you know if the difference is a real difference between systems, or that they are just displaying differently.

Last would check for differences in your sessions' stty settings, terminal program settings (putty?), environment settings, and anything else that could be affecting how the terminal program is interpreting characters. cat just throws the file to the attached terminal. Differences in terminal settings can change how that file is displayed.

Have you tried making a local copy of the file and checking it?

RE: tesxt files becoming data files

(OP)
Overview of setup: Sunray DTU session. Using terminal console to ssh to two different servers. The file resides on a NAS mount that has the same mount parameters on both servers.

I have a copy of the original file on another server that is not on a NAS mount and it is still text.

Some results of your comments (which are greatly appreciated):

cat -vet shows normal for copied test file and shows many ^(various characters/symbols) part way down the file then normal text.

checksum's are different for the files

od is different for the files.

diff will not compare the files.

running file on the copied file results in ascii text and on the actual file shows data.

The second server that the file was still text on (not the copied file) is now data and the same as the first server.

Could the NAS server cause these issues?

Blue Dragon

If I wasn't Blue, I would just be a Dragon...

RE: tesxt files becoming data files

Wow, this is a puzzle.

You say it's happened to three different files. Are these used by an application? Could the app be making changes to the files? Possibly corrupting them?

Do you have other text files on the NAS that are OK? Or is it just specific files?

Do you have any kind of cacheing on those volumes?

Are there any 'events' that happen between a file being text, and then showing up as binary? For instance, a system with the NAS mounted rebooting, a backup, a batch or report running, an upload of something, or anything that could be stepping on it somehow.

Does the file ever show up correctly as text on all systems? Liek when it's first put there? Or does it display as binary from the get-go on some systems?

What are you using as a volume manager for the NAS on Solaris?

RE: tesxt files becoming data files

(OP)
Yes, this is a puzzle.

These are application files. The application will append two of them, but the third is a read only for the application. The caveat to that is I have six different deployments of this setup and this is the only one it is happening on.

The NAS is using VERITAS volume management.

Another caveat is I have several systems using this NAS and have not seen anything similar, but this application only uses this slice.

I am having my data center retrieve some point in time backups of these files to see if I can narrow anything down through the logs or whatever I can correlate anything to.

Again, I appreciate your input and suggestions. Thought I would throw it out here to see if anyone had a similar issue.

Blue Dragon

If I wasn't Blue, I would just be a Dragon...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close