Joel Jamison
Dabbler
- Joined
- Apr 9, 2017
- Messages
- 22
Hello, I have a pool that I was trying to upgrade from 6 x 3TB drives to 6 x 4TB drives by replacing one drive at a time. I have used ZFS on a Mac (OS X) for 6 years and have been using FreeNAS for the last 2 years. I've done this same type of replacement/upgrade move many times through the years but the recent move to Corral has me more than a little lost.
When I added the new 4TB drive, I read that I should not use zpool commands with Corral so I used the GUI to drag the new drive over to the pool I wanted to swap the drive with. The GUI would not let me replace a drive directly so I tried adding it to the pool first. The GUI seemed to show the new (4TB) drive as a separate VDEV as it showed my 6 drives in one block and the new drive in another. I tried swapping the drive from there but it would not work. I then tried using the console (“unix”) to replace the drive, it said the device was in use, I even tried using the zpool replace <pool> <old> <new> command but none of this worked.
I tried booting up FreeNAS with that drive removed but the pool would not come up. I was thinking that I needed to erase that new drive then perhaps I would be able to use the FreeNAS "unix" console to replace a drive (it was saying there were no valid replicas when I tried without erasing the drive.) I used the console to detach the pool, went into disk>da6 and erased the drive, then tried to import the pool back in but it isn't working. I see the message "Additional devices are known to be part of this pool, though their exact configuration cannot be determined." when running a "zpool import"
From the console session or an ssh session, if I try to import the pool using the "zpool import <poolname>" command I get the same message "cannot import 'zpool': one or more devices is currently unavailable"
When I do a "gpart show" or a "glabel status" I see the original 6 drives in that pool listed but not the recently erased 4TB drive. If I look for the drive specifically I get "gpart: No such geom: da6." so it looks like I need to as the partitions (slices 1 and 2) if I want the drive to show up with those commands. When I use "camcontrol devlist" I see the drive listed there.
[root@freenas] ~# camcontrol devlist
<ATA TOSHIBA DT01ACA3 ABB0> at scbus0 target 0 lun 0 (pass0,da0)
<ATA TOSHIBA DT01ACA3 ABB0> at scbus0 target 1 lun 0 (pass1,da1)
<ATA TOSHIBA DT01ACA3 ABB0> at scbus0 target 2 lun 0 (pass2,da2)
<ATA TOSHIBA DT01ACA3 ABB0> at scbus0 target 3 lun 0 (pass3,da3)
<ATA TOSHIBA DT01ACA3 ABB0> at scbus0 target 4 lun 0 (pass4,da4)
<ATA TOSHIBA DT01ACA3 ABB0> at scbus0 target 5 lun 0 (pass5,da5)
<INTEL SSDSA2M040G2GC 2CV102HD> at scbus6 target 0 lun 0 (pass6,ada0)
<ATA ST4000DM005-2DP1 0001> at scbus8 target 22 lun 0 (da6,pass7)
At this point I feel like I have 3 options to pursue,
1.) try to find a way to import the pool with the 6 original drives (not using the 4TB drive) so that I can proceed with the 3TB to 4TB swaps again.
2.) find a way to undo the erase command on the da6 drive (this is why I have not added the partitions yet) to restore the situation I was in with the separate VDEV, then try to sort things out from there.
3.) roll back to FreeNAS 9.10 where the zpool commands seem to be the way to get things done and try the same import commands from there.
Thank you in advance for your guidance, Joel
When I added the new 4TB drive, I read that I should not use zpool commands with Corral so I used the GUI to drag the new drive over to the pool I wanted to swap the drive with. The GUI would not let me replace a drive directly so I tried adding it to the pool first. The GUI seemed to show the new (4TB) drive as a separate VDEV as it showed my 6 drives in one block and the new drive in another. I tried swapping the drive from there but it would not work. I then tried using the console (“unix”) to replace the drive, it said the device was in use, I even tried using the zpool replace <pool> <old> <new> command but none of this worked.
I tried booting up FreeNAS with that drive removed but the pool would not come up. I was thinking that I needed to erase that new drive then perhaps I would be able to use the FreeNAS "unix" console to replace a drive (it was saying there were no valid replicas when I tried without erasing the drive.) I used the console to detach the pool, went into disk>da6 and erased the drive, then tried to import the pool back in but it isn't working. I see the message "Additional devices are known to be part of this pool, though their exact configuration cannot be determined." when running a "zpool import"
From the console session or an ssh session, if I try to import the pool using the "zpool import <poolname>" command I get the same message "cannot import 'zpool': one or more devices is currently unavailable"
When I do a "gpart show" or a "glabel status" I see the original 6 drives in that pool listed but not the recently erased 4TB drive. If I look for the drive specifically I get "gpart: No such geom: da6." so it looks like I need to as the partitions (slices 1 and 2) if I want the drive to show up with those commands. When I use "camcontrol devlist" I see the drive listed there.
[root@freenas] ~# camcontrol devlist
<ATA TOSHIBA DT01ACA3 ABB0> at scbus0 target 0 lun 0 (pass0,da0)
<ATA TOSHIBA DT01ACA3 ABB0> at scbus0 target 1 lun 0 (pass1,da1)
<ATA TOSHIBA DT01ACA3 ABB0> at scbus0 target 2 lun 0 (pass2,da2)
<ATA TOSHIBA DT01ACA3 ABB0> at scbus0 target 3 lun 0 (pass3,da3)
<ATA TOSHIBA DT01ACA3 ABB0> at scbus0 target 4 lun 0 (pass4,da4)
<ATA TOSHIBA DT01ACA3 ABB0> at scbus0 target 5 lun 0 (pass5,da5)
<INTEL SSDSA2M040G2GC 2CV102HD> at scbus6 target 0 lun 0 (pass6,ada0)
<ATA ST4000DM005-2DP1 0001> at scbus8 target 22 lun 0 (da6,pass7)
At this point I feel like I have 3 options to pursue,
1.) try to find a way to import the pool with the 6 original drives (not using the 4TB drive) so that I can proceed with the 3TB to 4TB swaps again.
2.) find a way to undo the erase command on the da6 drive (this is why I have not added the partitions yet) to restore the situation I was in with the separate VDEV, then try to sort things out from there.
3.) roll back to FreeNAS 9.10 where the zpool commands seem to be the way to get things done and try the same import commands from there.
Thank you in advance for your guidance, Joel