原贴:http://www.linuxquestions.org/questions/linux-general-1/md-kicking-non-fresh-sda6-from-array-416853/

md: kicking non-fresh sda6 from array!

Hello,

I have some raid1 failures on my computer. How can I fix this?

# dmesg | grep md
ata1: SATA max UDMA/133 cmd 0xBC00 ctl 0xB882 bmdma 0xB400 irq 193
ata2: SATA max UDMA/133 cmd 0xB800 ctl 0xB482 bmdma 0xB408 irq 193
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: raid1 personality registered as nr 3
md: md2 stopped.
md: bind<sdb9>
md: bind<sda9>
raid1: raid set md2 active with 2 out of 2 mirrors
md: md1 stopped.
md: bind<sda6>
md: bind<sdb6>
md: kicking non-fresh sda6 from array!
md: unbind<sda6>
md: export_rdev(sda6)
raid1: raid set md1 active with 1 out of 2 mirrors
md: md0 stopped.
md: bind<sda5>
md: bind<sdb5>
md: kicking non-fresh sda5 from array!
md: unbind<sda5>
md: export_rdev(sda5)
raid1: raid set md0 active with 1 out of 2 mirrors
EXT3 FS on md2, internal journal
EXT3 FS on md0, internal journal
EXT3 FS on md1, internal journal

# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb5[1]
4883648 blocks [2/1] [_U]

md1 : active raid1 sdb6[1]
51761280 blocks [2/1] [_U]

md2 : active raid1 sda9[0] sdb9[1]
102799808 blocks [2/2] [UU]

unused devices: <none>

# e2fsck /dev/sda5
e2fsck 1.37 (21-Mar-2005)
/usr: clean, 18653/610432 files, 96758/1220912 blocks (check in 3 mounts)

# e2fsck /dev/sda6
e2fsck 1.37 (21-Mar-2005)
/var: clean, 7938/6471680 files, 350458/12940320 blocks (check in 3 mounts)

   
username is already
View Public Profile
View LQ Blog
View Bookmarks
View Review Entries
View HCL Entries
Find More Posts by username is already
02-18-2006, 11:03 PM   #2
macemoneta <script type="text/javascript"> vbmenu_register("postmenu_2111729", true); </script>
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86, x86_64, PPC
Posts: 3,506

This can happen after an unclean shutdown (like a power fail). Usually removing and re-adding the problem devices will correct the situation:

/sbin/mdadm /dev/md0 --fail /dev/sda5 --remove /dev/sda5
/sbin/mdadm /dev/md0 --add /dev/sda5

/sbin/mdadm /dev/md1 --fail /dev/sda6 --remove /dev/sda6
/sbin/mdadm /dev/md1 --add /dev/sda6

   
macemoneta
View Public Profile
View LQ Blog
View Bookmarks
View Review Entries
View HCL Entries
View LQ Wiki Contributions
Find More Posts by macemoneta
02-19-2006, 04:04 AM   #3
username is already <script type="text/javascript"> vbmenu_register("postmenu_2111983", true); </script>
Newbie
Registered: Dec 2005
Posts: 4

Yes, that is exactly what happend. There was a problem with a UPS.

Problem solved and everyone happy.

Thanks!

   
username is already
View Public Profile
View LQ Blog
View Bookmarks
View Review Entries
View HCL Entries
Find More Posts by username is already
01-23-2007, 01:09 PM   #4
Complicated Disaster <script type="text/javascript"> vbmenu_register("postmenu_2599211", true); </script>
LQ Newbie
Registered: Jan 2007
Posts: 6

Quote:
Originally Posted by macemoneta
This can happen after an unclean shutdown (like a power fail). Usually removing and re-adding the problem devices will correct the situation:

/sbin/mdadm /dev/md0 --fail /dev/sda5 --remove /dev/sda5
/sbin/mdadm /dev/md0 --add /dev/sda5

/sbin/mdadm /dev/md1 --fail /dev/sda6 --remove /dev/sda6
/sbin/mdadm /dev/md1 --add /dev/sda6

Thank you!!! I had the same problem and it's now fixed!

CD

   
Complicated Disaster
View Public Profile
View LQ Blog
View Bookmarks
View Review Entries
View HCL Entries
Find More Posts by Complicated Disaster
06-03-2007, 11:09 PM   #5
the_tflk <script type="text/javascript"> vbmenu_register("postmenu_2774007", true); </script>
Member
Registered: Jul 2003
Location: MA
Distribution: Ubuntu
Posts: 33

This came in handy for me too - I had a bad shutdown recently and my array didn't come back on it's own. ...I thought I had lost a disk! (67.7% recovered and climbing - Whooooohoo!)
   
the_tflk
View Public Profile
View LQ Blog
View Bookmarks
View Review Entries
View HCL Entries
Find More Posts by the_tflk
07-29-2007, 07:34 AM   #6
jostmart <script type="text/javascript"> vbmenu_register("postmenu_2840546", true); </script>
LQ Newbie
Registered: Jul 2006
Posts: 8

Same here. This thread saved my day

Now my raid is syncing since sda6 and sda5 failed.

Personalities : [raid1]
md0 : active raid1 sda6[2] sdb6[1]
238275968 blocks [2/1] [_U]
[==>..................] recovery = 10.2% (24469056/238275968) finish=64.3min speed=55398K/sec

md2 : active raid1 sda5[0] sdb5[1]
5855552 blocks [2/2] [UU]


Last edited by jostmart : 07-29-2007 at 07:36 AM.
 
raid1, raid, sync, mdadm
jostmart
View Public Profile
View LQ Blog
View Bookmarks
View Review Entries
View HCL Entries
Find More Posts by jostmart
08-12-2007, 05:46 AM   #7
gneeot <script type="text/javascript"> vbmenu_register("postmenu_2856191", true); </script>
LQ Newbie
Registered: Jan 2006
Location: Ukraine
Distribution: Debian, Ubuntu, Fedora
Posts: 21

Just helped me. Thanks!
   

md: kicking non-fresh sda6 from array!相关推荐

  1. linux下raid(md)驱动源码解析

    md源代码解析-part1 最近花了一段时间认真地学习了一下md代码,并且在原代码的基础上开发了一系列的新功能,这些新功能让md更完善.更适合于企业大容量存储,通过增加阵列缓存和bitmap优化大大提 ...

  2. php 随机调用文章,zblog PHP调用热门文章、随机文章和热评文章代码

    热门文章.随机文章或热评文章是网站最常见的三大模块,在进行网页制作的时候会经常调用到,Z-Blog php版本程序的三大模块调用方法,可以通过创建include.php文件,添加函数代码后,使用Get ...

  3. wxif 判断字符串相等_ES6:字符串、数组、对象的扩展

    字符串的扩展 ES6中的字符串扩展,用得少,而且逻辑相对简单.如下: includes(str):判断是否包含指定的字符串 startsWith(str):判断是否以指定字符串开头 endsWith( ...

  4. PHP 国家电话区号 PHP Countries and their call codes with two letter abbreviations

    代码: <?php $countries = array(); $countries[] = array("code"=>"AF","na ...

  5. 如何简化React应用程序中的状态-轻松实现Redux

    by Arnel Enero 通过Arnel Enero 如何简化React应用程序中的状态-轻松实现Redux (How to simplify state in your React app - ...

  6. ResultSet转换为List的方法

    方法一: ResultSet转换为List的方法 private static List convertList(ResultSet rs) throws SQLException { List li ...

  7. MD5算法与sign签证

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明. 本文链接:https://blog.csdn.net/zyzn1425077119/artic ...

  8. three.js 加载gltf模型的简化demo

    目录 前言 下载依赖 改造插件 主要代码 效果 前言 最近需要做一个three.js加载三维模型的,才发现three.js的官网和网上的示例挺乱的.甚至有人说把three.js的全部demo下载下来, ...

  9. 数学建模之Python-BP神经网络算法分类模型

    前言: BP神经网络预测见下: https://blog.csdn.net/MrMaurice/article/details/88384215?spm=1001.2014.3001.5501 了解了 ...

最新文章

  1. 传Exchange 15将于今年9月发布
  2. 关于log4net日志写入mysql数据库记录
  3. Windows XP系统八种安全模式揭密
  4. 经典数据结构和算法 双端队列 java
  5. 网易有道2017内推编程题
  6. cmd命令行导出的txt文本文档编码格式转换
  7. boost::pfr::for_each_field相关的测试程序
  8. Hadoop 01_基础知识
  9. 内置的进制转换的方法---小笔记
  10. OAuth2.0_环境介绍_授权服务和资源服务_Spring Security OAuth2.0认证授权---springcloud工作笔记138
  11. mmap函数_Linux中的mmap映射 [二]
  12. android模拟器 bridge,ADB (Android Debug Bridge)简介
  13. katakana.php,片假名 平假名转换器 - Hi!Penpal!
  14. 在Eclipse中使用JDBC访问MySQL数据库的配置方法
  15. Day83.尚好房 — 用户管理— Hplus(UI框架)、Layer(弹出层框架)、增删改查、分页组件 :分页查询
  16. JAVA中小型医院信息管理系统源码 医院系统源码
  17. 三菱服务器位置控制,关于三菱PLC 相对位置绝对位置控制问题
  18. opencv 查找白色图片的一个黑点
  19. 淘宝万能抢单exe,含python源码
  20. 你可以更幸福(转载)

热门文章

  1. Zabbix之ZABBIX WEB界面安装
  2. 企业级的网络系统设计
  3. shader之——球形烟雾 CG函数saturate与abs的用法
  4. 浙江大学754西医综合
  5. java做橡皮擦效果_用HTML5 实现橡皮擦的涂抹效果的教程
  6. [前端]div不换行
  7. 支持移动端裁剪图片插件Jcrop(结合WebUploader上传)
  8. 关于EAD: Elastic-Net Attacks to Deep Neural Networks via Adversarial Examples的理解
  9. 关键字transient是干啥的
  10. 卡尔曼滤波系列(五)——奇异值鲁棒的卡尔曼滤波算法