?
Solved

ZFS corrupted data file

Posted on 2014-02-24
4
Medium Priority
?
1,213 Views
Last Modified: 2014-03-10
I have a FreeNAS server with a hard disk that has a corrupted file. Here's the result of a zpool status -v:

  pool: OTHER_BACKUPS
 state: ONLINE
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
   see: http://www.sun.com/msg/ZFS-8000-8A
  scan: scrub repaired 0 in 11h34m with 3 errors on Sun Jan 19 11:34:47 2014
config:

        NAME                                          STATE     READ WRITE CKSUM
        OTHER_BACKUPS                                 ONLINE       0     0 2.08M
          gptid/b8989373-xxxx-xxxx-xxxx-xxxxxxxxxxxx  ONLINE       0     0 4.16M

errors: Permanent errors have been detected in the following files:

        /mnt/OTHER_BACKUPS/SOMEFOLDER/Somefolder/somefile.vmdk

Open in new window


Now, the "somefile.vmdk" is a virtual hard disk for vmware. I'm sure that a few bytes of it are probably corrupted, but overall this won't really affect the integrity of the file for me. The worst case scenario is that a few small files on the NTFS file system inside that vmdk are corrupted.

I don't want to delete the whole file and I don't have a backup of it.

Is there any way to just tell zfs to flag the file as "good", and carry on?
0
Comment
Question by:Frosty555
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 1

Assisted Solution

by:Reza_a
Reza_a earned 2000 total points
ID: 39884291
You might be able to copy the file to another location and then delete the original one.

or use "zpool clear " to clear the status of the pool.
0
 
LVL 31

Accepted Solution

by:
Frosty555 earned 0 total points
ID: 39886346
I think I might SOL here... the file is 2TB big and can't really fit anywhere else, and zpool clear isn't doing it.

All of the reading I've done the answer is basically "you can't", and that I should have had two disks in a mirror, or at the very least enabled copies in ZFS.

But I'll hold the question open for a little while in case anyone has any new ideas...
0
 
LVL 1

Expert Comment

by:Reza_a
ID: 39891074
You can leave it and use the file as is until you get a chance to copy it to new disk or somewhere else. You will just have error on your zpool status.
0
 
LVL 31

Author Closing Comment

by:Frosty555
ID: 39917006
I was unable to copy the file in this case
0

Featured Post

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
The question appears often enough, how do I transfer my data from my old server to the new server while preserving file shares, share permissions, and NTFS permisions.  Here are my tips for handling such a transfer.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question