How do i replace a zfs mirror disk




















This process can take several hours. But you can check its progress This shows me that resilvering progress is going to take another 11 hours. This is only an estimate. I would not recommend using the pool whilst it is resilvering. This process can now be repeated to replace as many of the disk as you need to.

However, I will not get the bennefit of the larger capacity disks until all the old smaller ones have been replaced. Please make sure you have a full backup of your data before replacing any disks. If a failed disk is automatically replaced with a hot spare, you might need to detach the hot spare after the failed disk is replaced.

For example, if c2t4d0 is still an active hot spare after the failed disk is replaced, then detach it. Note that the preceding zpool output might show both the new and old disks under a replacing heading. This text means that the replacement process is in progress and the new disk is being resilvered. If you are going to replace a disk c1t3d0 with another disk c4t3d0 , then you only need to run the zpool replace command.

You might need to run the zpool status command several times until the disk replacement is completed. The following example shows how to recover from a failed log device c0t5d0 in the storage pool pool. Review the zpool status -x output and FMA diagnostic message, described here:. The process of replacing a device can take an extended period of time, depending on the size of the device and the amount of data in the pool.

The process of moving data from one device to another device is known as resilvering and can be monitored by using the zpool status command. Traditional file systems resilver data at the block level. Because ZFS eliminates the artificial layering of the volume manager, it can perform resilvering in a much more powerful and controlled manner. The two main advantages of this feature are as follows:. ZFS only resilvers the minimum amount of necessary data. In the case of a short outage as opposed to a complete device replacement , the entire disk can be resilvered in a matter of minutes or seconds.

When an entire disk is replaced, the resilvering process takes time proportional to the amount of data used on disk. Replacing a GB disk can take seconds if a pool has only a few gigabytes of used disk space. Resilvering is interruptible and safe.

If the system loses power or is rebooted, the resilvering process resumes exactly where it left off, without any need for manual intervention.

In this example, the disk c1t0d0 is being replaced by c2t0d0. This event is observed in the status output by the presence of the replacing virtual device in the configuration. This device is not real, nor is it possible for you to create a pool by using it. The purpose of this device is solely to display the resilvering progress and to identify which device is being replaced. After the resilvering is completed, the configuration reverts to the new, complete, configuration.

If you find this useful, please consider sharing it on social media to help spread the word! Before I configure an array, I like to make sure all drive bays are labelled with the corresponding drive's serial number, that makes this process much easier! Available on Amazon. The first thing we need to do is collect some information we will want handy during the process. I highly recommend opening up a text editor on your workstation and dropping the information there while you work.

The smartctl command is supplied with the package smartmontools.



0コメント

  • 1000 / 1000