Re: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

2018-01-09 Thread Jason Matthews

I would delete the cache file, reboot, and then re-import the volume. 

rm /etc/zfs/zfs.cache
reboot


J. 

Sent from my iPhone

> On Jan 8, 2018, at 5:45 PM, John D Groenveld  wrote:
> 
> In message , David 
> Koski
> writes:
>> # zpool replace syspool c2t0d0s0 c2t0d0s0
>> invalid vdev specification
>> use '-f' to override the following errors:
>> /dev/dsk/c2t0d0s0 is part of active ZFS pool syspool. Please see zpool(1M).
> 
> 
> zpool(1M)
>zpool replace [-f] pool device [new_device]
> Replaces old_device with new_device.  This is equivalent to
> attaching new_device, waiting for it to resilver, and then
> detaching old_device.
> 
> The size of new_device must be greater than or equal to the
> minimum size of all the devices in a mirror or raidz
> configuration.
> 
> new_device is required if the pool is not redundant.  If
> new_device is not specified, it defaults to old_device.  This
> form of replacement is useful after an existing disk has failed
> and has been physically replaced.  In this case, the new disk may
> have the same /dev/dsk path as the old device, even though it is
> actually a different disk.  ZFS recognizes this.
> 
> -f  Forces use of new_device, even if its appears to be in
> use.  Not all devices can be overridden in this manner.
> 
> John
> groenv...@acm.org
> 
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
> 


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

2018-01-08 Thread John D Groenveld
In message , David Koski
 writes:
># zpool replace syspool c2t0d0s0 c2t0d0s0
>invalid vdev specification
>use '-f' to override the following errors:
>/dev/dsk/c2t0d0s0 is part of active ZFS pool syspool. Please see zpool(1M).


zpool(1M)
zpool replace [-f] pool device [new_device]
 Replaces old_device with new_device.  This is equivalent to
 attaching new_device, waiting for it to resilver, and then
 detaching old_device.

 The size of new_device must be greater than or equal to the
 minimum size of all the devices in a mirror or raidz
 configuration.

 new_device is required if the pool is not redundant.  If
 new_device is not specified, it defaults to old_device.  This
 form of replacement is useful after an existing disk has failed
 and has been physically replaced.  In this case, the new disk may
 have the same /dev/dsk path as the old device, even though it is
 actually a different disk.  ZFS recognizes this.

 -f  Forces use of new_device, even if its appears to be in
 use.  Not all devices can be overridden in this manner.

John
groenv...@acm.org

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

2018-01-05 Thread David Koski

I applied this remedy without change in outcome.

Thanks!
David
da...@kosmosisland.com

On 11/01/2017 11:05 AM, Grüninger, Andreas (LGL Extern) wrote:

Maybe the system did not detect that the fault is already cleared.
If you look in /var/adm/messages you will find the entries from fmadm with the 
ID.
If
fmadm faulty
spits out messages concerning this device, you can clear the state with
fmadm acquit
or
fmadm repaired.


-Ursprüngliche Nachricht-
Von: David Koski [mailto:da...@kosmosisland.com]
Gesendet: Mittwoch, 1. November 2017 15:49
An: openindiana-discuss@openindiana.org
Betreff: Re: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

Thank you, Andreas.  I tried:

zpool clear syspool
zpool status -x

..but nothing changed.  I also scrubbed it without effect.

Regards,
David

On 11/01/2017 02:59 AM, Grüninger, Andreas (LGL Extern) wrote:

Use
zpool clear syspool
zpool status -x

Andreas

-Ursprüngliche Nachricht-
Von: David Koski [mailto:da...@kosmosisland.com]
Gesendet: Mittwoch, 1. November 2017 07:28
An: openindiana-discuss@openindiana.org
Betreff: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

The boot drive had uncorrectable errors but still not faulted.  I put the 
mirrored drive into the boot drive position (c2t1d0s0 into slot of
c2t0d0s0) and put a new drive in place of the drive that was moved into the 
boot position, then booted the machine and resilvered.  However, the boot drive 
has a strange status where it appears twice in the zpool status, once faulted 
and once not:

# zpool status -x
     pool: syspool
    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://www.sun.com/msg/ZFS-8000-4J
    scan: scrub repaired 0 in 0h3m with 0 errors on Tue Oct 31 21:59:25 2017
config:

       NAME  STATE READ WRITE CKSUM
       syspool   DEGRADED 0 0 0
     mirror-0    DEGRADED 0 0 0
       c2t0d0s0  FAULTED  0 0 0  corrupted data
       c2t0d0s0  ONLINE   0 0 0
       c2t1d0s0  ONLINE   0 0 0

errors: No known data errors

Any ideas how to correct this and is it of concern?

Regards,
David Koski


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

2018-01-05 Thread David Koski

# zpool replace syspool c2t0d0s0 c2t0d0s0
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c2t0d0s0 is part of active ZFS pool syspool. Please see zpool(1M).

David
da...@kosmosisland.com

On 11/01/2017 11:39 AM, John D Groenveld wrote:

The boot drive had uncorrectable errors but still not faulted.  I put
the mirrored drive into the boot drive position (c2t1d0s0 into slot of
c2t0d0s0) and put a new drive in place of the drive that was moved into
the boot position, then booted the machine and resilvered.  However, the
boot drive has a strange status where it appears twice in the zpool
status, once faulted and once not:

# zpool status -x
   pool: syspool
  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://www.sun.com/msg/ZFS-8000-4J
  scan: scrub repaired 0 in 0h3m with 0 errors on Tue Oct 31 21:59:25 2017
config:

 NAME  STATE READ WRITE CKSUM
 syspool   DEGRADED 0 0 0
   mirror-0DEGRADED 0 0 0
 c2t0d0s0  FAULTED  0 0 0  corrupted data
 c2t0d0s0  ONLINE   0 0 0
 c2t1d0s0  ONLINE   0 0 0

errors: No known data errors

What happens when you "zpool replace syspool c2t0d0s0 c2t0d0s0"?

John
groenv...@acm.org

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

2017-11-01 Thread Günther Alka

Hello David
If you want to move disks around with a controller port based detection, 
you should not just move the disk but insert a new disk on a new 
location followed by a disk replace for a bad disk.


You can replace a disk in the same port but should not insert the 
removed disk in another port (or do a pool export, switch disk and a 
pool import to read new locations)


In your case I would power off and switch the disk in port c2t0d0 to 
another conroller port. After a power on every disk should be on a 
different port what allows a remove of the faulted disk.


If you will find a pool with two missing disks, do a pool export + 
import to re-read all disks with their positions.


Gea
@napp-it.org


Am 01.11.2017 um 07:27 schrieb David Koski:
The boot drive had uncorrectable errors but still not faulted.  I put 
the mirrored drive into the boot drive position (c2t1d0s0 into slot of 
c2t0d0s0) and put a new drive in place of the drive that was moved 
into the boot position, then booted the machine and resilvered.  
However, the boot drive has a strange status where it appears twice in 
the zpool status, once faulted and once not:


# zpool status -x
  pool: syspool
 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://www.sun.com/msg/ZFS-8000-4J
 scan: scrub repaired 0 in 0h3m with 0 errors on Tue Oct 31 21:59:25 2017
config:

    NAME  STATE READ WRITE CKSUM
    syspool   DEGRADED 0 0 0
  mirror-0    DEGRADED 0 0 0
    c2t0d0s0  FAULTED  0 0 0  corrupted data
    c2t0d0s0  ONLINE   0 0 0
    c2t1d0s0  ONLINE   0 0 0

errors: No known data errors

Any ideas how to correct this and is it of concern?

Regards,
David Koski


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

2017-11-01 Thread John D Groenveld
>The boot drive had uncorrectable errors but still not faulted.  I put 
>the mirrored drive into the boot drive position (c2t1d0s0 into slot of 
>c2t0d0s0) and put a new drive in place of the drive that was moved into 
>the boot position, then booted the machine and resilvered.  However, the 
>boot drive has a strange status where it appears twice in the zpool 
>status, once faulted and once not:
>
># zpool status -x
>   pool: syspool
>  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://www.sun.com/msg/ZFS-8000-4J
>  scan: scrub repaired 0 in 0h3m with 0 errors on Tue Oct 31 21:59:25 2017
>config:
>
> NAME  STATE READ WRITE CKSUM
> syspool   DEGRADED 0 0 0
>   mirror-0DEGRADED 0 0 0
> c2t0d0s0  FAULTED  0 0 0  corrupted data
> c2t0d0s0  ONLINE   0 0 0
> c2t1d0s0  ONLINE   0 0 0
>
>errors: No known data errors

What happens when you "zpool replace syspool c2t0d0s0 c2t0d0s0"?

John
groenv...@acm.org

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

2017-11-01 Thread LGL Extern
Maybe the system did not detect that the fault is already cleared.
If you look in /var/adm/messages you will find the entries from fmadm with the 
ID.
If 
fmadm faulty
spits out messages concerning this device, you can clear the state with
fmadm acquit 
or
fmadm repaired.


-Ursprüngliche Nachricht-
Von: David Koski [mailto:da...@kosmosisland.com] 
Gesendet: Mittwoch, 1. November 2017 15:49
An: openindiana-discuss@openindiana.org
Betreff: Re: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

Thank you, Andreas.  I tried:

zpool clear syspool
zpool status -x

..but nothing changed.  I also scrubbed it without effect.

Regards,
David

On 11/01/2017 02:59 AM, Grüninger, Andreas (LGL Extern) wrote:
> Use
> zpool clear syspool
> zpool status -x
>
> Andreas
>
> -Ursprüngliche Nachricht-
> Von: David Koski [mailto:da...@kosmosisland.com]
> Gesendet: Mittwoch, 1. November 2017 07:28
> An: openindiana-discuss@openindiana.org
> Betreff: [OpenIndiana-discuss] Duplicate devices in zpool, degraded
>
> The boot drive had uncorrectable errors but still not faulted.  I put the 
> mirrored drive into the boot drive position (c2t1d0s0 into slot of
> c2t0d0s0) and put a new drive in place of the drive that was moved into the 
> boot position, then booted the machine and resilvered.  However, the boot 
> drive has a strange status where it appears twice in the zpool status, once 
> faulted and once not:
>
> # zpool status -x
>     pool: syspool
>    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://www.sun.com/msg/ZFS-8000-4J
>    scan: scrub repaired 0 in 0h3m with 0 errors on Tue Oct 31 21:59:25 2017
> config:
>
>       NAME  STATE READ WRITE CKSUM
>       syspool   DEGRADED 0 0 0
>     mirror-0    DEGRADED 0 0 0
>       c2t0d0s0  FAULTED  0 0 0  corrupted data
>       c2t0d0s0  ONLINE   0 0 0
>       c2t1d0s0  ONLINE   0 0 0
>
> errors: No known data errors
>
> Any ideas how to correct this and is it of concern?
>
> Regards,
> David Koski
>
>
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

2017-11-01 Thread David Koski

Thank you, Andreas.  I tried:

zpool clear syspool
zpool status -x

..but nothing changed.  I also scrubbed it without effect.

Regards,
David

On 11/01/2017 02:59 AM, Grüninger, Andreas (LGL Extern) wrote:

Use
zpool clear syspool
zpool status -x

Andreas

-Ursprüngliche Nachricht-
Von: David Koski [mailto:da...@kosmosisland.com]
Gesendet: Mittwoch, 1. November 2017 07:28
An: openindiana-discuss@openindiana.org
Betreff: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

The boot drive had uncorrectable errors but still not faulted.  I put the 
mirrored drive into the boot drive position (c2t1d0s0 into slot of
c2t0d0s0) and put a new drive in place of the drive that was moved into the 
boot position, then booted the machine and resilvered.  However, the boot drive 
has a strange status where it appears twice in the zpool status, once faulted 
and once not:

# zpool status -x
    pool: syspool
   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://www.sun.com/msg/ZFS-8000-4J
   scan: scrub repaired 0 in 0h3m with 0 errors on Tue Oct 31 21:59:25 2017
config:

      NAME  STATE READ WRITE CKSUM
      syspool   DEGRADED 0 0 0
    mirror-0    DEGRADED 0 0 0
      c2t0d0s0  FAULTED  0 0 0  corrupted data
      c2t0d0s0  ONLINE   0 0 0
      c2t1d0s0  ONLINE   0 0 0

errors: No known data errors

Any ideas how to correct this and is it of concern?

Regards,
David Koski


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

2017-11-01 Thread LGL Extern
Use
zpool clear syspool
zpool status -x

Andreas

-Ursprüngliche Nachricht-
Von: David Koski [mailto:da...@kosmosisland.com] 
Gesendet: Mittwoch, 1. November 2017 07:28
An: openindiana-discuss@openindiana.org
Betreff: [OpenIndiana-discuss] Duplicate devices in zpool, degraded

The boot drive had uncorrectable errors but still not faulted.  I put the 
mirrored drive into the boot drive position (c2t1d0s0 into slot of
c2t0d0s0) and put a new drive in place of the drive that was moved into the 
boot position, then booted the machine and resilvered.  However, the boot drive 
has a strange status where it appears twice in the zpool status, once faulted 
and once not:

# zpool status -x
   pool: syspool
  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://www.sun.com/msg/ZFS-8000-4J
  scan: scrub repaired 0 in 0h3m with 0 errors on Tue Oct 31 21:59:25 2017
config:

     NAME  STATE READ WRITE CKSUM
     syspool   DEGRADED 0 0 0
   mirror-0    DEGRADED 0 0 0
     c2t0d0s0  FAULTED  0 0 0  corrupted data
     c2t0d0s0  ONLINE   0 0 0
     c2t1d0s0  ONLINE   0 0 0

errors: No known data errors

Any ideas how to correct this and is it of concern?

Regards,
David Koski


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss