Skip to content

Instantly share code, notes, and snippets.

@william-gr
william-gr / replace_disk.py
Created May 19, 2022
Replacing a disk in TrueNAS 13.0-RELEASE
View replace_disk.py
#!/usr/bin/env python3
import argparse
import sys
from middlewared.client import Client
def main():
parser = argparse.ArgumentParser()
parser.add_argument('pool')
View gist:ce1d75829fa441cb4418ced4eb0dd9e6
### Keybase proof
I hereby claim:
* I am william-gr on github.
* I am williamgr (https://keybase.io/williamgr) on keybase.
* I have a public key ASCwriWyONvsUdNCDl2ESaPSFbST0DYovyNfF0yjfBJ2KAo
To claim this, I am signing this object:
View example.html
{% load cms_tags sekizai_tags %}
<!doctype html>
<head>
<title>{{ request.current_page.get_title }}</title>
{% render_block "css" %}
</head>
<body>
{% cms_toolbar %}
{% placeholder "main" %}