SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-21-2011, 10:53 PM
Fastrack Fastrack is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Toronto, Ontario, Canada
Posts: 268
Send a message via ICQ to Fastrack
Possible to change "Delete" behaviour & Move the file a temp location instead?

Hi,

I'd like to intercept/change the delete behaviour of SageTV. Is this possible to do with a Customization. Or would I be better to install something like Undelete 2009?

I just setup FlexRaid
Forum: http://forum.flexraid.com/

It's "Snapshot" Raid6. I have 5 Data Drives (Normal NTFS drives) and 2 drives for Parity. Any 2 drives in the array can fail. The "Snapshot" is taken each night at 12:15am. It takes around 45 minutes to build the parity.

By the nature of the beast ANY file deleted can affect the recover of files on other drives - as each file is used to rebuild others.

I know the responses will be "well don't delete a show", but that becomes a pain to clean up. So I'd like to move them out - and I'll purge them via a script on a nightly basis.
__________________
Ben
Intel Core2Duo E6600 2.4GHz - Win7 64bit
Antenna: Homemade Gray-Hoverman DBGH, Channel Master 7777 pre-amp, Mid-60s CM Rotor
Tuners: HDHomeRun v1, Hauppauge HVR1600
Video: BenQ W5000 1080p, ASUS ATI 6670
Storage (10TB): Seagate 2TB, Hitachi Coolspin 2TB x 4 Data Drives + 2TB x 2 Parity Drives using FlexRaid 2.0 (RAID6 T2+)
SageTV: 7.1.9 Final ?
Reply With Quote
  #2  
Old 10-22-2011, 01:52 AM
will will is offline
Sage Fanatic
 
Join Date: Jul 2009
Location: New York
Posts: 798
I have never used FlexRaid but have you ever considered going to a more traditional RAID setup? I'm currently running RAID 5s (soon to be migrated live to a RAID 10 and 6) with a traditional hardware-based card. The stripping is done at the block level in real time.

Not knowing much about FlexRaid it seems risky that a file deletion on a RAID array can cause you to lose data with a hard drive failure.
__________________
Will

OS: Windows 7
Hardware: Intel Core i7-920 with 12GB RAM & an Adaptec 5805 with a Chenbro 36-port SAS Expander
Case: Antec 1200 with 4 iStarUSA trayless hot-swap cages (20 drives max)
Drives: 8 Toshiba/Hitachi 2TB drives in a RAID 6 & 7 Toshiba 3TB drives in a RAID 6
Capture Cards: HDHomeRun Connect Quatro 4, Hauppauge 60 HD-PVR
Players: 5 HD300s, 2 HD200s
Reply With Quote
  #3  
Old 10-22-2011, 02:21 AM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
Quote:
Originally Posted by Fastrack View Post
By the nature of the beast ANY file deleted can affect the recover of files on other drives - as each file is used to rebuild others.
That seems silly... There are plenty of temp files that gets deleted all the time, which would make it useless if it actually worked like that...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #4  
Old 10-22-2011, 07:42 AM
Fastrack Fastrack is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Toronto, Ontario, Canada
Posts: 268
Send a message via ICQ to Fastrack
Quote:
Originally Posted by will View Post
I have never used FlexRaid but have you ever considered going to a more traditional RAID setup? I'm currently running RAID 5s (soon to be migrated live to a RAID 10 and 6) with a traditional hardware-based card. The stripping is done at the block level in real time.

Not knowing much about FlexRaid it seems risky that a file deletion on a RAID array can cause you to lose data with a hard drive failure.
Yes I have I spent a ton of cash on a 3ware 9500s-12 about 4 years ago when I first got SageTV. And unless I spend the $$$ on enterprise drives, the standard desktop drives do not cut it they time out making the array degraded. It's just not worth the frustration. So I came across this, there's also SnapRaid (open source) or Unraid (linux) which all work about the same.

Quote:
Originally Posted by Fonceur View Post
That seems silly... There are plenty of temp files that gets deleted all the time, which would make it useless if it actually worked like that...
Part of FlexRaid is "Storage Pooling", which protects against deletes etc.. But I did not want to go with it because of the overhead (as I have an older CPU etc...)

All the drives are standard format so if something happens to 3 drives ALL the data is still there. The tech is very good. But has a few drawbacks in the configuration I'm using it in.

I do not have C: or the SageTV directory monitored so most of the files are static on these drives, except for deleted Shows. There is an UNDO feature which I have enabled, so if there are 24GB of changes it writes out 24GB of undo information. SO if the parity build process fails it will back it all out.

I thought about Intel Matrix Storage (which is Software Raid) with 2 RAID 5 arrays' but if 2 drives were to fail all data on that array would be lost. Raid 6 Hardware is a good path, but of course then if you have a failure your left buying another controller card of the same brand. With this system you can put the drives in ANY Pc.
__________________
Ben
Intel Core2Duo E6600 2.4GHz - Win7 64bit
Antenna: Homemade Gray-Hoverman DBGH, Channel Master 7777 pre-amp, Mid-60s CM Rotor
Tuners: HDHomeRun v1, Hauppauge HVR1600
Video: BenQ W5000 1080p, ASUS ATI 6670
Storage (10TB): Seagate 2TB, Hitachi Coolspin 2TB x 4 Data Drives + 2TB x 2 Parity Drives using FlexRaid 2.0 (RAID6 T2+)
SageTV: 7.1.9 Final ?

Last edited by Fastrack; 10-22-2011 at 07:56 AM.
Reply With Quote
  #5  
Old 10-22-2011, 08:01 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by Fastrack View Post
I'd like to intercept/change the delete behaviour of SageTV. Is this possible to do with a Customization. Or would I be better to install something like Undelete 2009?
It's mostly possible, but tedious and not fool proof. Sage fires off an event after a MediaFile is deleted so the plugin would have to modify the UI to intercept all of the places where a show is deleted and then move it instead of deleting it. This would not take care of the situation where Sage automatically deletes a show to make room for the next recording.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #6  
Old 10-22-2011, 08:03 AM
Fastrack Fastrack is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Toronto, Ontario, Canada
Posts: 268
Send a message via ICQ to Fastrack
Quote:
Originally Posted by tmiranda View Post
It's mostly possible, but tedious and not fool proof. Sage fires off an event after a MediaFile is deleted so the plugin would have to modify the UI to intercept all of the places where a show is deleted and then move it instead of deleting it. This would not take care of the situation where Sage automatically deletes a show to make room for the next recording.
Thanks that's the response I was looking for. I guess I'll look at Undelete 2009 I've tested it on a another machine and it's quite good. I have not tested it with large media files though.
__________________
Ben
Intel Core2Duo E6600 2.4GHz - Win7 64bit
Antenna: Homemade Gray-Hoverman DBGH, Channel Master 7777 pre-amp, Mid-60s CM Rotor
Tuners: HDHomeRun v1, Hauppauge HVR1600
Video: BenQ W5000 1080p, ASUS ATI 6670
Storage (10TB): Seagate 2TB, Hitachi Coolspin 2TB x 4 Data Drives + 2TB x 2 Parity Drives using FlexRaid 2.0 (RAID6 T2+)
SageTV: 7.1.9 Final ?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Save Downloaded File" save location robind SageTV Software 1 05-31-2011 06:21 AM
Can I move "watched" info? fabiotv SageTV Software 2 08-03-2009 08:00 PM
"Set defaults" for Series forgets "Keep"/"Auto-delete" setting maxpower SageMC Custom Interface 9 05-14-2008 09:44 PM
Video "Watched" Behaviour malbec SageTV Software 1 06-14-2006 12:51 PM
How can I prevent/delete Imported files listed in the "Search for Programs to Record" ke6guj SageTV Beta Test Software 4 10-10-2005 01:52 PM


All times are GMT -6. The time now is 03:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.