LU-16386 utils: Improve mkfs.lustre.8 man page This patch imporves the - Options section of "--version" argument - Adds "--version" option to examples section Test-Parameters: trivial Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com> Change-Id: I7fd3e7f1ea9a313a33db5620a92a595f2c4bd36f Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49384 Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Jian Yu <yujian@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com> Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com>
LU-930 doc: improve mkfs.lustre --fsname description Specify what valid values for the --fsname option are and add some additional description for this option and --index. Test-Parameters: trivial Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Change-Id: I256c97aaa51cec18cef44b3f34466c4fdb3ebbe5 Reviewed-on: https://review.whamcloud.com/34433 Reviewed-by: Joseph Gmitter <jgmitter@whamcloud.com> Tested-by: Jenkins Reviewed-by: James Nunez <jnunez@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-8311 doc: add NIDs examples to mkfs.lustre and mount.lustre This patch adds examples of how NIDs can be specified on mkfs.lustre and mount command lines. Test-Parameters: trivial Signed-off-by: Jian Yu <jian.yu@intel.com> Change-Id: I93a8f843755582f94844504f604409dd43b617f9 Reviewed-on: http://review.whamcloud.com/23355 Tested-by: Jenkins Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Zhiqi Tao <zhiqi.tao@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-8694 docs: ZFS hostid mkfs.lustre(8) man page update Add note about needing to reload spl module after creating /etc/hostid file. Test-Parameters: trivial Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com> Change-Id: Ie4c3697567ed2722742324fd70f382bb46a886d6 Reviewed-on: http://review.whamcloud.com/23118 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Steve Guminski <stephenx.guminski@intel.com> Reviewed-by: Cliff White <cliff.white@intel.com> Reviewed-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-7243 misc: update Intel copyright messages 2015 Update copyright messages in files modified by Intel employees in 2015 by non-trivial patches. Exclude patches that are only deleting code, renaming functions, or adding or removing whitespace. Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> Change-Id: I70fe6a346790e15d23606a3f380e7ef8fb8b84a0 Reviewed-on: http://review.whamcloud.com/16758 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: James Nunez <james.a.nunez@intel.com> Reviewed-by: James Simmons <uja.ornl@yahoo.com> Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-7299 utils: allow mkfs.lustre --index to specify in hex/dec The mkfs.lustre --index argument should be able to handle hex index values as well as decimal values, especially since the OSTxxxx identifiers are printed in hexadecimal as well. Signed-off-by: Thomas Stibor <t.stibor@gsi.de> Change-Id: I9f7564e3d674353fbebef18bde1598c01bb5bb2c Reviewed-on: http://review.whamcloud.com/16831 Tested-by: Jenkins Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com> Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Andreas Dilger <andreas.dilger@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-2740 utils: Add support for --version option For mount.lustre, mkfs.lustre, lfs, and lctl, a --version option was added that will print the LUSTRE_VERSION_STRING. lctl has an option called lustre_build_version that prints both the Lustre version and the lctl version, which is BUILD_VERSION. Printing the lctl version was removed from the 'lctl lustre_build_version' output since BUILD_VERSION and LUSTRE_VERSION_STRING are very different strings and this could be confusing to the user. Also, mount.lustre and mkfs.lustre prints the version number when printing help/usage. This was removed to make all Lustre utilities have a more uniform output. The lctl, lfs and mkfs.lustre man pages were updated to include the --version option. Signed-off-by: James Nunez <james.a.nunez@intel.com> Change-Id: I301258562f51640f041dd7ac6aa695450270c385 Reviewed-on: http://review.whamcloud.com/11014 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: John L. Hammond <john.hammond@intel.com>
LU-2234 man: Add zfs options to mkfs.lustre man page Document zfs options in mkfs.lustre(8). Also update index and fsname options to match current requirements. Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com> Change-Id: I06e018c41b29d8f9ca8d1f2ef595140bed16096e Reviewed-on: http://review.whamcloud.com/10629 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Cliff White <cliff.white@intel.com>
LU-14 utils: allow formatting OST without VIRGIN flag When reformatting a new target to replace an existing target, the "mkfs.lustre --replace" option allows formatting an OST (or MDT?) with the same index as a previously used OST without setting the LDD_F_VIRGIN flag. This is required in the case where an OST was lost due to massive corruption or critical hardware failure. Otherwise, the newly formatted target will try to register with the MGS as a new target, but will be refused by the MGS due to having an already-used index. The OFD code skips precreating all of the objects in the filesystem if the MDS requests an object ID too much larger than the current LAST_ID. In this case (which can happen if the OST is replaced or restored from an older backup) only the most recent objects are precreated, and the deletion of orphans from a too-large precreate is left to lfsck. Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> Change-Id: Iea57167346627eeb85ac40c17f3ea4596b3ebbe5 Reviewed-on: http://review.whamcloud.com/7443 Tested-by: Hudson Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Sebastien Buisson <sebastien.buisson@bull.net> Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@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-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>