hi
by default the disk partition s2 cover the whole disk
this is fine for ufs  for LONG time.
Now zfs does not like this overlap so you just need to run format then delete s2
or use s2 and delete all other partitions
(by default when you run format/fdisk it create s2 whole disk and s7 for boot, so there is also overlap between s2 and s7:-( )

ZFS root need to fix this problem that require partition and not the whole disk (without s?)
my 2c
regards


On 4/12/2012 1:35 PM, Peter Wood wrote:
Hi,

I was following the instructions in ZFS Troubleshooting Guide on how to replace a disk in the root pool on x86 system. I'm using OpenIndiana, ZFS pool v.28 with mirrored system rpool. The replacement disk is brand new.

root:~# zpool status
  pool: rpool
 state: DEGRADED
status: One or more devices has experienced an unrecoverable error.  An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://www.sun.com/msg/ZFS-8000-9P
  scan: resilvered 17.6M in 0h0m with 0 errors on Wed Apr 11 17:45:16 2012
config:

        NAME                         STATE     READ WRITE CKSUM
        rpool                        DEGRADED     0     0     0
          mirror-0                   DEGRADED     0     0     0
            c2t5000CCA369C55DB8d0s0  OFFLINE      0   126     0
            c2t5000CCA369D5231Cd0s0  ONLINE       0     0     0

errors: No known data errors
root:~#

I'm not very familiar with Solaris partitions and slices so somewhere in the format/partition commands I must to have made a mistake because when I try to replace the disk I'm getting the following error:

root:~# zpool replace rpool c2t5000CCA369C55DB8d0s0 c2t5000CCA369C89636d0s0
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c2t5000CCA369C89636d0s0 overlaps with /dev/dsk/c2t5000CCA369C89636d0s2
root:~#

I used -f and it worked but I was wondering is there a way to completely "reset" the new disk? Remove all partitions and start from scratch.

Thank you
Peter


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

<<attachment: laotsao.vcf>>

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

Reply via email to