Ray,

Log removal integrated into build 125, so yes, if you upgraded to at
least OpenSolaris build 125 you could fix this problem. See the syntax
below on my b133 system.

In this particular case, importing the pool from b125 or later media
and attempting to remove the log device could not fix this problem unless you also upgraded the pool version, because it is the pool
version that provides support for this operation.

I hope someone else has a better idea...

Thanks,

Cindy

# zpool create tank mirror c2t10d0 c2t9d0 log c2t8d0 c2t7d0
# zpool status tank
  pool: tank
 state: ONLINE
 scrub: none requested
config:

        NAME         STATE     READ WRITE CKSUM
        tank         ONLINE       0     0     0
          mirror-0   ONLINE       0     0     0
            c2t10d0  ONLINE       0     0     0
            c2t9d0   ONLINE       0     0     0
        logs
          c2t8d0     ONLINE       0     0     0
          c2t7d0     ONLINE       0     0     0

errors: No known data errors
# zpool remove tank c2t8d0
# zpool remove tank c2t7d0
# zpool status tank
  pool: tank
 state: ONLINE
 scrub: none requested
config:

        NAME         STATE     READ WRITE CKSUM
        tank         ONLINE       0     0     0
          mirror-0   ONLINE       0     0     0
            c2t10d0  ONLINE       0     0     0
            c2t9d0   ONLINE       0     0     0

errors: No known data errors


On 02/25/10 11:42, Ray Van Dolson wrote:
Well, it doesn't seem like this is possible -- I was hoping there was
some "hacky" way to do it via zdb or something.

Sun support pointed me to a document[1] that leads me to believe this
might have worked on OpenSolaris.  Anyone out there in Sun-land care to
comment?

To recap, I accidentally created two zeparate slog/zil devices in my
zpool instead of a mirror.  I want to remove one of them.

I wonder if this will be possible in Solaris 10 U9?  I'm considering
migrating all my data off and rebuilding the zpool, but might wait for
U9 if I can remove zil devices then.

Thanks,
Ray

[1] http://docs.sun.com/app/docs/doc/817-2271/gayrd?a=view
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to