Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mdadm shuts down before the network mounts
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
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 945
Location: USA

PostPosted: Fri Feb 13, 2009 7:06 pm    Post subject: mdadm shuts down before the network mounts Reply with quote

I never realized this, but during the shutdown Gentoo tries to shutdown mdadm BEFORE unmounting all the network mounts. In my case this doesn't work, because I have NFS mounts on my RAID volumes.
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
jordanwb
l33t
l33t


Joined: 10 Jul 2008
Posts: 642
Location: Ottawa, Canada

PostPosted: Mon Feb 16, 2009 2:00 am    Post subject: Reply with quote

Try making an init script that unmounts the NFS mounts and put it in the shutdown runlevel like this:

Code:


depend()
{
before mdadm
}

stop()
{
umount /path/to/dir
}


I don't know about that before statement.

[Edit] Are you sure the NFS mounts aren't unmounted along with your other mounts?
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 945
Location: USA

PostPosted: Mon Feb 16, 2009 5:27 am    Post subject: Reply with quote

I actually fixed it the same day I saw this issue. This should be treated as a bug.
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
jordanwb
l33t
l33t


Joined: 10 Jul 2008
Posts: 642
Location: Ottawa, Canada

PostPosted: Mon Feb 16, 2009 2:58 pm    Post subject: Reply with quote

Don't forget to put "[Solved]" in the thread title.
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