Removing a disc

sekroots

Explorer
Joined
Feb 28, 2022
Messages
61
Hello. How can i remove a disk from my pool?



Code:
root@POC-STGMASTER[~]# zpool status -x
  pool: tank
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-2Q
  scan: scrub repaired 0B in 00:00:03 with 0 errors on Fri Mar 25 09:44:47 2022
config:

        NAME                                            STATE     READ WRITE CKSUM
        tank                                            DEGRADED     0     0     0
          raidz1-0                                      DEGRADED     0     0     0
            gptid/089c83bb-a52a-11ec-b3bf-00155d032ee0  ONLINE       0     0     0
            gptid/08b257e6-a52a-11ec-b3bf-00155d032ee0  ONLINE       0     0     0
            gptid/08a9944c-a52a-11ec-b3bf-00155d032ee0  ONLINE       0     0     0
            gptid/08b70295-a52a-11ec-b3bf-00155d032ee0  ONLINE       0     0     0
            gptid/08cad6bc-a52a-11ec-b3bf-00155d032ee0  ONLINE       0     0     0
            16293776385333853924                        UNAVAIL      0     0     0  was /dev/gptid/08c3dbb8-a52a-11ec-b3bf-00155d032ee0

errors: No known data errors
root@POC-STGMASTER[~]#
root@POC-STGMASTER[~]# zpool remove tank /dev/gptid/08c3dbb8-a52a-11ec-b3bf-00155d032ee0
cannot remove /dev/gptid/08c3dbb8-a52a-11ec-b3bf-00155d032ee0: operation not supported on this type of pool
root@POC-STGMASTER[~]#



 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You can only replace, not remove, a failed disk from a RAIDZ1 vdev.
 

sekroots

Explorer
Joined
Feb 28, 2022
Messages
61
OMG. really?

Let´s imagine this disk has a failure. Where is ZFS redundancy?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
OMG. really?
Of course. Apart from single <--> mirror (attach/detach) you cannot change the redundancy level of a vdev.

Let´s imagine this disk has a failure. Where is ZFS redundancy?
You replace the failed disk to rebuild your desired level of redundancy. All the while the pool continues to work even without redundancy and no data is lost (hopefully).
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
Believe RaidZ expansion is coming


IIRC it may work in reverse too, its been a while since I looked into it
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
Believe RaidZ expansion is coming


IIRC it may work in reverse too, its been a while since I looked into it
Won’t work in reverse.
 
Top