X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Flctl.c;h=74f9ce10029e6ffa44b81d544ef96484909fa1e2;hp=72c25d3f6f78252af76d26000bce14114596080d;hb=cc922789d90f9495dc8009eb082392ad41151a3d;hpb=90913da176b3529758bc6fa52701373d92389440 diff --git a/lustre/utils/lctl.c b/lustre/utils/lctl.c index 72c25d3..74f9ce1 100644 --- a/lustre/utils/lctl.c +++ b/lustre/utils/lctl.c @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -29,7 +27,7 @@ * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2012, Whamcloud, Inc. + * Copyright (c) 2012, 2013, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -96,6 +94,9 @@ command_t cmdlist[] = { "usage: list_nids [all]"}, {"which_nid", jt_ptl_which_nid, 0, "choose a NID" "usage: which_nid NID [NID...]"}, + {"replace_nids", jt_replace_nids, 0, + "replace primary NIDs for a device\n" + "usage: replace_nids [,nid2,nid3]"}, {"interface_list", jt_ptl_print_interfaces,0,"print interface entries\n" "usage: interface_list"}, {"peer_list", jt_ptl_print_peers, 0, "print peer entries\n" @@ -344,7 +345,19 @@ command_t cmdlist[] = { "usage: memhog []"}, {"getobjversion", jt_get_obj_version, 0, "get the version of an object on servers\n" - "usage: getobjversion "}, + "usage: getobjversion \n" + " getobjversion -i -g "}, + + /* LFSCK commands */ + {"==== LFSCK ====", jt_noop, 0, "LFSCK"}, + {"lfsck_start", jt_lfsck_start, 0, "start LFSCK\n" + "usage: lfsck_start <-M | --device [MDT,OST]_device>\n" + " [-e | --error error_handle] [-h | --help]\n" + " [-n | --dryrun switch] [-r | --reset]\n" + " [-s | --speed speed_limit]\n" + " [-t | --type lfsck_type[,lfsck_type...]]"}, + {"lfsck_stop", jt_lfsck_stop, 0, "stop lfsck(s)\n" + "usage: lfsck_stop <-M | --device [MDT,OST]_device> [-h | --help]"}, {"==== obsolete (DANGEROUS) ====", jt_noop, 0, "obsolete (DANGEROUS)"}, /* some test scripts still use these */