LU-14090 mgs: no local logs flag There is a feature that starts a target with a local copy of config log in order to avoid a delay in communicating with an MGS and to load mgs log updates later on. However, that feature is not always useful. When replace_nids adds records with new nids it does not append remote config logs but overwrite corresponding records in place. If a target starts using local config log - it gets confused by outdated nids. This patch adds tunefs.lustre --nolocallogs key that sets nolocallogs flag, which says ignore local configs copy. The flag is reset once new logs are uploaded from MGS. tunefs.lustre --nolocallogs is suggested to be executed on targets together with replace_nids on MGS. HPE-bug-id: LUS-2510 Change-Id: I949c19ac701d287e1c1199bc12445989476a707b Signed-off-by: Artem Blagodarenko <artem.blagodarenko@hpe.com> Reviewed-on: https://es-gerrit.dev.cray.com/157574 Reviewed-by: Vladimir Saveliev <c17830@cray.com> Reviewed-by: Nikitas Angelinas <nangelinas@cray.com> Tested-by: Alexander Lezhoev <c17454@cray.com> Reviewed-on: https://review.whamcloud.com/40448 Tested-by: jenkins <devops@whamcloud.com> Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-10308 misc: update Intel copyright messages for 2017 Update copyright messages for files updated in 2016, excluding trivial patches. Add trivial patches to updatecw.sh script exclude list. Revert some changes that were incorrectly attributed to the 2016 (d10200a80770f0029d1d665af954187b9ad883df) and 2015 (0754bc8f2623bea184111af216f7567608db35b6) copyright update patches themselves, since they were not in the exclude list when the subsequent script was run. Test-Parameters: trivial Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> Change-Id: I82f21c30c4dac75792bb49fc139bee2ca51f5545 Reviewed-on: https://review.whamcloud.com/30341 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Jian Yu <jian.yu@intel.com> Reviewed-by: James Nunez <james.a.nunez@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-9752 man: Reference zgenhostid instead of genhostid In ZFS 0.7.0, they added zgenhostid(8) to be used in place of Redhat's genhostid, so that there would be a platform agnostic way to generate /etc/hostid. Test-Parameters: trivial Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com> Change-Id: I691266d04f91d5fa7c50b72948c801afa69d647d Reviewed-on: https://review.whamcloud.com/29327 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Bob Glossman <bob.glossman@intel.com> Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
LU-7131 utils: add "--erase-param" option to tunefs.lustre This patch is to fix the following issues: - A new option "--erase-param" is added to tunefs.lustre, which allows to remove all instances of a specific parameter. - The behavior of option "--param" is improved a little. It will erase all previously stored instances of the parameter, and then store all new values specified in the command line. - For zfs only, the patch introduces a "null value" rule in the form of "<key>=" to mark a property to be removed from dataset by zfs_write_ldd() finally. - To keep the right semantics, if "--erase-params" is specified, all old parameters should be erased before any new changes are done. - test_89 conf-sanity.sh is added to verify these new features. Seagate-bug-id: MRP-153 Signed-off-by: Nikitas Angelinas <nikitas.angelinas@seagate.com> Signed-off-by: Emoly Liu <emoly.liu@intel.com> Change-Id: Ibc8d81227045471b8e5c56c7faf1275ad8bbbf86 Tested-by: Elena Gryaznova <elena.gryaznova@seagate.com> Reviewed-by: Artem Blagodarenko <artem.blagodarenko@seagate.com> Reviewed-by: Alexey Lyashkov <alexey.lyashkov@seagate.com> Reviewed-by: Vitaly Fertman <vitaly.fertman@seagate.com> Reviewed-on: https://review.whamcloud.com/16359 Reviewed-by: Bobi Jam <bobijam@hotmail.com> Tested-by: Jenkins Reviewed-by: Fan Yong <fan.yong@intel.com> Reviewed-by: James Simmons <uja.ornl@yahoo.com> Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-8901 misc: update Intel copyright messages for 2016 Update copyright messages for files updated in 2016, excluding trivial patches. Add trivial patches to updatecw.sh script exclude list. Improve the output of patches causing the most changes to include the patch summary instead of just the hash. Test-Parameters: trivial Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> Change-Id: Ifb098e8126f698ea975e10ba13f5f47c449ae4ad Reviewed-on: https://review.whamcloud.com/24233 Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Tested-by: Oleg Drokin <oleg.drokin@intel.com>
LU-7134 utils: Ensure hostid set for ZFS during mkfs Ensure import protection in ZFS. spl_hostid must be set to a non-zero value for it to work correctly. Error out during mkfs and tunefs unless override is passed. Also print error during mount. Ensure hostid is set in conf-sanity.sh Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com> Change-Id: If37318c20e4502a643992e6bc21ac4bc4ad20ed7 Reviewed-on: http://review.whamcloud.com/16611 Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com> Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com>
LU-6978 utils: mkfs.lustre to recognise non ldiskfs opts After "LU-6030 osd-ldiskfs: improve mount option handling landing", mkfs.lustre lost ability to store non ldiskfs persistent options, because their support was stripped out from ldiskfs layer. This patch makes ldiskfs mount independent from the mount options from mkfs.lustre command string. Change-Id: I63e2efb84249eae8294ce33a72894aeb52563ad5 Xyratex-bug-id: MRP-2819 Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@seagate.com> Reviewed-on: http://review.whamcloud.com/15937 Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com> Tested-by: Jenkins Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Yang Sheng <yang.sheng@intel.com> Reviewed-by: Andrew Perepechko <andrew.perepechko@seagate.com> Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-2446 build: Update Whamcloud copyright messages for Intel Update the copyright messages for master branch for Intel. These are the manual changes required. Issues addressed: The addition of the GPL to two header files Updating the Man page copyrights Dealing with nonlinear year issues in git Removal of a double copyright Careful addition of Intel copyrights in a tricky spots Signed-off-by: Keith Mannthey <keith.mannthey@intel.com> Change-Id: Iaf8bd9f2a7e38c265c86c477fdf51607c1590b86 Reviewed-on: http://review.whamcloud.com/4948 Tested-by: Hudson Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Bob Glossman <bob.glossman@intel.com>
LU-930 doc: update URLs in man pages Update the bug reporting URL to point at http://bugs.whamcloud.com/, since current releases are not longer being made by Sun, and they should not be getting bug reports about any 2.x releases. Since all of the man pages reference lustre(7), and the URL is also in the RPM packages, we don't need to put the URL into every man page. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Change-Id: I24f95df62efbf75de89d96b52acfacbd16c12074 Reviewed-on: http://review.whamcloud.com/4480 Tested-by: Hudson Reviewed-by: Johann Lombardi <johann.lombardi@intel.com> Reviewed-by: Richard Henwood <richard.henwood@intel.com>
LU-1842 quota: tunefs.lustre --quota Add "--quota" for tunefs.lustre to convert old quota disk format into new format. Signed-off-by: Niu Yawei <niu@whamcloud.com> Change-Id: Ie1951c9183b940c41956e863f76f5e357a1b2bd8 Reviewed-on: http://review.whamcloud.com/4205 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Johann Lombardi <johann.lombardi@intel.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-1146 build: batch update copyright messages Update copyright messages for all files modified by Whamcloud. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Change-Id: I9654b780c6e4726d369e2a893f7e210d4078819b Reviewed-on: http://review.whamcloud.com/2242 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-57 Allow OSTs to be created with no primary node Add a --servicenode parameter for mkfs.lustre to treat all service nodes equally. Bugzilla: 19064 Change-Id: I15fc50ec7b808fac03dab92b8c0702a0d054b559 Signed-off-by: Bobi Jam <bobijam@whamcloud.com> Reviewed-on: http://review.whamcloud.com/378 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Mikhail Pershin <tappro@whamcloud.com> Tested-by: Liang Zhen <liang@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-140 Remove leftovers of iopen iopen has been already removed from the patch series, but it is still referenced in many places. Change-Id: I512ce8ceef11d99f812f1348a5b53552b3ac1a42 Signed-off-by: Johann Lombardi <johann@whamcloud.com> Reviewed-on: http://review.whamcloud.com/417 Tested-by: Hudson Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
b=22078 Bind ost/mdt to specific nids The goal of the patch attached to this bug is to make NUMIOA factor management easier, by giving the ability to restrict the NIDs that a target (mdt or ost) registers on the MGS. i=nathan i=sebastien
Update copyrights on source files changed since 2010-02-15.
b=22283 clarify writeconf in man page
b=19689 i=adilger i=bobijam i=nathan o=Jim Garlick Change tunefs.lustre and mkfs.lustre --mountfsoptions so that exactly the specified mount options are used. Leaving off any "mandatory" mount options is an error. Leaving off any default mount options causes a warning, but is allowed. Change errors=remount-ro from mandatory to default. Sanitize the mount string before storing it. Update man pages accordingly. This hopefully makes two awkward situations less so: - making errors=panic the default (before we had to append errors=remount-ro and hope ldiskfs parsing caused the last option to override the first) - setting other mount options on the OST's dropped mballoc,extents without warning.
b=16098 change CFS license headers to Sun headers
Branch HEAD Update tunefs.lustre man page.
Change name from --noformat to --dryrun for clarity