linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Louis-Michel Gelinas <coradiant.kernel@gmail.com>
To: linux-raid@vger.kernel.org
Subject: sync_action missing in action in linux-2.6.12 ?
Date: Thu, 10 Sep 2009 17:18:29 -0400	[thread overview]
Message-ID: <1252617509.4735.19.camel@lgelinas> (raw)

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 


             reply	other threads:[~2009-09-10 21:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-10 21:18 Louis-Michel Gelinas [this message]
2009-09-10 22:06 ` sync_action missing in action in linux-2.6.12 ? Majed B.
2009-09-11  4:05 ` NeilBrown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1252617509.4735.19.camel@lgelinas \
    --to=coradiant.kernel@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).