Skip to main content

Replacing a Failed Disk Drive in a ZFS System

I use the ZFS on my Ubuntu natively (on root). I have two 2TB Seagate
Hard drives, one 1TB also Seagate which is the oldest and the failed
2TB hard drive. I can't tell which one is going to fail next. It is
never about the hours and years it has been spinning. The youngest
drive is 1 year and 1 month old. The oldest drive is 7 years plus
months.

It is the Operating System and or the motherboard itself which tells
you when a hard drive is failing. When this happens, ZFS will also
concur and declares the pool degraded. I have three hard drives
(devices) that form the pool plus one hard drive for parity. Parity
means 1 drive can fail without data loss.

I have to take the failed drive offline. The command for that is:

#zpool offline [pool] [device]

You can use the device GUID or the name of the device.

I then replaced the old hard drive with the new one. The command for
that is :

#zpool replace [pool] [old device] [new device]

You can use the device GUID or the name of the device.

Information on the device can be found on $zpool status [pool] or $zdb.
ZFS will resilver and calculate parity using the new device. All you
have to do is wait until it finishes. The data is available for use.
ZFS does this in the background.

Comments

Popular posts from this blog

Evolution Mail on GNOME 3.26

There's a slight change in the user interface. A To Do column now appears to the rightmost after the GNOME 3.26 update. Also there's a noticeable stability increase, what with goa-daemon stopping its RAM usage creep. I don't have to kill it every couple of hours.

Appindicator In Natty Ubuntu 11.04

Previously ranted about the blind alley Ubuntu 11.04 seemed to be leading us when it comes to some applications not being ready yet for the dropping of system tray.  What I should have done is press on. There are posts about editing a white list with a recommended GUI tool to help us out here , here and here . Like everything in Linux, there's a configuration file for it, if you can find it and if you have the inclination to go ninja. If not then there's dconf-editor. Download dconf-tools from Software Center. Navigate to desktop>unity>panel. Add your application in the white list. Then close the window. No save button. mmm. So far I have added Shutter, Dropbox and Keepassx in the white list.                Before...  After.

Jose Rizal, December 30, 1896 Execution by firing squad

From a photograph by Manuel Arias Rodriguez. He was executed for the crime of rebellion.