SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-24-2011, 03:10 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
How does Sage calculate available disk space?

I have two local drives that I leave 20GB free on each.
I have a network drive that say use only 3300GB.
I'm trying to keep the network drive close to *full* so that Sage will
mostly record on the the local drives.

The problem is I can't figure out what to set the network drive allocation
to. I know I can assign the network drive as a import directory, but I want Sage to be able to record there *if* it really needs the space.

Is there a way to see how close Sage thinks it is to filling each directory? I can see the total space available, but not what's on each drive!

I've tried to calculate it myself but I can't get close to reconciling the numbers. For instance.. If I go with 1000^3 I'm already at my allotment for the network drive. but then my other two local drives don't add up to the correct free space.
All the files on my network drive : 3.02 TB (3,323,071,271,772 bytes)
Space available on E: 134GB (143,881,732,096 bytes)
Total space on E: 2,000,396,681,216 bytes
space available on D: 458GB (492,224,905,216 bytes)
Total space on D: 2,000,392,486,912 bytes

Total video disk space as reported by sage: 7019.6GB
Video Disk space used: 6352.0GB
Space available: 674.3GB (includes 6.7GB of partial recording)

Even trying to account for size on disk vs regular size, I can't get there!



Jim
Reply With Quote
  #2  
Old 08-24-2011, 08:18 PM
Savage1701 Savage1701 is offline
Sage Expert
 
Join Date: Apr 2009
Location: Roscoe, IL
Posts: 668
Maybe I'm not getting your question, but are your numbers not adding up because you allow Sage to auto-delete some favorites? I'm thinking "recoverable" disk space in this case.

Any reason you can't set up a logical drive on the physical network drive that Sage can record to or use as an import directory? I assume by import you mean videos and such and not TV shows you record. That would spare you from having to mix your DVD collection in with this week's TV shows, for example, which would be a total pain.

As far as looking at the actual drive yourself, wouldn't your server/NAS report drive space available on its drives either via a remote desktop or browser interface?
__________________
Asus P5Q Premium MB, E6750, 4GB RAM, 32-bit XP Pro SP3, 3Ware 9590SE controller, 80GB 7.2K Laptop boot drive w/SuperSpeed Cache Utility & eBoostr, (1) KWorld ATSC-110, (1) 950Q USB, (1) 2250 tuner, (1) HD-PVR using USB-UIRT, (1) 1600 Dual card, (1) DVICO Fusion 5 Gold, (1) Hauppauge 1250, (1) Hauppauge 2250, 8 various storage HD's, NEC-based x1 USB add-on card, 2 outdoor antennas capturing 2 different OTA markets, Dish Network w/HD Receiver for HD-PVR.

Last edited by Savage1701; 08-24-2011 at 08:28 PM.
Reply With Quote
  #3  
Old 08-24-2011, 08:34 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Quote:
Originally Posted by Savage1701 View Post
Maybe I'm not getting your question, but are your numbers not adding up because you allow Sage to auto-delete some favorites? I'm thinking "recoverable" disk space in this case.
Nope. I don't think that's it.. If it was then I would have TeraBytes of free space...

Quote:
Any reason you can't set up a logical drive on the physical network drive that Sage can record to or use as an import directory?
I dont' want to record onto the network drive.. Only in the case where I wasn't paying attention and the local drives filled up such that the Network drive was the only one with space would I want it to record to the network drive.

I'm just try to figure out how Sage calculates free space and used space!
Reply With Quote
  #4  
Old 08-25-2011, 06:41 AM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by jbuszkie View Post
Nope. I don't think that's it.. If it was then I would have TeraBytes of free space...


I dont' want to record onto the network drive.. Only in the case where I wasn't paying attention and the local drives filled up such that the Network drive was the only one with space would I want it to record to the network drive.

I'm just try to figure out how Sage calculates free space and used space!
You could setup SJQ to move files from your local drives to the network drive if they approach a certain percentage full. Make the network location an import path instead of a recording directory. Then Sage would only record locally but with an SJQ task moving files to the import directory if the local drives get too full you should be able to achieve your goal. The only other thing you might want to do is setup another task for SJQ to delete watched shows from the import folder - or any other criteria you might want to use for this.
Reply With Quote
  #5  
Old 08-25-2011, 08:25 AM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
That could work... But I see it could be a challenging script to write.
I'd have to parse all the files on the drives to see which ones are oldest and pick
x amount to be copied over along with the EDL files and such...

hmm.. Did I really want to learn groovy??



Jim
Reply With Quote
  #6  
Old 08-25-2011, 09:22 AM
Savage1701 Savage1701 is offline
Sage Expert
 
Join Date: Apr 2009
Location: Roscoe, IL
Posts: 668
Quote:
Originally Posted by jbuszkie View Post
Nope. I don't think that's it.. If it was then I would have TeraBytes of free space...


I dont' want to record onto the network drive.. Only in the case where I wasn't paying attention and the local drives filled up such that the Network drive was the only one with space would I want it to record to the network drive.

I'm just try to figure out how Sage calculates free space and used space!
OK, I see what you are asking now. That makes sense. I have done a crude version of that manually once in a while. Writing a script is way beyond me.

Best wishes.
__________________
Asus P5Q Premium MB, E6750, 4GB RAM, 32-bit XP Pro SP3, 3Ware 9590SE controller, 80GB 7.2K Laptop boot drive w/SuperSpeed Cache Utility & eBoostr, (1) KWorld ATSC-110, (1) 950Q USB, (1) 2250 tuner, (1) HD-PVR using USB-UIRT, (1) 1600 Dual card, (1) DVICO Fusion 5 Gold, (1) Hauppauge 1250, (1) Hauppauge 2250, 8 various storage HD's, NEC-based x1 USB add-on card, 2 outdoor antennas capturing 2 different OTA markets, Dish Network w/HD Receiver for HD-PVR.
Reply With Quote
  #7  
Old 08-25-2011, 10:24 AM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by jbuszkie View Post
That could work... But I see it could be a challenging script to write.
I'd have to parse all the files on the drives to see which ones are oldest and pick
x amount to be copied over along with the EDL files and such...

hmm.. Did I really want to learn groovy??



Jim
Actually if you setup the script for archive videos you could have the job just move any that are archived and then in the GUI just archive any shows you want to move periodically. If after moving you don't want them to remain archived just change the flag. I believe Slugger has an example of a script to move files already you could just modify it to handle archived only. Just ideas! Actually you could probably setup a specific SJQ task to move the file with Sluggers script and then for each video just assign that task to the video to move it so I don't think it will be as hard as I was suggesting with the archive flag.

Last edited by BobPhoenix; 08-25-2011 at 10:29 AM. Reason: added simplification
Reply With Quote
  #8  
Old 08-25-2011, 12:35 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
You know.. I just may say screw it! I'll put the network drive as an import and
just visually watch how much space I have left! I'll just make sure I manually move some files when I get below a TB or less space remaining!
Reply With Quote
  #9  
Old 08-25-2011, 01:03 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by jbuszkie View Post
You know.. I just may say screw it! I'll put the network drive as an import and
just visually watch how much space I have left! I'll just make sure I manually move some files when I get below a TB or less space remaining!
That's what I'm doing with my servers. Just haven't had time to write/modify a script yet myself.
Reply With Quote
  #10  
Old 08-25-2011, 01:06 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Quote:
Originally Posted by BobPhoenix View Post
That's what I'm doing with my servers. Just haven't had time to write/modify a script yet myself.
When you do write that script let me know! :
Reply With Quote
  #11  
Old 08-25-2011, 01:08 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by jbuszkie View Post
When you do write that script let me know! :
Sure. Currently finishing up a reboot app that could have been done with SJQ as well. Once I have the app done I'm thinking of learning SJQ scripting and converting it.
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
SageTV fails to calculate available disk space e-t172 SageTV Software 13 11-27-2010 09:49 AM
Sage doesn't warn when disk space is low? Chriscic SageTV Software 4 05-18-2009 10:26 AM
Low disk space SageGk SageTV Software 0 12-28-2008 08:03 PM
Sage and UNC - disk free space calculations stevech SageTV Software 1 02-18-2007 02:10 PM
sage and norton system works disk space problem Sailn SageTV Beta Test Software 0 08-25-2003 10:51 AM


All times are GMT -6. The time now is 10:45 PM.


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