1 #LyX 1.3 created this file. For more info see http://www.lyx.org/
3 \textclass amsart-plain
10 \papersize letterpaper
15 \use_numerical_citations 0
16 \paperorientation portrait
19 \paragraph_separation skip
21 \quotes_language english
25 \paperpagestyle default
35 lctl Low level Lustre filesystem configuration utility.
49 --device\SpecialChar ~
50 <devno> <command\SpecialChar ~
57 --threads\SpecialChar ~
58 <numthreads>\SpecialChar ~
59 <verbose>\SpecialChar ~
67 The program can be invoked in interactive mode by issuing
72 After that, commands are issued as below.
73 The most common commands in lctl are (in matching pairs)
128 To get a complete listing of available commands, type
135 To get basic help on the meaning and syntax of a command, type
142 Command completion is activated with the
148 key, and command history is available via the up- and down-arrow keys.
152 For non-interactive single threaded use, one uses the second invocation,
157 after connecting to the device
165 --device The device number to be used for the operation.
166 The value of devno is an integer, normally found by calling
174 --threads How many threads should be forked doing the command specified.
175 The numthreads variable is a strictly positive integer indicating how many
176 threads should be started.
181 option is used as above.
184 --ignore_errors\SpecialChar ~
186 ignore_errors Ignore errors that occur during script processing.
189 dump Save ioctl buffer to file.
194 Network\SpecialChar ~
209 Indicate the network type to be used for the operation.
212 network\SpecialChar ~
213 <tcp/elans/myrinet> Indicate what kind of network applies for the
214 configuration commands that follow.
217 autoconn_list Print autoconnect entries.
220 add_autoconn\SpecialChar ~
240 Add an autoconnect entry.
243 del_autoconn\SpecialChar ~
258 Remove an autoconnect entry.
261 conn_list Print all the connected remote nid.
264 connect\SpecialChar ~
265 <hostname>\SpecialChar ~
267 [iIOC] This will establish a connection to a remote
272 given by the hostname/port combination.
275 disconnect\SpecialChar ~
276 <nid> Disconnect from a remote
283 active_tx This command should print active transmits, and it is only used
284 for elan network type.
288 [nid] Informs the socknal of the local
293 It defaults to hostname for tcp networks and is automatically setup for
294 elan/myrinet networks.
297 shownid Print the local NID.
300 add_uuid\SpecialChar ~
303 <net_type> Associate a given UUID with an
308 close_uuid\SpecialChar ~
310 <net_type> Disconnect a UUID.
313 del_uuid\SpecialChar ~
314 <uuid> Delete a UUID association.
317 add_route\SpecialChar ~
318 <gateway>\SpecialChar ~
319 <target>\SpecialChar ~
320 [<target>] Add an entry to the portals routing
321 table for the given target.
322 The arguments should be nid.
323 If only one <target> is provided, this command should only add the route
325 But, if both of the <target>s are provides, this command should add the
326 route for all the target in the range specified by the two targets(from
327 low nid to high nid).
330 del_route\SpecialChar ~
331 <gateway>\SpecialChar ~
332 [<target>]\SpecialChar ~
333 [<target>] Delete the route entry for the given
334 targets from the portals routing table.
335 The arguments should be nid.
339 set_route\SpecialChar ~
340 <gateway>\SpecialChar ~
341 <up/down>\SpecialChar ~
342 [<time>] Enable/disable routes via the given
343 gateway in the protals routing table.
344 <time> is used to tell when a gateway comes back online.
347 route_list Print the complete portals routing table.
350 recv_mem\SpecialChar ~
351 [size] Set the buffer size for socket
355 buffer(that is, assign
356 \begin_inset Quotes eld
360 \begin_inset Quotes erd
365 \begin_inset Quotes eld
369 \begin_inset Quotes erd
372 is omitted, this command should print the default size for the buffer.
375 send_mem\SpecialChar ~
376 [size] Set the buffer size for socket
380 buffer(that is, assign
381 \begin_inset Quotes eld
385 \begin_inset Quotes erd
390 \begin_inset Quotes eld
394 \begin_inset Quotes erd
397 is omitted, this command should print the default size for the buffer.
401 [on/off] Enable/disable nagle; omitting the argument will cause the
402 current nagle setting to be reported.
406 nid|_all_\SpecialChar ~
407 [count] Fail/restore communications.
408 Omitting the count implies fail indefinitely, count of zero indicates that
409 communication should be restored.
410 A non-zero count indicates the number of portals messages to be dropped
411 after which the communication is restored.
413 \begin_inset Quotes eld
417 \begin_inset Quotes erd
420 is used to specify the gateway, which is one peer of the communication.
429 newdev Create a new device.
433 <%name|$name|devno> This will select the specified OBD device.
434 All other commands depend on the device being set.
437 cfg_device\SpecialChar ~
438 <$name> Set current device being configured to <$name>.
441 device_list Show all the devices.
444 dl The same as device_list.
447 lustre_build_version Print the Lustre build version.
465 a type to the current device (which you need to set using the
471 command) and give that device a name and UUID.
472 This allows us to identify the device for use later, and also tells us
473 what type of device we will have.
477 <args...> Type specific device setup commands.
478 For obdfilter, a setup command tells the driver which block device it should
479 use for storage and what type of filesystem is on that device.
483 cleanup\SpecialChar ~
484 [force|failover] Cleanup a previously setup device.
487 detach Remove driver (and name and UUID) from the current device.
490 lov_setup\SpecialChar ~
491 lov-uuid\SpecialChar ~
492 stripe-count\SpecialChar ~
493 stripe-size\SpecialChar ~
495 pattern\SpecialChar ~
498 LOV configuration to an MDS device.
501 lov_getconfig\SpecialChar ~
502 lov-uuid Read LOV configuration from an MDS device.
503 Returns stripe-count, stripe-size, offset, pattern, and a list of OST UUID's.
507 cfg-uuid-name Record commands that follow in log.
510 endrecord Stop recording
514 config-uuid-name Parse the log of recorded commands for this config.
517 dump_log\SpecialChar ~
518 config-uuid-name Print log of recorded commands for this config
522 clear_log\SpecialChar ~
523 config-name Delete current config log of recorded commands.
533 [timeout] Build a connection handle to a device.
534 This command is used to suspend configuration until the lctl command has
535 ensured that the MDS and OSC services are available.
536 This is to avoid mount failures in a rebooting cluster.
550 getattr\SpecialChar ~
551 <objid> Get attributes for an OST object
558 setattr\SpecialChar ~
559 <objid>\SpecialChar ~
560 <mode> Set mode attribute for OST object
570 [verbose\SpecialChar ~
572 data]]]] Create the specified number
576 of OST objects with the given
583 destroy\SpecialChar ~
585 starting\SpecialChar ~
591 > number of objects starting from the object with object id <
598 test_getattr\SpecialChar ~
600 [verbose\SpecialChar ~
620 test_brw\SpecialChar ~
621 [t]<num>\SpecialChar ~
623 [verbose\SpecialChar ~
624 [npages\SpecialChar ~
648 get_stripe\SpecialChar ~
649 objid Show stripe info for an echo client object.
652 set_stripe\SpecialChar ~
653 <objid>[=width!count[@offset]\SpecialChar ~
654 [:id:id....] Set stripe info for an echo
658 unset_stripe\SpecialChar ~
659 <objid> Unset stripe info for an echo client object.
662 test_ldlm Perform lock manager test.
665 ldlm_regress_start\SpecialChar ~
666 [numthreads\SpecialChar ~
667 [refheld\SpecialChar ~
668 [numres\SpecialChar ~
669 [numext]]]] Start lock manager
673 ldlm_regress_stop Stop lock manager stress test.
676 dump_ldlm Dump all lock manager state, this is very useful for debugging.
679 activate Activate an import.
682 deactivate De-activate an import.
685 recover\SpecialChar ~
686 [<connection\SpecialChar ~
687 UUID>] Pass the information of the new target and initialize
688 the connection to this target.
693 <directory>\SpecialChar ~
694 <file> Print some information of the given file.
697 notransno Disable sending of committed transnumber updates.
700 readonly Disable writes to the underlying device.
703 abort_recovery Abort recovery on MDS device.
706 mount_option\SpecialChar ~
707 profile\SpecialChar ~
708 osc_name\SpecialChar ~
709 [mdc_name] Add a new profile to lustre.
712 del_mount_option\SpecialChar ~
713 profile Delete a specified profile.
716 set_timeout\SpecialChar ~
717 <secs> Set the timeout(
721 ) for server to wait before failing recovery.
724 set_lustre_upcall\SpecialChar ~
725 </full/path/to/upcall> Set the lustre upcall(obd_lustre_upcall)
726 via the lustre.upcall sysctl.
729 llog_catlist List all catalog logs on current device.
732 llog_info\SpecialChar ~
733 <$logname|#oid#ogr#ogen> Print log header information.
737 llog_print\SpecialChar ~
738 <$logname|#oid#ogr#ogen>\SpecialChar ~
740 [to] Print log content information.
741 It will print all records from index 1 by default.
744 llog_check\SpecialChar ~
745 <$logname|#oid#ogr#ogen>\SpecialChar ~
747 [to] Check log content information.
748 It will check all records from index 1 by default.
751 llog_cancel\SpecialChar ~
752 <catalog\SpecialChar ~
753 id|catalog\SpecialChar ~
757 <index> Cancel one record in log.
760 llog_remove\SpecialChar ~
761 <catalog\SpecialChar ~
762 id|catalog\SpecialChar ~
765 id> Remove one log from catalog, erase
774 debug_daemon\SpecialChar ~
777 <#MB>|stop|pause|continue] Debug daemon control and
781 debug_kernel\SpecialChar ~
783 [raw] Get debug buffer and dump to a
790 dk The same as debug_kernel.
793 debug_file\SpecialChar ~
794 <input>\SpecialChar ~
795 [output]\SpecialChar ~
796 [raw] Read debug buffer from input and dump to
804 clear Clear kernel debug buffer.
808 <text> Insert marker text in kernel debug buffer.
812 <subsystem\SpecialChar ~
813 id/debug\SpecialChar ~
814 mask> Filter message type from the kernel debug
819 <subsystem\SpecialChar ~
820 id/debug\SpecialChar ~
821 mask> Show specific type of messages.
824 debug_list\SpecialChar ~
825 <subs/types> List all the subsystem and debug types.
828 modules\SpecialChar ~
829 <path> Provide gdb-friendly module information.
832 panic Force the kernel to panic.
836 start/stop\SpecialChar ~
837 [file] Light-weight tracing.
844 flags>] Memory pressure testing.
852 help Show a complete list of commands;
856 can be used to get help on specific command.
859 exit Close the lctl session.
862 quit Close the lctl session.
878 lctl > attach obdfilter OBDDEV OBDUUID
890 lctl > name2dev OSCDEV
958 lctl > setup /dev/loop0 extN