|
SageTV for unRAID/Docker Discussion related to SageTV for unRAID/Docker. Questions, issues, problems, suggestions, etc. relating to SageTV for unRAID/Docker should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Anyone have any advice on replacing cache drive?
I have been using unRAID for about 2.5 years and I haven't done much to my system recently so I have fallen out of practice.
I am using a SSD as my cache drive and it appears to be failing as it keeps giving me warnings that "raw read error rate (failing now) is 35160" So I want to replace this drive with another. There are instructions for replacing your cache drive here: https://wiki.unraid.net/Replace_A_Cache_Drive But they are convoluted as they involve removing everything from your cache drive to your array and then moving back to a new cache drive. Isn't there a way to install a new cache drive and move all files from old cache to new cache? Either way - once I install the new cache drive and transfer all of the files should SageTV automatically restart and have everything running correctly from the new cache drive without having to do anything special configuration-wise?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#2
|
||||
|
||||
Quote:
on many systems (mine included) the cache drive is not a normal drive in the array. It's a single drive and a process syncs the cache with the actual files in the array. If you install 2 cache drives you can actually make them work like the array where you can simply unplug one and then plug in another, but, most systems are not configured that way. But if you follow the instructions, then yes, once you've done those steps, sagetv will just start and work without any additional configuration. The reason cache disks behave differently is because their use is somewhat hidden from you. ie, when you request a file from a share, 'waynesfiles/filex.mp3' unraid checks the cache and then the array, but, you only ever request the location of the file on the array. So under the hood unraid makes decisions about where that file is located (cache or not). Because of that, files are duplicated on the cache drive and on the array, and because of that, when changing the cache drive, you want to make sure unraid simply isn't using the cache at all, then replace it, and then tell unraid to start using it again.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
|||
|
|||
I think I am using the Cache drives in a similar manner to you - the only thing on my Cache drive is appdata, VMs (under the system folder), domains and an isos folder.
My settings are: Code:
Share Use Cache? Comment system Prefer Dockers and libvirt.img appdata Only All appdata folders domains Prefer VMs? One other question - it looks my dockers have only been allocated 20GB of space. How do I allocate more? My cache drive is a 240GB drive and I never have used more than half of it. Is there anything else I should have on my cache drive?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#4
|
||||
|
||||
I think for docker, if you stop/disable docker (in Settings -> Docker) you should be able to set a new (larger) size. I have mine set to 50g and I run 12 docker instances and I still have lots of space. Keep in mind the appdata is NOT stored in this 50g. This 50g is just for the container system and application files. Keep in mind that while you can easily make the drive larger you cannot shrink it, so I would avoid going 100mb, and just bump it it up a little at a time. I have a 50g docker.img and only using 20g right now.
To use the mover you need to stop all docker and VMs. (I think they mention that in their instructions). In terms of what is right/wrong for the cache drive. That's entirely up to you. eg, I don't use cache drive for appdata. I thought about doing this, but, I've never needed to. I do have my 'sagemedia' share set to use cache 'yes'. I do this so that when recording multiple streams and watching streams the load is basically spread across multiple drives. ie, if I'm recording, I'm likely watching stuff that was recorded on the prev night, so reading the files is coming from the array, but the newly recorded files are put on the cache and then moved later (automatically). But again, there is not real right or wrong way to use the cache. It exists as a means for your to tune your system to get better performance.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#5
|
||||
|
||||
I should clarify as statement that I made in my first post. I said that I have a single cache drive, but, I actually have 2 ssd cache drives, and I did that for redundancy as well. So in my setup, if one drive failed, I could replace it easily. The cache pool uses brtfs (which I think helps with this and the fact that I'm using 2 drives that are not the same size).
Side note.. I had to replace a data drive in my array a few months back and I simply unplugged the dead drive and replaced it. I just told unRAID to use it, and it took it over and started to use it. No data loss and minimal downtime. I also added another 3TB drive a couple weeks to get more storage. So, for me, unRAID is already doing what it should do
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#6
|
|||
|
|||
Yes, if you are just replacing a single drive in a multi drive cache, then just replace it and it will rebuild. Better to run mover first, though.
|
#7
|
|||
|
|||
Wayner, when doing anything to my unraid server step 1 for me is to check if the "SpaceInvader One" guy has a youtube video up. In your case, you're in luck ("How to replace your cache drive"):
https://www.youtube.com/watch?v=ij8A...ndex=31&t=275s
__________________
Server hardware: i7-7700@3.6GHz, ASUSTek Prime H270 Pro, R5 case, 32GB, 2x250GB M.2 SSD cache (raid1), 12TB pool, HDHR Dual Tuner, HDHR Extend, CM 4221/7778 Server software: unRAID 6.9.2, SageTV v9, SageMC (high WAF), SD EPG, dockers (SageTV, Plex, Emby, Unifi Controller, Sonarr, OpenVPN, DelugeVPN, Logitech Media Center, etc.), VMs Clients: 3 x HD300, Placeshifters, 4 x FireStick4K+Android Miniclient, iOS devices+Plex |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Replacing main drive via cloning | Cabalsan | SageTV Software | 4 | 01-14-2011 03:44 PM |
Advice on HD200 and Replacing Cable Boxes | will | SageTV Media Extender | 14 | 07-23-2009 04:27 AM |
Hard Drive cache size? | CoolTechNY | Hardware Support | 5 | 11-05-2008 07:18 PM |
Question on replacing recording drive | Fountainhead | SageTV Software | 2 | 01-12-2007 09:15 PM |
11/30 ONLY Hitachi 160GB 8MB Cache Hard Drive $40 | Worf | The SageTV Community | 1 | 11-30-2004 01:49 PM |