Jump to content
funtoo forums
  • 0
digifuzzy

mdadm disappears - emerge surprises

Question

Well that was disconcerting...

I just finished an emerge on my file server and followed it up with a reboot.

Strange, I couldn't find my raid device!?!?!?!

 

I did an mdadm -D devicename only to be told that mdadm as command was not recognized.

????? o_O

 

Sure enough, sys-fs/mdadm had disappeared from my system. But I didn't remove that ebuild...

Re-emerged, etc-update, rc-update, rc-service and remount...back to normal.

 

Its these surprises with emerge that are starting to wear on me.

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0

 

Have you searched the contents of /var/log/emerge.log? That could assist you in determining when mdadm was unmerged.

Okay...I think I found it. Embarassingly, it was probably my own foolishness. The package was unmerged about three weeks ago when I was trying to clean up. I had mistakenly used the "--with-bdeps" flag in previous emerges. When I went to use "emerge --depclean --with-bdeps=n" to clean up, it pulled out a number of packages including mdadm. I had though I had corrected this issue by re-emerging a few packages, but missed mdadm. The removal wasn't discovered until after a restart.

 

app-portage/genlop is another good tool to have installed to investigate updates/installs/removals of ebuilds.

I'll look into this. THX.

 

So - thanks for the help with my own foolishness everyone.

Props to Tassie_Tux for the lead/info.

Share this post


Link to post
Share on other sites
  • 0

Kind of shocking to emerge/reboot and not be able to find drive space. This shouldn't happen. Installed functionality shouldn't "normally" disappear.

 

For the record:

- smartd doesn't report drive errors with device storing /.

- was root when I went to check mdadm

 

Other than what I have posted in the forums/bugs in the past, not really. I just fixed and moved on as I was more worried about my system than diagnosing a possible portage/emerge issue. Sorry.

 

Had to rant a little. My bad :(

Share this post


Link to post
Share on other sites
  • 0

Not a problem. Unstandable.

 

I wasn't attentive enough during my emerging process to see what was being updated and/or removed. So reporting it "after the fact" without details doesn't help. The whole situation was just disturbing.

 

THX for trying :)

Share this post


Link to post
Share on other sites
  • 0

I wasn't attentive enough during my emerging process to see what was being updated and/or removed. So reporting it "after the fact" without details doesn't help. The whole situation was just disturbing.

 

 

Have you searched the contents of /var/log/emerge.log? That could assist you in determining when mdadm was unmerged.

Share this post


Link to post
Share on other sites
  • 0

Have you searched the contents of /var/log/emerge.log? That could assist you in determining when mdadm was unmerged.

Good catch. I wasn't aware of this "feature".

I can already see where it was pulled out and re-installed.

 

Must dig.

Thx Tassie!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...