Package Details: raid-check-systemd 4.4-1

Git Clone URL: https://aur.archlinux.org/raid-check-systemd.git (read-only, click to copy)
Package Base: raid-check-systemd
Description: Raid data scrubbing script with systemd timer to be used with mdadm.
Upstream URL: https://wiki.archlinux.org/index.php/RAID#Scrubbing
Keywords: mdadm raid scrub systemd
Licenses: GPL
Conflicts: raid-check
Submitter: TheChickenMan
Maintainer: Network_Jack
Last Packager: Network_Jack
Votes: 16
Popularity: 0.81
First Submitted: 2016-06-07 08:44 (UTC)
Last Updated: 2025-08-22 00:18 (UTC)

Pinned Comments

TheChickenMan commented on 2017-04-30 19:00 (UTC)

You can view the status of the service while it is running in the kernel log with dmesg. You can also review status with the following: $ systemctl status raid-check.service $ systemctl status raid-check.timer $ systemctl list-timers --all

Latest Comments

1 2 3 Next › Last »

amish commented on 2025-08-22 04:15 (UTC)

Thank you for version bump to 4.4 but is there any reason for not using CentOS Stream version 10 upstream package and still using version 9?

In principle, Arch Linux prefers to use latest version.

While CentOS stream 9 is still not EOLed (just 21 months left) but CentOS stream 10 is supposed to be more active and more up-to-date than CentOS stream 9. So we should switch to CentOS stream 10 for upstream package.

Also CentOS Stream 9 is based on kernel 5.14 (current version - outdated for Arch) OTOH CentOS Stream 10 is based on kernel 6.12 (matching with Arch kernel major version)

In future, CentOS stream 9 may ship their MDADM package and the script that we use based on Kernel 5 which may lead to compatibility issues.

So we must switch to CentOS stream 10 to be future safe incase any unexpected change in made to CentOS stream 9 script for compatibility with kernel version 5.

amish commented on 2025-08-14 06:56 (UTC)

I would also suggest to change timer to run on week end - Sunday morning 3AM.

In most cases that is the time we can say the load on system is low and user activity is also low.

raid-check.timer:
OnCalendar=Sun *-*-8,9,10,11,12,13,14 3:00:00

And I also suggest to change NICE level to idle instead of low. That way if there is any activity on system then raid-check will not consume disk IO.

/etc/conf.d/raid-check:
NICE=idle

Thank you

amish commented on 2025-08-14 06:25 (UTC) (edited on 2025-08-14 06:29 (UTC) by amish)

Please use mdadm version that matches with mdadm shipped with Arch (i.e. version mdadm 4.4). Also update CentOS stream version to 10 (latest) and centosrel to 2.

It would also be good idea to match package version 4.2 with mdadm package version i.e. 4.4.

Changes suggested:


pkgver=4.4 #match with mdadm version
pkgrel=1
_centstream=10
_centrel=2
...
source=("http://mirror.stream.centos.org/${_centstream}-stream/BaseOS/x86_64/os/Packages/mdadm-${pkgver}-${_centrel}.el${_centstream}.x86_64.rpm"

Effectively new URL would be:

https://mirror.stream.centos.org/10-stream/BaseOS/x86_64/os/Packages/mdadm-4.4-2.el10.x86_64.rpm

Thank you

matse commented on 2025-01-05 23:09 (UTC)

Note: currently the source file can't be found with: _centrel=10 the package got updated and is currently on 12

kyechou commented on 2024-11-07 06:05 (UTC) (edited on 2024-11-07 06:05 (UTC) by kyechou)

404 error.

New url: https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/mdadm-4.3-4.el9.x86_64.rpm

zork commented on 2024-09-13 14:53 (UTC)

curl: (22) The requested URL returned error: 404 ==> ERROR: Failure while downloading http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/mdadm-4.2-9.el9.x86_64.rpm

Valid 4.2 url: https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/mdadm-4.2-10.el9.x86_64.rpm

atomicfs commented on 2022-12-02 13:41 (UTC)

-_centrel=2
+_centrel=7
-sha256sums=('97c360a0e0518ae7dff57f5515201229fa980a6632b0f8afa5d366944954792c'
+sha256sums=('7bac4fab8071be84c404da1acd199fa711007c2910371f43960ecd3c703ac68e'

baderas commented on 2022-12-02 08:50 (UTC)

The download of http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/mdadm-4.2-2.el9.x86_64.rpm fails, please update PKGBUILD.

Network_Jack commented on 2021-12-08 07:29 (UTC)

@kaymmm

The PKGBUILD is in fact for 4.2-rc2 as is. PKGBUILD unflagged. works as expected.

kaymmm commented on 2021-12-05 21:22 (UTC)

Here is a working PKGBUILD for 4.2-rc2:

# Maintainer:  GI Jack <GI_Jack@hackermail.com>
# Contributor:  M.Reynolds <blackboxnetworkproject@gmail.com>

pkgname=raid-check-systemd
pkgver=4.2
pkgrel=5
_centrel=rc2
pkgdesc="Raid data scrubbing script with systemd timer to be used with mdadm."
arch=('any')
url="https://wiki.archlinux.org/index.php/RAID#Scrubbing"
license=('GPL')
depends=('mdadm' 'systemd')
conflicts=('raid-check')
source=("http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/mdadm-${pkgver}-${_centrel}.el8.x86_64.rpm"
        'raid-check.service'
        'raid-check.timer')

sha256sums=('08ed63795716f7da0aabaa5c250d64d0ab86c1545553d2635094c8efb48c6be0'
            '90db8f53984df9d7ab32fde09a853632e9d76cbd91224c0efd760406118af84b'
            '2a7677fb83b67f71cb626169746ccaf39417f2b291b4cbc5a264706fdb8cc8b2')

backup=('etc/conf.d/raid-check')
install="$pkgname.install"

build() {
    cd $srcdir
    sed -i 's|sysconfig|conf.d|g' 'usr/sbin/raid-check'
}

package() {
    install -Dm 755 "$srcdir/usr/sbin/raid-check" "$pkgdir/usr/bin/raid-check"
    install -Dm 644 "$srcdir/etc/sysconfig/raid-check" "$pkgdir/etc/conf.d/raid-check"

    install -Dm 644 "$srcdir/raid-check.service" "$pkgdir/usr/lib/systemd/system/raid-check.service"
    install -Dm 644 "$srcdir/raid-check.timer" "$pkgdir/usr/lib/systemd/system/raid-check.timer"
}