Wednesday, November 16, 2005, 11:35:16 PM, you wrote:

KBK> "Dennis S.Davidoff" <[EMAIL PROTECTED]> writes:

>> How to reconfigure RAIDFrame to use another hdd? Earler I have such
>> configuration with NON-existent hdd (wd2):
>>
>> ...
>> START disks
>> /dev/wd1e
>> /dev/wd2e
>> ...
>>
>> Now, I need to replace non-existent wd2e with wd0e. Disklabel for wd0
>> identical to wd1e. After reading raidctl(8) I did following:
>>
>> raidctl -a /dev/wd0e raid0
>> raidctl -vF component1 raid0
>> raidctl -P raid0
>>
>> Again after reboot I've got failed ``component1':
>>
>> # raidctl -vs raid0
>> raid0 Components:
>>            /dev/wd1e: optimal
>>           component1: failed
>> No spares.

KBK> It seems you weren't successful in adding wd0e as a spare.  But if you
KBK> were,

KBK> raidctl -r /dev/wd0e raid0

KBK> to remove it.

KBK> Modify your raid0.conf:
KBK> START disks
KBK> /dev/wd1e
KBK> /dev/wd0e
KBK> ...

KBK> raidctl -Rv /dev/wd0e raid0
KBK> raidctl -Pv raid0

KBK> to reconstruct directly onto wd0e.

KBK> I'm not sure what to make of 'component1'.  It's not an explicit
KBK> device, did you use that string your raid0.conf?  The first slot in
KBK> these commands should refer to an explicit device.

# raidctl -vF component1 raid0
# raidctl -vP raid0
# raidctl -s raid0
raid0 Components:
           /dev/wd1e: optimal
          component1: spared
Spares:
           /dev/wd0e: used_spare
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.
# raidctl -r /dev/wd0e raid0
# cat /etc/raid0.conf
START array
1 2 0

START disks
/dev/wd1e
/dev/wd0e

START layout
128 1 1 1

START queue
fifo 100
# raidctl -Rv /dev/wd0e raid0                                                  
raidctl: ioctl (RAIDFRAME_GET_INFO) failed
# raidctl -Pv raid0                                                            
raid0: Parity status: clean
# raidctl -sv raid0
raid0 Components:
           /dev/wd1e: optimal
          component1: spared
Spares:
           /dev/wd0e: used_spare
Component label for /dev/wd1e:
   Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 777, Mod Counter: 348
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 156038272
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Yes
   Last configured as: raid0
component1 status is: spared.  Skipping label.
raidctl: ioctl (RAIDFRAME_GET_COMPONENT_LABEL) failed
# 

-- 
Sincerely,
Dennis

Reply via email to