SlideServe
Menu
Preferences
© SlideServe · v2026

Backups, Logging, Trobleshooting

mabyn avatar
17 slides · 281 Views · 170 likes · Jul 13, 2014

Backup and logging techniques are essential for managing class assignments effectively. Key dates include homework 7 due on 5/1 and labs 7/8 due on 5/3. Various backup mediums, including hard drives and CDs, will be discussed, alongside logging control through syslogs. Additionally, troubleshooting methods using system monitoring commands will be highlighted. Different software installation methods, such as source downloads and package managers like RPM and DEB for Linux systems, will also be covered. Enhance your skills to ensure a successful finish to the class!

Backups, Logging, Trobleshooting - slide 1
01 / 17Backups, Logging, Trobleshooting
1 / 17

Download Presentation

Backups, Logging, Trobleshooting
An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

More Related Content

Presentation Transcript
  1. Backups, Logging, Troubleshooting

  2. Dates for Last Week of Class • Homework 7 • Due Tuesday 5/1 by midnight • Labs 7 & 8 • 8 is extra credit • Due Thursday 5/3 by midnight • No Late ones accepted • Final – Thursday 5/3 • 6 – 9:30 in classroom • open [book|notes|computer] • will need working VM

  3. Backups • What to backup? • How often? • Where? • Don’t forget to test restores!!!

  4. Backup Medium • 2nd Hard Drive • CDs, DVDs, Flash Drives • Tape • Another server • Online

  5. Backup Utilities • tar • cpio • dump/restore • zip/unzip • dd • really, really expensive commercial ones

  6. Logs • Controlled by 2 daemons • syslog – general logging • klogd – kernel messages

  7. Syslog • Controlled by /etc/syslog.conf: # Log anything except mail of level info or higher. # Don't log private authentication messages! *.info;mail.none;authpriv.none;cron.none /var/log/messages # The authpriv file has restricted access. authpriv.* /var/log/secure # Log all the mail messages in one place. mail.* -/var/log/maillog # Log cron stuff cron.* /var/log/cron

  8. Syslog Format • Basic syntax: codeword.priority location • Example: cron.* /var/log/cron

  9. Syslog Codewords • auth – message from a user authentication program this used to be called security • auth-priv – private authentication program • daemon – any daemon not explicitly listed will generate a message under this category • kern – kernel messages through klogd • syslog – messages about the logging process itself • user – messages from application software started by a user • local0 through local7 – messages generated by Linux where the level is established by the Linux vendor local7 for instance pertains to boot messages • cron, lpr, mail, news – self explanatory

  10. Syslog Priorities • From lowest to highest: • none - no priority • debug - log debugging messages used by programmers or testers of the software • info - log informational messages about what the program is doing • notice - noteworthy events • warning - potential problem events • err – errors • crit - critical error messages that will likely cause the program to terminate • alert - like crit except that the error can impact other programs • emerg - problems serious enough to potentially crash the entire OS

  11. Syslog location • File: /some/path/to/file • Remote: @loghost

  12. Troubleshooting • Log files in /var/ • man pages!!!! • apropos (man –k) – search man pages for matches • System monitoring commands – top, ps, etc

  13. Software Installation

  14. How to install? • Source • Download .tar.gz, extract, make, make install • Packages (2 biggest for Linux)‏ • RPM – Redhat Package Manager • DEB – Debian Packages • Commercial Unix • bff for AIX – Backup File Format • dstream for Solaris - shar

  15. Package Managers • CentOS Specific • rpm (command line)‏ • yum (command line)‏ • pirut (Graphical front-end to yum)‏ • “Applications” → “Add/Remove Software”

  16. yum • yum – Yellowdog Updater Modified • Used for installing new software • Used for removing old software • Used for updating current software

  17. Make • Used to build software from source all: scheduler scheduler: scheduler.o g++ scheduler.o -o scheduler scheduler.o: scheduler.C g++ -c scheduler.C clean: rm -rf *o scheduler install: scheduler mkdir -p /usr/local/bin cp scheduler /usr/local/bin