Linux RAID subsystem development
 help / color / mirror / Atom feed
* Timeout question
@ 2013-11-04 20:07 Hans Kraus
  2013-11-04 22:39 ` Phil Turmel
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Kraus @ 2013-11-04 20:07 UTC (permalink / raw)
  To: linux-raid

Hi,

I put all my replaced and so on HDs in one machine to serve
backup duties, with backuppc.

I assembled four raid0, each consiting of a 3 + 1 TB couple or
2 + 2 TB couple. Some of these support scterc, some do not. I've
put the following in rc.local (by the way, the system is running
Debian):
cd /dev
for x in sd[a-z]; do
     /bin/echo $x 
"---------------------------------------------------------------------------"
     /usr/sbin/smartctl -s on -o on -S on /dev/$x || echo 
"/usr/sbin/smartctl -s on -o on -S on /dev/$x failed."
     /usr/sbin/smartctl -l scterc,70,70 /dev/$x || echo 180 
 >/sys/block/$x/device/timeout || echo "/sys/block/$x/device/timeout not 
available"
     /usr/sbin/smartctl -t offline /dev/$x || echo "/usr/sbin/smartctl 
-t offline /dev/$x failed"
     /bin/echo 
"-------------------------------------------------------------------------------"
done

Afterwards, these four raid0 are the members of a raid5. The idea
behind this is to be able to replace the raid0 with single 4 TB drives.
Now comes my question: Do I need to care for timeouts of the raid0, and
if so, how do I do that? The following doesn't work:
for x in md??; do
     /bin/echo $x 
"--------------------------------------------------------------------------"
     echo 180 >/sys/block/$x/device/timeout || echo 
"/sys/block/$x/device/timeout not available"
     /bin/echo 
"-------------------------------------------------------------------------------"
  done

Kind regards,
Hans

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-06  6:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-04 20:07 Timeout question Hans Kraus
2013-11-04 22:39 ` Phil Turmel
2013-11-04 23:29   ` Keith Keller
2013-11-06  6:49   ` Hans Kraus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox