用arcconf在线创建StorageTek Raid Controller镜像/Make live mirror with arcconf for StorageTek RAID Controller

X4170 with StorageTek raid controller, 做系统的时候为了节省成本没有做镜像,以至于后来硬盘问题频发导致多次系统crash。让我想到必须做镜像和raid了。研究了下StorMan的手册,发现可以用GUI的StorMan来配置,也可以用arcconf来配置,我没有图形界面,所以只好用arcconf了。

X4170 with StorageTek raid controller has no mirror due to the budget limitation and this caused the OS crash many times by disk failure. This forces me to make mirror for OS. According to the manual of StorMan, this can be done by GUI or arcconf. I have no GUI so I must use arcconf.

其实很简单,至少有一个free的盘,我假设我现有OS的盘是0,0,free的盘是0,1,在线创建的命令为:
It’s easy. At least you need to have a free disk. I assume my OS disk is 0,0 and free disk is 0,1. The live creation command should be:

bash-3.2# arcconf modify 1 from 0 to max 1 0 0 0 1
Controllers found: 1
The requested modification does not support change of logical device size.
The target logical device must be 285696 MB

//I would like to use max as the volume size but the command says the size must be 285696

Command aborted.

bash-3.2# arcconf modify 1 from 0 to 285696 1 0 0 0 1
Controllers found: 1
Reconfiguration of a logical device is a long process. Are you sure you want to continue?
Press y, then ENTER to continue or press ENTER to abort: y

Reconfiguring logical device: os

Command completed successfully.

//It says the process is long but actually it takes less than 1 second.

当然,如果你使用的是新disk,需要首先initialize, 否则会出错://If you’re using a new inserted disk, please initialize first. Otherwise you’ll get aborted

bash-3.2# arcconf modify 1 from 0 to 285696 1 0 0 0 1
Controllers found: 1
Not enough available space.
Not enough available space.

Command aborted.

bash-3.2# arcconf task start 1 device 0 1 initialize
Controllers found: 1
Initializing Channel 0, Device 1.

Command completed successfully.

bash-3.2# arcconf getconfig 1
———————————————————————-

Logical device information
———————————————————————-
Logical device number 0
Logical device name : os
RAID level : 1
Status of logical device : Impacted
Size : 285686 MB
Read-cache mode : Enabled
Write-cache mode : Enabled (write-back)
Write-cache setting : Enabled (write-back) when protected by battery
Partitioned : Yes
Protected by Hot-Spare : No
Bootable : Yes
Failed stripes : No
——————————————————–
Logical device segment information
——————————————————–
Segment 0 : Present (0,0) 00084970458V 3SE0458V
Segment 1 : Present (0,1) 00095371FBS8 3SE1FBS8

命令格式/Command format:

arcconf modify <controller> from <logical_volume> to <volume_size> <raid_level> <disk1 IDs> <disk2 IDs>

Or for a more verbose explanation:

arcconf (the raid utility)

modify (modify an existing raid)

1 (the controller with your simple_volume you want to turn into a raid 1)

from 0 (the logical volume you want to convert into a raid 1)

to 139900 (the size of the volume. In my version of arcconf, this had to be set to a numeric value matching the current simple_volume size, and MAX was not a valid option)

1 (the raid level you want to convert to)

0 0 (the first disk ID (0,0) in the raid 1. This should be your existing disk containing the simple_volume that you want to convert to raid 1)

0 1 (the extra available disk ID (0,1) that you are adding to the raid 1 to make it a mirror)

Leave a Reply

Your email address will not be published. Required fields are marked *