Guest User

Untitled

a guest
Oct 22nd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. **ZFS**
  2. ```
  3. zpool status -v #shows zpool status infos
  4.  
  5. zpool iostat 1 #shows IOps and R/W bandwidth every second
  6.  
  7. zfs list -t snapshot #lists all the snapshots, add | grep "" to filter
  8.  
  9. arc_summary.py #shows ARC stats
  10.  
  11. arcstat.py #shows ARC stats
  12.  
  13. zdb -C your_pool_name | grep ashift #shows the ashift value
  14. ```
  15.  
  16.  
  17.  
  18.  
  19. **SMART**
  20. ```
  21. smartctl -h #shows smart control help, lots of commands examples
  22.  
  23. smartctl -a /dev/daX #shows all smart attributes
  24.  
  25. smartctl -A /dev/daX #same as -a but without vendor infos, last test infos, ...
  26.  
  27. smartctl -l selftest /dev/daX #shows result of last smart test
  28.  
  29. smartctl -l scttemp /dev/daX #shows the temperatures history
  30.  
  31. smartctl -t long /dev/daX #executes a long test (replace "long" by "short" for a short test)
  32. ```
  33.  
  34.  
  35.  
  36. **HDD**
  37. ```
  38. glabel status #shows gptids and devices names
  39.  
  40. gstat -f daX -I 1000ms #shows IOps and R/W bandwidth every second
  41.  
  42. iostat daX #shows IOps and R/W bandwidth
  43. ```
  44.  
  45.  
  46.  
  47. **HBA**
  48. ```
  49. dmesg | grep mps #used to check FW and driver versions on HBA cards using the mps driver
  50. ```
  51.  
  52.  
  53.  
  54. **UPS**
  55. ```
  56. upsc ups #shows all ups attributes (change "ups" with your ups name)
  57. ```
  58.  
  59.  
  60.  
  61. **Misc**
  62. ```
  63. kldload ipmi.ko #loads ipmitool
  64. ipmitool sensor #shows all ipmi sensors values
  65.  
  66. systat -vm #shows system infos (cpu load, ram usage, drives I/O, ...)
  67.  
  68. dmidecode | more #shows all hardware bios infos
  69.  
  70. cat /var/log/messages | more #shows the log (same as in the GUI footer)
  71.  
  72. freenas-debug -h more /var/tmp/fndebug #shows all debug infos
  73.  
  74. camcontrol devlist #shows all devices
  75.  
  76. usbconfig #shows all usb devices
  77. ```
  78.  
  79.  
  80.  
  81. **Burn-in/Benchmark**
  82. ```
  83. dd if=/dev/zero of=/mnt/tank/tmp.zero bs=2048k count=50k #disable shares and compression for the test!!!
  84. dd if=/mnt/tank/tmp.zero of=/dev/null bs=2048k count=50k #disable shares and compression for the test!!! don't forget to delete tmp.zero after
  85.  
  86. diskinfo -t daX #test seek and transfer times
  87.  
  88. for i in 1 2 3 4; do while : ; do : ; done & done #cpu burn test for 4 threads
  89. ```
Add Comment
Please, Sign In to add comment