Smartctl on Linux

SMART (Self-Monitoring, Analysis, and Reporting Technology) allows you to see the status or overall health of a hard drive. This information is instumental in providing warning signs of problems with a hard drive. All Linux distributions provide the smartmontools package, which contain the smartctl program used to display SMART information from attached drives. This package…

PHP Sessions causing Error

Currently your messages log is filling up with errors and the system is unstable. Check the message log: $ server# tail -f /var/log/messages Jul 28 08:57:30 mail kernel: EXT4-fs warning (device sda3): ext4_dx_add_entry: Directory index full! Check the sessions directory $ server# php -i | grep session.save_path session.save_path => /var/lib/php/session => /var/lib/php/session $ server# du…

Hard Drive Tools

With respect to hard drives, the acronym “SMART” stands for Self-Monitoring, Analysis and Reporting Technology. This was built into many ATA-3 and later ATA, IDE and SCSI-3 hard drives. Basically anything after about 2005 should have it. Ubuntu/Debian: sudo apt-get install smartmontools CentOS/Fedora/RH: sudo yum install smartmontools Gentoo: sudo emerge sys-apps/smartmontools Wiki: http://sourceforge.net/apps/trac/smartmontools/wiki smartctl The…