Accidentally added disk to pool! (maybe?)

Moderators: jhartley, MSR734, nola

Accidentally added disk to pool! (maybe?)

Post by 51t » Sat Oct 13, 2012 5:44 pm

I upgraded a disk on my 8 HDD raidz2 pool. Everything went fine and the pool was resilvering the new disk. I then plugged in the old disk thinking I would use it for something else. Right away ZFS started resilvering the old disk along with the new.

Code: Select all
five1t:~ Clint$ zpool status TowerZFS
  pool: TowerZFS
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
   continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
 scan: resilver in progress since Sat Oct 13 15:03:25 2012
    922Mi scanned out of 6.22Ti at 6.27Mi/s, 288h33m to go
    113Mi resilvered, 0.01% done
config:

   NAME                                             STATE     READ WRITE CKSUM
   TowerZFS                                         DEGRADED     0     0     0
     raidz2-0                                       DEGRADED     0     0     0
       GPTE_2AD8B31A-AF69-4B19-8C72-1B89FFD709D1    ONLINE       0     0     0  at disk2s2
       GPTE_866C2314-4C9C-41E4-9B1D-DCC00BB59A28    ONLINE       0     0     0  at disk3s2
       GPTE_2A04C3CE-5510-4D14-8681-0D8A9CB3B91D    ONLINE       0     0     0  at disk4s2
       GPTE_92ACE671-16B4-4B05-B1D5-3E2B492235C8    ONLINE       0     0     0  at disk5s2
       GPTE_266C0D58-2168-4E06-AB5A-7407286A2F1B    ONLINE       0     0     0  at disk6s2
       GPTE_D88DD3F9-FD3F-4BEE-A6EC-90A403420627    ONLINE       0     0     0  at disk7s2
       GPTE_81EA4520-7D63-42E9-B9C1-5234B23CD4F7    ONLINE       0     0     0  at disk8s2
       replacing-7                                  DEGRADED     0     0     0
         8876130688660716039                        UNAVAIL      0     0     0  was /dev/dsk/GPTE_6A80E572-40A5-4C10-A811-8C8EE72DF751
         GPTE_A7F84424-5304-4EDC-A0B7-9C4D23E05FF1  ONLINE       0     0     0  at disk9s2  (resilvering)

errors: No known data errors


Here is the history for what I did. The last online command wasn't from me (automatic command from ZEVO on disk mount?)

Code: Select all
2012-10-13.14:05:25 zpool offline TowerZFS GPTE_6A80E572-40A5-4C10-A811-8C8EE72DF751
2012-10-13.14:20:59 zpool replace TowerZFS GPTE_6A80E572-40A5-4C10-A811-8C8EE72DF751 /dev/disk9
2012-10-13.15:03:32 zpool online TowerZFS GPTE_6A80E572-40A5-4C10-A811-8C8EE72DF751


Do I now have a 9 disk pool with one missing? Can this be removed without having to destroy the pool?
Last edited by 51t on Sun Oct 14, 2012 3:01 pm, edited 1 time in total.
51t Offline


 
Posts: 5
Joined: Sat Sep 15, 2012 12:05 am

Re: Accidentally added disk to pool! (maybe?)

Post by grahamperrin » Sun Oct 14, 2012 2:55 am

51t wrote:… (automatic command from ZEVO on disk mount?) …


Possibly … on connect (not on mount). At http://www.ustream.tv/recorded/25862520 around 00:09:25 on the timeline:

… some of the user-level interesting scenarios that we ran into.

The first one is dynamic devices. On the Mac it's plug and play. You take your FireWire disk and you plug it in, when you're done you eject it in Finder and you're on your way. So this notion of an implicit import is sort of a foreign concept.

So we decided, there's already a mechanism in IOKIt for probing devices and it'll contact you dynamically. So instead of a zpool cache, which is like a static declaration of your storage, we dynamically build it up on the fly when you plug it in, and as soon as we get critical mass … add an import, and a straggler comes along, online … it works nice. It meets that expectation …

… type of dynamic mappings that we had to consider. …


– Don Brady, amongst panel members at the 2012 Illumos ZFS Day.

If without option -t your zpool offline command had only temporary effect
(the offline device coming online sooner than one might expect with option -t),
then I sense a bug:

  • online dynamics of ZEVO Community Edition 1.1.1 do not respect the offline specific for a device

– or words to that effect.
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 2 guests

cron