Page 1 of 1

Trouble Adding Drive to Pool

Posted: 03 Aug 2013 17:16
by sjbs
Hi There,

I have been running Nas4Free with ZFS Raid Z1 using 3 x 1,5 TB and a single 3TB. I have now just attempted to replace the one 1,5TB on ada1 with a new 4TB drive using the method described by http://www.bolsondigital.com/2013/06/01 ... -nas4free/.

Any thoughts on how to bring my degraded set up again?


In short, I
zpool offline Backup ada1

Powered down the HP Microserver
Replaced the drive
And power up again.

Using disk management, I imported the new config and saved it to give the following:

Disk Size Description Device model Serial number Standby time File system Status
ada0 2861589MB ST3000DM001-9YN166 CC4B ST3000DM001-9YN166 S1F0JQKG Always on ZFS storage pool device ONLINE

ada1 3815448MB ST4000DM000-1F2168 CC52 ST4000DM000-1F2168 Z300E167 Always on Unknown or unformatted ONLINE

ada2 1430800MB ST31500341AS CC3H ST31500341AS 9VS1P9QR Always on ZFS storage pool device ONLINE

ada3 1430800MB ST31500341AS CC1H ST31500341AS 9VS2MDJF Always on ZFS storage pool device ONLINE

da0 7648MB Kingston DataTraveler 2.0 1.00 Kingston DataTraveler 2.0 1.00 001372877298A9B15678017A Always on UFS ONLINE


Using the
zpool online Backup ada1
and
zpool replace Backup ada1

did not give me any positive results.

Using zpool status gives:
zpool status
pool: Backup
state: DEGRADED
status: One or more devices has been taken offline by the administrator.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Online the device using 'zpool online' or replace the device with
'zpool replace'.
scan: scrub repaired 0 in 4h58m with 0 errors on Fri Jul 26 22:44:58 2013
config:

NAME STATE READ WRITE CKSUM
Backup DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
ada0.nop ONLINE 0 0 0
6882724504218657653 OFFLINE 0 0 0 was /dev/ada1.nop
ada2.nop ONLINE 0 0 0
ada3.nop ONLINE 0 0 0

errors: No known data errors

Also,

$ camcontrol identify ada1
pass1: <ST4000DM000-1F2168 CC52> ATA-8 SATA 3.x device
pass1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)

protocol ATA/ATAPI-8 SATA 3.x
device model ST4000DM000-1F2168
firmware revision CC52
serial number Z300E167
WWN 5000c50050770982
cylinders 16383
heads 16
sectors/track 63
sector size logical 512, physical 4096, offset 0
LBA supported 268435455 sectors
LBA48 supported 7814037168 sectors
PIO supported PIO4
DMA supported WDMA2 UDMA6
media RPM 5900

Feature Support Enabled Value Vendor
read ahead yes yes
write cache yes yes
flush cache yes yes
overlap no
Tagged Command Queuing (TCQ) no no
Native Command Queuing (NCQ) yes 32 tags
SMART yes yes
microcode download yes yes
security yes no
power management yes yes
advanced power management yes yes 32896/0x8080
automatic acoustic management no no
media status notification no no
power-up in Standby yes no
write-read-verify yes no 0/0x0
unload no no
free-fall no no
data set management (TRIM) no

Any thoughts on how to

Re: Trouble Adding Drive to Pool

Posted: 03 Aug 2013 18:35
by sleid
zpool online -e ada1

Re: Trouble Adding Drive to Pool

Posted: 03 Aug 2013 18:57
by sjbs
sleid wrote:zpool online -e ada1
Thanks, just tied it but seems like this didn't work either.

In the Gui under ZFS tools Replace and Online, my ada1 does not appear either?

Re: Trouble Adding Drive to Pool

Posted: 03 Aug 2013 19:48
by sjbs
Just for the record:

The following solved the problem

zpool replace Backup 6882724504218657653 ada1.nop

Re: Trouble Adding Drive to Pool

Posted: 03 Aug 2013 19:57
by sleid
6882724504218657653
Obviously, this is the information we were missing