Solved

ZFS corrupted data file

Posted on 2014-02-24
4
1,160 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
  • 2
  • 2
4 Comments
 
LVL 1

Assisted Solution

by:Reza_a
Reza_a earned 500 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSD mSata 250GB 37 103
esx iscsi connectin creation against multiple hosts 6 58
Regarding Disk IO 3 49
Retrieving files from XP Mode that were saved to an external drive 3 30
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
We look at whether swapping a controller board on a failed hard drive is likely to solve the problem.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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.

733 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