Skip to main content

Posts

Showing posts from June, 2022

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