Solved

ZFS corrupted data file

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Dell PERC S300 SAS Power Connections 9 42
SSD vs SAS disk for SQL 9 76
M2 drive not showing up 16 63
Cannot access hard drive 7 25
Solid State (Hard) Drives aka SSD began to evolve in the computer industry recently. As the name suggests, there are no moving parts in the drives. The drive uses microchip memory store the data, as opposed to the spinning disks of a traditional HDD…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
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.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now