[zfs-discuss] zpool replace

2011-08-15 Thread Doug Schwabauer


  
  
Help - I've got a bad disk in a zpool and need to replace it.  I've
got
an extra drive that's not being used, although it's still marked
like
it's in a pool.  So I need to get the "xvm" pool destroyed, c0t5d0
marked as available, and replace c0t3d0 with c0t5d0.

root@kc-x4450a # zpool status -xv
  pool: vms
 state: UNAVAIL
status: One or more devices are faulted in response to IO failures.
action: Make sure the affected devices are connected, then run
'zpool
clear'.
   see: http://www.sun.com/msg/ZFS-8000-HC
 scrub: none requested
config:

    NAME    STATE READ WRITE CKSUM
    vms UNAVAIL  0 3 0  insufficient
replicas
  c0t2d0    ONLINE   0 0 0
  c0t3d0    UNAVAIL  0 6 0  experienced I/O
failures
  c0t4d0    ONLINE   0 0 0

errors: Permanent errors have been detected in the following files:

    vms:<0x5>
    vms:<0xb>
root@kc-x4450a # zpool replace -f vms c0t3d0 c0t5d0
cannot replace c0t3d0 with c0t5d0: pool I/O is currently
  suspended
root@kc-x4450a # zpool import
  pool: xvm
    id: 14176680653869308477
 state: DEGRADED
status: The pool was last accessed by another system.
action: The pool can be imported despite missing or damaged
devices. 
The
    fault tolerance of the pool may be compromised if imported.
   see: http://www.sun.com/msg/ZFS-8000-EY
config:

    xvm DEGRADED
  mirror-0  DEGRADED
    c0t4d0  FAULTED  corrupted data
    c0t5d0  ONLINE

Thanks!

-Doug
  

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] "reset" a disk?

2007-12-12 Thread Doug Schwabauer
I can't find how to do this...I used a disk for a zfs pool and now I 
want to use it for normal UFS stuff.  But my partition table now looks like:

Part  TagFlag First SectorSizeLast Sector
  0usrwm34  33.91GB 71116541
  1 unassignedwm 0  0  0
  2 unassignedwm 0  0  0
  3 unassignedwm 0  0  0
  4 unassignedwm 0  0  0
  5 unassignedwm 0  0  0
  6 unassignedwm 0  0  0
  8   reservedwm  71116542   8.00MB 71132925

I'm assuming zpool did this when I used the disk device "c1t1d0" instead 
of the c1t1d0s2 partition?  How do I release or reset this disk so I get 
the normal 0-7 partitions?  I've already destroyed the pool.

-Doug
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss