Skip to content

Instantly share code, notes, and snippets.

@airtonix
Last active August 29, 2015 14:19
Show Gist options
  • Save airtonix/88391fc60a16e46e9b13 to your computer and use it in GitHub Desktop.
Save airtonix/88391fc60a16e46e9b13 to your computer and use it in GitHub Desktop.

Replace 3ware disk w/ & w/o ZFS

Remove disk from ZFS (3ware)

Remove disk from zpool

  • Command: zpool offline <pool> <disk>
  • Example: zpool offline data da17

Remove from controller

  • Command: tw_cli /c0/pX remove
  • Example: tw_cli /c0/p20 remove

Check for the new disk

  • Check if disk is found: tw_cli /c0 show
  • Force controller to check: tw_cli /c0 rescan

Add the disk as a single disk

  • Command: tw_cli /c0 add type=single disk=xx
  • Example: tw_cli /c0 add type=single disk=20

Tweak 3ware config

  • Command: tw_cli /c0/u17 set cache=off
  • Command: tw_cli /c0/u17 set autoverify=off

Take the disk online in the pool

  • Command: zpool online <pool> <disk>
  • Example: zpool online data da17

Replace the disk

  • Command: zpool replace <pool> <disk>
  • Example: zpool replace data da17

Check zpool status

  • Command: zpool status

Replace disk from 3ware RAID w/o ZFS

Remove from controller

  • Command: tw_cli /c0/pX remove
  • Example: tw_cli /c0/p1 remove

Check for the new disk

  • Check if disk is found: tw_cli /c0 show
  • Force controller to check: tw_cli /c0 rescan

Add the disk as a member

  • Command: tw_cli /c0/uX start rebuild disk=X ignoreECC
  • Example: tw_cli /c0/u0 start rebuild disk=1 ignoreECC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment