Hi, thanks for quick feedback :)
Jocko wrote:I suppose you are aware that with a raid0 you will lose all your data on a disk failure event. There is no software to recover these on a broken raid0. You should use a backup solution for your valuable data.
Yap. I have a 2Big NAS as well, also with 2 x 3TB, in RAID1 (Seagate NAS OS 4), which I've been using for many years and is almost full. My purpose with this 2nd LaCie is to have them both in RAID0 and rsync'ed, on different "sites"; that way earning in capacity and geo redundancy :)
About the commands you suggested:
- Code: Select all
root@fvdwsl-base:/ # ps ax|grep mdadm
1368 ? Ss 0:00 /sbin/mdadm --monitor --daemonise --scan --delay=600 --pid-file=/var/run/mdadm.pid
2486 pts/0 S+ 0:00 grep mdadm
- Code: Select all
root@fvdwsl-base:/ # cat /etc/mdadm.conf
CREATE owner=root group=root mode=0666 auto=yes metadata=1.0
PROGRAM /usr/bin/mdadm-events
DEVICE /dev/sd* /dev/se*
#MAILADDR
ARRAY /dev/md0 metadata=1.0 level=raid0 num-devices=2 UUID=b0f15618:2b440fec:6c05b24e:09e36e57
Jocko wrote:and check if you run this command, red blinking stops
Code:
/usr/bin/mdadm-events
I tried it, and no, it doesn't stop. This was the output:
- Code: Select all
root@fvdwsl-base:/ # /usr/bin/mdadm-events
USER=root
HOSTNAME=fvdwsl-base
HOME=/
SSH_TTY=/dev/pts/0
LOGNAME=root
RSYNC_RSH=/usr/bin/dbclient -p 22
TERM=xterm
PATH=/usr/bin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/opt/sbin:/opt/usr/bin:/opt/usr/sbin:/opt/lib
SHELL=/bin/sh
PWD=/
LC_ALL=en_US.utf8
SSH_CONNECTION=192.168.10.2 55683 192.168.0.4 22
isVM=0
cat: /sys/block/md0/md/sync_action: No such file or directory
sh: resync: unknown operand
Last command output:
- Code: Select all
root@fvdwsl-base:/ # sh -x /usr/bin/mdadm-events
+ grep -ic hypervisor /proc/cpuinfo
+ export isVM=0
+ [ -z ]
+ . /etc/leds_name_table
+ head -1 /etc/platform
+ NAS=2big2
+ [ -h /sys/class/leds/ns_lite_v2:blue:sata ]
+ BFILE=/rw_fs/etc/led-brightness
+ MaxLevel=255
+ MaxLevel=7
+ frontred=net2big-v2:red:power
+ frontblue=net2big-v2:blue:power
+ sata0blue=net2big-v2:blue:sata0
+ sata0red=net2big-v2:red:sata0
+ sata1blue=net2big-v2:blue:sata1
+ sata1red=net2big-v2:red:sata1
+ [ -f /rw_fs/etc/led-brightness ]
+ brightness_level=7
+ env
USER=root
HOSTNAME=fvdwsl-base
HOME=/
SSH_TTY=/dev/pts/0
LOGNAME=root
RSYNC_RSH=/usr/bin/dbclient -p 22
TERM=xterm
PATH=/usr/bin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/opt/sbin:/opt/usr/bin:/opt/usr/sbin:/opt/lib
SHELL=/bin/sh
PWD=/
LC_ALL=en_US.utf8
SSH_CONNECTION=192.168.10.2 55683 192.168.0.4 22
isVM=0
+ [ -f /tmp/booting ]
+ [ == force ]
+ force=0
+ /usr/bin/led
+ [ 7 -ne 0 ]
+ isoff=0
+ ALERTFILE=/rw_fs/tmp/raidfailure
+ hasdegraded=0
+ hasfaulty=0
+ /usr/bin/awk / md[0-9]/ {print $4}
+ /usr/bin/cat /proc/partitions
+ cat /sys/block/md0/md/array_state
+ status=clean
+ [ -f /sys/block/md0/md/degraded ]
+ degraded=0
+ devices=
+ ls -d /sys/block/md0/md/dev-sda8 /sys/block/md0/md/dev-sdb8
+ devices=sda8
+ devices=sda8 sdb8
+ [ clean == clean ]
+ [ 0 -eq 0 ]
+ cat /sys/block/md0/md/sync_action
cat: /sys/block/md0/md/sync_action: No such file or directory
+ [ != resync ]
sh: resync: unknown operand
+ hasdegraded=1
+ cat /sys/block/md0/md/dev-sda8/state
+ devstate=in_sync
+ [ in_sync == in_sync ]
+ [ 0 = 0 ]
+ printf %d 'a
+ expr 97 - 97
+ led=sata0
+ [ 0 -eq 0 ]
+ eval echo $sata0blue
+ echo net2big-v2:blue:sata0
+ [ -n net2big-v2:blue:sata0 ]
+ delayoff=2
+ eval echo $sata0red
+ echo net2big-v2:red:sata0
+ [ -n net2big-v2:red:sata0 ]
+ /usr/bin/led -l sata0red -w on
+ /usr/bin/led -l sata0red -o trigger -w timer
+ /usr/bin/led -l sata0red -o delay_on -w 4000
+ /usr/bin/led -l sata0red -o delay_off -w 2
+ [ 0 -eq 0 ]
+ eval echo $sata0blue
+ echo net2big-v2:blue:sata0
+ [ -n net2big-v2:blue:sata0 ]
+ /usr/bin/led -l sata0blue -w on
+ /usr/bin/led -l sata0blue -o trigger -w timer
+ /usr/bin/led -l sata0blue -o delay_on -w 3000
+ /usr/bin/led -l sata0blue -o delay_off -w 2
+ eval echo $sata0blue
+ echo net2big-v2:blue:sata0
+ [ -f /sys/class/leds/net2big-v2:blue:sata0/sata ]
+ /usr/bin/led -l sata0blue -o sata -w 0
+ cat /sys/block/md0/md/dev-sdb8/state
+ devstate=in_sync
+ [ in_sync == in_sync ]
+ [ 0 = 0 ]
+ printf %d 'b
+ expr 98 - 97
+ led=sata1
+ [ 0 -eq 0 ]
+ eval echo $sata1blue
+ echo net2big-v2:blue:sata1
+ [ -n net2big-v2:blue:sata1 ]
+ delayoff=2
+ eval echo $sata1red
+ echo net2big-v2:red:sata1
+ [ -n net2big-v2:red:sata1 ]
+ /usr/bin/led -l sata1red -w on
+ /usr/bin/led -l sata1red -o trigger -w timer
+ /usr/bin/led -l sata1red -o delay_on -w 4000
+ /usr/bin/led -l sata1red -o delay_off -w 2
+ [ 0 -eq 0 ]
+ eval echo $sata1blue
+ echo net2big-v2:blue:sata1
+ [ -n net2big-v2:blue:sata1 ]
+ /usr/bin/led -l sata1blue -w on
+ /usr/bin/led -l sata1blue -o trigger -w timer
+ /usr/bin/led -l sata1blue -o delay_on -w 3000
+ /usr/bin/led -l sata1blue -o delay_off -w 2
+ eval echo $sata1blue
+ echo net2big-v2:blue:sata1
+ [ -f /sys/class/leds/net2big-v2:blue:sata1/sata ]
+ /usr/bin/led -l sata1blue -o sata -w 0
+ [ 1 -eq 1 ]
+ [ 0 = 0 ]
+ [ -n net2big-v2:red:power ]
+ /usr/bin/led -l frontred -w on
+ /usr/bin/led -l frontred -o trigger -w timer
+ /usr/bin/led -l frontred -o delay_on -w 3000
+ [ 0 -eq 0 ]
+ /usr/bin/led -l frontred -o delay_off -w 5
+ [ 0 -eq 0 ]
+ /usr/bin/led -w on
+ /usr/bin/led -o trigger -w timer
+ /usr/bin/led -o delay_on -w 3000
+ /usr/bin/led -o delay_off -w 5
+ [ 0 -eq 1 ]
+ unlink /rw_fs/tmp/raidfailure
root@fvdwsl-base:/ #
Hope it helps?