I have rather unusual setup, namely I have two external USB disks connected to old netbook configured in raid1 (mirror). I set it up and it worked well for ~2 days. Today, however, when I turned my NAS on instead one mirror on /dev/md0 I see two degraded ones /dev/md126 and /dev/md127. The same disks are connected to the same USB ports all the time. The only thing which comes to my mind is the fact I was playing with partitions on system disk (not touching the mirror, both disks were disconnected that time) according to the method 4 from http://forums.openmediavault.o…topic.php?f=10&t=192#p734 (but I haven't run "mdadm /dev/md100 --create --force --level=linear --raid-devices=1 /dev/sda3" instruction proposed there to create linear array, I just simply mounted new /dev/sda3 from the Filesytems tab in the UI) - I wonder if that could do something wrong to the raid? Please find below all my current configuration.
- What happened and how to fix it?
- How to prevent this in the future?
cat /proc/mdstat
root@nas:/home/reddy# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6]
[raid5] [raid4] [raid10]
md126 : active raid1 sdc[0]
1953513424 blocks super 1.2 [2/1] [U_]
md127 : active (auto-read-only) raid1 sdb[1]
1953513424 blocks super 1.2 [2/1] [_U]
unused devices: <none>
Alles anzeigen
mdadm --detail /dev/md/mirror1
root@nas:/home/reddy# mdadm --detail /dev/md/mirror1
/dev/md/mirror1:
Version : 1.2
Creation Time : Sun Aug 12 19:48:25 2012
Raid Level : raid1
Array Size : 1953513424 (1863.02 GiB 2000.40 GB)
Used Dev Size : 1953513424 (1863.02 GiB 2000.40 GB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Update Time : Thu Aug 16 19:29:49 2012
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : nas:mirror1 (local to host nas)
UUID : 12fde5ff:91c8ff94:e9ad509b:11057223
Events : 291
Number Major Minor RaidDevice State
0 8 32 0 active sync /dev/sdc
1 0 0 1 removed
Alles anzeigen
mdadm --detail /dev/md126
root@nas:/home/reddy# mdadm --detail /dev/md126
/dev/md126:
Version : 1.2
Creation Time : Sun Aug 12 19:48:25 2012
Raid Level : raid1
Array Size : 1953513424 (1863.02 GiB 2000.40 GB)
Used Dev Size : 1953513424 (1863.02 GiB 2000.40 GB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Update Time : Thu Aug 16 19:55:00 2012
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : nas:mirror1 (local to host nas)
UUID : 12fde5ff:91c8ff94:e9ad509b:11057223
Events : 293
Number Major Minor RaidDevice State
0 8 32 0 active sync /dev/sdc
1 0 0 1 removed
Alles anzeigen
mdadm --detail /dev/md127
root@nas:/home/reddy# mdadm --detail /dev/md127
/dev/md127:
Version : 1.2
Creation Time : Sun Aug 12 19:48:25 2012
Raid Level : raid1
Array Size : 1953513424 (1863.02 GiB 2000.40 GB)
Used Dev Size : 1953513424 (1863.02 GiB 2000.40 GB)
Raid Devices : 2
Total Devices : 1
Persistence : Superblock is persistent
Update Time : Thu Aug 16 19:22:19 2012
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
Name : nas:mirror1 (local to host nas)
UUID : 12fde5ff:91c8ff94:e9ad509b:11057223
Events : 329
Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 16 1 active sync /dev/sdb
Alles anzeigen
cat /etc/fstab
root@nas:/home/reddy# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=9a37394d-0ebc-4145-857f-2ba3659eb5e1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=ea86e3b0-9e3f-4f48-8d19-f0df36580a49 none swap sw 0 0
#/dev/sdb1 /media/cdrom0 udf,iso9660 user,noauto 0 0
tmpfs /tmp tmpfs defaults 0 0
# >>> [openmediavault]
UUID=fced0dfe-e95d-402d-8d66-4296b0736393 /media/fced0dfe-e95d-402d-8d66-4296b0736393 xfs defaults,noexec,usrquota,grpquota 0 2
UUID=ad146658-eed1-4447-8eeb-4659db35086a /media/ad146658-eed1-4447-8eeb-4659db35086a xfs defaults,noexec,usrquota,grpquota 0 2
# <<< [openmediavault]
Alles anzeigen
mount
root@nas:/home/reddy# mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
tmpfs on /tmp type tmpfs (rw)
/dev/md126 on /media/fced0dfe-e95d-402d-8d66-4296b0736393 type xfs (rw,noexec,usrquota,grpquota)
/dev/sda3 on /media/ad146658-eed1-4447-8eeb-4659db35086a type xfs (rw,noexec,usrquota,grpquota)
Alles anzeigen
df
root@nas:/home/reddy# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 8343480 1174032 6750020 15% /
tmpfs 510256 4 510252 1% /lib/init/rw
udev 504076 208 503868 1% /dev
tmpfs 510256 0 510256 0% /dev/shm
tmpfs 510256 8 510248 1% /tmp
/dev/md126 1952559564 576696 1951982868 1% /media/fced0dfe-e95d-402d-8d66-4296b0736393
/dev/sda3 106781756 32944 106748812 1% /media/ad146658-eed1-4447-8eeb-4659db35086a
All 3 disks: internal system one and both USB drives are configured
the same way to use minimum power, spin down after 10 minutes and
enable S.M.A.R.T.:
I'll post filesystems configuration screenshot in another post due to limit of 3 attachments per post.