[zfs-discuss] Oops (accidentally deleted replaced drive)

2007-11-19 Thread Albert Chin
Running ON b66 and had a drive fail. Ran 'zfs replace' and resilvering
began. But, accidentally deleted the replacement drive on the array
via CAM.

# zpool status -v
...
  raidz2   DEGRADED 0 0 0
c0t600A0B800029996605964668CB39d0  ONLINE   0 0 0
spare  DEGRADED 0 0 0
  replacingUNAVAIL  0 79.14 
0  insufficient replicas
c0t600A0B8000299966059E4668CBD3d0  UNAVAIL 27   370 
0  cannot open
c0t600A0B800029996606584741C7C3d0  UNAVAIL  0 82.32 
0  cannot open
  c0t600A0B8000299CCC05D84668F448d0ONLINE   0 0 0
c0t600A0B8000299CCC05B44668CC6Ad0  ONLINE   0 0 0
c0t600A0B800029996605A44668CC3Fd0  ONLINE   0 0 0
c0t600A0B8000299CCC05BA4668CD2Ed0  ONLINE   0 0 0


Is there a way to recover from this?
  # zpool replace tww c0t600A0B8000299966059E4668CBD3d0 \
  c0t600A0B8000299CCC06734741CD4Ed0
  cannot replace c0t600A0B8000299966059E4668CBD3d0 with
  c0t600A0B8000299CCC06734741CD4Ed0: cannot replace a replacing device

-- 
albert chin ([EMAIL PROTECTED])
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Oops (accidentally deleted replaced drive)

2007-11-19 Thread Eric Schrock
You should be able to do a 'zpool detach' of the replacement and then
try again.

- Eric

On Mon, Nov 19, 2007 at 08:20:04PM -0600, Albert Chin wrote:
 Running ON b66 and had a drive fail. Ran 'zfs replace' and resilvering
 began. But, accidentally deleted the replacement drive on the array
 via CAM.
 
 # zpool status -v
 ...
   raidz2   DEGRADED 0 0   
   0
 c0t600A0B800029996605964668CB39d0  ONLINE   0 0   
   0
 spare  DEGRADED 0 0   
   0
   replacingUNAVAIL  0 79.14   
   0  insufficient replicas
 c0t600A0B8000299966059E4668CBD3d0  UNAVAIL 27   370   
   0  cannot open
 c0t600A0B800029996606584741C7C3d0  UNAVAIL  0 82.32   
   0  cannot open
   c0t600A0B8000299CCC05D84668F448d0ONLINE   0 0   
   0
 c0t600A0B8000299CCC05B44668CC6Ad0  ONLINE   0 0   
   0
 c0t600A0B800029996605A44668CC3Fd0  ONLINE   0 0   
   0
 c0t600A0B8000299CCC05BA4668CD2Ed0  ONLINE   0 0   
   0
 
 
 Is there a way to recover from this?
   # zpool replace tww c0t600A0B8000299966059E4668CBD3d0 \
   c0t600A0B8000299CCC06734741CD4Ed0
   cannot replace c0t600A0B8000299966059E4668CBD3d0 with
   c0t600A0B8000299CCC06734741CD4Ed0: cannot replace a replacing device
 
 -- 
 albert chin ([EMAIL PROTECTED])
 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

--
Eric Schrock, FishWorkshttp://blogs.sun.com/eschrock
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Oops (accidentally deleted replaced drive)

2007-11-19 Thread Albert Chin
On Mon, Nov 19, 2007 at 06:23:01PM -0800, Eric Schrock wrote:
 You should be able to do a 'zpool detach' of the replacement and then
 try again.

Thanks. That worked.

 - Eric
 
 On Mon, Nov 19, 2007 at 08:20:04PM -0600, Albert Chin wrote:
  Running ON b66 and had a drive fail. Ran 'zfs replace' and resilvering
  began. But, accidentally deleted the replacement drive on the array
  via CAM.
  
  # zpool status -v
  ...
raidz2   DEGRADED 0 0 
  0
  c0t600A0B800029996605964668CB39d0  ONLINE   0 0 
  0
  spare  DEGRADED 0 0 
  0
replacingUNAVAIL  0 79.14 
  0  insufficient replicas
  c0t600A0B8000299966059E4668CBD3d0  UNAVAIL 27   370 
  0  cannot open
  c0t600A0B800029996606584741C7C3d0  UNAVAIL  0 82.32 
  0  cannot open
c0t600A0B8000299CCC05D84668F448d0ONLINE   0 0 
  0
  c0t600A0B8000299CCC05B44668CC6Ad0  ONLINE   0 0 
  0
  c0t600A0B800029996605A44668CC3Fd0  ONLINE   0 0 
  0
  c0t600A0B8000299CCC05BA4668CD2Ed0  ONLINE   0 0 
  0
  
  
  Is there a way to recover from this?
# zpool replace tww c0t600A0B8000299966059E4668CBD3d0 \
c0t600A0B8000299CCC06734741CD4Ed0
cannot replace c0t600A0B8000299966059E4668CBD3d0 with
c0t600A0B8000299CCC06734741CD4Ed0: cannot replace a replacing device
  
  -- 
  albert chin ([EMAIL PROTECTED])
  ___
  zfs-discuss mailing list
  zfs-discuss@opensolaris.org
  http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
 
 --
 Eric Schrock, FishWorkshttp://blogs.sun.com/eschrock
 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
 
 

-- 
albert chin ([EMAIL PROTECTED])
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss