[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

ZFS corrupted data file

Posted on 2014-02-24
4
Medium Priority
?
1,251 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
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 Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

649 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