multipathd: failed setting max_sectors_kb on sdc : Invalid argument
Environment
- Red Hat Enterprise Linux
Issue
-
Unable to set
max_sectors_kbin multipath.conf:Nov 26 10:56:16 multipathd: failed setting max_sectors_kb on sdc : Invalid argument Nov 26 10:56:16 multipathd: failed setting max_sectors_kb on sdi : Invalid argument Nov 26 10:56:16 multipathd: failed setting max_sectors_kb on sde : Invalid argument
Resolution
- Set the
max_sectors_kbto a number below bothmax_hw_sectors_kbandmax_dev_sectors.
Root Cause
- The
max_sectors_kbwas set to a value higher thanmax_dev_sectors.
Diagnostic Steps
-
Check the device's
max_hw_sectors_kband ensure thatmax_sectors_kbis lower:[root@host ~]# cat /sys/block/sdc/queue/max_hw_sectors_kb 32767 -
Check
max_dev_sectorsviasg_vpdcommand and ensure thatmax_sectors_kbis lower:
Note If VPD page 0xB0 (SCSI Block Limits) is not supported by the device, then skip this check based upon the Maximum transfer length value.[root@host ~]# sg_vpd -p 0xb0 /dev/sdc Block limits VPD page (SBC): Write same no zero (WSNZ): 1 Maximum compare and write length: 1 blocks Optimal transfer length granularity: 8 blocks Maximum transfer length: 2048 blocks <====== Optimal transfer length: 128 blocks Maximum prefetch length: 0 blocks Maximum unmap LBA count: 0 Maximum unmap block descriptor count: 0 Optimal unmap granularity: 0 Unmap granularity alignment valid: 0 Unmap granularity alignment: 0 Maximum write same length: 0x4000 blocks
-
So, the highest allowed value for
max_sectors_kbhere would be 1024KiB as shown below:2048 blocks (logical sectors) x 512 bytes per disk block = 1048576 bytes / 1024 bytes per KiB = 1024KiB 1024 max_sectors_kb x 1024 bytes per KiB = 1048576 bytes
SBR
Product(s)
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.