Trace: snapraid

snapraid

This is an old revision of the document!


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.
/app/www/public/data/attic/home_server/home_server_setup/other_services/snapraid.1685243250.txt.gz · Last modified: 2023-05-28 Sun wk21 11:07
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