<div dir="ltr">It's a ST5000DM000.  I believe it is a <span style="font-size:12.8px">shingled drive.  I'm actually surprised at how often it does just fine.  I've got the Recording Pending touch script enabled now.  We will see if that helps.  If not I have other options.</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 10, 2018 at 4:30 PM, Stephen Worthington <span dir="ltr"><<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, 10 Jan 2018 11:04:11 -0800, you wrote:<br>
<br>
>Hi<br>
><br>
>I have a very slow drive and I allow it to spin down.  One of those drives<br>
>that are best used only for archiving.  Normally its fine for recordings,<br>
>but sometimes I get failed recording because, I theorize, that I have a<br>
>buffer overflow when the drive needs to spin up AND I have multiple<br>
>recordings starting at the same time.  My recording are coming from an<br>
>HDHomerun in h264.<br>
><br>
>Is there a pre-recording script that can fire, say, 1-minute before a<br>
>recording is scheduled?  All I want it to do is touch a dummy file in the<br>
>recording directory.  I only have 1 recording directory so I don't even<br>
>need to think about which dir/drive needs to be touched.<br>
><br>
>Thanks for the help<br>
<br>
</div></div>Exactly what sort of drive is it?  If it is shingled drive, like the<br>
Seagate ST8000AS0002 8 Tbyte archive drives I use for my archiving,<br>
then spin up is not the only problem.  Shingled drives have to stop<br>
writing every so often in order to re-write tracks that get<br>
overwritten.  So they stop accepting write commands from the system<br>
for considerable periods of time (many seconds).  The time involved is<br>
way longer than the mythbackend and system buffers can cope with, so<br>
such drives can not be used for recording.<br>
<br>
How many recordings do you have starting at the same time?  When a<br>
recording starts, there is significant disk activity where the heads<br>
have to move back and forth to the system areas of the disk in order<br>
to set up the directory entries and space allocation for the files<br>
being opened.  Head movement takes a long time, and too much of it<br>
happening at once will mean that the heads do not get back to the<br>
correct location to write the next block of data for a recording<br>
before the buffers overflow.  If the problem is only at startup of<br>
multiple recordings, then you can manually fix that by telling one or<br>
more of the recordings to start early.  So if you are starting three<br>
recordings at the same time, you would set up override rules to start<br>
one recording two minutes early,one recording one minute early, and<br>
one recording would be left to start at the normal time.<br>
<br>
However, while recording, if you are recording to three files at once,<br>
the heads will be continually moving between the files.  There may be<br>
enough time for that most of the time, but when more space needs to be<br>
allocated for one of the files, the heads will then need to move to<br>
the system areas as well and that may cause a buffer overflow and loss<br>
of data in the middle of one or more of the recordings.<br>
<br>
As a rule of thumb, with modern hard drives, I would not want to have<br>
more than three recordings happening at once, and I have my system set<br>
up with enough recording drives (7) so that I have no more  than two<br>
recordings at once on any one drive.<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/<wbr>mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/<wbr>Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</div></div></blockquote></div><br></div>