[mythtv-users] Mythbackend suddenly deleting everything marked for deletion including unwatched

Stephen P. Villano stephen.p.villano at gmail.com
Sat Feb 1 03:58:43 UTC 2014


On 1/31/14, 10:52 PM, Hika van den Hoven wrote:
> Hoi Mark,
>
> Saturday, February 1, 2014, 4:39:58 AM, you wrote:
>
>
>
>>> On 1 Feb 2014, at 1:58 pm, "Hika van den Hoven" <hikavdh at gmail.com> wrote:
>>>
>>> Hoi R.G.,
>>>
>>> Saturday, February 1, 2014, 4:15:06 AM, you wrote:
>>>
>>>> Were the actual files deleted or only the entries in the database? These
>>>> two manifestations point to entirely different problems.
>>>> If the first, I would suspect the hard drive or controller, possibly caused
>>>> by a power surge. Thge second could also be caused by a power surge, and
>>>> possibly could be fixed by optimize-db.
>>>> But I am guessing here.
>>>> Geoff
>>>> Psvthis *should* come out as bottom boosted, if the setting does what it
>>>> sasys. New toy, my apologies if wrong.
>>>> G
>>>> Sent with AquaMail for Android
>>>> http://www.aqua-mail.com
>>>
>>>> On January 31, 2014 10:03:05 PM Hika van den Hoven <hikavdh at gmail.com> wrote:
>>>>> Hoi Discussion,
>>>>>
>>>>>  Some two hours ago I had the weirdest thing.
>>>>>  I was watching a recording and when it finished it sprang as usual
>>>>>  back to the list (unwatched recordings) and I saw some recordings
>>>>>  marked as unfindable. If had that before and restarting the viewer
>>>>>  solved it. But not this time. All recording not marked to keep where
>>>>>  gone, including a few unwatched and the one I had just watched.
>>>>>  When I realised what had happend I took the backend and the volume
>>>>>  offline. I'm now running an undelete with ext4magic on everything
>>>>>  recorded the last month, which seems to go fine. I only had first to
>>>>>  create space to store the files. The deleted files are some 180 Gb
>>>>>  and what I,m now undeleting is something in between a quarter and a
>>>>>  half of that, but I probably only want to restore the unwatched
>>>>>  ones.
>>>>>
>>>>>  Anybody an idea how this happened and how to restore the recordings
>>>>>  to the database. I could restore the database to last night, but
>>>>>  that leaves today out.
>>>>>
>>>>> --
>>>>> Tot Mails,
>>>>> Hika                          mailto:hikavdh at gmail.com
>>>>> Mijn Mailadres is gewijzigd. Zie hierboven!
>>>>>
>>>>> "Zonder hoop kun je niet leven
>>>>> Zonder leven is er geen hoop
>>>>> Het eeuwige dilemma
>>>>> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>>>>>
>>>>> De lerende Mens
>>>>>
>>>>> _______________________________________________
>>>>> mythtv-users mailing list
>>>>> mythtv-users at mythtv.org
>>>>> http://www.mythtv.org/mailman/listinfo/mythtv-users
>>>
>>>> _______________________________________________
>>>> mythtv-users mailing list
>>>> mythtv-users at mythtv.org
>>>> http://www.mythtv.org/mailman/listinfo/mythtv-users
>>>
>>> They where physically deleted. To me it seems like it suddenly decided
>>> it needed much more space. To me it sounds like it got some wrong
>>> input about either needed space or available space.  Luckily it
>>> stopped at recordings marked to keep. The deleted recordings I hadn't
>>> yet watched are maybe 3, 5 at the most.
>>> I will look into the logs, but haven't had time. I first had to
>>> secure the volume and undelete what I can.
>>> I'm thinking of restoring last nights backup in parallel and copying
>>> the relevant records.
>>>
>> +1 to seeing what hints are in the logs. Would hate to restore the
>> backup from 24hrs ago for it to just do exactly the same thing 24hrs later.
>> I would also secure any recent backups and run a new backup ASAP
>> just to try and keep options available, don't want your best backup
>> to get overwritten by a junk one if your system is set to only keep a couple.
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
> My backups and the backupscript are on the data volume. What is the
> naming of the backupfiles? Among the deleted files there are 18 files
> like "mythconverge_backup-####.pl". where #### is a sequential number.
> I'll undelete them to be sure and I'll move the backupfiles for the
> future elsewhere with the ldap, tdb etc. backups.
> For now the undelete is just past halfway and when that finishes I go
> to bed! I was about to, when it happened.
>
> Tot mails,
>   Hika                            mailto:hikavdh at gmail.com
>
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>
> De lerende Mens
> --
>
> _______________________________________________
>
I'll plead guilty to doing the same, but I have scripts that copy off
said data to a different storage unit.
Just in case the volume dies, then I still have a backup.

As I recall, backups are named by date/time group. Hence, the latest
date/time on a 24 hour scale is the latest.

I'll not go into my own undelete history, we'll suffice it to learn how
it works out for you.
My previous, unintentionally configured version didn't fare so well.
Later versions fared far better, by design and understanding of the
backup method.



More information about the mythtv-users mailing list