Raid 5 resyncing at reboot

  • Hi folks,


    I have got a weird problem. I have a RAID 5 running on 3 x WD Green 2TB discs since about a year now without any problems. I am using autoshutdown to shutdown my NAS when its not being used and I wake it everytime I need it. Once in a day, I wake my NAS for a scheduled reboot along with some updating. First I used the autoshutdown command "shutdown". So my NAS was always shut down when it was not used and it rebooted once a day. This setup worked really fine.


    Trouble started when I changed autoshutdown's command to "suspend". So my NAS should be suspended the whole day, waking up when I use it, and reboot once per day. This change lead to a frequent resync of my RAID array at the time of reboot. "Frequent" means that it mostly needs to resync at the scheduled reboot once a day. When I reboot manually in between, sometimes it does the resync, somtimes not. The same happens with autoshutdown command "hibernate". When I change it back to "shutdown", the resyncs stop happening and everything works fine again.


    Along with the resyncs I receive some SMART errors. Again, these errors are only reported, when autoshutdown's command is set to "suspend" or "hibernate", and on all of the connected devices (3 x HDD and 1 x SSD). As soon as I change the shutdown command back to "shutdown", everything goes back to perfection.


    I was trying to reproduce the error but didn't succeed so far. It seems I can manually put the NAS to standby via the web interface for a thousand times. But still, when I reboot, there is no resync or any other problems. It seems it only happens, when the NAS is suspended via the autoshutdown script, which really makes no sense to me because I always thought, that they use the same suspend-command.


    I am really stuck on this one. Can anyone help me?


    Here are some code boxes:


    Code
    root@kila-nas:~# cat /proc/mdstat
    Personalities : [raid6] [raid5] [raid4]
    md0 : active raid5 sda[0] sdd[2] sdb[1]
          3906765824 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
    
    
    unused devices: <none>
    Code
    root@kila-nas:~# blkid
    /dev/sdc1: UUID="e5ae2dce-8160-40dc-9648-c34688e5e0ec" TYPE="ext4"
    /dev/sdc5: UUID="c2cdfa11-6b47-4345-b19f-11270540f876" TYPE="swap"
    /dev/sdb: UUID="e8484e66-f72b-07ec-a9b2-2454a0dd7fa3" UUID_SUB="94997239-e015-35d9-35d0-df123b9812ae" LABEL="kila-nas:RAID5" TYPE="linux_raid_member"
    /dev/sda: UUID="e8484e66-f72b-07ec-a9b2-2454a0dd7fa3" UUID_SUB="7a3ac3cb-e2e4-1001-ad2a-a1eb05ca53aa" LABEL="kila-nas:RAID5" TYPE="linux_raid_member"
    /dev/sdd: UUID="e8484e66-f72b-07ec-a9b2-2454a0dd7fa3" UUID_SUB="a775f103-729d-2f93-c121-b8bdcf00c97d" LABEL="kila-nas:RAID5" TYPE="linux_raid_member"
    /dev/md0: LABEL="DATA" UUID="dbebfccd-9207-4c9b-a007-f4d19dfa3ac6" TYPE="ext4"
    /dev/sde1: LABEL="SystemBackup" UUID="b4fa9c66-aa7d-4e14-9084-b3b9aee6e369" TYPE="ext4"



    Code
    root@kila-nas:~# mdadm --detail --scan --verbose
    ARRAY /dev/md0 level=raid5 num-devices=3 metadata=1.2 name=kila-nas:RAID5 UUID=e8484e66:f72b07ec:a9b22454:a0dd7fa3
       devices=/dev/sda,/dev/sdb,/dev/sdd

    OMV Stoneburner | ASRock H77M-ITX | Intel Core i3-3240 | 4GB RAM | Kingston SSDNow 30GB System | 3 x 2TB RAID 5 Data

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!