Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mdadm: failed to stop /dev/md1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Jarry
n00b
n00b


Joined: 12 Jul 2005
Posts: 13

PostPosted: Mon Jul 18, 2005 6:04 pm    Post subject: mdadm: failed to stop /dev/md1 Reply with quote

I have just finished (finally!) installation of 2005.0, and I've noticed on
console-screen some strange message always, when doing shutdown:

mdamd: failed to stop /dev/md1 array, device or resource busy [!!]

/dev/md1 is mounted as root partition, apart from that I have
7 more /dev/md partitions, all are stopped without any message.

Right before "shutdown -h now" I tried to see if there are some
files open, but "lsof /dev/md1" showed nothing...

I can not find any other relevant messages, syslog-ng is stopped
before this error, and shutdown continues as usuall. Any ideas?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Mon Jul 18, 2005 6:24 pm    Post subject: Reply with quote

Hi.

Instead of doing
Code:
# lsof /dev/md1

have you tried doing the same to the partition the array was mounted on?
Code:
# lsof /mount/partition

_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
Jarry
n00b
n00b


Joined: 12 Jul 2005
Posts: 13

PostPosted: Tue Jul 19, 2005 8:15 am    Post subject: Reply with quote

> have you tried doing the same to the partition the array was mounted on?
> # lsof /mount/partition

well, my /dev/md1 is root-partition, so I issued:

lsof / | less

It gives me a lot of opened files:
init
khelper
kacpid
kblock
kswap
md*_raid1
udevd
kjournald
syslog-ng
acpid
named
sshd
apache
cron
agetty
...

I think they should all be closed at shutdown...
Where should I put link to lsof so that it would display opened
files right before mdadm tries to stop arrays (when doing shutdown)?
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Wed Jul 20, 2005 12:17 am    Post subject: Reply with quote

Moved from Installing Gentoo to Kernel & Hardware.
Back to top
View user's profile Send private message
PiniHadad
n00b
n00b


Joined: 16 Jun 2003
Posts: 69

PostPosted: Wed Jul 20, 2005 1:49 am    Post subject: Reply with quote

I've got / on an md device and I recently started seeing this behavior also.
Back to top
View user's profile Send private message
PiniHadad
n00b
n00b


Joined: 16 Jun 2003
Posts: 69

PostPosted: Wed Jul 20, 2005 2:34 am    Post subject: Reply with quote

Filed a bug on this: https://bugs.gentoo.org/show_bug.cgi?id=99611
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum