3ware controller (tw_cli, JBOD,RAID-1)

Here you can find tutorials and notes for server-side maintenance/configuration

3ware controller (tw_cli, JBOD,RAID-1)

Postby lik » Mon Jul 13, 2009 8:33 am

Here you can find "tw_cli.*.rpm" utility packages for Centos:
http://atrpms.net/dist/common/tw_cli/

After one of the RAID-1 HDDs replacement on the fly (hotplug) we have got the following picture:
Code: Select all
tw_cli info c0

Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-1 DEGRADED - - - 465.761 ON -
u1 JBOD OK - - - 465.762 ON -

Port Status Unit Size Blocks Serial
---------------------------------------------------------------
p0 OK u0 465.76 GB 976773168 5Q****Q0
p1 OK u1 465.76 GB 976773168 9Q****3A

First of all, we need to delete newly detected as JBOD unit:
Code: Select all
tw_cli maint deleteunit c0 u1

Deleting unit c0/u1 ...Done.
Code: Select all
tw_cli info c0

Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-1 DEGRADED - - - 465.761 ON -

Port Status Unit Size Blocks Serial
---------------------------------------------------------------
p0 OK u0 465.76 GB 976773168 5Q****Q0
p1 OK - 465.76 GB 976773168 9Q****3A
Code: Select all
tw_cli info c0 u0

Unit UnitType Status %RCmpl %V/I/M Port Stripe Size(GB)
------------------------------------------------------------------------
u0 RAID-1 DEGRADED - - - - 465.761
u0-0 DISK OK - - p0 - 465.761
u0-1 DISK DEGRADED - - - - 465.761

Having this done we are starting RAID-1 rebuild process to the p1 port`s HDD:
Code: Select all
tw_cli maint rebuild c0 u0 p1

Sending rebuild start request to /c0/u0 on 1 disk(s) [1] ... Done.
Code: Select all
tw_cli info c0

Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-1 REBUILDING 0 - - 465.761 ON -

Port Status Unit Size Blocks Serial
---------------------------------------------------------------
p0 OK u0 465.76 GB 976773168 5Q****Q0
p1 DEGRADED u0 465.76 GB 976773168 9Q****3A

https://twiki.cern.ch/twiki/bin/view/FIOgroup/DiskWinTwSystemJbodRaid1
http://www.experts-exchange.com/OS/Linux/Q_24379307.html
http://trainofthoughts.org/blog/2007/09/26/server-locksmith/
Attachments
tw_cli.gz
tw_cli_x64_linux-from_the_10.2.2.1_9.5.5.1_codesets
MD5(tw_cli)= a7fac783e357ba3b979255f9fa50c966
MD5(tw_cli.gz)= 97a83b8f8a0d2b1740f8720b38981e19
(855.88 KiB) Downloaded 1289 times
tw_cli-2.00.03.018-7.i386.rpm
tw_cli-2.00.03.018-7.i386.rpm from ATrpms
(1.49 MiB) Downloaded 1331 times
tw_cli-2.00.03.018-7.x86_64.rpm
tw_cli-2.00.03.018-7.x86_64.rpm drom ATrpms
(1.57 MiB) Downloaded 1390 times
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Re: 3ware controller (tw_cli,RAID-10)

Postby lik » Mon Nov 30, 2009 4:47 pm

Q14084 - How to question:
From the CLI, whats the proper way to rebuild a RAID-10 array thats missing more than one disk (but not unusable! - basically two degraded underlying RAID-1 sets)?
Ive tried /c5/u0 start rebuild disks=0:3 but I get told that is an invalid set of disks to rebuild the array. I was able to rebuild from the web interface, but Id rather know how to do it from the CLI. [ 9500S-8 | Linux (2.6 kernel, 3w-9xxx 9.2) ]
Assuming port1 is bad:
1. Remove p1 provider:
Code: Select all
tw_cli maint remove c0 p1

2. remove the Old drive and Hotswap a new drive
3. Rescan controller to detect new drive:
Code: Select all
tw_cli maint rescan c0

This should bring the new drive up.
4. Define new drive as spare:
Code: Select all
tw_cli maint createunit c0 rspare p1

5. Initiate rebuild process if it is not started automatically:
Code: Select all
tw_cli maint rebuild c0 u0 p1
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Converting the system disk from JBOD to RAID1

Postby lik » Tue Apr 20, 2010 5:53 pm

lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am


Return to Server Side Actions

 


  • Related topics
    Replies
    Views
    Last post
cron