Solved

ZFS corrupted data file

Posted on 2014-02-24
4
1,142 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Having issues meeting security compliance criteria because of those pesky USB drives? Then I can help you! This article will explain how to disable USB Mass Storage devices in Windows Server 2008 R2.
Concerto Cloud Services, a provider of fully managed private, public and hybrid cloud solutions, announced today it was named to the 20 Coolest Cloud Infrastructure Vendors Of The 2017 Cloud  (http://www.concertocloud.com/about/in-the-news/2017/02/0…
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

773 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