Restoring Apps from old IX-Applications DataSet

dddk500

Cadet
Joined
Dec 17, 2020
Messages
2
Hello all I am new to the Truenas and self hosting world.

Has a noobie I made my first real big mistake. I had truenas pool all setup nicely and all the apps installed that I wanted. I was happily using my server.

Then out of nowhere a power outage on my server caused the pool to no longer be import. Any time I tried to import it with zpool import -f it would cause a kernel panic. This of course made me panic. But I was thankfully able to import the pool as readonly and see that all my data was still intact. My problem was I had a lsi RAID card and I did not now that you need to set the hard drives to JBOD. I put them in a RAID0 like a dummy.

I have now bought 2 new drives and set them to JBOD and made a new pool. I am now in the process of copying over all of my data.

My big question that I can seem to find the answer to is how to easily get my apps back the way I had them configured. I thought it should be easy since they are docker containers and I have all the configs backed up. Hoping someone could help me. I am more interested in my nextcloud setup I put a lot of effort setting it up.

Thank you in advance.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
My problem was I had a lsi RAID card and I did not now that you need to set the hard drives to JBOD. I put them in a RAID0 like a dummy.

I have now bought 2 new drives and set them to JBOD and made a new pool. I am now in the process of copying over all of my data.
I don't think you've finished getting the learning out of that experience yet...

 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
My big question that I can seem to find the answer to is how to easily get my apps back the way I had them configured. I thought it should be easy since they are docker containers and I have all the configs backed up. Hoping someone could help me. I am more interested in my nextcloud setup I put a lot of effort setting it up.
Depending on what you had done on top of the default setup to separate out your data from the container(s), it may be just as easy to set up new apps and point them at the host storage locations as before (I guess you're asking because it's not like that though).

Using zfs send | recv might get you back your data with a lot of risks to anything you've already done in setting it up again on a new pool.

If that doesn't work and you weren't already using the backup script, you should certainly start, but you may be out of luck this time. https://www.truenas.com/community/threads/automatically-update-docker-containers.97526/post-744135
 

dddk500

Cadet
Joined
Dec 17, 2020
Messages
2
I don't think you've finished getting the learning out of that experience yet...

Yes I wish I knew about RAID controllers when picking out the server. It is a supermicro server with a built in LSI RAID controller in the motherboard, so not that fun to replace with a HBA.


Depending on what you had done on top of the default setup to separate out your data from the container(s), it may be just as easy to set up new apps and point them at the host storage locations as before (I guess you're asking because it's not like that though).

Using zfs send | recv might get you back your data with a lot of risks to anything you've already done in setting it up again on a new pool.

If that doesn't work and you weren't already using the backup script, you should certainly start, but you may be out of luck this time. https://www.truenas.com/community/threads/automatically-update-docker-containers.97526/post-744135
I have not tried installing the apps again and pointing them to the storage locations of the old config files. Wanted to see if anyone had any good ideas of what to do first before I mess around with it more.

I wish I setup the backup before it broke, which is what everyone without a backup says. I only had the server setup for almost a week before the issue arose. I was trying to figure out the backup process still, if I knew RAID controllers were unrealibe would have been rushed more to setup the backup solution.
 
Top