大网数据广告活动
服务器运维问答

Convert single disk raid0 to raid1 on an LSI megaraid controller

· 52CE 我爱测

I have a server with an LSI Megaraid raid controller which has a single disk for the OS configured in raid0 What i want to do, is add a second brand new disk for redundancy and convert the raid0 to raid1 without losing the data o…

问题原文

原帖链接 · Antony Matsoukas · CC BY-SA 3.0

I have a server with an LSI Megaraid raid controller which has a single disk for the OS configured in raid0

What i want to do, is add a second brand new disk for redundancy and convert the raid0 to raid1 without losing the data on the first disk

Is it possible to do this with the Megaraid Controller ? If yes, is it maybe possible to do it without downtime as well ?

Could someone provide me with the megacli commands involved to achieve this?

社区高分解答

原帖链接 · Antony Matsoukas · CC BY-SA 3.0

To answer my own question, it is infact possible to migrate live from a single drive raid0 to raid1 (providing an extra disk) with Megaraid cards

The megacli command is as follows (it can also be done from within the WebBios configuration utility of the raid controller):

megacli -ldrecon -start -r1 -add -physdrv[e:s] -l0 -a0

where [e:s] is the enclosure:slot_number of the extra disk and -l0 is the logical disk ID of the raid0 disk.

Someone can monitor the progress of the reconstruction by issuing the command:

megacli -ldrecon -showprog -l0 -a0

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-04-25)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。