Tag: mirror

  • ZFS: Adding a new mirror to an existing ZFS pool

    ZFS: Adding a new mirror to an existing ZFS pool

      Mirrored vdevs are great for performance and it is quite straight-forward to add a mirrored vdev to an existing pool (presumably one with one or more similar vdevs already):   zpool add [poolname] mirror [device01] [device02] [device03]   If it’s a two-way mirror you will only have two devices in the above. An example…

  • How to add a drive to a ZFS mirror

    How to add a drive to a ZFS mirror

    Sometimes you may wish to expand a two-way mirror to a three-way mirror, or to make a basic single drive vdev into a mirror – to do this we use the zpool attach command. Simpy run:   # zpool attach [poolname] [original drive to be mirrored] [new drive] An example:   # zpool attach seleucus…

  • Adding another disk to a ZFS mirror

    Adding another disk to a ZFS mirror

    I was asked how to add a disk into a ZFS mirror today; this is an easy one:   # zpool attach [poolname] [existing disk] [new disk]   …and done! The pool will begin to resilver with the new disk as part of the existing mirror. You might want to do this to replace a…