LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-30-2017, 07:28 AM   #1
DjbOz
LQ Newbie
 
Registered: Nov 2017
Posts: 1

Rep: Reputation: Disabled
Zpool. Replaced disk. Resilvered still flagged as replacing. Help


I had a disk die on me a while back. I pulled the disk and then sometime later replaced it with it's warranty replacement. From memory, I used the replace command, but don't hold me on that (it was over 6 months ago). I've been trying to get the box back up and running of late (life got in the way in the intervening period).

How do I get my pool (Moeras) back up online and running properly. Moeras is a samba share.

It's an Athlon x4 12GB RAM running Ubuntu 17.10 as a mediacentre (MediaBox is the computer's name) running Kodi 17.6 and sharing out via SQL etc blah blah blah.

I've included all the output that I think may be relevant below. Sorry for the lack of indenting from the zdb command, but the forum parser removed ALL the whitespace, so I just added carriage returns to it was somewhat readable.

Cheers
Darryl


darryl@Nassau:~$ sudo zdb
Moeras:
version: 5000
name: 'Moeras'
state: 0
txg: 3984093
pool_guid: 18184029150424358502
errata: 0

hostname: 'Nassau'
vdev_children: 2

vdev_tree:
type: 'root'
id: 0
guid: 18184029150424358502

children[0]:
type: 'raidz'
id: 0
guid: 3341763187599105175
nparity: 1
metaslab_array: 35
metaslab_shift: 36
ashift: 12
asize: 12002320711680
is_log: 0
create_txg: 4
children[0]:
type: 'disk'
id: 0
guid: 12279066897419627741
path: '/dev/disk/by-id/wwn-0x50014ee20bd9b3a0-part1'
whole_disk: 1
DTL: 218
create_txg: 4
children[1]:
type: 'disk'
id: 1
guid: 15924622066277202387
path: '/dev/disk/by-id/wwn-0x50014ee2b6f00fc8-part1'
whole_disk: 1
DTL: 217
create_txg: 4
children[1]:
type: 'raidz'
id: 1
guid: 1109155141408738463
nparity: 1
metaslab_array: 166
metaslab_shift: 37
ashift: 12
asize: 16003097427968
is_log: 0
create_txg: 125102
children[0]:
type: 'disk'
id: 0
guid: 530933039732532316
path: '/dev/sdd1'
whole_disk: 1
DTL: 211
create_txg: 125102
children[1]:
type: 'replacing'
id: 1
guid: 12779208485490938286
whole_disk: 0
create_txg: 125102
children[0]:
type: 'disk'
id: 0
guid: 10713216388657625813
path: '/dev/disk/by-id/wwn-0x5000c50087d22bff-part1'
whole_disk: 1
not_present: 1
DTL: 219
create_txg: 125102
children[1]:
type: 'disk'
id: 1
guid: 14427897699676778701
path: '/dev/sde1'
whole_disk: 1
DTL: 282
create_txg: 125102
resilver_txg: 3456175
features_for_read:
com.delphix:hole_birth
com.delphix:embedded_data





darryl@Nassau:~$ sudo zpool status -x
pool: Moeras
state: DEGRADED
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: http://zfsonlinux.org/msg/ZFS-8000-8A
scan: scrub in progress since Thu Nov 30 23:03:56 2017
175G scanned out of 15.0T at 250M/s, 17h13m to go
48K repaired, 1.14% done
config:

NAME STATE READ WRITE CKSUM
Moeras DEGRADED 0 0 0
raidz1-0 ONLINE 0 0 0
wwn-0x50014ee20bd9b3a0 ONLINE 0 0 0
wwn-0x50014ee2b6f00fc8 ONLINE 0 0 0
raidz1-1 DEGRADED 0 0 0
sdd ONLINE 0 0 18 (repairing)
replacing-1 DEGRADED 0 0 0
10713216388657625813 UNAVAIL 0 0 0 was /dev/disk/by-id/wwn-0x5000c50087d22bff-part1
sde ONLINE 0 0 0
 
Old 12-01-2017, 12:48 PM   #2
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
Code:
# zpool replace ZPOOLNAME FAILED-DEV GOOD-DEV
worked for me.

According to your "status" you still have UNAVAIL device and one disk in reparing state.
It is looks like you had double disk fail, or you've mistakenly replaced wrong (not failed) disk.

In any case, a "status" states that data is corrupted and you should restore pool from backup.

A "good" failed status looks in other way:
Code:
[root@lvmraid ~]# zpool status 
  pool: export
 state: DEGRADED
status: One or more devices could not be used because the label is missing or
        invalid.  Sufficient replicas exist for the pool to continue
        functioning in a degraded state.
action: Replace the device using 'zpool replace'.
   see: http://zfsonlinux.org/msg/ZFS-8000-4J
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        export      DEGRADED     0     0     0
          raidz1-0  DEGRADED     0     0     0
            vda3    ONLINE       0     0     0
            vdb3    ONLINE       0     0     0
            vdc3    UNAVAIL      1   333     0  corrupted data
            vdd3    ONLINE       0     0     0

errors: No known data errors
Taken from here: ZFS recepies
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk replaced and format output looks different linuxew Solaris / OpenSolaris 1 01-23-2015 08:03 PM
ZFS Native replacing disk in zpool Asterlan Linux - Newbie 0 08-06-2012 08:45 AM
Disk failed & replaced; how to rebuild broken logical volume? JMCraig Linux - Hardware 1 08-21-2009 11:19 AM
Software RAID 5 crash and wrongful failed disk flagged Cairan Linux - Server 0 12-18-2006 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration