Yesterday, I made a dumb mistake, I think - when troubleshooting a problem with the WebUI not showing up after a reboot (something I blame on me horsing around with nginx to run several sites on the same machine, but on a different IP - different story for a different time), I somehow convinced myself that removing /opt/rockstor/.initrock
and running /opt/rockstor/bin/initrock
would be a fine idea, to get things running again. Blame it on lack of caffeine. Once initrock mentioned doing things to the database, I somewhat realised what was happeningā¦
So yeah, now my database is empty. No mention of users, shares, rockons, and while I managed to get the WebUI to function again (or it did that itself, at this point Iām not even sure anymore), it greets me with the āletās get started with creating an admin userā thing.
Letās not.
At this point in time, services are humming along just fine, all the containers are running. Iām now wondering if thereās a spot where a previous backup might be stored (because I know for certain that I did at some point create a backup), and whether I can restore at least the database. Failing that, Iād have to set it up again, preferably with roughly the same setup I had before. Iām sure thatās a lot more workā¦
Also, it might be an idea to have the root fs use snapshots as well, at least for dumb people like me.
For what itās worth: this is a 3-disk, 1-pool, 24-share setup, with about 4 rock-ons running (and some containers outside of Rockstor).
So, where do I start?
tl;dr after getting it solved:
- Donāt clear out your database
- Disks, Pools and Shares are very easy to get back
- It helps if you have a Config Backup, thatāll restore you some settings
- Users, Groups and Samba shares etc take some manual labor
- Really, donāt clear out your databaseā¦