How do you remove a drive from a ZFS pool?

How do you remove a drive from a ZFS pool?

To remove devices from a pool, use the zpool remove command. This command supports removing hot spares, cache, log, and top level virtual data devices. You can remove devices by referring to their identifiers, such as mirror-1 in Example 3, Adding Disks to a Mirrored ZFS Configuration.

What is a ZFS mirror?

ZFS is an advanced file system that is capable of managing data that spans across devices. ZFS uses virtual storage pools, called zpools. A zpool can contain numerous directories and can provide redundancy for your data. I want to show you how to set up a ZFS mirror (RAID1) pool using two external disks.

Can you add disk to ZFS pool?

You can dynamically add disk space to a pool by adding a new top-level virtual device. This disk space is immediately available to all datasets in the pool. The virtual device that you add should have the same level of redundancy as the existing virtual device.

How to remove a device from a ZFS pool?

You can remove devices by referring to their identifiers, such as mirror-1 in Example 3, Adding Disks to a Mirrored ZFS Configuration. You can cancel a top-level device removal operation by using the command zpool remove –s. Note – The primary use case for removing a top-level data device is when you accidentally add a device to a pool.

How to remove a device from a mirrored ZFS file?

You can remove devices by referring to their identifiers, such as mirror-1 in Example 3, Adding Disks to a Mirrored ZFS Configuration. You can cancel a top-level device removal operation by using the command zpool remove –s.

How many drives are in a ZFS mirrored pool?

I have a ZFS mirrored pool with four total drives. Two of the drives are intended to be used for rotating offsite backups.

How does zpool attach work in Solaris ZFS?

You can use the ‘ zpool attach ‘ command to attach a new device to an existing mirrored or non-mirrored virtual device (vdev). With this command, you can transform a two-way mirrored configuration into a three-way mirrored configuration, for example, or convert a non-redundant storage pool into a redundant storage pool.