[LU-3768] "tunefs.lustre: '----index' only valid for MDT,OST" on a stand-alone MGS Created: 16/Aug/13  Updated: 06/May/14  Resolved: 03/Sep/13

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.5.0
Fix Version/s: Lustre 2.5.0

Type: Bug Priority: Critical
Reporter: Emoly Liu Assignee: Emoly Liu
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-3682 "tunefs.lustre --erase_params" corrup... Reopened
Severity: 3
Rank (Obsolete): 9707

 Description   

This bug is easy to reproduce in the following steps:
1)mkfs.lustre a stand-alone MGS
2)tunefs.lustre that MGS

Here is my output,

[root@centos6-3 master]# lustre/utils/mkfs.lustre --mgs --device-size=100000 --reformat /tmp/lustre-mgs

   Permanent disk data:
Target:     MGS
Index:      unassigned
Lustre FS:  
Mount type: ldiskfs
Flags:      0x64
              (MGS first_time update )
Persistent mount opts: user_xattr,errors=remount-ro
Parameters:

formatting backing filesystem ldiskfs on /dev/loop0
	target name  MGS
	4k blocks     25000
	options        -q -O uninit_bg,dir_nlink,quota,huge_file,flex_bg -E lazy_journal_init -F
mkfs_cmd = mke2fs -j -b 4096 -L MGS  -q -O uninit_bg,dir_nlink,quota,huge_file,flex_bg -E lazy_journal_init -F /dev/loop0 25000
Writing CONFIGS/mountdata

[root@centos6-3 master]# tunefs.lustre --erase-params /tmp/lustre-mgs
checking for existing Lustre data: found
Reading CONFIGS/mountdata

   Read previous values:
Target:     MGS
Index:      unassigned
Lustre FS:  
Mount type: ldiskfs
Flags:      0x44
              (MGS update )
Persistent mount opts: user_xattr,errors=remount-ro
Parameters:

tunefs.lustre: '----index' only valid for MDT,OST
tunefs.lustre v2.4.90
usage: tunefs.lustre <target type> [--backfstype=ldiskfs] --fsname=<filesystem name>
	--index=<target index> [options] <device>
	<device>:block device or file (e.g /dev/sda or /tmp/ost1)

	target types:
		--mgs: configuration management service
		--mdt: metadata storage, mutually exclusive with ost
		--ost: object storage, mutually exclusive with mdt, mgs
	options (in order of popularity):
		--index=#N: numerical target index (0..N)
			required for all targets other than the MGS
		--fsname=<8_char_filesystem_name>: fs targets belong to
			required for all targets other than MGS
		--mgsnode=<nid>[,<...>]: NID(s) of remote MGS
			required for all targets other than MGS
		--mountfsoptions=<opts>: permanent mount options
		--failnode=<nid>[,<...>]: NID(s) of backup failover node
			mutually exclusive with --servicenode
		--servicenode=<nid>[,<...>]: NID(s) of service partners
			treat nodes as equal service node, mutually exclusive with --failnode
		--param <key>=<value>: set a permanent parameter
			e.g. --param sys.timeout=40
			     --param lov.stripesize=2M
		--network=<net>[,<...>]: restrict OST/MDT to network(s)
		--erase-params: erase all old parameter settings
		--nomgs: turn off MGS service on this MDT
		--writeconf: erase all config logs for this fs.
		--quota: enable space accounting on old 2.x device.
		--comment=<user comment>: arbitrary string (824 bytes)
		--dryrun: report what we would do; don't write to disk
		--verbose: e.g. show mkfs progress
		--quiet

I will fix it.



 Comments   
Comment by Emoly Liu [ 16/Aug/13 ]

patch track at http://review.whamcloud.com/7353

Comment by Emoly Liu [ 03/Sep/13 ]

patch landed for 2.5

Comment by Swapnil Pimpale (Inactive) [ 06/May/14 ]

Backported to b2_4: http://review.whamcloud.com/#/c/10225/

Generated at Sat Feb 10 01:36:44 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.