URN Logo
UNIX Resources » Linux » China Linux Forum » 网络管理技术 » 25 » 用md實現軟RAID1的問題﹗
announcement 声明: 本页内容为中国Linux论坛的内容镜像,文章的版权以及其他所有的相关权利属于中国Linux论坛和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.net
  业界新闻与评论
  自由软件杂谈
  IT 人生
  Linux软件快递
  翻译作坊
  Linux图书与评论
  GNU Emacs/XEmacs
  Linux 中文环境和中文化
  Linux桌面与办公软件
  Linux 多媒体与娱乐版
  自由之窗Mozilla
  笔记本电脑上的Linux
  Gentoo
  Debian 一族
  网络管理技术
  Linux 安装与入门
  WEB服务器和FTP服务器
  域名服务器和邮件服务器
  Linux防火墙和代理服务器应用
  文件及打印服务器
  技术培训与认证
  TI专版
  Linux内核技术
  Linux 嵌入技术
  Linux设备驱动程序
  Linux 集群技术
  LINUX平台数据库
  系统和网络安全
  CPU 与 编译器
  系统计算研究所专栏
  Linux下的GUI软件开发
  C/C++编程版
  PHP 技 术
  Java&jsp技术
  Shell编程技术
  Perl 编 程
  Python 编 程
  XML/Web Service 技术
  永远的Unix
  FreeBSD世界
   
用md實現軟RAID1的問題﹗
用md實現軟RAID1的問題﹗ - beyond_wyc [2003-01-08 08:47 | 1,725 byte(s)]
 
Re: 用md實現軟RAID1的問題﹗ - beyond_wyc [2003-01-08 08:48 | 702 byte(s)]
 
Re: 用md實現軟RAID1的問題﹗ - beyond_wyc [2003-01-25 11:39 | 2,359 byte(s)]
 
Re: 用md實現軟RAID1的問題﹗ - beyond_wyc [2004-03-12 16:45 | 61 byte(s)]
 
Re: 用md實現軟RAID1的問題﹗ - beyond_wyc [2004-03-12 20:17 | 118 byte(s)]
 
Re: 用md實現軟RAID1的問題﹗ - dennis2 [2004-03-27 16:44 | 60 byte(s)]
 
Subject: 用md實現軟RAID1的問題﹗
Author: beyond_wyc    Posted: 2003-01-08 08:47    Length: 1,725 byte(s)
[Original] [Print] [Top]
我有兩塊40GB的IDE硬盤﹐按照吳阿亭先生的<< Redhat 7.3 Root Partition Raid-1 Mirrorring >>﹐做了Raid1+Mirrorring之后﹐便出現如下問題﹕
1.啟動系統時便出現如下提示﹕
Remounting root filesystem in read-write mode [ok]
Finding module dependencies: [ok]
Starting up RAID devices:/dev/md0:Invalid argument /dev/md0 is not a RAID0 or LINEAR array!md0
/dev/md1:Invalid rgument /dev/md1 is not a RAID0 or LINEAR array!md1
An error occurred during the RAID startup
Dropping you to a shell;the system will reboot when you leave the shell.
然后它會提示你輸入root的密碼﹐進入(Raid Repair)提示符下進行操作﹐若按Ctrl-D則系統重啟。

2.我的/etc/raidtab文件是這樣寫的﹕

raiddev /dev/md0
nr-raid-disks 2
chunk-size 64k
persistent-superblock 0
device /dev/hda8
raid-disk 0
device /dev/hdb8
failed-disk 1


raiddev /dev/md1
raid-level 1
nr-raid-disks 2
chunk-size 64k
persistent-superblock 0
device /dev/hda7
raid-disk 0
device /dev/hdb7
failed-disk 1



(ps:我的第一塊硬盤是/dev/hda8為/;/dev/hda7是swap
第二塊硬盤也分出跟第一塊硬盤一樣的分區結構。
/dev/md0=/dev/hda8+/dev/hdb8作為/
/dev/md1=/dev/hda7+/dev/hdb7作為swap
)
這樣當我執行mkraid --really-force /dev/md0時提示說/dev/hda8已mounted,不能成功﹗
但是mkraid --really-force /dev/md1則可以成功﹗
請問有哪位大俠有過此經驗的﹐指點一下﹗
Thanks!
[Original] [Print] [Top]
Subject: Re: 用md實現軟RAID1的問題﹗
Author: beyond_wyc    Posted: 2003-01-08 08:48    Length: 702 byte(s)
[Original] [Print] [Top]
又把兩塊硬盤裝在一起把系統重裝了一下﹐在安裝時選擇了把兩個root分區都分為SOFT RAID﹐這樣之后安裝成功了﹐起動時直接引導了md0設備﹐即使把一塊硬盤取下之后仍可啟動。
生成的/etc/raidtab文件如下﹕
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
chunk-size 64K
persistent-superblock 1
nr-spare-disks
device /dev/hda8
raid-disk 0
device /dev/hdb8
raid-disk 1
之后我又把系統以單硬盤裝了一次系統﹐再把以上的這個文件寫好﹐之后咝衜kraid --really-force /dev/md0 命令﹐
出現的提示還是﹕
mkraid:aborted,see the syslog and /proc/mdstat for potential clone.

why!
[Original] [Print] [Top]
Subject: Re: 用md實現軟RAID1的問題﹗
Author: beyond_wyc    Posted: 2003-01-25 11:39    Length: 2,359 byte(s)
[Original] [Print] [Top]
md: md driver 0.90.0 MAX_MD_DEVS=256, D_SB_DISKS=27
md: Autodetecting RAID arrays.
(read) hda8's sb offset: 2562240 [events: 00000000]
md: invalid raid superblock magic on hda8
md: hda8 has invalid sb, not importing!
md: could not import hda8!
(read) hdc1's sb offset: 40146496 [events: 00000004]
md: autorun ...
md: considering hdc1 ...
md: adding hdc1 ...
md: created md0
md: bind<hdc1,1>
md: running: <hdc1>
md: hdc1's event counter: 00000004
RAID level 1 does not need chunksize! Continuing anyway.
request_module[md-personality-3]: Root fs not mounted
md.c: personality 3 is not loaded!
md :do_md_run() returned -22
md: md0 stopped.
md: unbind<hdc1,0>
md: export_rdev(hdc1)
md: ... autorun DONE.

md: raid1 personality registered as nr 3
Journalled Block Device driver loaded
md: Autodetecting RAID arrays.
(read) hdc1's sb offset: 40146496 [events: 00000004]
md: autorun ...
md: considering hdc1 ...
md: adding hdc1 ...
md: created md0
md: bind<hdc1,1>
md: running: <hdc1>
md: hdc1's event counter: 00000004
RAID level 1 does not need chunksize! Continuing anyway.
md0: max total readahead window set to 124k
md0: 1 data-disks, max readahead per data-disk: 124k
raid1: device hdc1 operational as mirror 1
raid1: md0, not all disks are operational -- trying to recover array
raid1: raid set md0 active with 1 out of 2 mirrors
md: updating md0 RAID superblock on device
md: hdc1 [events: 00000005](write) hdc1's sb offset: 40146496
md: recovery thread got woken up ...
md0: no spare disk to reconstruct array! -- continuing in degraded mode
md: recovery thread finished ...
md: ... autorun DONE.



This is some message when boot my system,but I can complete raid1 with 'mkraid --really-force /dev/md0' command after system been booted!
Who can help me?
ps:I want to make /dev/hda8 and /dev/hdc1 to a raid1 array!
[Original] [Print] [Top]
Subject: Re: 用md實現軟RAID1的問題﹗
Author: beyond_wyc    Posted: 2004-03-12 16:45    Length: 61 byte(s)
[Original] [Print] [Top]
我用了一周﹐崩潰了。

晚上再敘詳情.........
----
為了生活要向前看﹐理解生活要后看................
[Original] [Print] [Top]
Subject: Re: 用md實現軟RAID1的問題﹗
Author: beyond_wyc    Posted: 2004-03-12 20:17    Length: 118 byte(s)
[Original] [Print] [Top]
我想實現這樣﹕

即raid1中的A正常﹐B盤壞了﹐可否直接用新的C盤換掉B盤就可自動讓A﹑C盤同步?
----
為了生活要向前看﹐理解生活要后看................
[Original] [Print] [Top]
Subject: Re: 用md實現軟RAID1的問題﹗
Author: dennis2    Posted: 2004-03-27 16:44    Length: 60 byte(s)
[Original] [Print] [Top]
看看 software raid howto 就知道了,里面有讲如何 recover 的。
[Original] [Print] [Top]
« Previous thread
有谁用过Cisco 3548的交换机?我一些问题?
网络管理技术
25
Next thread »
Nat problem
     

Copyright © 2007~2009 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
webmaster: webmaster@unixresources.net
This page created on 2009-09-07 16:06:14, cost 0.0203411579132 ms.