February 21, 20179 yr Is there a recommended way to do this without losing Dockers and their settings? Sent from my SM-N920V using Tapatalk
February 21, 20179 yr Community Expert The fastest way would be to use the btrfs replace cache procedure, it can be done online (as long as you can have both old and new cache connected at the same time) and you don't even need to stop your dockers/VMs. Other option is to used the general replace cache procedure, it will take longer and docker/VMs on cache need to be shutdown, but it's arguably a simpler than the other one.
February 21, 20179 yr Author Cool. One question. My current cache is a pretty slow 1TB drive. I am replacing with a 960GB SSD. So my replacement is smaller. Will the BTRFS replace cache procedure work in this case?
February 21, 20179 yr Community Expert It works, you'll need to resize the current filesystem first but it's easy, see here.
February 21, 20179 yr Author Thanks! I'll check it all out when I get home. Sent from my SM-N920V using Tapatalk
February 23, 20179 yr Author I was able to resize the cache (sdk) to 894gb to match the SSD. I followed the steps to clear the FS on the SSD (sdl). I am unsure of how to start the cache replace. I think I need to add the ssd to the cache pool, but I am unsure. Can you confirm what I do next? Attached my main screen.
February 23, 20179 yr Community Expert Leave it unassigned and use method 1 from this procedure, if replacement is cleared start on step 2. PS: It usually better to make the old disk smaller than the new one, if you still get a "replacement is smaller error" resize again to be smaller than new SSD, you can then resize the new device to max space in the end.
February 23, 20179 yr Author Ok. I ran the btrfs start command and the prompt came right back. I thought it wasn't working but top shows btrfs is doing something. If that's expected it might be worth adding to the FAQ that this part will take a while. I'm letting it run now. Thanks for your help. I will report back. Sent from my SM-N920V using Tapatalk
February 23, 20179 yr Community Expert It's already in the FAQ: On 18/07/2016 at 9:46 AM, johnnie.black said: You can follow the replacement progress by typing: btrfs replace status /mnt/cache When finished you'll get something like this: Started on 30.Dec 13:38:51, finished on 30.Dec 13:48:11, 0 write errs, 0 uncorr. read errs
February 23, 20179 yr Author Haha. Thanks Johnnie. Clearly I need an extra cup of coffee. It's all finished and everything is up and running with the new SSD. Thanks much!!
Archived
This topic is now archived and is closed to further replies.