Trace: snapraid

snapraid

Prev  
 Next

snapraid

I have been using snapraid the past 8 years or so for my main first past redundancy. I have a second home server used as a backup server that weekly backs up using restic.

The main snapraid commands I use are: sudo snapraid sync to sync the files that have changes since last sync. I usually do this weekly, manually. sudo snapraid scrub to check the parity of the array, usually the oldest files first. I usually do this weekly, manually. sudo snapraid status to check the status of the array. I usually do this weekly, manually. sudo snapraid touch to add sub-second time granularity to the files that improves snapraid usage. I usually do this weekly, if reported as requried by status, manually. sudo snapraid smart to check the smart status of the array drives (does not report on nvme drives). I usually do this weekly, manually. Really for information only.

Snapraid allows files and directories that have been deleted since the last sync to be recovered.

  • snapraid diff –test-fmt path
  • snapraid diff –test-fmt disk This will let you know the data disk from snapraids array perspective

Snapraid does not expect you to provide the absolute file system path when fixing files.

  • snapraid fix -m This will recreate any deleted file in the entire array
  • snapraid fix -m -d d1 This will recreate any deleted file on data disk d1
  • snapraid fix -m -f Example/ This will recreate the contents of any folder named Example anywhere in the array
  • snapraid check -m -f Example/ -v If you are unsure what will happen you can replace fix with check above and add -v with this. Snapraid will then tell you that there is a problem with each of the files matching the filter or that they are ok.

The main snapraid configuration file /etc/snapraid.conf

/app/www/public/data/pages/home_server/home_server_setup/other_services/snapraid.txt · Last modified: 2024-02-16 Fri wk07 22:11
CC Attribution-Share Alike 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International