Ok. Forgive the length of this post. I've had my first MAJOR problem.
For the past week or so, I've been ripping/converting my movie collection and uploading them to my NAS. I have a little over 100 of them done. I installed Plex in a jail. And have been enjoying it tremendously. Plex is very nice!!
I set up my schedule for Snapshots and Scrubs. My Snapshots are set up to run at Midnight and at Noon. Everyday and to keep for 2 months. But I must have had my volume scrubs set up wrong because when I run "zpool status" the only one that shows that a scrub has run on is the boot volume. I'm pretty sure I figured out what my problem on that was. I have the scrubs set up to run every 7 days. And the "interval" was set at 7 as well. I changed this to 6. So now they should run. I just haven't hit a 7th day yet. (unfortunately, as you'll see if you read on).
So, for a detailed account of what happened:
The evening before last, I had finished uploading more movies, and I uploaded a few songs as well to see how Plex would handle them. Well, Plex didn't pick the music up at all. And just to be sure they weren't corrupted or anything I played a song on one of my laptops directly from the NAS. It was Bruce Springsteen - Born in the USA. (why this may or may not be important will be seen a little later). The song played fine. So about half way through I stopped it and closed down the media player on my laptop. (I know, I should have listened to the whole song, being such a classic work of art)
I watched a couple episodes of one of the TV series I had uploaded. And everything played fine.
So, last night almost bedtime, I was going to watch another episode or two before heading to bed. However, Plex froze up. It wasn't showing any of it's metadata, like episode synopsis, or cover-art, and would not play anything. Episodes, or Movies. My Plex client is a Samsung DVD player. So I figured it was the problem. So I power cycled it. But still nothing. Well, it was close to bedtime, so I went to bed figuring more alert minds could figure it out in the morning.
So, this morning Plex still wasn't working. So I logged into the NAS with Putty and ran "zpool status -v". And got this:
Code:
[root@freenas] ~# zpool status -v
pool: freenas-boot
state: ONLINE
scan: scrub repaired 0 in 0h0m with 0 errors on Tue Sep 29 03:45:41 2015
config:
NAME STATE READ WRITE CKSUM
freenas-boot ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
gptid/2827406f-5756-11e5-9acf-0cc47a696a76 ONLINE 0 0 0
da1p2 ONLINE 0 0 0
errors: No known data errors
pool: r2d2
state: DEGRADED
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://illumos.org/msg/ZFS-8000-8A
scan: none requested
config:
NAME STATE READ WRITE CKSUM
r2d2 DEGRADED 0 0 46
raidz2-0 DEGRADED 0 0 92
gptid/bf4c456e-6094-11e5-8eb7-0cc47a696a76 DEGRADED 0 0 7 too many errors
gptid/bfc0f8fa-6094-11e5-8eb7-0cc47a696a76 DEGRADED 0 0 2 too many errors
gptid/c0352be5-6094-11e5-8eb7-0cc47a696a76 DEGRADED 0 0 0 too many errors
gptid/c0c03f6c-6094-11e5-8eb7-0cc47a696a76 DEGRADED 0 0 5 too many errors
gptid/c13e984f-6094-11e5-8eb7-0cc47a696a76 DEGRADED 0 0 0 too many errors
gptid/c1bae329-6094-11e5-8eb7-0cc47a696a76 DEGRADED 0 0 0 too many errors
errors: Permanent errors have been detected in the following files:
/mnt/r2d2/media/Music/Bruce Springsteen - Born To Run/08 Jungleland.m4a
/mnt/r2d2/media/Music/Bruce Springsteen - Greatest Hits/08 Born In The U.S.A..m4a
/mnt/r2d2/pluginjails/plexmediaserver_1/usr/lib/libstdc++.so.6
/mnt/r2d2/pluginjails/plexmediaserver_1/etc/mail/submit.cf
/mnt/r2d2/pluginjails/plexmediaserver_1/usr/share/mk/bsd.cpu.mk
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Metadata/Movies/f/e647a24bers/com.plexapp.agents.themoviedb_6a51b5fd15d05471324e4a8c7ef20b323da65ea7
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/15/1
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/d4/d
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/9e/9
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/2c/2
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/45/4
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/f7/f
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/c2/c
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/3e/3
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/b6/b
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Metadata/TV Shows/a/d3d426emes/com.plexapp.agents.plexthememusic_0dbbf6d650fa14caea5145f23ed8dfb4d3ea6401
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/f0/f
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/f8/f
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/6e/6
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/e8/e
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/pkg/vuln.xml
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/d2/d
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/36/3
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/a2/a
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/b0/b
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/d3/d
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/pkg/local.sqlite
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/78/7
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/28/2
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/3e/3
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/38/3
/mnt/r2d2/pluginjails/plexmediaserver_1/etc/mail.rc
/mnt/r2d2/pluginjails/plexmediaserver_1/usr/local/etc/periodic/security/410.pkg-audit
/mnt/r2d2/pluginjails/plexmediaserver_1/etc/syslog.conf
/mnt/r2d2/pluginjails/plexmediaserver_1/var/db/plexdata/Plex Media Server/Cache/PhotoTranscoder/1a/1
One of my worst nightmares!! Not the worst, that would involve waking up looking like a Ken doll. But that is whole other story.
Easy enough fix I figured. Seeing as the "instructions" say to simply -
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
So in the GUI, since I don't know how in the command line (if anyone would care to give those instructions I would love to have them), From what I could understand, the GUI restore from snapshot is only runnable on the last snapshot created. So, I deleted the last 2 snapshots. Since I didn't know exactly when the problem started, I wanted the snapshot from midnight of the night I knew that everything was fine. And clicked the Restore Snapshot button.
After waiting for it to finish, I ran "zpool status" again. And... no change. I didn't reboot or anything, since I didn't know if I should.
Since a scrub has never ran on the volume. I researched(googled) and found how to run one manually from Putty. "zpool scrub
vol". This ran for a little over an hour and then it was time to leave for work. Unfortunately, I had to close Putty down since I had to bring that laptop to the store with me. So I don't know if the scrub finished on it's own. Or even if a scrub is supposed to take that long anyway. Is there hung processes causing the problem? Why is "Born in the USA" listed in the error report?
Any advice out there?
I figured I'd try and reboot, or another manual scrub tonight. If it lets me, I'm going to try and back up all my movies to another external drive I have. Just in case I have to get forceful with it.