tw_cli
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tw_cli [2010/07/17 21:15] – created k2patel | tw_cli [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ==== Checking the status of controller, array or disk ==== | ==== Checking the status of controller, array or disk ==== | ||
| - | <code bash> | + | <code bash | list controllers in the machine |
| info | info | ||
| </ | </ | ||
| - | list controllers in the machine | + | <code bash | list the disks on controller 1 and their grouping into RAID arrays |
| - | <code bash> | + | |
| info c1 | info c1 | ||
| </ | </ | ||
| - | | + | <code bash | list the disks in RAID unit 2 and their status within the array. Useful to find out which disk is bad in a DEGRADED array. |
| - | <code bash> | + | |
| info c1 u2 | info c1 u2 | ||
| </ | </ | ||
| - | | + | <code bash | list the status |
| - | <code bash> | + | |
| info c1 p2 | info c1 p2 | ||
| </ | </ | ||
| - | list the status of an individual disk | + | <code bash | for experts: show low-level error log output for the controller |
| - | <code bash> | + | |
| info c1 diag | info c1 diag | ||
| </ | </ | ||
| - | for experts: show low-level error log output for the controller | + | |
| + | ==== Removing a disk ==== | ||
| + | |||
| + | <code bash | remove disk p2 from c1 array> | ||
| + | maint remove c1 p2 | ||
| + | </ | ||
| + | |||
| + | ==== Re-detecting a disk ==== | ||
| + | It varies based on your version of tw_cli. | ||
| + | |||
| + | <code bash | rescan or add you can use any one of them based on version OR try from top to bottom stop when succeed> | ||
| + | rescan c1 | ||
| + | OR | ||
| + | maint rescan c1 | ||
| + | OR | ||
| + | maint add c1 p2 | ||
| + | </ | ||
| + | |||
| + | ==== Rebuilding an array ==== | ||
| + | <code bash | After rescan you need to rebuild> | ||
| + | maint rebuild c1 u2 p2 | ||
| + | </ | ||
| + | |||
| + | ==== Creating a RAID unit ==== | ||
| + | == RAID1 == | ||
| + | <code bash> | ||
| + | maint createunit c1 rraid1 p2:3 | ||
| + | </ | ||
| + | |||
| + | == RAID5 == | ||
| + | <code bash> | ||
| + | maint createunit c1 rraid5 p0: | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Assigning a disk as a 'hot spare' ==== | ||
| + | |||
| + | <code bash> | ||
| + | maint createunit c1 rspare p2 | ||
| + | </ | ||
| + | |||
tw_cli.1279401321.txt.gz · Last modified: 2020/08/10 02:29 (external edit)
