ZFS stripe volume mirroring

Is it not possible to replace a stripe set of disks by adding a mirror with a single
larger disk then the striped pair?
Code:
# zpool status
  pool: rpool
 state: ONLINE
 scan: none requested
config:

        NAME                                     STATE     READ WRITE CKSUM
        zpool_amdsqluat                          ONLINE       0     0     0
          c3t600A0B800075F5FF00004E864F1D1F20d0  ONLINE       0     0     0
          c3t600A0B800075F5FF00004E884F1D1F56d0  ONLINE       0     0     0

errors: No known data errors
Tried this
Code:
# zpool add -n  zpool_amdsqluat mirror  c3t600A0B800049C92700000FE34BA3A878d0
invalid vdev specification: mirror requires at least 2 devices

The one LUN is bigger then the 2 small LUN
 
You can turn one unmirrored disk into a mirror with zpool attach but I don't think you can replace a vdev completely.
 
I think it´s kind of cool that Solaris (or derivative) users comes to FreeBSD forums to ask about ZFS:)

@jspicijaric

Once a vdev is created, it is set in stone and cannot be deleted again. But, if I understood you correctly, this is what you want:

# zpool replace rpool c3t600A0B800075F5FF00004E884F1D1F56d0 c3t600A0B800049C92700000FE34BA3A878d0
Wait for resilver, and then:
# zpool detach rpool c3t600A0B800075F5FF00004E864F1D1F20d0

/Sebulon
 
I don't think that is going to work. As far as I know you can't break a striped pool back to smaller pieces, at least I couldn't when I tested on VBox with a pool of two disks striped. I tried both remove and detach on one disk but zpool(8) wouldn't let me do anything that would remove the disk from the pool.
 
@kpa

Ahh shit, you´re right.

@jspicijaric

My bad, I read wrong. That´s going to fail. I thought it was a mirror vdev. Sorry!

/Sebulon
 
The best you can do in this case is to replace the smaller disks with larger ones (zpool replace) and expand the pool with two additional disks into a pool with two 2-disk mirrors (zpool attach), that's about the only way I can think of if you want your pool to have redundancy.
 
Back
Top