Page 1 of 1

Cannot remove SLOG mirror

Posted: 07 Feb 2014 09:32
by Thomymaster
Hi

I wanted to remove my SLOG mirror vdev because i want to partition my SSDs with 4K alignment and see if this brings an improvement. But i am unable to remove the devices from the zpool

Code: Select all

storage: ~ # zpool status
  pool: zpool1
 state: ONLINE
  scan: resilvered 0 in 0h3m with 0 errors on Thu Jan 30 23:47:12 2014
config:

        NAME          STATE     READ WRITE CKSUM
        zpool1        ONLINE       0     0     0
          mirror-0    ONLINE       0     0     0
            ada0.nop  ONLINE       0     0     0
            ada1.nop  ONLINE       0     0     0
          mirror-1    ONLINE       0     0     0
            ada2.nop  ONLINE       0     0     0
            ada3.nop  ONLINE       0     0     0
        logs
          mirror-2    ONLINE       0     0     0
            ada4      ONLINE       0     0     0
            ada5      ONLINE       0     0     0

errors: No known data errors


storage: ~ # zpool remove zpool1 ada5 ada4
cannot remove ada5: operation not supported on this type of pool
cannot remove ada4: operation not supported on this type of pool

What am i doing wrong here?

Best,
Thomas

Re: Cannot remove SLOG mirror

Posted: 07 Feb 2014 12:41
by raulfg3
You can't remove devices on a pool or SLOG, you can only replace it by other, but never remove, if you do it, you lose all your data.

Re: Cannot remove SLOG mirror

Posted: 07 Feb 2014 13:43
by Thomymaster
That is not right, i could do a:

zpool add zpool1 log ada4
zpool remove zpool1 ada4

Without problems (if i do a remove, the SLOG is flushed first to the disks i guess)

My bad :(

i had to do a

Code: Select all

 zpool remove zpool1 mirror-2
and now it worked

Re: Cannot remove SLOG mirror

Posted: 07 Feb 2014 14:59
by raulfg3
Thomymaster wrote:That is not right, i could do a:

zpool add zpool1 log ada4
zpool remove zpool1 ada4

Without problems (if i do a remove, the SLOG is flushed first to the disks i guess)

My bad :(

i had to do a

Code: Select all

 zpool remove zpool1 mirror-2
and now it worked
Sorry you are right, in your example use a simple log device and fail in a mirror log.
acording to Oracle's documentation you are doing things good:

http://docs.oracle.com/cd/E19253-01/819 ... index.html
http://docs.oracle.com/cd/E19253-01/819 ... html#gfgaw
so must work , and I do not know what is the problem , sorry