INNER CODE UNIT · Python

parse_args

LINBIT/linstor-server · scripts/linstor-controller-ha-setup.py:72

def parse_args(argv=None):
    parser = argparse.ArgumentParser(
        description="Make the LINSTOR controller highly available by moving "
                    "its database onto a replicated DRBD resource and "
                    "handing the service over to drbd-reactor.")
    parser.add_argument(
        "--storage-pool", metavar="NAME", default="",
        help="storage pool backing the controller database. Default: the "
             "cluster's only storage pool, or an interactive choice.")
    parser.add_argument(
        "--nodes", metavar="NODE[,NODE...]", default="",
        help="controller candidate nodes. The database resource is placed on "
             "exactly these nodes and only they get a controller; the list "
             "must include the node this script runs on. Default: let LINSTOR "
             "place the replicas and treat every cluster node as a candidate.")
    parser.add_argument(
        "--vip", metavar="ADDR/PREFIX", default="",
        help="virtual IP for the controller, e.g. 10.0.0.100/24. drbd-reactor "

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…