Whamcloud - gitweb
land v0.9.1 on HEAD, in preparation for a 1.0.x branch
[fs/lustre-release.git] / lustre / doc / lconf.8
1 .TH lconf 1 "2003 Oct 8" Lustre "configuration utilities"
2 .SH NAME
3 lconf \- Lustre filesystem configuration utility
4 .SH SYNOPSIS
5 .br
6 .B lconf
7 [--node <node_name>] [-d,--cleanup] [--noexec] [--gdb] [--nosetup] [--nomod] [-n,--noexec] [-v,--verbose] [-h,--help] <XML-config file>
8 [options] --add <objecttype> [args]
9 .br
10 .SH DESCRIPTION
11 .B lconf
12 , when invoked configures a node following directives in the <XML-config-file>. There will be single configuration file for all the nodes in a single cluster. This file should be distributed to all the nodes in the cluster or kept in a location accessible to all the nodes. One option is to store the cluster configuration information in LDAP format on an LDAP server that can be reached from all the cluster nodes.
13 .PP
14 The arguments that can be used for lconf are:
15 .PP
16 .TP
17 --config <arg> 
18 Cluster configuration name used for LDAP query
19 .TP
20 --d|--cleanup 
21 Unconfigure a node. The same config and --node argument used for configuration needs to be used for cleanup as well. This will attempt to undo all of the configuration steps done by lconf, including unloading the kernel modules.
22 .TP
23 --dump <file> 
24 Dump the kernel debug log to the specified file before portals is unloaded during cleanup.
25 .TP
26 --dump_path <arg> 
27 Path to save debug dumps. Default is /tmp/lustre_log
28 .TP
29 --failover 
30 Used to shutdown without saving state. Default is 0. This will allow the node to give up service to another node for failover purposes. This will not be a clean shutdown.
31 .TP
32 --force 
33 Forced unmounting and/or obd detach during cleanup. Default is 0. 
34 .TP
35 --gdb 
36 Causes lconf to print a message and pause for 5 seconds after creating a gdb module script and before doing any Lustre configuration (the gdb module script is always created, however).
37 .TP
38 --gdb_script <arg> 
39 Full name of gdb debug script. Default is /tmp/ogdb.
40 .TP
41 --group <arg> 
42 The group of devices to cleanup/configure.
43 .TP
44 -h,--help 
45 Print help.
46 .TP
47 --inactive <UUID> 
48 The UUID of the service to be ignored by a client mounting Lustre. Allows the client to mount in the presence of some inactive services. (currently OST only). Multiple UUIDs can be specified by repeating the option. 
49 .TP
50 --lctl-dump <arg> 
51 Dump all ioctls to the specified file
52 .TP
53 --ldapurl <arg> 
54 LDAP server URL 
55 .TP
56 --lustre_upcall <path> 
57 Set the location of the Lustre upcall scripts used by the client for recovery
58 .TP
59 --lustre=src_dir 
60 Specify the base directory for Lustre sources, this parameter will cause lconf to load the lustre modules from this soure tree.
61 .TP
62 --mds_ost_conn 
63 Open connections to OSTs on MDS.
64 .TP
65 --maxlevel <level> 
66 Perform configuration of devices and services up to level given. level can take the values net, dev, svc, fs. When used in conjunction with cleanup, services are torn down up to a certain level. Default is 100.
67 .TP
68 --minlevel <level> 
69 Specify the minimum level of services to configure/cleanup. Default is 0.
70 .TP
71 --node node_name 
72 Specify a specific node to configure. By default, lconf will search for nodes with the local hostname and 'localhost'. When --node is used, only node_name is searched for. If a matching node is not found in the config, then lconf exits with an error.
73 .TP
74 --noexec,-n 
75 Print, but don't execute, the steps lconf will perform. This is useful for debugging a configuration, and when used with --node, can be run on any host.
76 .TP
77 --nomod 
78 Only setup devices and services, do not load modules.
79 .TP
80 --nosetup 
81 Only load modules, do not configure devices or services.
82 .TP
83 --portals_upcall <path> 
84 Specify the location of the Portals upcall scripts used by the client for recovery
85 .TP
86 --ptldebug debug-level 
87 This options can be used to set the required debug level.
88 .TP
89 --recover <arg> 
90 Recover a device.
91 .TP
92 --reformat 
93 Reformat all the devices. This is essential on the first time the file system is brought up.
94 .TP
95 --select <arg> 
96 Select a particular node for a service 
97 .TP
98 --subsystem <arg> 
99 Set the portals debug subsystem.
100 .TP
101 --timeout <arg> 
102 Set the recovery timeout period.
103 .TP
104 --upcall <path> 
105 Set the location of both Lustre and Portals upcall scripts used by the client for recovery
106 .TP
107 --verbose,-v 
108 Be verbose and show actions while going along.
109 .TP
110 --write_conf 
111 Save all client configuration information on the MDS
112 .SH EXAMPLES
113 .TP
114 .B lconf --node client config.xml
115 This invokes lconf on the client node.
116 .TP
117 .B lconf --ptldebug "~(portals | malloc | trace)"
118 Used to set the required debug levels (all but these).
119 .TP
120 .B lconf --ptldebug "ldlm|ha"
121 Used to turn-on specific debug types.
122 .TP
123 .B lconf --inactive OST_ost1_UUID --inactive OST_ost2_UUID config.xml
124 A subset of failed OSTs can be ignored during Lustre mount on the clients by using this option. Here OST1 and OST2 have failed and need to be ignored.
125 .SH BUGS
126 None are known.