(SOLVED) Self destructed config?


Jaster

Recommended Posts

My server crashed. As I tried to boot it back up, I could not. I heared a POST beep and could see the Lan interface beeing used, but the server did not appear on the network.

As it is running headless It took a while to get a screen to the place. Now when I got a picture, I was very suprised.

It was saying "Login to Tower", but i renamed my server. Also the IP was a 169. while it should be a Class C. So I grabbed the Flash and found a newly generated ident.cfg with all the default values.

 

What happened? Can I get my config back?

I attached the last syslog, but It seems quite old.

syslog-20190109-155216.txt

Edited by Jaster
Link to comment

Worst case that syslog has your disk assignments so we could work from there to set it back up. Also found a diagnostic you posted not too long ago we might use to figure out some other bits of your settings. Some of the files in diagnostics are in fact your settings and those files could just be copied.

 

Best to keep a current backup of flash of course. Main - Boot Device - Flash - Flash Backup to download a zipped copy of flash.

Link to comment

From what I see, the ident.fg ist screwed up. That one is easy to fix.

however the disk.cfg looks very different, no idea what to do there.

The network.cfg is there, but its not used I assume as this config could never work on my network.

 

What else do I need to dig into?

Link to comment

 

3 hours ago, Jaster said:

The backup of the flash is on the Raid

Since we know the disk assignments, we could probably get things going well enough to let you get to that backup. Try this:

  1. Prepare flash as a new install.
  2. Put your license .key file in the config folder and boot up.
  3. Assign all your array data disks as they were. No need to assign parity. Assuming your backup isn't on cache no need to assign those either.
  4. Start the array and see if you can find your flash backup.
Link to comment

I could get it back from the storage, however libvirt.img was not recoverable, but thats not a big deal.

Thank you very much for guiding me through that process!

 

I could imagine keeping a config backup ON the flash could be a good idea; as it's usually recoverable through windows and then just restore the latest dump and you are good to go....

 

As I cought your attention... you are not to deep into VMs, right? ;)

Link to comment

I am definitely not deep into VMs. I had a VM in Unraid back before dockers were available, but everything I want to do I can do with dockers so I haven't run any VMs for a few years.

 

On the subject of flash backup though, backing up part of the flash drive to that same flash drive seems like an even worse idea than backing it up to the array. Or maybe I am misunderstanding you.

 

If you are trying to automate the backup using the CA Backup plugin, here are some of ideas.

 

Put the backup on an Unassigned Device that you can read on another computer. This is what I do. I have an external drive formatted as NTFS so it can be read in Windows. I have Unassigned Devices plugin automount it. I use that disk for various things, including as the destination for my flash backup using CA Backup.

 

Other people have Unassigned Devices mount a network share on another computer and that becomes the destination for their flash backup.

 

And as already mentioned, you can

13 hours ago, trurl said:

Main - Boot Device - Flash - Flash Backup to download a zipped copy of flash.

at any time in the webUI.

Link to comment

I like the Idea about the unassigned drive, but the CA Backup only allow one copy of the flash (at least I couldn't find anything to set multiple backups/history).

You are getting me right with putting it on the drive itself; it might sound stupid, but I had a couple of failing falsh drives, however those were never unusable. Usually some config files are damaged, once you put the drive into a windows machen and repair, you can put back the config from a backup on the same drive.

Link to comment
22 minutes ago, Jaster said:

CA Backup only allow one copy of the flash

I think that's probably right. If you want some way to have versioning you are on your own there I guess.

 

One thing I will warn you about with keeping versions of flash though. You must be careful you don't use a backup that has drive assignments different from the current drive assignments. There has been more than one case where a user upgraded their parity disk then reused the old parity as a data disk. Later they tried to use an old backup of flash that still had that old parity (now data) disk assigned as parity, and the data on it was overwritten by parity.

 

One way to avoid this surprise is to edit config/disk.cfg and set startarray to no. Then you can check the assignments to make sure they are correct before starting. Another way is to simply delete config/super.dat and Unraid will make you assign your disks again.

Link to comment

Good point! Just have to keep in mind to reset the backups if you change the the assignments.

Btw: is it save to change the 'drive numbering'. A while ago I was removing some drives and have now kind of spare numbers between the assigned once (like disks 2 and 4 are present, while 3 is missing). Of course I wouldn't change the parity...

Link to comment
1 minute ago, Jaster said:

Btw: is it save to change the 'drive numbering'. A while ago I was removing some drives and have now kind of spare numbers between the assigned once (like disks 2 and 4 are present, while 3 is missing). Of course I wouldn't change the parity...

If you have parity2 then any change to disk assignments would require rebuilding parity2. For parity1 it doesn't matter. As long as you keep all the same disks and don't add, remove or replace any then parity1 is valid however you assign the data disks.

 

Tools - New Config, Retain All. Reassign disks as you wish (don't assign a data disk to parity slot obviously). Check parity valid box and you're good to go.

  • Upvote 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.