Skip to content

Conversation

@Mic92
Copy link
Member

@Mic92 Mic92 commented Sep 3, 2024

No description provided.

@Mic92 Mic92 marked this pull request as ready for review September 3, 2024 12:13
@Mic92 Mic92 force-pushed the disk-deactiviate branch 5 times, most recently from dad33d9 to 0a598cc Compare September 3, 2024 14:39
def remove:
if .fstype == "zfs_member" then
"zpool destroy -f \(.label)"
"if type zpool >/dev/null; then zpool destroy -f \(.label); zpool labelclear -f \(.label); fi"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it looks like zpool destroy only works if the pool is mounted. zpool labelclear works in more cases.

@Mic92 Mic92 requested a review from Lassulus September 3, 2024 14:57
@Lassulus Lassulus merged commit e55f9a8 into master Sep 3, 2024
@Lassulus Lassulus deleted the disk-deactiviate branch September 3, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants