Some notes on upgrading your 9.3 boot pool to larger devices.

Status
Not open for further replies.

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
So, there were a few pitfalls with this; I assume most of these pitfalls loosely qualify as "bugs", so I don't know how long what I say below is relevant before they're fixed:

Situation: I have been booting my FreeNAS for a long time with a single 8GB Kingston Micro DT thumb drive. With the ability, now, to save boot images, and to run ZFS-on-boot, I thought it made sense to go up to 16GB, and in fact, to go to two devices in a mirrored boot pool. However, I only have one USB port open (my supermicro X10SLM has only 4 ports on the back, 2 are in use for peripherals, and 1 is in use for the USB boot stick). Therefore, I can't plug in both boot devices until the original one is removed. Can this be done without even turning off the NAS and/or recreating a new bootable OS?

Yes, if you know the pitfalls.

So here is what you do (even if you have two free USB ports, I still recommend doing it this way, one at a time):

1) Insert one new USB boot device. The kernel/devd should pick it up right away, and 'camcontrol devlist' will probably understand the drive as /dev/da1

2) Go to the boot pool in the system menu, highlight the pool name, and click "attach".

3) It will prep the drive, then it will ZFS resilver it. This will take 5-30 minutes, depending.

3a) Wait for the resilver to COMPLETELY FINISH before going on to the next step. You can monitor your resilver progress by doing "zpool status" and looking at what it says under freenas-boot.


4) IMPORTANT STEP: Slight booboo. Turns out (at least until they fix it), the GRUB install isn't set right, and never makes it to your thumbdrive. Thus, even though your device contains the boot pool's root data, it wouldn't boot, if you needed it to. You must manually make your new device bootable. Fortunately, this is easy, one command, in the CLI:
Code:
grub-install --modules='zfs part_gpt' /dev/da1

where of course you replace "da1" as necessary with whatever the device name for the new device.

Repeat steps 1-4 for each new boot device, EXCEPT THE LAST DEVICE. (so, if you are replacing a single boot device with two boot devices, you will only go through steps 1-4 the one time.)

5) Now, physically remove the *OLD* boot device right from the appliance. Just take it right out.

6) Now, insert your final device where da0 used to be. Repeat Steps 2-4.

7) Now, under the boot->status screen in the GUI, you'll see the now-pulled USB drive is shown as removed. Highlight it (you'll know which one it is, because it will show as 'removed'). "Detach" it, permanently.

8) IF YOU REPLACED WITH LARGER DEVICES, turns out, ZFS autoexpand may not have been on, so the device pool won't increase in size (verify this with "zfs list" at the CLI). If your size did not increase with the replacement, follow the directions in my bug ticket on the subject.


OK, that should do it!
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Is there a bug ticket that mentioned that the grub install isn't done to the second device?
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Is there a bug ticket that mentioned that the grub install isn't done to the second device?
Yes. 7276 and 6993.

Doesn't look like anything has been done here?
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
So, there were a few pitfalls with this; I assume most of these pitfalls loosely qualify as "bugs", so I don't know how long what I say below is relevant before they're fixed:

Situation: I have been booting my FreeNAS for a long time with a single 8GB Kingston Micro DT thumb drive. With the ability, now, to save boot images, and to run ZFS-on-boot, I thought it made sense to go up to 16GB, and in fact, to go to two devices in a mirrored boot pool. However, I only have one USB port open (my supermicro X10SLM has only 4 ports on the back, 2 are in use for peripherals, and 1 is in use for the USB boot stick). Therefore, I can't plug in both boot devices until the original one is removed. Can this be done without even turning off the NAS and/or recreating a new bootable OS?

Yes, if you know the pitfalls.

So here is what you do (even if you have two free USB ports, I still recommend doing it this way, one at a time):

1) Insert one new USB boot device. The kernel/devd should pick it up right away, and 'camcontrol devlist' will probably understand the drive as /dev/da1

2) Go to the boot pool in the system menu, highlight the pool name, and click "attach".

3) It will prep the drive, then it will ZFS resilver it. This will take 5-30 minutes, depending.

3a) Wait for the resilver to COMPLETELY FINISH before going on to the next step. You can monitor your resilver progress by doing "zpool status" and looking at what it says under freenas-boot.


4) IMPORTANT STEP: Slight booboo. Turns out (at least until they fix it), the GRUB install isn't set right, and never makes it to your thumbdrive. Thus, even though your device contains the boot pool's root data, it wouldn't boot, if you needed it to. You must manually make your new device bootable. Fortunately, this is easy, one command, in the CLI:
Code:
grub-install --modules='zfs part_gpt' /dev/da1

where of course you replace "da1" as necessary with whatever the device name for the new device.

Repeat steps 1-4 for each new boot device, EXCEPT THE LAST DEVICE. (so, if you are replacing a single boot device with two boot devices, you will only go through steps 1-4 the one time.)

5) Now, physically remove the *OLD* boot device right from the appliance. Just take it right out.

6) Now, insert your final device where da0 used to be. Repeat Steps 2-4.

7) Now, under the boot->status screen in the GUI, you'll see the now-pulled USB drive is shown as removed. Highlight it (you'll know which one it is, because it will show as 'removed'). "Detach" it, permanently.

8) IF YOU REPLACED WITH LARGER DEVICES, turns out, ZFS autoexpand may not have been on, so the device pool won't increase in size (verify this with "zfs list" at the CLI). If your size did not increase with the replacement, follow the directions in my bug ticket on the subject.


OK, that should do it!
I wasn't trying to increase the size, just mirror the existing 8GB flash drive with another 8GB one -- but FreeNAS complains that there are too many write errors on the one I added and keeps blinking red at me. Can I undo the attempt to create a mirror -- at least until I can obtain another suitable mirror device?
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
yes.

Simply pull that device you don't want in the pool. Then "detach" the missing device (there's a button for it) in the system->boot area.
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
Simply pull that device you don't want in the pool. Then "detach" the missing device (there's a button for it) in the system->boot area.
I pulled the flaky USB stick, and I see "FAULTED" in the GUI, but the only button is "Replace" -- no "Detach."
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Hmmm. I know I've done this before.

OK, plug it back in, replace it with itself, then see if when you highlight that device, if "DETACH" is an option.?
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
Hmmm. I know I've done this before.

OK, plug it back in, replace it with itself, then see if when you highlight that device, if "DETACH" is an option.?
That doesn't work either: I can't replace it by itself even if I plug it into a different USB port -- it's still da13. I wiped the partitions on that second USB stick on another computer, did a surface test that showed no errors, and replaced it in the FreeNAS machine, but I still can't Replace or Detach it, and no resilvering takes place.
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
I detached da13p2 using the CLI, then reattached it from the GUI, but I get a whole series of failed attempts to write to it, culminating in:
Code:
Dec 31 23:52:50 freenas (da13:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 06 38 00 00 10 00
Dec 31 23:52:50 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Dec 31 23:52:50 freenas (da13:umass-sim1:1:0:0): Retrying command
Dec 31 23:52:56 freenas (da13:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 06 38 00 00 10 00
Dec 31 23:52:56 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Dec 31 23:52:56 freenas (da13:umass-sim1:1:0:0): Error 5, Retries exhausted
Dec 31 23:53:23 freenas (da13:umass-sim1:1:0:0): got CAM status 0x44
Dec 31 23:53:23 freenas (da13:umass-sim1:1:0:0): fatal error, failed to attach to device
Dec 31 23:53:23 freenas da13 at umass-sim1 bus 1 scbus10 target 0 lun 0
Dec 31 23:53:23 freenas da13: <SanDisk Cruzer Fit 1.26> s/n 4C532000051009114264 detached
Dec 31 23:53:28 freenas (da13:umass-sim1:1:0:0): Periph destroyed


and now the flashing red is back, with da13p2 marked as FAULTED -- and, as I wrote previously, the USB stick that is now da13 had already tested error-free on another machine.

At least when I detached the second USB stick from the CLI, the system seemed to be happy again.
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
I have now tried using a brand-new 16GB thumb drive as the mirror for the boot drive -- similar result to the previous one:
Code:
Jan 2 19:48:06 freenas notifier: 1+0 records in
Jan 2 19:48:06 freenas notifier: 1+0 records out
Jan 2 19:48:06 freenas notifier: 1048576 bytes transferred in 0.094366 secs (11111790 bytes/sec)
Jan 2 19:48:07 freenas notifier: dd: /dev/da13: end of device
Jan 2 19:48:07 freenas notifier: 5+0 records in
Jan 2 19:48:07 freenas notifier: 4+0 records out
Jan 2 19:48:07 freenas notifier: 4194304 bytes transferred in 0.191055 secs (21953378 bytes/sec)
Jan 2 19:49:11 freenas notifier: Installing for i386-pc platform.
Jan 2 19:53:00 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 70 30 b4 00 00 02 00
Jan 2 19:53:00 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:53:00 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:55:36 freenas notifier: Installation finished. No error reported.
Jan 2 19:56:00 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 28 00 00 1c 00
Jan 2 19:56:00 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:00 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:06 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 28 00 00 1c 00
Jan 2 19:56:06 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:06 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:11 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 28 00 00 1c 00
Jan 2 19:56:11 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:11 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:17 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 28 00 00 1c 00
Jan 2 19:56:17 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:17 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:22 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 28 00 00 1c 00
Jan 2 19:56:22 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:22 freenas (da13:umass-sim1:1:0:0): Error 5, Retries exhausted
Jan 2 19:56:28 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 45 00 00 03 00
Jan 2 19:56:28 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:28 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:33 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 45 00 00 03 00
Jan 2 19:56:33 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:33 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:38 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 45 00 00 03 00
Jan 2 19:56:38 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:38 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:44 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 45 00 00 03 00
Jan 2 19:56:44 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:44 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:49 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 45 00 00 03 00
Jan 2 19:56:49 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:49 freenas (da13:umass-sim1:1:0:0): Error 5, Retries exhausted
Jan 2 19:56:55 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 36 6a da 00 00 0a 00
Jan 2 19:56:55 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:55 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:00 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 36 6a da 00 00 0a 00
Jan 2 19:57:00 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:00 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:06 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 36 6a da 00 00 0a 00
Jan 2 19:57:06 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:06 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:11 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 36 6a da 00 00 0a 00
Jan 2 19:57:11 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:11 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:17 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 36 6a da 00 00 0a 00
Jan 2 19:57:17 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:17 freenas (da13:umass-sim1:1:0:0): Error 5, Retries exhausted
Jan 2 19:57:23 freenas (da13:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 06 38 00 00 10 00
Jan 2 19:57:23 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:23 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:28 freenas (da13:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 06 38 00 00 10 00
Jan 2 19:57:28 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:28 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:34 freenas (da13:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 06 38 00 00 10 00
Jan 2 19:57:34 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:34 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:39 freenas (da13:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 06 38 00 00 10 00
Jan 2 19:57:39 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:39 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:45 freenas (da13:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 06 38 00 00 10 00
Jan 2 19:57:45 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:45 freenas (da13:umass-sim1:1:0:0): Error 5, Retries exhausted
Jan 2 19:58:12 freenas (da13:umass-sim1:1:0:0): got CAM status 0x44
Jan 2 19:58:12 freenas (da13:umass-sim1:1:0:0): fatal error, failed to attach to device
Jan 2 19:58:12 freenas da13 at umass-sim1 bus 1 scbus10 target 0 lun 0
Jan 2 19:58:12 freenas da13: <General USB Flash Disk 1100> s/n 0404130000007734 detached
Jan 2 19:58:17 freenas (da13:umass-sim1:1:0:0): Periph destroyed


zpool status gives:
Code:
[root@freenas ~]# zpool status freenas-boot
pool: freenas-boot
state: DEGRADED
status: One or more devices are faulted in response to persistent errors.
Sufficient replicas exist for the pool to continue functioning in a degraded state.
action: Replace the faulted device, or use 'zpool clear' to mark the device repaired.
scan: resilvered 10.4M in 0h11m with 0 errors on Fri Jan 2 19:59:24 2015
config:

NAME STATE READ WRITE CKSUM
freenas-boot DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
gptid/9e1ec1b4-7fa4-11e4-9148-002590f06338 ONLINE 0 0 0
da13p2 FAULTED 0 236 0 too many errors
errors: No known data errors
[root@freenas ~]#


Filed bug report #7372
 
Last edited:

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
I have now tried using a brand-new 16GB thumb drive as the mirror for the boot drive -- similar result to the previous one:
Code:
Jan 2 19:48:06 freenas notifier: 1+0 records in
Jan 2 19:48:06 freenas notifier: 1+0 records out
Jan 2 19:48:06 freenas notifier: 1048576 bytes transferred in 0.094366 secs (11111790 bytes/sec)
Jan 2 19:48:07 freenas notifier: dd: /dev/da13: end of device
Jan 2 19:48:07 freenas notifier: 5+0 records in
Jan 2 19:48:07 freenas notifier: 4+0 records out
Jan 2 19:48:07 freenas notifier: 4194304 bytes transferred in 0.191055 secs (21953378 bytes/sec)
Jan 2 19:49:11 freenas notifier: Installing for i386-pc platform.
Jan 2 19:53:00 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 70 30 b4 00 00 02 00
Jan 2 19:53:00 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:53:00 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:55:36 freenas notifier: Installation finished. No error reported.
Jan 2 19:56:00 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 28 00 00 1c 00
Jan 2 19:56:00 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:00 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:06 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 28 00 00 1c 00
Jan 2 19:56:06 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:06 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:11 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 28 00 00 1c 00
Jan 2 19:56:11 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:11 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:17 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 28 00 00 1c 00
Jan 2 19:56:17 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:17 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:22 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 28 00 00 1c 00
Jan 2 19:56:22 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:22 freenas (da13:umass-sim1:1:0:0): Error 5, Retries exhausted
Jan 2 19:56:28 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 45 00 00 03 00
Jan 2 19:56:28 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:28 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:33 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 45 00 00 03 00
Jan 2 19:56:33 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:33 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:38 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 45 00 00 03 00
Jan 2 19:56:38 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:38 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:44 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 45 00 00 03 00
Jan 2 19:56:44 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:44 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:56:49 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 2e 24 45 00 00 03 00
Jan 2 19:56:49 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:49 freenas (da13:umass-sim1:1:0:0): Error 5, Retries exhausted
Jan 2 19:56:55 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 36 6a da 00 00 0a 00
Jan 2 19:56:55 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:56:55 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:00 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 36 6a da 00 00 0a 00
Jan 2 19:57:00 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:00 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:06 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 36 6a da 00 00 0a 00
Jan 2 19:57:06 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:06 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:11 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 36 6a da 00 00 0a 00
Jan 2 19:57:11 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:11 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:17 freenas (da13:umass-sim1:1:0:0): WRITE(10). CDB: 2a 00 00 36 6a da 00 00 0a 00
Jan 2 19:57:17 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:17 freenas (da13:umass-sim1:1:0:0): Error 5, Retries exhausted
Jan 2 19:57:23 freenas (da13:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 06 38 00 00 10 00
Jan 2 19:57:23 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:23 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:28 freenas (da13:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 06 38 00 00 10 00
Jan 2 19:57:28 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:28 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:34 freenas (da13:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 06 38 00 00 10 00
Jan 2 19:57:34 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:34 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:39 freenas (da13:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 06 38 00 00 10 00
Jan 2 19:57:39 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:39 freenas (da13:umass-sim1:1:0:0): Retrying command
Jan 2 19:57:45 freenas (da13:umass-sim1:1:0:0): READ(10). CDB: 28 00 00 00 06 38 00 00 10 00
Jan 2 19:57:45 freenas (da13:umass-sim1:1:0:0): CAM status: CCB request completed with an error
Jan 2 19:57:45 freenas (da13:umass-sim1:1:0:0): Error 5, Retries exhausted
Jan 2 19:58:12 freenas (da13:umass-sim1:1:0:0): got CAM status 0x44
Jan 2 19:58:12 freenas (da13:umass-sim1:1:0:0): fatal error, failed to attach to device
Jan 2 19:58:12 freenas da13 at umass-sim1 bus 1 scbus10 target 0 lun 0
Jan 2 19:58:12 freenas da13: <General USB Flash Disk 1100> s/n 0404130000007734 detached
Jan 2 19:58:17 freenas (da13:umass-sim1:1:0:0): Periph destroyed


zpool status gives:
Code:
[root@freenas ~]# zpool status freenas-boot
pool: freenas-boot
state: DEGRADED
status: One or more devices are faulted in response to persistent errors.
Sufficient replicas exist for the pool to continue functioning in a degraded state.
action: Replace the faulted device, or use 'zpool clear' to mark the device repaired.
scan: resilvered 10.4M in 0h11m with 0 errors on Fri Jan 2 19:59:24 2015
config:

NAME STATE READ WRITE CKSUM
freenas-boot DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
gptid/9e1ec1b4-7fa4-11e4-9148-002590f06338 ONLINE 0 0 0
da13p2 FAULTED 0 236 0 too many errors
errors: No known data errors
[root@freenas ~]#


Filed bug report #7372
The only "official" response I got to my bug report was to say that the second USB stick must be faulty or the USB controller is incompatible, and then the problem was marked as a User Configuration error, so presumably nobody is taking any notice any longer and therefore not reading my updates pointing out that the problem occurred with two different USB sticks (one brand new and the other reported to be fine when tested on another machine) and in different USB ports.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
I tend to concur.

These type of CAM errors are, by definition, hardware problems. That could be your thumb drive itself (I just returned one that was brand new, and was bad, out of the box---a Kingston Micro DT 8GB), or it could be the USB controller with the motherboard.

Surely, since we have well over 100000 people booting FreeNAS from thumb drives, you realize that any FreeNAS software caused problem would cause a hell of a lot of attention. As hard as it may be to believe, this does appear to be some kind of problem with hardware.
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
I tend to concur.

These type of CAM errors are, by definition, hardware problems. That could be your thumb drive itself (I just returned one that was brand new, and was bad, out of the box---a Kingston Micro DT 8GB), or it could be the USB controller with the motherboard.

Surely, since we have well over 100000 people booting FreeNAS from thumb drives, you realize that any FreeNAS software caused problem would cause a hell of a lot of attention. As hard as it may be to believe, this does appear to be some kind of problem with hardware.
But how many of those 100000 people are booting from mirrored thumb drives? In another bug report, it's claimed that the second USB drive can't even be found.
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
But how many of those 100000 people are booting from mirrored thumb drives? In another bug report, it's claimed that the second USB drive can't even be found.
I assume that I can't simply reinstall FreeNAS 9.3 to two thumb drives then re-upload a saved configuration file -- because the saved configuration file won't know about the mirroring.
 
J

jkh

Guest
The saved configuration file knows nothing about the mirroring. That will be fine.
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
The saved configuration file knows nothing about the mirroring. That will be fine.
I probably didn't make myself clear. I was wondering about installing to two thumb drives as mirrored boot devices (assuming this is possible), then importing a saved configuration file that "knows" only a single, unmirrored, boot device. That's what I am assuming will not work.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
I probably didn't make myself clear. I was wondering about installing to two thumb drives as mirrored boot devices (assuming this is possible), then importing a saved configuration file that "knows" only a single, unmirrored, boot device. That's what I am assuming will not work.
You made yourself quite clear. JKH answered your question.

You are 100% safe doing what you propose.
 
J

jkh

Guest
I probably didn't make myself clear. I was wondering about installing to two thumb drives as mirrored boot devices (assuming this is possible), then importing a saved configuration file that "knows" only a single, unmirrored, boot device.
No, you made yourself perfectly clear. The part you keep missing is that the configuration file knows NOTHING about the boot device. Zero. You could have one boot device or 50 boot devices in a big, giant mirror and the configuration database wouldn't care one bit. That is simply not how the system is architected.
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
I tend to concur.

These type of CAM errors are, by definition, hardware problems. That could be your thumb drive itself (I just returned one that was brand new, and was bad, out of the box---a Kingston Micro DT 8GB), or it could be the USB controller with the motherboard.

Surely, since we have well over 100000 people booting FreeNAS from thumb drives, you realize that any FreeNAS software caused problem would cause a hell of a lot of attention. As hard as it may be to believe, this does appear to be some kind of problem with hardware.
I reinstalled FreeNAS 9.3 to the mirrored 8GB SanDisk Cruzer Fit USB sticks without any problems. This suggests to me that those devices are not faulty and that the previous inability to attach the second device as a mirror of the original one was indeed due to a bug.
 
Status
Not open for further replies.
Top