Page 1 of 1

Replaced HD in Zpool: Lots of disk activity before I issue the replace command

Posted: 17 Dec 2016 08:44
by slaycock
I'm hoping that this is an occasion where zfs is just getting on with the task rather than waiting for me.

The server is running the current release 10 of NAS4Free.

I had a HD fail in a 10 disk zfs2. No worries, its been running since 2011. I removed the drive with a new, unused drive of the same capacity. On restarting the server there is a lot of disk activity which indicates that the new disk is being re-silvered. However the information page doesn't report that re-silvering is ongoing.

Code: Select all

 pool: LazarusPool
 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://illumos.org/msg/ZFS-8000-2Q
  scan: scrub canceled on Sat Dec 17 05:39:19 2016
config:

	NAME                     STATE     READ WRITE CKSUM
	LazarusPool              DEGRADED     0     0     0
	  raidz2-0               DEGRADED     0     0     0
	    da5                  ONLINE       0     0     0
	    da7                  ONLINE       0     0     0
	    da0                  ONLINE       0     0     0
	    ada0                 ONLINE       0     0     0
	    da1                  ONLINE       0     0     0
	    5517359698052454137  UNAVAIL      0     0     0  was /dev/da2
	    da2                  ONLINE       0     0     0
	    da3                  ONLINE       0     0     0
	    da4                  ONLINE       0     0     0
	    ada1                 ONLINE       0     0     0

errors: No known data errors
Issuing a zpool status command from the console also does not report any re-silvering activity. I get the same report as above.

I'm hoping that something good is happening. But it does seem strange that there are no reports of what the activity is.

The I/O activity of the array is below.

Code: Select all

                            capacity     operations    bandwidth
pool                     alloc   free   read  write   read  write
-----------------------  -----  -----  -----  -----  -----  -----
LazarusPool              5.12T  3.94T    138      4  13.5M  29.1K
  raidz2                 5.12T  3.94T    138      4  13.5M  29.1K
    da5                      -      -    106      0  1.72M  7.52K
    da7                      -      -    106      1  1.72M  7.47K
    da0                      -      -    106      1  1.72M  7.45K
    ada0                     -      -    109      1  1.73M  7.46K
    da1                      -      -    100      1  1.57M  7.57K
    5517359698052454137      -      -      0      0      0      0
    da2                      -      -     95      1  1.53M  7.70K
    da3                      -      -    106      0  1.72M  7.71K
    da4                      -      -    106      0  1.72M  7.60K
    ada1                     -      -    106      0  1.72M  7.59K
-----------------------  -----  -----  -----  -----  -----  -----
Would anyone else be knowledgeable enough to pint me to where else I might be looking to see what is happening.

Re: Replaced HD in Zpool: Lots of disk activity before I issue the replace command

Posted: 17 Dec 2016 11:25
by erico.bettoni
You have to issue the command. The pool will not auto replace the drive.

zpool replace LazarusPool /dev/da2

Re: Replaced HD in Zpool: Lots of disk activity before I issue the replace command

Posted: 17 Dec 2016 11:46
by slaycock
Thanks. But what is causing the disk activity. Its been going several hours now.

Re: Replaced HD in Zpool: Lots of disk activity before I issue the replace command

Posted: 17 Dec 2016 15:17
by crowi
First check what processes are running