Ron - zfs disk replace or clone or something

New About Yours API Help
1.8 KB, Plain text
BSDNow Zfs gurus,

I have a small fanless box running HardenedBSD 11.2. It has two disks, and the original install had the two disks mirrored. I installed dragonflyBSD on one disk (ada0) to test something out, knowing I could boot from the second disk (ada1) which still had HBSD. Okay, experiment over-- booted off ada1 with no problem; however, and as expected, ada0 is now "in trouble". I tried zpool replace, but I got an error message saying that the disk needed to be manually repaired. gpart show ada0 and gpart show ada1 revealed different partitioning schemes, as expected. I took ada0 offline using the UUID, then detached it. I thought I would make ada0 the same as ada1 so I did a dd if=/dev/ada1 of=/dev/ada0. That worked and both disks are the same. I then added the new disk; but... I did a zpool add zroot /dev/ada0 instead of zpool add zroot ada0p4. Now I can't detach or take offline the new addition. I simply want to remove ada0 then create a mirror. Any help would be appreciated.


root@hardverbs:/usr/home/rgeorgia # zpool status
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h1m with 0 errors on Tue Aug  7 20:36:28 2018
config:

        NAME        STATE     READ WRITE CKSUM
        zroot       ONLINE       0     0     0
          ada1p4    ONLINE       0     0     0

errors: No known data errors
root@hardverbs:/usr/home/rgeorgia # zpool add zroot /dev/ada0
root@hardverbs:/usr/home/rgeorgia # zpool status
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h1m with 0 errors on Tue Aug  7 20:36:28 2018
config:

        NAME        STATE     READ WRITE CKSUM
        zroot       ONLINE       0     0     0
          ada1p4    ONLINE       0     0     0
          ada0      ONLINE       0     0     0

errors: No known data errors
Pasted 2 months, 1 week ago — Expires in 294 days
URL: http://dpaste.com/0MRG11V