Bug#380746: same error with a device not in use

Frank Hart hart at opensystems.nl
Wed Aug 2 13:13:52 UTC 2006


I have a similar issue:

checkarray: E: /sys/block/md2/md/sync_action not writeable.

The file does not exists. md2 is not in use anymore and isn't part of
/etc/mdadm/mdadm.conf. I've tried to remove the device but
/sys/block/md2 is still there:

root at hive:~# mdadm -Q /dev/md2
/dev/md2: is an md device which is not active
root at hive:~# mdadm -D /dev/md2
mdadm: md device /dev/md2 does not appear to be active.
root at hive:~# mdadm -S /dev/md2
mdadm: stopped /dev/md2
root at hive:~# mdadm -X /dev/md2
mdadm: failed to read superblock of bitmap file: No such device
root at hive:~# mdadm -E /dev/md2
mdadm: No md superblock detected on /dev/md2.

The same goes for md3 but I only get the above error.

Output from sh -x "/usr/share/mdadm/checkarray --all":

+ REVISION=2006.07.07.1121
+ PROGNAME=checkarray
+ SHORTOPTS=achVqQ
+ LONGOPTS=all,cron,help,version,quiet,real-quiet
++ getopt -o achVqQ -l all,cron,help,version,quiet,real-quiet -n checkarray -- --all
+ eval set -- --all --
++ set -- --all --
+ devices=
+ cron=0
+ all=0
+ quiet=0
+ for opt in '$@'
+ case "$opt" in
+ all=1
+ for opt in '$@'
+ case "$opt" in
+ :
+ DEBIANCONFIG=/etc/default/mdadm
+ '[' -f /etc/default/mdadm ']'
+ . /etc/default/mdadm
++ INITRDSTART=all
++ AUTOSTART=true
++ AUTOCHECK=true
++ START_DAEMON=true
++ USE_DEPRECATED_MDRUN=false
+ '[' 0 = 1 ']'
+ '[' '!' -f /proc/mdstat ']'
++ ls /sys/block/md0/md/sync_action /sys/block/md1/md/sync_action
+ '[' -z '/sys/block/md0/md/sync_action
/sys/block/md1/md/sync_action' ']'
+ '[' 1 = 1 ']'
++ ls -d1 /sys/block/md0 /sys/block/md1 /sys/block/md2 /sys/block/md3
++ cut -d/ -f4
+ devices='md0
md1
md2
md3'
+ for dev in '$devices'
+ SYNC_ACTION_CTL=/sys/block/md0/md/sync_action
+ '[' '!' -w /sys/block/md0/md/sync_action ']'
++ cat /sys/block/md0/md/sync_action
+ '[' idle '!=' idle ']'
+ echo check
+ '[' 0 -lt 1 ']'
+ echo 'checkarray: I: check queued for device md0.'
checkarray: I: check queued for device md0.
+ for dev in '$devices'
+ SYNC_ACTION_CTL=/sys/block/md1/md/sync_action
+ '[' '!' -w /sys/block/md1/md/sync_action ']'
++ cat /sys/block/md1/md/sync_action
+ '[' idle '!=' idle ']'
+ echo check
+ '[' 0 -lt 1 ']'
+ echo 'checkarray: I: check queued for device md1.'
checkarray: I: check queued for device md1.
+ for dev in '$devices'
+ SYNC_ACTION_CTL=/sys/block/md2/md/sync_action
+ '[' '!' -w /sys/block/md2/md/sync_action ']'
+ '[' 0 -lt 2 ']'
+ echo 'checkarray: E: /sys/block/md2/md/sync_action not writeable.'
checkarray: E: /sys/block/md2/md/sync_action not writeable.
+ exit 4

Sorry, but I don't understand how to completely remove a metadevice and
I guess that will resolve the problem.

-- 
Frank Hart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20060802/00f508b2/attachment.pgp


More information about the pkg-mdadm-devel mailing list