Whamcloud - gitweb
LU-8900 snapshot: rename filesysetem fsname 68/24268/16
authorFan Yong <fan.yong@intel.com>
Fri, 4 Nov 2016 12:28:31 +0000 (20:28 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 23 Mar 2017 01:40:15 +0000 (01:40 +0000)
commitd0c6e97fa53ae26dec458087e96dcbb0ed0d469a
tree5d90ac2667c553c62c06d52b30c6599ae5966259
parent4c90aef2f0712d8da720f6a66cd09b88df7d0573
LU-8900 snapshot: rename filesysetem fsname

Introuduce new tunefs options "--rename" for renaming the existing
Lustre filesystem fsname with configuration/parameters preserved.
Usage: tunefs.lustre --fsname $NEW_FSNAME --rename $OLD_FSNAME ...

NEW_FSNAME is the new fsname, must be specified.
OLD_FSNAME is the old fsname, it is optional if the MGS and the MDT
are combined together.

It shares the functionality of fork/erase Lustre configuration logs
in kernel.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ic9aaf6ed6209c7580bfabd4b660a6a7667576484
Reviewed-on: https://review.whamcloud.com/24268
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Tested-by: Oleg Drokin <oleg.drokin@intel.com>
13 files changed:
lustre/include/dt_object.h
lustre/include/lustre_disk.h
lustre/mgs/mgs_handler.c
lustre/mgs/mgs_internal.h
lustre/mgs/mgs_llog.c
lustre/obdclass/local_storage.c
lustre/tests/conf-sanity.sh
lustre/tests/test-framework.sh
lustre/utils/mkfs_lustre.c
lustre/utils/mount_utils.c
lustre/utils/mount_utils.h
lustre/utils/mount_utils_ldiskfs.c
lustre/utils/mount_utils_zfs.c