So, I have a mirrored pool with a corrupted file on it. It was actually just a movie that was copying to the pool via rsync from another server when it was shut down uncleanly, so no big deal I was thinking I'd just delete it. However, as soon as I try to do so, the pool gets suspended, output from system.log below:
- Code: Select all
Aug 17 22:05:35 Mini-i5 sudo[574]: zfsuser : TTY=ttys000 ; PWD=/Users/zfsuser ; USER=root ; COMMAND=/usr/local/bin/zpool status -v
Aug 17 22:05:39 Mini-i5 kernel[0]: Sandbox: mdworker(567) deny(1) mach-lookup com.apple.distributed_notifications@1v3
Aug 17 22:05:58 Mini-i5 sudo[577]: zfsuser : TTY=ttys000 ; PWD=/Users/zisper/Music/iTunes/iTunes Media/Movies/Two Mules for Sister Sara ; USER=root ; COMMAND=/bin/rm -fr deleteme.m4v
Aug 17 22:05:58 Mini-i5 zed[580]: eid=7 class=delay pool=PlayPool
Aug 17 22:05:58 Mini-i5 kernel[0]: SPL: Warning: Pool 'PlayPool' has encountered an uncorrectable I/O failure and has been suspended.
Aug 17 22:05:58 Mini-i5 zed[582]: eid=8 class=delay pool=PlayPool
Aug 17 22:05:58 Mini-i5 zed[584]: eid=9 class=delay pool=PlayPool
Aug 17 22:05:58 Mini-i5 zed[586]: eid=10 class=delay pool=PlayPool
Aug 17 22:05:58 Mini-i5 zed[588]: eid=11 class=data pool=PlayPool
Aug 17 22:05:59 Mini-i5 zed[595]: error: data-notify.sh: eid=11: failed to lock "/var/run/zed.zedlet.state.lock": /etc/zfs/zed.d/zed-functions.sh: line 128: flock: command not found
Aug 17 22:05:59 Mini-i5 zed[608]: error: data-notify.sh: eid=11: failed to unlock "/var/run/zed.zedlet.state.lock": /etc/zfs/zed.d/zed-functions.sh: line 166: flock: command not found
Aug 17 22:05:59 Mini-i5 zed[614]: eid=12 class=io_failure pool=PlayPool
The file wasn't always called "deleteme" by the way, I was just testing if renaming would still work. Any advice on how I go about deleting the file? Should I be concerned that zed is calling flock, which isn't a standard OS X function (and not on my computer)?
Also, if it gets in this state again, is it possible to un-suspend the pool? I can't find a way to cleanly unmount/export/shutdown the machine as it is.