[SOLVED] Adding a disk to single disk stripe vdev to make it mirror
Posted: 14 Nov 2016 11:13
Hey guys, I found a post from a year ago that address a very similar question, but it died and I didn't think I needed to revive it. So anyway, I started out with a modest 500GB single disk vdev setup as a stripe. Then I wanted to add a second 750GB hard drive to that vdev in order to create a mirrored vdev. Within the webgui I went into Disks|ZFS|Pools|Tools and clicked "Attach a data device." I did not check force operation, but I did click on the pool and clicked on the current device and the drive I wanted to attached. That process resulted in this Command: .
So now here's were I sit:
ada2 was the disk I added. To me this seems like it didn't actually mirror the data? since it says mirror-0. Also on the Disks|ZFS|Pools|Virtual Device|Edit page, I only see ada1, no sign of ada2 anywhere.
So, did I screw this up? Is there any way to fix it? I plan on adding more mirrors soon, so if I need to just start with a new pool to make sure all of my vdevs are mirrors, I will do that. Thanks for the help guys!
Code: Select all
Nov 13 20:40:03 nas4free root: zpool attach 'zpool' '/dev/ada1' 'ada2'So now here's were I sit:
Code: Select all
pool: zpool
state: ONLINE
scan: resilvered 312G in 2h13m with 0 errors on Sun Nov 13 22:53:57 2016
config:
NAME STATE READ WRITE CKSUM
zpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada2 ONLINE 0 0 0
errors: No known data errorsSo, did I screw this up? Is there any way to fix it? I plan on adding more mirrors soon, so if I need to just start with a new pool to make sure all of my vdevs are mirrors, I will do that. Thanks for the help guys!