redundancy of OS running USB?


Recommended Posts

I personally do not trust the USB Drive.

However unRaid files are saved on the USB Drive. 

If the USB drive go bad, i assume whole system will down.

i'd like to plug in second USB for backup for OS.

Is there any built-in function that support my idea?

Link to comment

Actually, the OS does not run on the USB drive. The OS runs in RAM. It is unpacked fresh at each boot from the archives on the USB drive into RAM, and all of the usual OS files are actually read and written to RAM.

 

After boot, some settings that you have made in the webUI are also read from the USB drive into RAM. And of course, if you make any settings in the webUI, these are written to the USB drive so they can be read on the next boot. Other than that, the USB drive is accessed very little.

 

You can always download a backup of your USB drive by going to Main - Boot Device - Flash and pressing the Flash backup button.

 

 

Link to comment

Most of the long-time users here will confirm the longevity of their USB device in unRAID. My oldest system is nearly 10 years old and still running with the original USB stick.

As @trurl explained the OS runs in RAM memory, it is mandatory that the USB device stays plugged in while the system is operational, but usage of the USB device itself is kept to a minimum.

 

Link to comment

Like any high profile system you rely on... BACKUPS are key.

 

Data on the disks (other than cache) are protected by parity. Backing up other things like VM XMLs, Docker templates, DockerAppData, PluginData, etc, can easily be automated by plugins.

On top of that, I have screenshots printed out of which drives are in which 'slots' in the UI, so i can make sure everything is the same if I needed to start from scratch and didn't have access to any data on my drives (in case of a USB failure). 

 

I'm pretty confident i could be back up and running as-is without any issues within an hour if my USB drive decided to give up. 

Edited by billington.mark
words
Link to comment
  • 1 year later...
On 5/23/2018 at 4:49 PM, trurl said:

Actually, the OS does not run on the USB drive. The OS runs in RAM. It is unpacked fresh at each boot from the archives on the USB drive into RAM, and all of the usual OS files are actually read and written to RAM.

Perhaps a better way to think of it is that the Flash(/Boot) Drive is equivalent to a Windows installation disk.  However as the user sets up Unraid (initially  and sequentially), the setup parameters are backed up by writing them on the Flash Drive.   Thus, on subsequent restarts, after the OS install is completed, it will load those setup parameter files to finish setting the server to its previous state. 

Link to comment
8 minutes ago, Frank1940 said:

Perhaps a better way to think of it is that the Flash(/Boot) Drive is equivalent to a Windows installation disk.  However as the user sets up Unraid (initially  and sequentially), the setup parameters are backed up by writing them on the Flash Drive.   Thus, on subsequent restarts, after the OS install is completed, it will load those setup parameter files to finish setting the server to its previous state. 

I think of the archives on flash as the firmware. Then, as you say, there are additional settings stored on flash so they can be reapplied at boot. But those settings are themselves loaded into RAM for reading, and get written to flash if they are changed so they can be reapplied at boot, etc.

 

Possibly there are some details that deviate from this model, and I know other things such as some plugins will write to flash. There has been ongoing discussions to limit writes to flash.

Link to comment

My 2GB Cruzer has been kicking strong for the last 9-10 years. 

 

With all the changes to unRAID over the years, files accessed off the USB has dropped dramatically. It more or less loads the OS off the USB into ram and then your USB just sits there nearly in an idle state until you reboot it again. 

Link to comment
20 hours ago, homelessdorito said:

I’m replacing the USB stick yearly...

The only conclusion I can reach is that you're doing something wrong, or your USB device is maybe cooking.  Some USB 3.0 sticks run far hotter than needed.  For the occasional access that Unraid requires, USB 2.0 is perfectly OK.  Like many others on the forum, my sticks are years old (in use since early 2011 in my case) and no signs of issues.  

Edited by S80_UK
Link to comment
21 hours ago, homelessdorito said:

I absolutely hate that unraid boots off USB into ram. I’m replacing the USB stick yearly and when things start to go wrong, 

You really need to stop your cat from sabotaging your server. That or you have some sort of electrical fault issue with your power, power supply, motherboard, and/or usb ports.

 

I'm still using my original USB stick from a decade ago.

Link to comment
  • 4 months later...
On 5/24/2018 at 8:35 AM, bonienl said:

Most of the long-time users here will confirm the longevity of their USB device in unRAID. My oldest system is nearly 10 years old and still running with the original USB stick.

As @trurl explained the OS runs in RAM memory, it is mandatory that the USB device stays plugged in while the system is operational, but usage of the USB device itself is kept to a minimum.

 

Well today already a 2nd USB drive failed, that is became read-only, both within 2 years in two different systems, and this one a proper Patriot TAB 16GB in a brand new system, only in use for 5 months! Already tried diskpart and EaseUS tool, to no avail. The first time I read about a script in the go file so that you can boot from a 2nd USB, with the original USB only there to read the OS-key from. At that time I didn't think much use, but now I really would like to set this up - if UNRAID cannot fix this?!

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.