[zfs-discuss] Removing log device from existing pool

J. Roeleveld joost at antarean.org
Sat Dec 9 11:02:20 EST 2017


On Friday, December 8, 2017 1:55:25 PM CET Uwe Sauter via zfs-discuss wrote:

<snipped>

> I just checked on my second box

I also just tested on a virtualbox VM:

Gentoo-Linux, zfs version: 0.7.1

This is the result:

vm2zfs1 ~ # zpool status rpool
  pool: rpool
 state: ONLINE
  scan: scrub repaired 0B in 0h0m with 0 errors on Sun Sep 10 11:52:34 2017
config:

        NAME                                           STATE     READ WRITE 
CKSUM
        rpool                                          ONLINE       0     0     
0
          ata-VBOX_HARDDISK_VB0e391069-0b97ba9f-part3  ONLINE       0     0     
0

errors: No known data errors
vm2zfs1 ~ # zpool add rpool log /dev/disk/by-id/ata-
VBOX_HARDDISK_VB1a860b6a-7ae11905
vm2zfs1 ~ # zpool status rpool
  pool: rpool
 state: ONLINE
  scan: scrub repaired 0B in 0h0m with 0 errors on Sun Sep 10 11:52:34 2017
config:

        NAME                                           STATE     READ WRITE 
CKSUM
        rpool                                          ONLINE       0     0     
0
          ata-VBOX_HARDDISK_VB0e391069-0b97ba9f-part3  ONLINE       0     0     
0
        logs
          ata-VBOX_HARDDISK_VB1a860b6a-7ae11905        ONLINE       0     0     
0

errors: No known data errors
vm2zfs1 ~ # zpool remove rpool /dev/disk/by-id/ata-
VBOX_HARDDISK_VB1a860b6a-7ae11905
vm2zfs1 ~ # zpool status rpool
  pool: rpool
 state: ONLINE
  scan: scrub repaired 0B in 0h0m with 0 errors on Sun Sep 10 11:52:34 2017
config:

        NAME                                           STATE     READ WRITE 
CKSUM
        rpool                                          ONLINE       0     0     
0
          ata-VBOX_HARDDISK_VB0e391069-0b97ba9f-part3  ONLINE       0     0     
0


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

And same result on Gentoo without a mirrored log-vdev.

I will update the VM to 0.7.3 and retest.

--
Joost


More information about the zfs-discuss mailing list