- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Defrag and Scrub
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Defrag and Scrub
Is it necessary to run a scheduled scan on my RN314 for Defrag and Scrub?
Volumes are only JBOD and no Snapshots.
If so how often should these be scheduled to run?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Defrag and Scrub
@claynz wrote:
Is it necessary to run a scheduled scan on my RN314 for Defrag and Scrub?
Volumes are only JBOD and no Snapshots.
If so how often should these be scheduled to run?
Scrub does both a btrfs scrub and a RAID scrub. While the RAID scrub doesn't apply to JBOD, the btrfs scrub does.
None of these are strictly "necessary". While the defrag is the least useful, I do run it.
My own practice (on all my NAS) is to run one maintenance task a month on each volume. On NAS with multiple volumes, I stagger the schedule so only one task is running at a time.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Defrag and Scrub
I've noticed the Shares are set to auto-defrag, is this different to volume defrag? should I also enable Bit Rot Protection?
Would this work ok
Defrag every month on the 1st
Scrub every month on the 20th
So can all volumes be defrag or scrub at once?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Defrag and Scrub
@claynz wrote:
Would this work ok
Defrag every month on the 1st
Scrub every month on the 20th
Up to you, personally I space them out (and run them every four months, since I only run one of the tests each month).
Don't neglect balance and the disk test. IMO they are the most valuable.
@claynz wrote:
I've noticed the Shares are set to auto-defrag, is this different to volume defrag?
It's the same defrag process, just run for the share instead of the entire volume. I don't know what triggers auto-defrag to run.
@claynz wrote:
should I also enable Bit Rot Protection?
Personally I enable it. It enables BTRFS checksums on the share, which would give you some more information on what files are damaged if the disk starts to fail.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Defrag and Scrub
How comes the Bit Rot Protection isn't enabled on this volume?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Defrag and Scrub
Bit rot protection does slow things down a bit, and I don't believe it's the default. So it's off because you didn't turn it on. Note that turning it on at this point may not have the effect you want, as it will only affect files created after you enabled it.
The various maintenance tasks cannot overlap, at least if you use the GUI to run them. There would be a lot of disk thrashing, and I think doing a defrag (moving sectors of data) would cause issues with a scrub or balance. Note that if a scheduled task comes up while another is ongoing, it appears it's cancelled, not deferred, so make sure you allocate sufficient time between them. That's one reason for the one task a month plan. In my case, I have three NAS and schedule the tasks on different weeks, allocating two weeks for the scrub since it can sometimes take long. That keeps the added heat and noise down to just one NAS at a time.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Defrag and Scrub
So each drive needs to run it's task?
Can someone recommend a schedule to run maintenance on 4x JBOD, a little confused here.
Scrub in June and October per drive 7th, 14th, 21st, 28th at 1am
Defrag in September and January per drive 7th, 14th, 21st, 28th at 1am
Balance in December and April per drive 7th, 14th, 21st, 28th at 1am
Disk Test in March and August per drive 7th, 14th, 21st, 28th at 1am
Or can I run a task on all drives at once?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Defrag and Scrub
@claynz wrote:
So each drive needs to run it's task?
Each volume (which in your case is the same as each disk).
@claynz wrote:Can someone recommend a schedule to run maintenance on 4x JBOD, a little confused here.
Something like this:
Volume 1:
- Disk Test: Occurs at 02:00 on 1 January, 1 May, 1 September
- Scrub: Occurs at 02:00 on 1 February, 1 June, 1 October
- Defrag: Occurs at 02:00 on 1 March, 1 July, 1 November
- Balance: Occurs at 02:00 on 1 April, 8 August, 1 December
Volume 2
- Disk Test: Occurs at 02:00 on 8 January, 8 May, 8 September
- Scrub: Occurs at 02:00 on 8 February, 8 June, 8 October
- Defrag: Occurs at 02:00 on 8 March, 8 July, 8 November
- Balance: Occurs at 02:00 on 8 April, 8 August, 8 December
Volume 3
- Disk Test: Occurs at 02:00 on 15 January, 15 May, 15 September
- Scrub: Occurs at 02:00 on 15 February, 15 June, 15 October
- Defrag: Occurs at 02:00 on 15 March, 15 July, 15 November
- Balance: Occurs at 02:00 on 15 April, 15 August, 15 December
Volume 4
- Disk Test: Occurs at 02:00 on 22 January, 22 May, 22 September
- Scrub: Occurs at 02:00 on 22 February, 22 June, 22 October
- Defrag: Occurs at 02:00 on 22 March, 22 July, 22 November
- Balance: Occurs at 02:00 on 22 April, 22 August, 22 December
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Defrag and Scrub
Or this - it spreads the tests around more (not doing all the disk tests in the same months).
Volume 1:
- Disk Test: Occurs at 02:00 on 1 January, 1 May, 1 September
- Scrub: Occurs at 02:00 on 1 February, 1 June, 1 October
- Defrag: Occurs at 02:00 on 1 March, 1 July, 1 November
- Balance: Occurs at 02:00 on 1 April, 1 August, 1 December
Volume 2
- Balance: Occurs at 02:00 on 8 January, 8 May, 8 September
- Disk Test: Occurs at 02:00 on 8 February, 8 June, 8 October
- Scrub: Occurs at 02:00 on 8 March, 8 July, 8 November
- Defrag: Occurs at 02:00 on 8 April, 8 August, 8 December
Volume 3
- Defrag: Occurs at 02:00 on 15 January, 15 May, 15 September
- Balance: Occurs at 02:00 on 15 February, 15 June, 15 October
- Disk Test: Occurs at 02:00 on 15 March, 15 July, 15 November
- Scrub: Occurs at 02:00 on 15 April, 15 August, 15 December
Volume 4
- Scrub: Occurs at 02:00 on 22 January, 22 May, 22 September
- Defrag: Occurs at 02:00 on 22 February, 22 June, 22 October
- Balance: Occurs at 02:00 on 22 March, 22 July, 22 November
- Disk Test: Occurs at 02:00 on 22 April, 22 August, 22 December
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Defrag and Scrub
Sounds reasonable enough to me, thanks for that!!