public inbox for linux-raid@vger.kernel.org
 help / color / mirror / Atom feed
* sync_action missing in action in linux-2.6.12 ?
@ 2009-09-10 21:18 Louis-Michel Gelinas
  2009-09-10 22:06 ` Majed B.
  2009-09-11  4:05 ` NeilBrown
  0 siblings, 2 replies; 3+ messages in thread
From: Louis-Michel Gelinas @ 2009-09-10 21:18 UTC (permalink / raw)
  To: linux-raid

Hi all,

I bought this neat little NAS box (dlink dns-323). 

I runs linux-2.6.12.6 and mdadm 2.5.6 

There is a nice community and tools to "hack" it and use it as a
"normal" linux system. 

I would like to run raid1 "repair" and "check" sync_action. 

However, I do not have a sync_action file in /sys. 

sysfs was not mounted, maybe that is the problem... 

There is a /sys folder holding stuff that does not look like a sysfs
heirachy:
ls -l /sys
total 4
drwxr-xr-x 18 root root  197 Mar 27 02:41 crfs
drwxr-xr-x  3 root root 1024 Sep  9 17:29 custom
drwxr-xr-x  2 root root 1024 Sep  9 17:29 mtd1
drwxr-xr-x  2 root root 1024 Feb 13  2006 mtd2


So i did :
mkdir /sys2
mount -t sysfs /sys2 /sys2  ( This worked, is it proper?  ) 

The structure under /sys2 looks familiar, however, in /sys2/block/md0 I
have no md folder! only :
/sys2/block/md0 # ls -l 
total 0
-r--r--r-- 1 root root 4096 Sep 10 09:39 dev
-r--r--r-- 1 root root 4096 Sep 10 09:39 range
-r--r--r-- 1 root root 4096 Sep 10 09:39 removable
-r--r--r-- 1 root root 4096 Sep 10 09:39 size
-r--r--r-- 1 root root 4096 Sep 10 09:39 stat

I have been reading this list for a few years now and I know I am a
little off topic and should go to the forums about the dns-323... But I
found nothing anywhere.

So, am I doing something wrong with sysfs ? Should i assemble the array
after sysfs is mounted? Is there a sync_action in 2.6.12? 

Also, is there any other way to trigger the check/repair? I can
code/compile my own userspace tool to call an ioctl if needed... 

Is my only option to write my own scripted sector diff/remap tool? 

Upgrading the kernel is an option but requires flashing the firmware,
something I would rather avoid at this point. 


any help appreciated.
lmg 


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

end of thread, other threads:[~2009-09-11  4:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-10 21:18 sync_action missing in action in linux-2.6.12 ? Louis-Michel Gelinas
2009-09-10 22:06 ` Majed B.
2009-09-11  4:05 ` NeilBrown

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