X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=SystemConfigurationUtilities.xml;h=44a642614e11937ff89071a6a35678a0cb8bcaa7;hb=fcafa5bebef80213b4a1822edd83edc26894eccb;hp=bd11b10eacca90bc17e1fa1174d893773c21c03b;hpb=ebee985b34dcbef204bc7fd609da9a525467ce67;p=doc%2Fmanual.git diff --git a/SystemConfigurationUtilities.xml b/SystemConfigurationUtilities.xml index bd11b10..44a6426 100644 --- a/SystemConfigurationUtilities.xml +++ b/SystemConfigurationUtilities.xml @@ -65,7 +65,7 @@ <indexterm><primary>e2scan</primary></indexterm> e2scan The e2scan utility is an ext2 file system-modified inode scan program. The e2scan program uses libext2fs to find inodes with ctime or mtime newer than a given time and prints out their pathname. Use e2scan to efficiently generate lists of files that have been modified. The e2scan tool is included in the e2fsprogs package, located at: - http://downloads.hpdd.intel.com/public/e2fsprogs/latest/ + http://downloads.whamcloud.com/public/e2fsprogs/latest/
Synopsis e2scan [options] [-f file] block_device @@ -258,10 +258,10 @@ $ lctl conf_param testfs.llite.max_read_ahead_mb=16 - network up|down|tcp|elan|myrinet + network up|down|tcp|elan - Starts or stops LNET, or selects a network type for other lctl LNET commands. + Starts or stops LNet, or selects a network type for other lctl LNet commands. @@ -269,7 +269,7 @@ $ lctl conf_param testfs.llite.max_read_ahead_mb=16 list_nids - Prints all NIDs on the local node. LNET must be running. + Prints all NIDs on the local node. LNet must be running. @@ -285,7 +285,7 @@ $ lctl conf_param testfs.llite.max_read_ahead_mb=16 ping nid - Checks LNET connectivity via an LNET ping. This uses the fabric appropriate to the specified NID. + Checks LNet connectivity via an LNet ping. This uses the fabric appropriate to the specified NID. @@ -398,7 +398,7 @@ $ lctl conf_param testfs.llite.max_read_ahead_mb=16 list_param [-F|-R] parameter [parameter ...] - Lists the Lustre or LNET parameter name. + Lists the Lustre or LNet parameter name.   @@ -429,7 +429,7 @@ $ lctl conf_param testfs.llite.max_read_ahead_mb=16 get_param [-n|-N|-F] parameter [parameter ...] - Gets the value of a Lustre or LNET parameter from the specified path. + Gets the value of a Lustre or LNet parameter from the specified path. @@ -470,7 +470,7 @@ $ lctl conf_param testfs.llite.max_read_ahead_mb=16 set_param [-n] parameter=value - Sets the value of a Lustre or LNET parameter from the specified path. + Sets the value of a Lustre or LNet parameter from the specified path. @@ -601,7 +601,14 @@ $ lctl conf_param testfs.llite.max_read_ahead_mb=16 changelog_register - Registers a new changelog user for a particular device. Changelog entries are not purged beyond a registered user's set point (see lfs changelog_clear). + Registers a new changelog user for a particular device. + Changelog entries are saved persistently on the MDT with each + filesystem operation, and are only purged beyond all registered + user's minimum set point (see + lfs changelog_clear). This may cause the + Changelog to consume a large amount of space, eventually + filling the MDT, if a changelog user is registered but never + consumes those records. @@ -609,7 +616,10 @@ $ lctl conf_param testfs.llite.max_read_ahead_mb=16 changelog_deregister id - Unregisters an existing changelog user. If the user's "clear" record number is the minimum for the device, changelog records are purged until the next minimum. + Unregisters an existing changelog user. If the + user's "clear" record number is the minimum for + the device, changelog records are purged until the next minimum. + @@ -807,12 +817,25 @@ root@oss1# ll_decode_filter_fid #12345[4,5,8]
-
+
<indexterm><primary>ll_recover_lost_found_objs</primary></indexterm> ll_recover_lost_found_objs - The ll_recover_lost_found_objs utility helps recover Lustre OST objects (file data) from a lost and found directory and return them to their correct locations. - - Running the ll_recover_lost_found_objs tool is not strictly necessary to bring an OST back online, it just avoids losing access to objects that were moved to the lost and found directory due to directory corruption. + The ll_recover_lost_found_objs utility was + used to help recover Lustre OST objects (file data) from the + lost+found directory of an OST and return them to + their correct locations based on information stored in the + trusted.fid extended attribute stored on every + OST object containing data. + This utility is not needed with Lustre 2.6 + and later, and is removed in Lustre 2.8 since LFSCK + online scanning will automatically move objects from + lost+found to the proper place in the OST. + + + The ll_recover_lost_found_objs tool is not + strictly necessary to bring an OST back online, it just avoids losing + access to objects that were moved to the lost+found directory due to + directory corruption on the OST.
Synopsis @@ -822,9 +845,6 @@ ll_recover_lost_found_objs Description The first time Lustre modifies an object, it saves the MDS inode number and the objid as an extended attribute on the object, so in case of directory corruption of the OST, it is possible to recover the objects. Running e2fsck fixes the corrupted OST directory, but it puts all of the objects into a lost and found directory, where they are inaccessible to Lustre. Use the ll_recover_lost_found_objs utility to recover all (or at least most) objects from a lost and found directory and return them to the O/0/d* directories. To use ll_recover_lost_found_objs, mount the file system locally (using the -t ldiskfs, or -t zfs command), run the utility and then unmount it again. The OST must not be mounted by Lustre when ll_recover_lost_found_objs is run. - This utility is not needed for 2.6 and later, - since the LFSCK online scanning will move objects - from lost+found to the proper place in the OST.
Options @@ -1020,7 +1040,7 @@ llstat Files The llstat files are located at: /proc/fs/lustre/mdt/MDS/*/stats -/proc/fs/lustre/mds/*/exports/*/stats +/proc/fs/lustre/mdt/*/exports/*/stats /proc/fs/lustre/mdc/*/stats /proc/fs/lustre/ldlm/services/*/stats /proc/fs/lustre/ldlm/namespaces/*/pool/stats @@ -1079,7 +1099,7 @@ llverdev - >-f|--force> + -f|--force Forces the test to run without a confirmation that the device will be overwritten and all data will be permanently destroyed. @@ -1095,7 +1115,7 @@ llverdev - -o >offset + -o offset Offset (in kilobytes) of the start of the test (default value is 0). @@ -1246,34 +1266,34 @@ lshowmount
<indexterm><primary>lst</primary></indexterm> lst - The lst utility starts LNET self-test. + The lst utility starts LNet self-test.
Synopsis lst
Description - LNET self-test helps site administrators confirm that Lustre Networking (LNET) has been properly installed and configured. The self-test also confirms that LNET and the network software and hardware underlying it are performing as expected. - Each LNET self-test runs in the context of a session. A node can be associated with only one session at a time, to ensure that the session has exclusive use of the nodes on which it is running. A session is create, controlled and monitored from a single node; this is referred to as the self-test console. + LNet self-test helps site administrators confirm that Lustre Networking (LNet) has been properly installed and configured. The self-test also confirms that LNet and the network software and hardware underlying it are performing as expected. + Each LNet self-test runs in the context of a session. A node can be associated with only one session at a time, to ensure that the session has exclusive use of the nodes on which it is running. A session is create, controlled and monitored from a single node; this is referred to as the self-test console. Any node may act as the self-test console. Nodes are named and allocated to a self-test session in groups. This allows all nodes in a group to be referenced by a single name. Test configurations are built by describing and running test batches. A test batch is a named collection of tests, with each test composed of a number of individual point-to-point tests running in parallel. These individual point-to-point tests are instantiated according to the test type, source group, target group and distribution specified when the test is added to the test batch.
Modules - To run LNET self-test, load these modules: libcfs, lnet, lnet_selftest and any one of the klnds (ksocklnd, ko2iblnd...). To load all necessary modules, run modprobe lnet_selftest, which recursively loads the modules on which lnet_selftest depends. - There are two types of nodes for LNET self-test: the console node and test nodes. Both node types require all previously-specified modules to be loaded. (The userspace test node does not require these modules). + To run LNet self-test, load these modules: libcfs, lnet, lnet_selftest and any one of the klnds (ksocklnd, ko2iblnd...). To load all necessary modules, run modprobe lnet_selftest, which recursively loads the modules on which lnet_selftest depends. + There are two types of nodes for LNet self-test: the console node and test nodes. Both node types require all previously-specified modules to be loaded. (The userspace test node does not require these modules). Test nodes can be in either kernel or in userspace. A console user can invite a kernel test node to join the test session by running lst add_group NID, but the user cannot actively add a userspace test node to the test session. However, the console user can passively accept a test node to the test session while the test node runs lst client to connect to the console.
Utilities - LNET self-test includes two user utilities, lst and lstclient. + LNet self-test includes two user utilities, lst and lstclient. lst is the user interface for the self-test console (run on the console node). It provides a list of commands to control the entire test system, such as create session, create test groups, etc. - lstclient is the userspace self-test program which is linked with userspace LNDs and LNET. A user can invoke lstclient to join a self-test session: + lstclient is the userspace self-test program which is linked with userspace LNDs and LNet. A user can invoke lstclient to join a self-test session: lstclient -sesid CONSOLE_NID group NAME
Example Script - This is a sample LNET self-test script which simulates the traffic pattern of a set of Lustre servers on a TCP network, accessed by Lustre clients on an IB network (connected via LNET routers), with half the clients reading and half the clients writing. + This is a sample LNet self-test script which simulates the traffic pattern of a set of Lustre servers on a TCP network, accessed by Lustre clients on an IB network (connected via LNet routers), with half the clients reading and half the clients writing. #!/bin/bash export LST_SESSION=$$ lst new_session read/write @@ -1296,7 +1316,7 @@ lst end_session
<indexterm><primary>lustre_rmmod.sh</primary></indexterm> lustre_rmmod.sh - The lustre_rmmod.sh utility removes all Lustre and LNET modules (assuming no Lustre services are running). It is located in /usr/bin. + The lustre_rmmod.sh utility removes all Lustre and LNet modules (assuming no Lustre services are running). It is located in /usr/bin. The lustre_rmmod.sh utility does not work if Lustre modules are being used or if you have manually run the lctl network up command. @@ -1799,7 +1819,7 @@ mount.lustre The mount.lustre utility starts a Lustre client or target service.
Synopsis - mount -t lustre [-o options] directory + mount -t lustre [-o options] device mountpoint
@@ -1823,16 +1843,20 @@ mount.lustre - mgs_nid:/fsname -   + mgsname:/fsname[/subdir] - Mounts the Lustre file system named fsname on the client - by contacting the Management Service at mgsspec on the pathname - given by directory. The format for mgsspec - is defined below. A mounted client file system appears in fstab(5) and is usable, - like any local file system, and provides a full POSIX standard-compliant - interface. + Mounts the Lustre file system named + fsname (optionally starting at + subdirectory subdir within the + filesystem, if specified) on the client at the directory + mountpoint, by contacting the Lustre + Management Service at mgsname. The + format for mgsname is defined below. A + client file system can be listed in fstab(5) + for automatic mount at boot time, is usable like any local file + system, and provides a full POSIX standard-compliant interface. + @@ -1840,7 +1864,23 @@ mount.lustre block_device - Starts the target service defined by the mkfs.lustre command on the physical disk block_device. A mounted target service file system is only useful for df(1) operations and appears in fstab(5) to show the device is in use. + Starts the target service defined by the + mkfs.lustre(8) command on the physical disk + block_device. The + block_device may be specified using + -L label to find + the first block device with that label (e.g. + testfs-MDT0000), or by UUID using the + -U uuid option. + Care should be taken if there is a device-level backup of the + target filesystem on the same node, which would have a + duplicate label and UUID if it has not been changed with + tune2fs(8) or similar. The mounted target + service filesystem mounted at + mountpoint is only useful for + df(1) operations and appears in + /proc/mounts to show the device is in use. + @@ -1866,25 +1906,79 @@ mount.lustre - mgsspec:=mgsnode[:mgsnode] -   + mgsname=mgsnode[:mgsnode] + + + mgsname is a colon-separated + list of mgsnode names where the MGS + service may run. Multiple mgsnode + values can be specified if the MGS service is configured for + HA failover and may be running on any one of the nodes. + + + + + + mgsnode=mgsnid[,mgsnid] - The MGS specification may be a colon-separated list of nodes. + Each mgsnode may specify a + comma-separated list of NIDs, if there are different LNet + interfaces for that mgsnode. + - mgsnode:=mgsnid[,mgsnid] + mgssec=flavor - Each node may be specified by a comma-separated list of NIDs. + Specifies the encryption flavor for the initial network + RPC connection to the MGS. Non-security flavors are: + null, plain, and + gssnull, which respectively disable, or + have no encryption or integrity features for testing purposes. + Kerberos flavors are: krb5n, + krb5a, krb5i, and + krb5p. Shared-secret key flavors are: + skn, ska, + ski, and skpi, see the + for more details. The security + flavor for client-to-server connections is specified in the + filesystem configuration that the client fetches from the MGS. + + + + + + skpath=file|directory + + + + Path to a file or directory with the keyfile(s) to load for + this mount command. Keys are inserted into the + KEY_SPEC_SESSION_KEYRING keyring in the + kernel with a description containing + lustre: and a suffix which depends on + whether the context of the mount command is for an MGS, + MDT/OST, or client. + + + + + + exclude=ostlist + + + Starts a client or MDT with a colon-separated list of + known inactive OSTs that it will not try to connect to. - In addition to the standard mount options, Lustre understands the following client-specific options: + In addition to the standard mount(8) options, Lustre understands + the following client-specific options: @@ -1902,10 +1996,31 @@ mount.lustre + always_ping + + + The client will periodically ping the server when it is + idle, even if the server ptlrpc module + is configured with the suppress_pings + option. This allows clients to reliably use the filesystem + even if they are not part of an external client health + monitoring mechanism. + + + + + flock - Enables full flock support, coherent across all client nodes. + Enables advisory file locking support between + participating applications using the flock(2) + system call. This causes file locking to be coherent across all + client nodes also using this mount option. This is useful if + applications need coherent userspace file locking across + multiple client nodes, but also imposes communications overhead + in order to maintain locking consistency between client nodes. + @@ -1913,7 +2028,13 @@ mount.lustre localflock - Enables local flock support, using only client-local flock (faster, for applications that require flock, but do not run on multiple nodes). + Enables client-local flock(2) support, + using only client-local advisory file locking. This is faster + than using the global flock option, and can + be used for applications that depend on functioning + flock(2) but run only on a single node. + It has minimal overhead using only the Linux kernel's locks. + @@ -1921,39 +2042,61 @@ mount.lustre noflock - Disables flock support entirely. Applications calling flock get an error. It is up to the administrator to choose either localflock (fastest, low impact, not coherent between nodes) or flock (slower, performance impact for use, coherent between nodes). + Disables flock(2) support entirely, + and is the default option. Applications calling + flock(2) get an + ENOSYS error. It is up to the administrator + to choose either the localflock or + flock mount option based on their + requirements. It is possible to mount clients with different + options, and only those mounted with flock + will be coherent amongst each other. + - user_xattr + lazystatfs - Enables get/set of extended attributes by regular users. See the attr(5) manual page. + Allows statfs(2) (as used by + df(1) and lfs-df(1)) to + return even if some OST or MDT is unresponsive or has been + temporarily or permanently disabled in the configuration. + This avoids blocking until all of the targets are available. + This is the default behavior since Lustre 2.9.0. + - nouser_xattr + nolazystatfs - Disables use of extended attributes by regular users. Root and system processes can still use extended attributes. + Requires that statfs(2) block until all + OSTs and MDTs are available and have returned space usage. + - acl + user_xattr - Enables POSIX Access Control List support. See the acl(5) manual page. + Enables get/set of extended attributes by regular users + in the user.* namespace. See the + attr(5) manual page for more details. + - noacl + nouser_xattr - Disables Access Control List support. + Disables use of extended attributes in the + user.* namespace by regular users. Root + and system processes can still use extended attributes. @@ -1961,7 +2104,7 @@ mount.lustre verbose - Enable mount/umount console messages. + Enable extra mount/umount console messages. @@ -1977,7 +2120,16 @@ mount.lustre user_fid2path - Enable FID to path translation by regular users. Note: This option allows a potential security hole because it allows regular users direct access to a file by its FID, bypassing POSIX path-based permission checks which could otherwise prevent the user from accessing a file in a directory that they do not have access to. Regular permission checks are still performed on the file itself, so the user cannot access a file to which they have no access rights. + Enable FID-to-path translation by regular users. + + This option allows a potential security hole because + it allows regular users direct access to a file by its Lustre + File ID. This bypasses POSIX path-based permission checks, + and could allow the user to access a file in a directory that + they do not have access to. Regular POSIX file mode and ACL + permission checks are still performed on the file itself, so + users cannot access a file to which they have no permission. + @@ -1985,13 +2137,19 @@ mount.lustre nouser_fid2path - Disable FID to path translation by regular users. Root and processes with CAP_DAC_READ_SEARCH can still perform FID to path translation. + Disable FID to path translation by + regular users. Root and processes with + CAP_DAC_READ_SEARCH can still perform FID + to path translation. + - In addition to the standard mount options and backing disk type (e.g. ext3) options, Lustre understands the following server-specific options: + In addition to the standard mount options and backing disk type + (e.g. ldiskfs) options, Lustre understands the following server-specific + mount options: @@ -2025,18 +2183,27 @@ mount.lustre - exclude=ostlist + abort_recov - Starts a client or MDT with a colon-separated list of known inactive OSTs. + Aborts client recovery on that server and starts the target service immediately. - abort_recov + max_sectors_kb=KB - Aborts client recovery and starts the target service immediately. + Sets the block device parameter + max_sectors_kb limit for the MDT or OST + target being mounted to specified maximum number of kilobytes. + When max_sectors_kb isn't specified as a + mount option, it will automatically be set to the + max_hw_sectors_kb (up to a maximum of 16MiB) + for that block device. This default behavior is suited for + most users. When max_sectors_kb=0 is used, + the current value for this tunable will be kept. + @@ -2052,8 +2219,19 @@ mount.lustre recovery_time_soft=timeout - Allows timeout seconds for clients to reconnect for recovery after a server crash. This timeout is incrementally extended if it is about to expire and the server is still handling new connections from recoverable clients. - The default soft recovery timeout is 3 times the value of the Lustre timeout parameter (see ). The default Lustre timeout is 100 seconds, which would make the soft recovery timeout default to 300 seconds (5 minutes). The soft recovery timeout is set at mount time and will not change if the Lustre timeout is changed after mount time. + Allows timeout seconds for clients to + reconnect for recovery after a server crash. This timeout is + incrementally extended if it is about to expire and the server + is still handling new connections from recoverable clients. + + The default soft recovery timeout is 3 times the value + of the Lustre timeout parameter (see + ). The default Lustre + timeout is 100 seconds, which would make the soft recovery + timeout default to 300 seconds (5 minutes). The soft recovery + timeout is set at mount time and will not change if the Lustre + timeout is changed after mount time. + @@ -2061,8 +2239,18 @@ mount.lustre recovery_time_hard=timeout - The server is allowed to incrementally extend its timeout up to a hard maximum of timeout seconds. - The default hard recovery timeout is 9 times the value of the Lustre timeout parameter (see ). The default Lustre timeout is 100 seconds, which would make the hard recovery timeout default to 900 seconds (15 minutes). The hard recovery timeout is set at mount time and will not change if the Lustre timeout is changed after mount time. + The server is allowed to incrementally extend its timeout + up to a hard maximum of timeout + seconds. + + The default hard recovery timeout is 9 times the value + of the Lustre timeout parameter (see + ). The default Lustre + timeout is 100 seconds, which would make the hard recovery + timeout default to 900 seconds (15 minutes). The hard recovery + timeout is set at mount time and will not change if the Lustre + timeout is changed after mount time. + @@ -2070,7 +2258,15 @@ mount.lustre noscrub - Typically the MDT will detect restoration from a file-level backup during mount. This mount option prevents the OI Scrub from starting automatically when the MDT is mounted. Manually starting LFSCK after mounting provides finer control over the starting conditions. This mount option also prevents OI scrub from occurring automatically when OI inconsistency is detected (see ) + Typically the MDT will detect restoration from a + file-level backup during mount. This mount option prevents + the OI Scrub from starting automatically when the MDT is + mounted. Manually starting LFSCK after mounting provides finer + control over the starting conditions. This mount option also + prevents OI scrub from occurring automatically when OI + inconsistency is detected (see + ). + @@ -2079,8 +2275,15 @@ mount.lustre
Examples - Starts a client for the Lustre file system testfs at mount point /mnt/myfilesystem. The Management Service is running on a node reachable from this client via the cfs21@tcp0 NID. - mount -t lustre cfs21@tcp0:/testfs /mnt/myfilesystem + Starts a client for the Lustre file system + chipfs at mount point + /mnt/chip. The Management Service is running on + a node reachable from this client via the cfs21@tcp0 NID. + mount -t lustre cfs21@tcp0:/chipfs /mnt/chip + Similar to the above example, but mounting a + subdirectory under chipfs as a fileset. + mount -t lustre cfs21@tcp0:/chipfs/v1_0 /mnt/chipv1_0 + Starts the Lustre metadata target service from /dev/sda1 on mount point /mnt/test/mdt. mount -t lustre /dev/sda1 /mnt/test/mdt Starts the testfs-MDT0000 service (using the disk label), but aborts the recovery process. @@ -2176,7 +2379,7 @@ routerstat
Description - The routerstat utility displays LNET router statistics. If no interval is specified, then statistics are sampled and printed only one time. Otherwise, statistics are sampled and printed at the specified interval (in seconds). + The routerstat utility displays LNet router statistics. If no interval is specified, then statistics are sampled and printed only one time. Otherwise, statistics are sampled and printed at the specified interval (in seconds).
Output @@ -2201,7 +2404,7 @@ routerstat M - Number of messages currently being processed by LNET (The maximum number of messages ever processed by LNET concurrently) + Number of messages currently being processed by LNet (The maximum number of messages ever processed by LNet concurrently) @@ -2209,7 +2412,7 @@ routerstat E - Number of LNET errors + Number of LNet errors @@ -2268,7 +2471,7 @@ routerstat M - Number of messages currently being processed by LNET (The maximum number of messages ever processed by LNET concurrently) + Number of messages currently being processed by LNet (The maximum number of messages ever processed by LNet concurrently) @@ -2276,7 +2479,7 @@ routerstat E - Number of LNET errors per second + Number of LNet errors per second @@ -2594,7 +2797,9 @@ Application Profiling Utilities Per-client statistics tracked on the servers - Each MDT and OST now tracks LDLM and operations statistics for every connected client, for comparisons and simpler collection of distributed job statistics. + Each MDS and OSS now tracks LDLM and operations statistics for + every connected client, for comparisons and simpler collection of + distributed job statistics. /proc/fs/lustre/mds|obdfilter/*/exports/ @@ -2602,8 +2807,9 @@ Application Profiling Utilities Improved MDT statistics - More detailed MDT operations statistics are collected for better profiling. - /proc/fs/lustre/mds/*/stats + More detailed MDT operations statistics are collected for better + profiling. + /proc/fs/lustre/mdt/*/md_stats
@@ -2612,118 +2818,9 @@ Application Profiling Utilities Testing / Debugging Utilities Lustre offers the following test and debugging utilities.
- <indexterm><primary>loadgen</primary></indexterm> -loadgen - The Load Generator (loadgen) is a test program designed to simulate large numbers of Lustre clients connecting and writing to an OST. The loadgen utility is located at lustre/utils/loadgen (in a build directory) or at /usr/sbin/loadgen (from an RPM). - Loadgen offers the ability to run this test: - - - Start an arbitrary number of (echo) clients. - - - Start and connect to an echo server, instead of a real OST. - - - Create/bulk_write/delete objects on any number of echo clients simultaneously. - - - Currently, the maximum number of clients is limited by MAX_OBD_DEVICES and the amount of memory available. -
-
- Usage - The loadgen utility can be run locally on the OST server machine or remotely from any LNET host. The device command can take an optional NID as a parameter; if unspecified, the first local NID found is used. - The obdecho module must be loaded by hand before running loadgen. - # cd lustre/utils/ -# insmod ../obdecho/obdecho.ko -# ./loadgen -loadgen> h -This is a test program used to simulate large numbers of clients. The echo \ -obds are used, so the obdecho module must be loaded. - -Typical usage would be: -loadgen> dev lustre-OST0000 set the target device -loadgen> start 20 start 20 echo clients -loadgen> wr 10 5 have 10 clients do simultaneous brw_write \ -tests 5 times each - -Available commands are: - device - dl - echosrv - start - verbose - wait - write - help - exit - quit - -For more help type: help command-name -loadgen> -loadgen> device lustre-OST0000 192.168.0.21@tcp -Added uuid OSS_UUID: 192.168.0.21@tcp -Target OST name is 'lustre-OST0000' -loadgen> -loadgen> st 4 -start 0 to 4 -./loadgen: running thread #1 -./loadgen: running thread #2 -./loadgen: running thread #3 -./loadgen: running thread #4 -loadgen> wr 4 5 -Estimate 76 clients before we run out of grant space (155872K / 2097152) -1: i0 -2: i0 -4: i0 -3: i0 -1: done (0) -2: done (0) -4: done (0) -3: done (0) -wrote 25MB in 1.419s (17.623 MB/s) -loadgen> - - The loadgen utility prints periodic status messages; message output can be controlled with the verbose command. - To insure that a file can be written to (a requirement of write cache), OSTs reserve ("grants"), chunks of space for each newly-created file. A grant may cause an OST to report that it is out of space, even though there is plenty of space on the disk, because the space is "reserved" by other files. The loadgen utility estimates the number of simultaneous open files as the disk size divided by the grant size and reports that number when the write tests are first started. - Echo Server - The loadgen utility can start an echo server. On another node, loadgen can specify the echo server as the device, thus creating a network-only test environment. - loadgen> echosrv -loadgen> dl - 0 UP obdecho echosrv echosrv 3 - 1 UP ost OSS OSS 3 - - On another node: - loadgen> device echosrv cfs21@tcp -Added uuid OSS_UUID: 192.168.0.21@tcp -Target OST name is 'echosrv' -loadgen> st 1 -start 0 to 1 -./loadgen: running thread #1 -loadgen> wr 1 -start a test_brw write test on X clients for Y iterations -usage: write <num_clients> <num_iter> [<delay>] -loadgen> wr 1 1 -loadgen> -1: i0 -1: done (0) -wrote 1MB in 0.029s (34.023 MB/s) - - Scripting - The threads all perform their actions in non-blocking mode; use the wait command to block for the idle state. For example: - #!/bin/bash -./loadgen << EOF -device lustre-OST0000 -st 1 -wr 1 10 -wait -quit -EOF - -
-
<indexterm><primary>lr_reader</primary></indexterm> lr_reader - The lr_reader utility translates a last received (last_rcvd) file into human-readable form. + The lr_reader utility translates the content of the last_rcvd and reply_data files into human-readable form. The following utilities are part of the Lustre I/O kit. For more information, see .
@@ -2760,45 +2857,77 @@ lr_reader The stats-collect utility contains scripts used to collect application profiling information from Lustre clients and servers.
-
- <indexterm><primary>flock</primary></indexterm>Flock Feature - Lustre now includes the flock feature, which provides file locking support. Flock describes classes of file locks known as 'flocks'. Flock can apply or remove a lock on an open file as specified by the user. However, a single file may not, simultaneously, have both shared and exclusive locks. - By default, the flock utility is disabled on Lustre. Two modes are available. - - - - - - - - local mode - - - In this mode, locks are coherent on one node (a single-node flock), but not across all clients. To enable it, use -o localflock. This is a client-mount option. - - This mode does not impact performance and is appropriate for single-node databases. - - - - - - consistent mode - - - In this mode, locks are coherent across all clients. - To enable it, use the -o flock. This is a client-mount option. - This mode affects the performance of the file being flocked and may affect stability, depending on the Lustre version used. Consider using a newer Lustre version which is more stable. If the consistent mode is enabled and no applications are using flock, then it has no effect. - - - - - - A call to use flock may be blocked if another process is holding an incompatible lock. Locks created using flock are applicable for an open file table entry. Therefore, a single process may hold only one type of lock (shared or exclusive) on a single file. Subsequent flock calls on a file that is already locked converts the existing lock to the new lock mode. +
+ <indexterm><primary>fileset</primary></indexterm>Fileset Feature + With the fileset feature, Lustre now provides subdirectory mount + support. Subdirectory mounts, also referred to as filesets, allow a + client to mount a child directory of a parent filesystem, thereby limiting + the filesystem namespace visibility on a specific client. A common use + case is for a client to use a subdirectory mount when there is a desire to + limit the visibility of the entire filesystem namesapce to aid in the + prevention of accidental file deletions outside of the subdirectory + mount. + It is important to note that invocation of the subdirectory mount is + voluntary by the client and not does prevent access to files that are + visible in multiple subdirectory mounts via hard links. Furthermore, it + does not prevent the client from subsequently mounting the whole file + system without a subdirectory being specified. +
+ + <indexterm> + <primary>Lustre</primary> + <secondary>fileset</secondary> + </indexterm>Lustre fileset + + + + + + Lustre file system fileset feature + + +
- Example - $ mount -t lustre -o flock mds@tcp0:/lustre /mnt/client - You can check it in /etc/mtab. It should look like, - mds@tcp0:/lustre /mnt/client lustre rw,flock 0 0 + Examples + The following example will mount the + chipfs filesystem on client1 and create a + subdirectory v1_1 within that filesystem. Client2 + will then mount only the v1_1 subdirectory as a + fileset, thereby limiting access to anything else in the + chipfs filesystem from client2. + client1# mount -t lustre mgs@tcp:/chipfs /mnt/chip +client1# mkdir /mnt/chip/v1_1 + client2# mount -t lustre mgs@tcp:/chipfs/v1_1 /mnt/chipv1_1 + You can check the created mounts in /etc/mtab. It should look like + the following: + client1 +mds@tcp0:/chipfs/ /mnt/chip lustre rw 0 0 + +client2 +mds@tcp0:/chipfs/v1_1 /mnt/chipv1_1 lustre rw 0 0 + Create a directory under the /mnt/chip mount, and get its FID + client1# mkdir /mnt/chip/v1_2 +client1# lfs path2fid /mnt/chip/v1_2 +[0x200000400:0x2:0x0] + + If you try resolve the FID of the /mnt/chip/v1_2 + path (as created in the example above) on client2, an error will be returned + as the FID can not be resolved on client2 since it is not part of the + mounted fileset on that client. Recall that the fileset on client2 mounted + the v1_1 subdirectory beneath the top level + chipfs filesystem. + + client2# lfs fid2path /mnt/chip/v1_2 [0x200000400:0x2:0x0] +fid2path: error on FID [0x200000400:0x2:0x0]: No such file or directory + Subdirectory mounts do not have the .lustre + pseudo directory, which prevents clients from opening or accessing files + only by FID. + client1# ls /mnt/chipfs/.lustre + fid lost+found + client2# ls /mnt/chipv1_1/.lustre + ls: cannot access /mnt/chipv1_1/.lustre: No such file or directory +