• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to enable Debug Option For CIFS Module in CentOS/RHEL 7 and 8

by admin

Question: How to configure CIFS debug option in Linux servers to provide additional debug information in the client system logs?

1. Take backup of existing debug or to check the default value:

# cp /sys/kernel/debug/dynamic_debug/control /root/backup
# cat /proc/fs/cifs/cifsFYI
# cat /proc/fs/cifs/traceSMB

2. Enable debug chosen options:

# echo 'module cifs +p' > /sys/kernel/debug/dynamic_debug/control
# echo 7 > /proc/fs/cifs/cifsFYI
# echo 1 >/proc/fs/cifs/traceSMB
# dmesg -c (Clear the message log)

3. To disable:

# echo "module cifs -p" >/sys/kernel/debug/dynamic_debug/control
# echo 0 > /proc/fs/cifs/cifsFYI
# echo 0 > /proc/fs/cifs/traceSMB

How to troubleshoot

1. Start the tcpdump capture.

2. Reproduce the issue.

3. Collect the tcpdump to review.

4. Review debug information in /var/log/dmesg or /var/log/messages system logs.

Example for tcpdump capture

# tcpdump -n -vv -s 0 -i {interface} -w /tmp/cifs_not_working.cap host {IP-Of-Windows}'
Note: Depending on the issue we may need to add extra debug options to tcpdump collection or we may need to collect from both ends of the network simultaneously.

Filed Under: CentOS/RHEL, CentOS/RHEL 7, CentOS/RHEL 8, Linux

Some more articles you might also be interested in …

  1. Linux OS Service ‘sysstat’
  2. ldd Command Options in Linux
  3. 18 Practical tcpdump Command Examples – A Network Sniffer Tool Primer
  4. Cannot Increase “nproc” Value More Than 1024 in CentOS/RHEL 6
  5. Linux OS Service ‘microcode_ctl’
  6. Why Does “/var/log/messages” Report Martian Packets
  7. Linux OS Service ‘rpcgssd’
  8. How to remove the multipath device after unmapping the storage LUN from server
  9. ‘ip’ Command cheat sheet (Command Line Reference)
  10. RHEL 7 – RHCSA Notes – Create and manage Access Control Lists (ACLs)

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright