首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >重建Raid 1

重建Raid 1
EN

Server Fault用户
提问于 2012-07-12 17:06:02
回答 2查看 3.4K关注 0票数 2

我正试图重建raid 1 (dmraid+isw),但没有成功。我用一个新的磁盘替换了失败的磁盘,BIOS将它自动添加到raid中。运行内核2.6.18-194.17.4.el5。

dmraid -r

代码语言:javascript
复制
/dev/sda: isw, "isw_babcjifefe", GROUP, ok, 1953525165 sectors, data@ 0
/dev/sdb: isw, "isw_babcjifefe", GROUP, ok, 1953525165 sectors, data@ 0

dmraid -s

代码语言:javascript
复制
*** Group superset isw_babcjifefe
--> Subset
name   : isw_babcjifefe_Raid0
size   : 1953519616
stride : 128
type   : mirror
status : nosync
subsets: 0
devs   : 2
spares : 0

当我尝试启动raid时,我会收到下一个错误。

dmraid -f isw -S -M /dev/sdb

代码语言:javascript
复制
ERROR: isw: SPARE disk must use all space on the disk

dmraid -tay

代码语言:javascript
复制
isw_babcjifefe_Raid0: 0 1953519616 mirror core 3 131072 sync block_on_error 2 /dev/sda 0 /dev/sdb 0

dmraid -ay

代码语言:javascript
复制
RAID set "isw_babcjifefe_Raid0" was not activated
ERROR: device "isw_babcjifefe_Raid0" could not be found

dmraid -f isw -S -M /dev/sdb

代码语言:javascript
复制
ERROR: isw: SPARE disk must use all space on the disk

dmraid -R isw_babcjifefe_Raid0 /dev/sdb

代码语言:javascript
复制
ERROR: disk /dev/sdb cannot be used to rebuilding

德梅斯

代码语言:javascript
复制
device-mapper: table: 253:13: mirror: Device lookup failure
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn't appear to be in the dev hash table.
device-mapper: table: 253:13: mirror: Device lookup failure
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn't appear to be in the dev hash table.
device-mapper: table: 253:13: mirror: Device lookup failure
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn't appear to be in the dev hash table.
device-mapper: ioctl: device doesn't appear to be in the dev hash table.
device-mapper: ioctl: device doesn't appear to be in the dev hash table.

磁盘:

代码语言:javascript
复制
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

LVM:

代码语言:javascript
复制
PV /dev/sda5   VG storage   lvm2 [914.64 GB / 28.64 GB free]
Total: 1 [914.64 GB] / in use: 1 [914.64 GB] / in no VG: 0 [0   ]
Reading all physical volumes.  This may take a while...
Found volume group "storage" using metadata type lvm2
ACTIVE            '/dev/storage/home' [68.00 GB] inherit
ACTIVE            '/dev/storage/home2' [68.00 GB] inherit
ACTIVE            '/dev/storage/home3' [68.00 GB] inherit
ACTIVE            '/dev/storage/home4' [68.00 GB] inherit
ACTIVE            '/dev/storage/home5' [68.00 GB] inherit
ACTIVE            '/dev/storage/var' [15.00 GB] inherit
ACTIVE            '/dev/storage/mysql' [20.00 GB] inherit
ACTIVE            '/dev/storage/pgsql' [7.00 GB] inherit
ACTIVE            '/dev/storage/exim' [12.00 GB] inherit
ACTIVE            '/dev/storage/apache' [25.00 GB] inherit
ACTIVE            '/dev/storage/tmp' [2.00 GB] inherit
ACTIVE            '/dev/storage/backup' [450.00 GB] inherit
ACTIVE            '/dev/storage/log' [15.00 GB] inherit
EN

回答 2

Server Fault用户

回答已采纳

发布于 2012-07-13 03:09:15

我会同意安德鲁的意见。

希望您可以安装-o ro /dev/sd

然后,复制该驱动器的数据,重新开始使用mdadm和完整、可靠、易于使用、快速的软件raid。

祝好运。

票数 1
EN

Server Fault用户

发布于 2012-07-12 21:47:27

我不确定dmraid是否支持重建假货(比如isw)。我会建议刮isw和建立纯粹的软件raid与mdadm。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/407216

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档