zpool replace does not like me

Status
Not open for further replies.

jorevf

Cadet
Joined
Dec 18, 2011
Messages
7
Hi,

Benn running Freenas for quiet awhile now..
But sadly one disk died the other day.

This is a early system that has been upgraded from 7.x.x to 8.3.0 so it does not have the gpt structure.
For what ever reason.

Any way,

Trying replacing the drive in GUI says, GPT can not be created.

Using zpool, with, export, import, offline, online and finally replace only ends up with :

cannot replace ada3 with ada3: no such pool or dataset
or /dev/ada3 or 1390891721742178247

This is the status output:

pool: ZFS001
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://www.sun.com/msg/ZFS-8000-2Q
scan: none requested
config:

NAME STATE READ WRITE CKSUM
ZFS001 DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
1390891721742178247 UNAVAIL 0 0 0 was /dev/ada3
ada2 ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada0 ONLINE 0 0 0

errors: No known data errors

I have search all over the 'webination', but all the clues I find, does not really end up as a working fix for me...

Is there anybody that has the golden keystrokes for my 'tiny' problem ??

Thx in advance!

Best regards,
Freddie
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
This is a early system that has been upgraded from 7.x.x to 8.3.0 so it does not have the gpt structure.
For what ever reason.
Because they chose to use/allow whole disks unlike 8 which partitions them.

Trying replacing the drive in GUI says, GPT can not be created.
That's odd. What used to be on the disk?

From a SSH session as root paste the output of:
Code:
zpool status -v

camcontrol devlist

glabel status

gpart show


Use [code][/code] tags to preserve the formatting.
 

jorevf

Cadet
Joined
Dec 18, 2011
Messages
7
Because they chose to use/allow whole disks unlike 8 which partitions them.

That's odd. What used to be on the disk?

From a SSH session as root paste the output of:
Code:
zpool status -v

camcontrol devlist

glabel status

gpart show


Use [code][/code] tags to preserve the formatting.

Code:

dmesg after reboot says.

(ada3:ahcich3:0:0:0): Synchronize cache failed
(ada3:ahcich3:0:0:0): Synchronize cache failed
(ada3:ahcich3:0:0:0): Synchronize cache failed

pool: ZFS001
 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: none requested
config:

	NAME                     STATE     READ WRITE CKSUM
	ZFS001                   DEGRADED     0     0     0
	  raidz1-0               DEGRADED     0     0     0
	    1390891721742178247  FAULTED      0     0     0  was /dev/ada3
	    ada2                 ONLINE       0     0     0
	    ada1                 ONLINE       0     0     0
	    ada0                 ONLINE       0     0     0

errors: No known data errors

<WDC WD2002FAEX-007BA0 05.01D05>   at scbus0 target 0 lun 0 (pass0,ada0)
<WDC WD2002FAEX-007BA0 05.01D05>   at scbus1 target 0 lun 0 (pass1,ada1)
<WDC WD2002FAEX-007BA0 05.01D05>   at scbus2 target 0 lun 0 (pass2,ada2)
<WDC WD2002FAEX-007BA0 05.01D05>   at scbus3 target 0 lun 0 (pass3,ada3)
<HUA721010KLA330 GKAOA94A>         at scbus4 target 0 lun 0 (pass4,ada4)
<HUA721010KLA330 GKAOA94A>         at scbus5 target 0 lun 0 (pass5,ada5)
< silicon-power 1100>              at scbus6 target 0 lun 0 (pass6,da0)

gptid/44b8ce68-3102-11e1-bfe5-f46d04752481     N/A  ada4p2
gptid/456958f0-3102-11e1-bfe5-f46d04752481     N/A  ada5p2
                             ufs/FreeNASs3     N/A  da0s3
                             ufs/FreeNASs4     N/A  da0s4
                    ufsid/5009cfdd91a55783     N/A  da0s1a
                            ufs/FreeNASs1a     N/A  da0s1a
                            ufs/FreeNASs2a     N/A  da0s2a

=>        34  1953525101  ada4  GPT  (931G)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  1949330703     2  freebsd-zfs  (929G)

=>        34  1953525101  ada5  GPT  (931G)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  1949330703     2  freebsd-zfs  (929G)

=>      63  31358913  da0  MBR  (15G)
        63   1930257    1  freebsd  (942M)
   1930320        63       - free -  (31k)
   1930383   1930257    2  freebsd  [active]  (942M)
   3860640      3024    3  freebsd  (1.5M)
   3863664     41328    4  freebsd  (20M)
   3904992  27453984       - free -  (13G)

=>      0  1930257  da0s1  BSD  (942M)
        0       16         - free -  (8.0k)
       16  1930241      1  !0  (942M)

=>      0  1930257  da0s2  BSD  (942M)
        0       16         - free -  (8.0k)
       16  1930241      1  !0  (942M)

RAIDZ with some savesets.
And I can reach the files, but it's degraded.

I did do a reboot of the system earlier this morning, I can set the device offline, but now when I bring it online it says failed.
I did try the force flag and force clear flag, still says faulted.
It's a new disk I bought yesterday, same size, type and brand, not tested in any other system than this.

I do have a ZFS Mirror, but that is working optimal.



Thanks!

Regards,
Freddie
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Well, that sync cache failed is concerning.

I'd make sure the disk is working as expected, try:

dd if=/dev/random of=/dev/ada3 bs=1m count=200

or

newfs /dev/ada3


If those work, go to the GUI, Storage -> Volumes -> View Disk -> Wipe Disk, choose fast mode to ada3.
zpool replace ZFS001 1390891721742178247 ada3
 
Status
Not open for further replies.
Top