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:
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>
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"
root@kila-nas:~# fdisk -l
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/sda doesn't contain a valid partition table
Disk /dev/sdc: 30.0 GB, 30016659456 bytes
255 heads, 63 sectors/track, 3649 cylinders, total 58626288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f1ee4
Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 56145919 28071936 83 Linux
/dev/sdc2 56147966 58626047 1239041 5 Extended
/dev/sdc5 56147968 58626047 1239040 82 Linux swap / Solaris
Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/sdd doesn't contain a valid partition table
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/md0: 4000.5 GB, 4000528203776 bytes
2 heads, 4 sectors/track, 976691456 cylinders, total 7813531648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 1048576 bytes
Disk identifier: 0x00000000
Disk /dev/md0 doesn't contain a valid partition table
WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sde: 2031 MB, 2031091712 bytes
39 heads, 30 sectors/track, 3390 cylinders, total 3966976 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sde1 1 3966975 1983487+ ee GPT
Alles anzeigen
root@kila-nas:~# cat /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
# Note, if no DEVICE line is present, then "DEVICE partitions" is assumed.
# To avoid the auto-assembly of RAID devices a pattern that CAN'T match is
# used if no RAID devices are configured.
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# definitions of existing MD arrays
ARRAY /dev/md0 metadata=1.2 name=kila-nas:RAID5 UUID=e8484e66:f72b07ec:a9b22454:a0dd7fa3
# instruct the monitoring daemon where to send mail alerts
MAILADDR ------.------@----.--
MAILFROM root
Alles anzeigen