[zfs-discuss] Removing log device from existing pool

Uwe Sauter uwe.sauter.de at gmail.com
Fri Dec 8 07:55:25 EST 2017


> Thanks for the clarification. I just checked the "Intent Log"section on my "man zpool" and it shows exactly the same
> thing you quoted.
> 
> Therefore, I think we have an internal inconsistency in the docs, as the two sections on the same manpage (ie, "zpool
> remove" and "Intent log" sections are in disagreement).
> 
> I think this is a (documentation) bug. Can you file it, or should I?
> 

Please, go on. I'm unsure if "remove" is just missing in the "intent log" section or if the "zpool remove" section is
incorrect.

> 
>     But yes, you are right, "attach" and "detach" only apply to mirror sub-devices. Apologies…
> 
> 
> No problem, and in case of need, I stand ready to help debug this.
>  
> 

Don't know if I can help with that.


I just checked on my second box

(Arch Linux, ZFS versions:
local/spl-linux-git 0.7.0.r21.ged19bcc.4.14.3.1-4
local/spl-utils-common-git 0.7.0.r21.ged19bcc-2
local/zfs-linux-git 0.7.0.r200.gd4677269f.4.14.3.1-4
local/zfs-utils-common-git 0.7.0.r200.gd4677269f-2)

This is the result:

[root at arch ~]# zpool status
  pool: storage
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
	still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
	the pool may no longer be accessible by software that does not support
	the features. See zpool-features(5) for details.
  scan: scrub repaired 0B in 0 days 05:50:58 with 0 errors on Sun Oct 29 02:52:14 2017
config:

	NAME                        STATE     READ WRITE CKSUM
	storage                     ONLINE       0     0     0
	  raidz2-0                  ONLINE       0     0     0
	    wwn-0x5000c5002f5fe320  ONLINE       0     0     0
	    wwn-0x5000c50032bd7522  ONLINE       0     0     0
	    wwn-0x5000cca22dc319d1  ONLINE       0     0     0
	    wwn-0x5000cca22dc0f455  ONLINE       0     0     0
	    wwn-0x5000c5004dddabd8  ONLINE       0     0     0
	    wwn-0x50014ee058c5825a  ONLINE       0     0     0
	  raidz2-1                  ONLINE       0     0     0
	    wwn-0x5000cca222c689a0  ONLINE       0     0     0
	    wwn-0x5000cca222c59a46  ONLINE       0     0     0
	    wwn-0x5000cca222c6bbdd  ONLINE       0     0     0
	    wwn-0x5000cca222f106a3  ONLINE       0     0     0
	    wwn-0x5000cca222c6c100  ONLINE       0     0     0
	    wwn-0x5000cca222c5185b  ONLINE       0     0     0
	logs
	  mirror-2                  ONLINE       0     0     0
	    sdi7                    ONLINE       0     0     0
	    sdj7                    ONLINE       0     0     0
	cache
	  sdi6                      ONLINE       0     0     0
	  sdj6                      ONLINE       0     0     0

errors: No known data errors

[root at arch ~]# zpool remove storage mirror-2

[root at arch ~]# zpool status
  pool: storage
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
	still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
	the pool may no longer be accessible by software that does not support
	the features. See zpool-features(5) for details.
  scan: scrub repaired 0B in 0 days 05:50:58 with 0 errors on Sun Oct 29 02:52:14 2017
config:

	NAME                        STATE     READ WRITE CKSUM
	storage                     ONLINE       0     0     0
	  raidz2-0                  ONLINE       0     0     0
	    wwn-0x5000c5002f5fe320  ONLINE       0     0     0
	    wwn-0x5000c50032bd7522  ONLINE       0     0     0
	    wwn-0x5000cca22dc319d1  ONLINE       0     0     0
	    wwn-0x5000cca22dc0f455  ONLINE       0     0     0
	    wwn-0x5000c5004dddabd8  ONLINE       0     0     0
	    wwn-0x50014ee058c5825a  ONLINE       0     0     0
	  raidz2-1                  ONLINE       0     0     0
	    wwn-0x5000cca222c689a0  ONLINE       0     0     0
	    wwn-0x5000cca222c59a46  ONLINE       0     0     0
	    wwn-0x5000cca222c6bbdd  ONLINE       0     0     0
	    wwn-0x5000cca222f106a3  ONLINE       0     0     0
	    wwn-0x5000cca222c6c100  ONLINE       0     0     0
	    wwn-0x5000cca222c5185b  ONLINE       0     0     0
	cache
	  sdi6                      ONLINE       0     0     0
	  sdj6                      ONLINE       0     0     0

errors: No known data errors



So at least on Arch removing a mirrored log vdev succeeds.


More information about the zfs-discuss mailing list