Details
-
Bug
-
Resolution: Fixed
-
Major
-
Lustre 2.5.0
-
None
-
RHEL 6.4/ distro IB
Kernel 2.6.32-358.23.2.el6.atlas.x86_64
lustre-2.5.0 head
-
3
-
13229
Description
We've killed our MDT more than once because we were caught off guard by this behavior of the mount command. The array with the MDT devices doesn't support larger than 2kB transfers. The mpt2sas driver sets max_hw_sectors_kb to 16383, and then this code sets max_sectors_kb to 16383 as well. We run into problems when we scan the inodes (reading directly from block device) as part of our purge process.
We would prefer that the command just emit a warning instead of making the change.
snprintf(real_path, sizeof(real_path), "%s/%s", path, MAX_HW_SECTORS_KB_PATH); rc = read_file(real_path, buf, sizeof(buf)); if (rc) { if (verbose) fprintf(stderr, "warning: opening %s: %s\n", real_path, strerror(errno)); /* No MAX_HW_SECTORS_KB_PATH isn't necessary an * error for some device. */ rc = 0; } if (strlen(buf) - 1 > 0) { snprintf(real_path, sizeof(real_path), "%s/%s", path, MAX_SECTORS_KB_PATH); rc = write_file(real_path, buf); if (rc) { if (verbose) fprintf(stderr, "warning: writing to %s: %s\n", real_path, strerror(errno)); /* No MAX_SECTORS_KB_PATH isn't necessary an * error for some device. */ rc = 0; } }
Attachments
Issue Links
- is related to
-
LU-5888 mount.lustre: set max_sectors_kb to 2147483647
-
- Resolved
-
I needed to fix up the 9865 patch because it was printing messages about setting max_sectors_kb for every mount, along with an annoying linefeed, even if this tunable was not being changed. Note sda is being set repeatedly even though it couldn't possibly need it. In fact, all of these devices have max_sectors_kb=128 already and don't need any tuning:
My patch in
LU-5888http://review.whamcloud.com/12723 fixes this to only print the message for devices that are actually being changed (devices manually set to have max_sectors_kb=64 for testing purposes):If the 12553 patch is landed to b2_5, the 12723 patch should also be backported to b2_5 or these messages will be equally annoying there.