Solved re-partion of replacement disc drive for raidz2

Answer found just after posting:
Code:
gpart backup /dev/ada0 | gpart restore -l -F /dev/ada3

I have just replaced a 3Tb Red in a raidz2 array. It is identical hardware to the remaining three hdds. The other tree drive are all partitioned thus:
Code:
for DN in {0..2} ; do gpart show /dev/ada"$DN" ; done
=>        34  5860533101  ada0  GPT  (2.7T)
          34           6        - free -  (3.0K)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048     4194304     2  freebsd-zfs  (2.0G)
     4196352   134217728     3  freebsd-swap  (64G)
   138414080  5722118144     4  freebsd-zfs  (2.7T)
  5860532224         911        - free -  (456K)

=>        34  5860533101  ada1  GPT  (2.7T)
          34           6        - free -  (3.0K)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048     4194304     2  freebsd-zfs  (2.0G)
     4196352   134217728     3  freebsd-swap  (64G)
   138414080  5722118144     4  freebsd-zfs  (2.7T)
  5860532224         911        - free -  (456K)

=>        34  5860533101  ada2  GPT  (2.7T)
          34           6        - free -  (3.0K)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048     4194304     2  freebsd-zfs  (2.0G)
     4196352   134217728     3  freebsd-swap  (64G)
   138414080  5722118144     4  freebsd-zfs  (2.7T)
  5860532224         911        - free -  (456K)

What is the easiest (best?) way to re partition the new disk (ada3) and bring the new drive online so that the pool can resilver ?
 
Back
Top