D
D
Dmitry Bannik2016-10-08 18:19:40
linux
Dmitry Bannik, 2016-10-08 18:19:40

How to remove disk from zfs pool?

How to remove sdb4 disk from "lxc" pool?

# zpool status
  pool: lxc
 state: ONLINE
  scan: none requested
config:

  NAME        STATE     READ WRITE CKSUM
  lxc         ONLINE       0     0     0
    sda3      ONLINE       0     0     0
    sdb4      ONLINE       0     0     0

errors: No known data errors

When removing with remove
# zpool remove lxc sdb4
cannot remove sdb4: only inactive hot spares, cache, top-level, or log devices can be removed

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Bannik, 2016-10-08
@prodimon

Apparently there is no way to remove a device added to the pool
. The only way out is to make a backup of the files, and recreate the pool.

N
Nikolay, 2016-10-08
@Faight

zpool detach lxc sdb4 won't work?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question