How to replace a failed disk in a ZFS mirror?
ZFS automatically started the resilvering process (copying data to the new disk). I wasn’t sure how long that would take… $ zpool status pool: storage state: DEGRADED status: One or more devices is currently being resilvered.
How to replace a disk in a ZFS storage pool?
Use the cfgadm command to identify the disk ( c1t3d0) to be unconfigured and unconfigure it. The pool will be degraded with the offline disk in this mirrored configuration, but the pool will continue to be available. Physically replace the disk ( c1t3d0 ).
How long does it take to replace a ZFS drive?
Now we are ready to make the new disk part of our pool. Make sure you replace the following with the guid of your old disk, and the path of your new disk. The new disk will now be resilvered. This process can take several hours. But you can check its progress:-
Is there a way to replace a disk in a mirrored root pool?
In a mirrored root pool configuration, you might be able to attempt a disk replacement without having to boot from alternate media. You can replace a failed disk by using the zpool replace command or if you have an additional disk, you can use the zpool attach command.
Why did Linus Torvalds not include ZFS in Linux kernel?
Torvalds doesn’t want Linux kernel to get into legal troubles with Oracle in future and hence he refuses to include ZFS in the mainline kernel until Oracle provides a signed letter that a kernel with ZFS will be under GPL license.
Is there any benefit to using ZFS on Linux?
So no matter the license, he thinks there is no benefit in supporting ZFS in general. And openZFS is maintained actively. You can check that on openzfs.org and zfsonlinux.org respectively on github.com. Maybe Mr. Torvalds refers to the ZFS at the state when Sun was incorporated?!
Is it OK to merge ZFS with other distributions?
And honestly, there is no way I can merge any of the ZFS efforts until I get an official letter from Oracle that is signed by their main legal counsel or preferably by Larry Ellison himself that says that yes, it’s ok to do so and treat the end result as GPL’d. He is not stopping other (distributions) from using ZFS. But they are on their own.