bmcclure937
Contributor
- Joined
 - Jul 13, 2012
 
- Messages
 - 110
 
Error: Failed to attach disk: cannot replace 16988622549887680439 with da0p2: device is too small
I have done some research and it is because my new 16GB USB drives are slightly smaller than the original that was used:
Code:
[root@freenas] ~# gpart show
=>         34  11721045101  ada0  GPT  (5.5T)
           34           94        - free -  (47k)
          128      4194304     1  freebsd-swap  (2.0G)
      4194432  11716850696     2  freebsd-zfs  (5.5T)
  11721045128            7        - free -  (3.5k)
=>         34  11721045101  ada1  GPT  (5.5T)
           34           94        - free -  (47k)
          128      4194304     1  freebsd-swap  (2.0G)
      4194432  11716850696     2  freebsd-zfs  (5.5T)
  11721045128            7        - free -  (3.5k)
=>      34  31260605  da1  GPT  (14G)
        34      1024    1  bios-boot  (512k)
      1058         6       - free -  (3.0k)
      1064  31259568    2  freebsd-zfs  (14G)
  31260632         7       - free -  (3.5k)
=>      34  30031183  da0  GPT  (14G)
        34      1024    1  bios-boot  (512k)
      1058         6       - free -  (3.0k)
      1064  30030152    2  freebsd-zfs  (14G)
  30031216         1       - free -  (512B)
=>      34  30031183  da2  GPT  (14G)
        34      1024    1  bios-boot  (512k)
      1058         6       - free -  (3.0k)
      1064  30030152    2  freebsd-zfs  (14G)
  30031216         1       - free -  (512B)
I already removed the failed boot USB and am trying to replace with either da0 or da2. As you can see, 30031183 blocks is less than 31260605 blocks.
Is there any way I can work around this and migrate my boot volume to a mirror of da0 and da2 without having to backup config and re-install?
Code:
[root@freenas] ~# zpool list NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT freenas-boot 14.9G 1.42G 13.5G - - 9% 1.00x DEGRADED - tank 5.44T 1.92T 3.51T - 10% 35% 1.00x ONLINE /mnt
Code:
[root@freenas] ~# zpool status freenas-boot
  pool: freenas-boot
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://illumos.org/msg/ZFS-8000-2Q
  scan: scrub repaired 0 in 0h1m with 0 errors on Wed Jun  1 01:01:26 2016
config:
        NAME                                            STATE     READ WRITE CKSUM
        freenas-boot                                    DEGRADED     0     0     0
          mirror-0                                      DEGRADED     0     0     0
            16988622549887680439                        UNAVAIL      0   250   175  was /dev/gptid/b0c6cf9a-26a2-11e6-9553-6c0b843e23ba
            gptid/d3f889b8-01dc-11e6-b8f6-6c0b843e23ba  ONLINE       0     0     0
errors: No known data errors
Sources: