Boot Volume Degraded: Failed to Replace Drive

Status
Not open for further replies.

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:
 
D

dlavigne

Guest
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?

Short of buying another stick that is bigger, not that I can think of.
 

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110
Short of buying another stick that is bigger, not that I can think of.

Damn, I was hoping to avoid this somehow... but I guess I will return these and replace with larger size.
 

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110
After restoring your saved configuration, everything should be just the way it was before, including plugins.

Good to know, I might give this a try sometime.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Would have been faster to just reinstall and upload your configuring file than it was too create this thread. :)
 

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110
Would have been faster to just reinstall and upload your configuring file than it was too create this thread. :)

Oops! Did not know that... first time I have had this happen. I am on the road for work so will have to fix later this week.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Mirrored usb are great when one fails and everything keeps working. The replacement process isn't the easiest so just reinstalling is my suggestion.
 

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110
Mirrored usb are great when one fails and everything keeps working. The replacement process isn't the easiest so just reinstalling is my suggestion.

I had this happen once before and replaced without issue (same make and model USB). This time the USB stick was slightly different and had less blocks so caused the issue...

The replace process is very easy if I would have ordered the same USB but I lost faith in this make/model since it is the 2nd failure in 6 months.
 
Status
Not open for further replies.
Top