Set V2 to Record to U4 HDD

Moderators: Gully, peteru

Post Reply
User avatar
Mork
Master
Posts: 376
Joined: Mon May 28, 2007 21:52
Location: Melbourne DP-S1, DP-Lite, U4 and V2

Set V2 to Record to U4 HDD

Post by Mork » Sat Jul 11, 2020 16:03

My last DP Series (DP-Lite) is getting unstable, I am sure it is probably just old electrolytics, but I thought I would upgrade to a V2, so have just ordered one (Triple Tuner, no HDD). My attention now turns to the V2. (I have a U4 in our main room)

I have a spare 500GB SDD that I could task to the V2, but I have seen a couple of posts that mention that recordings can go to a U4. So my thinking was to use a spare 32GB SD-Card for TimeShift, and send all recordings to the U4. (I have a wired GigE Network)

So some questions:
1. Is that possible?
2. Does it work reliably?
3. Any issues playing recordings made on the U4?

Looking forward to my new toy coming next week!
Back to the Forum with a new V2. (RIP my ever trusty DP-S1 and DP-Lite) :D

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: Set V2 to Record to U4 HDD

Post by MrQuade » Sat Jul 11, 2020 16:22

No issues with that setup at all. It's a great way to go, and both V2 and U4 will be able to play both sets of recordings.

As long as the U4 is always on our in standby, v or otherwise available on the network, the V2 will happily use it as storage.

Just try not to record three same thing on both boxes to the same directory at once. You could end up with both of them trying to create the same file at once. Not sure if the firmware can account for and compensate for that situation.
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

Paul_oz53
Wizard
Posts: 2789
Joined: Sat Jun 13, 2009 02:34
Location: Melbourne

Re: Set V2 to Record to U4 HDD

Post by Paul_oz53 » Sat Jul 11, 2020 17:07

MrQuade wrote:
Sat Jul 11, 2020 16:22
No issues with that setup at all. It's a great way to go, and both V2 and U4 will be able to play both sets of recordings.

...
Just try not to record the same thing on both boxes to the same directory at once. You could end up with both of them trying to create the same file at once. Not sure if the firmware can account for and compensate for that situation.

To avoid this problem you could set a greater prepadding on one machine (assuming you use standard or long filenames) to ensure that the filenames are actually different.
__________________________________
Paul
Beyonwiz T4, 2 x U4: FW - 19.3 20211010
Samsung QA85Q80BAWXXY 4K TV
Samsung QA65Q80TAWXXY 4K TV
Samsung HW Q800BXY soundbar
OverlayHD 1.70, IceTV, Foxtel IQ4
2 x Win7 PCs, 2 x Win10 PCs
Denon AVR -X2400H

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Set V2 to Record to U4 HDD

Post by Grumpy_Geoff » Sat Jul 11, 2020 18:21

Paul_oz53 wrote:
Sat Jul 11, 2020 17:07
MrQuade wrote:
Sat Jul 11, 2020 16:22
No issues with that setup at all. It's a great way to go, and both V2 and U4 will be able to play both sets of recordings.

...
Just try not to record the same thing on both boxes to the same directory at once. You could end up with both of them trying to create the same file at once. Not sure if the firmware can account for and compensate for that situation.

To avoid this problem you could set a greater prepadding on one machine (assuming you use standard or long filenames) to ensure that the filenames are actually different.

Or perhaps set the default recording location on the V2 to be a "V2" sub-directory on the U4's disk.

prl
Wizard God
Posts: 32705
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Set V2 to Record to U4 HDD

Post by prl » Sat Jul 11, 2020 19:15

Paul_oz53 wrote:
Sat Jul 11, 2020 17:07
MrQuade wrote:
Sat Jul 11, 2020 16:22
Just try not to record the same thing on both boxes to the same directory at once. You could end up with both of them trying to create the same file at once. Not sure if the firmware can account for and compensate for that situation.

To avoid this problem you could set a greater prepadding on one machine (assuming you use standard or long filenames) to ensure that the filenames are actually different.

The system should make sure that the filenames are different even if they have the same program name, channel name and timestamp part (this is essential if the user chooses "short" recording name format - that only has a date timestamp, and no part of the filename contains the time of day).

The filename generation should not have any race conditions, because this part of recording creation is sequential, even for timers that start at the same time.

For those interested, the recording system puts a _NN just before the filename extensions for files after the first one with that base name: i.e. _00 is never added. It's handled in getRecordingFilename() in Tools/Directories.py.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Paul_oz53
Wizard
Posts: 2789
Joined: Sat Jun 13, 2009 02:34
Location: Melbourne

Re: Set V2 to Record to U4 HDD

Post by Paul_oz53 » Sat Jul 11, 2020 19:26

prl wrote:
Sat Jul 11, 2020 19:15
Paul_oz53 wrote:
Sat Jul 11, 2020 17:07
MrQuade wrote:
Sat Jul 11, 2020 16:22
Just try not to record the same thing on both boxes to the same directory at once. You could end up with both of them trying to create the same file at once. Not sure if the firmware can account for and compensate for that situation.

To avoid this problem you could set a greater prepadding on one machine (assuming you use standard or long filenames) to ensure that the filenames are actually different.

The system should make sure that the filenames are different even if they have the same program name, channel name and timestamp part (this is essential if the user chooses "short" recording name format - that only has a date timestamp, and no part of the filename contains the time of day).

The filename generation should not have any race conditions, because this part of recording creation is sequential, even for timers that start at the same time.

For those interested, the recording system puts a _NN just before the filename extensions for files after the first one with that base name: i.e. _00 is never added. It's handled in getRecordingFilename() in Tools/Directories.py.
I understand this to be true if one box is recording the same thing twice but will it be true if two boxes record to the same directory?

Of course, if there is not a critical race condition then the laggard will detect the existing file so I imagine the risk of collision may be too small to be a problem in normal use.
__________________________________
Paul
Beyonwiz T4, 2 x U4: FW - 19.3 20211010
Samsung QA85Q80BAWXXY 4K TV
Samsung QA65Q80TAWXXY 4K TV
Samsung HW Q800BXY soundbar
OverlayHD 1.70, IceTV, Foxtel IQ4
2 x Win7 PCs, 2 x Win10 PCs
Denon AVR -X2400H

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Set V2 to Record to U4 HDD

Post by Grumpy_Geoff » Sat Jul 11, 2020 19:30

prl wrote:
Sat Jul 11, 2020 19:15

The system should make sure that the filenames are different even if they have the same program name, channel name and timestamp part (this is essential if the user chooses "short" recording name format - that only has a date timestamp, and no part of the filename contains the time of day).

The filename generation should not have any race conditions, because this part of recording creation is sequential, even for timers that start at the same time.

But the timers start on different boxes, so is it still "race safe"?
prl wrote:
Sat Jul 11, 2020 19:15
For those interested, the recording system puts a _NN just before the filename extensions for files after the first one with that base name: i.e. _00 is never added. It's handled in getRecordingFilename() in Tools/Directories.py.

It's 3 digits in my experience, not that we're pedantic at all on this forum :lol:

User avatar
Mork
Master
Posts: 376
Joined: Mon May 28, 2007 21:52
Location: Melbourne DP-S1, DP-Lite, U4 and V2

Re: Set V2 to Record to U4 HDD

Post by Mork » Sun Jul 12, 2020 13:23

Thanks everyone. It's great to be back in this forum and see so much help being offered.

I was going to set up the pre padding differently as a potential mitigation for a race condition anyway.

When I get the box and set all this up I will test out a few use cases and report back with any problems.

Although technically this will be a 7 tuner setup. (From the perspective of the U4's HDD) I wont try to see how 7 recordings and 1 time shift stress the HDD, there is just never that much worthwhile recording on FTA now anyway. :D
Back to the Forum with a new V2. (RIP my ever trusty DP-S1 and DP-Lite) :D

Paul_oz53
Wizard
Posts: 2789
Joined: Sat Jun 13, 2009 02:34
Location: Melbourne

Re: Set V2 to Record to U4 HDD

Post by Paul_oz53 » Sun Jul 12, 2020 13:52

Mork wrote:
Sun Jul 12, 2020 13:23
...

Although technically this will be a 7 tuner setup. (From the perspective of the U4's HDD) I wont try to see how 7 recordings and 1 time shift stress the HDD, there is just never that much worthwhile recording on FTA now anyway. :D
I predict this will not be a problem - I have recorded 12 services to my U4 with no problems so 7+1 shouldn't be an issue. 😃
__________________________________
Paul
Beyonwiz T4, 2 x U4: FW - 19.3 20211010
Samsung QA85Q80BAWXXY 4K TV
Samsung QA65Q80TAWXXY 4K TV
Samsung HW Q800BXY soundbar
OverlayHD 1.70, IceTV, Foxtel IQ4
2 x Win7 PCs, 2 x Win10 PCs
Denon AVR -X2400H

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: Set V2 to Record to U4 HDD

Post by MrQuade » Sun Jul 12, 2020 13:58

One other thing you can do is set up the"other" wiz as a fallback tuner.

That way, if either one runs out of tuners, it can use the network connection to the other wiz and borrow one of its tuners.
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

prl
Wizard God
Posts: 32705
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Set V2 to Record to U4 HDD

Post by prl » Sun Jul 12, 2020 14:49

Grumpy_Geoff wrote:
Sat Jul 11, 2020 19:30
prl wrote:
Sat Jul 11, 2020 19:15

The system should make sure that the filenames are different even if they have the same program name, channel name and timestamp part (this is essential if the user chooses "short" recording name format - that only has a date timestamp, and no part of the filename contains the time of day).

The filename generation should not have any race conditions, because this part of recording creation is sequential, even for timers that start at the same time.

But the timers start on different boxes, so is it still "race safe"?

No, it's not. Brain not engaged before fingers applied to keyboard.

Tweaking the pre-padding will help with this, but if AutoTimers are used, they may adjust the start times so that if a program that is scheduled to start at 8:00 actually starts at 8:01, then that may interfere with another timer with the same scheduled start time and one-minute different padding and actually starting at 8:00. IceTV timers should work OK wit a small tweak to the padding, because the IceTV EPG (and timers) are always rounded to an even multiple of 5 minutes.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Post Reply

Return to “General Topics V2”