]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
camcontrol: depop command
authorWarner Losh <imp@FreeBSD.org>
Fri, 17 Sep 2021 22:30:06 +0000 (16:30 -0600)
committerWarner Losh <imp@FreeBSD.org>
Mon, 20 Sep 2021 22:27:59 +0000 (16:27 -0600)
commit53cce2e744c1086bd5c6aa18bff4daac42468538
tree8ea651b959d8f56962203eee42683138f06983bc
parentda73926566da6f708ce3f17ff29fe867f1ad33cd
camcontrol: depop command

Implement and document the new depop command. This command manages drive elements
for drives that support it. Storage elements are typically heads. Element status
can be discovered. Elements may be removed or restored. And the status of any
current depop operation can be assessed.

depop -d elm will remove element elm and truncate available capacity.
depop -l will list the current drive elements and their current status.
depop -r elm will try to restore all retired elements and rebuild capacity.

Changing storage elements may reinitialize the drive. This operation will lose
data and may take hours to complete. Use the drive provided timeout for
operations by default.

Reviewed by: gbe (manpages)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D29018
sbin/camcontrol/Makefile
sbin/camcontrol/camcontrol.8
sbin/camcontrol/camcontrol.c
sbin/camcontrol/camcontrol.h
sbin/camcontrol/depop.c [new file with mode: 0644]