Whamcloud - gitweb
LU-1430 mgs: "replace_nids" lctl command added
authorArtem Blagodarenko <artem_blagodarenko@xyratex.com>
Thu, 30 Aug 2012 12:35:57 +0000 (16:35 +0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 16 Jan 2013 12:35:39 +0000 (07:35 -0500)
commit6aa30ff835c36c385e68c7a1ebe3906ccae3d2a5
tree2204e33c5e0da29ac3d213b39cb0620f8ce8b339
parent2b9bf34b87597bc5235c5dff01ae2ec0b2a02d91
LU-1430 mgs: "replace_nids" lctl command added

Currently after device address is changed tunefs
should be started with "writeconf" options. This
erase configuration logs for the filesystem that
this server is part of, and regenerate them. This
is very dangerous. All clients must be unmounted
and servers  for  this filesystem should be stopped.
All targets (OSTs/MDTs) must then be restarted to
regenerate the logs.  No clients should be started
until all targets have restarted. The targets start
order is also important. Wrong order can be cause
of failure.

This patch adds "replace_nids" command to lctl
that should be executed when only MGS server
started. This command replace nids and uuid for
given device. Command can be used to change
OST or MDT nids.

Xyratex-bug-id: MRP-397
Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Reviewed-by: Nathan Rutman <nathan.rutman@xyratex.com>
Signed-off-by: Artem Blagodarenko <artem_blagodarenko@xyratex.com>
Change-Id: I74b72281ce3b5e48188735035e58250596a16bf7
Reviewed-on: http://review.whamcloud.com/2896
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
16 files changed:
lustre/doc/lctl.8
lustre/include/lustre/lustre_idl.h
lustre/include/lustre_lib.h
lustre/include/lustre_log.h
lustre/include/obd_class.h
lustre/mgc/mgc_request.c
lustre/mgs/mgs_handler.c
lustre/mgs/mgs_internal.h
lustre/mgs/mgs_llog.c
lustre/obdclass/genops.c
lustre/obdclass/llog.c
lustre/ofd/ofd_dev.c
lustre/tests/conf-sanity.sh
lustre/utils/lctl.c
lustre/utils/obd.c
lustre/utils/obdctl.h