LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-01-2014, 01:13 PM   #1
Rahul77
LQ Newbie
 
Registered: Dec 2014
Posts: 4

Rep: Reputation: Disabled
Question Server Reboot During Daily Backup


Hi, we have an unusual problem. We are running a database server on which an incremental file system backup runs every day during the morning hours.
In the sequence, the / fs completes and then the backup agent moves on to /boot. This is where things go wrong. First, there is high i/o wait, spiking cpu utilisation, and then the NMI watchdog setup causes the kernel to restart the system.

This happens every day, unless we exclude the /boot file system from the backup. The backup agent we are running in Idera 5.8. Our kernel version is 2.6.32.431.29.2. It is Red Hat 6.5 that we are running on.

What might be the problem which causes the high i/o wait when the backup starts working on the /boot fs?

Will greatly appreciate any help.
Many Thanks
R
 
Old 12-02-2014, 08:59 AM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Does /boot require a fresh backup every single day?
 
Old 12-02-2014, 09:19 AM   #3
Rahul77
LQ Newbie
 
Registered: Dec 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hey Jeremy, Many Thanks for your response!

That is another question we need confirmed, how useful is the backup of the boot FS everyday, for a bare metal restore?
The daily backup is basically an incremental one? What challenge will it pose to the restore in case we exclude /boot from the daily incremental backup?

Thanks in advace
R
 
Old 12-02-2014, 10:52 AM   #4
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
/boot should only have things like grub and kernel(s) in it.
It should change only when you modify either of these.
You can confirm this by checking file dates with
Code:
sudo ls -lR --full-time /boot
On my PC, I find no problem with backing up anything (including /boot) to an alternative disk (or other location) with rsync.
However, I find it necessary to boot from a "live" DVD or USB to do this.
This guarantees that the main system is not in use at the time of the backup.

Probably something you don't want to mess around doing for a server...
 
Old 12-02-2014, 11:18 PM   #5
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware, Debian, Gentoo, FreeBSD, OpenBSD
Posts: 208

Rep: Reputation: 41
Nothing should be using /boot. I don't even have its partition mounted.

Is /boot on a separate partition? Is the filesystem corrupt on that partition, causing the high i/o wait states?
 
Old 12-03-2014, 01:46 PM   #6
Rahul77
LQ Newbie
 
Registered: Dec 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
First off, JeremyBoden, thanks for your response. I have checked it and we don't see any changes to it since we made changes to the Kernel.

Padeen, it is a separate partition and the FS appears clean. We have run fsck on it a few times. Apart from that, when we stop the databases running on the server and run the backup with /boot enabled, it completes successfully. And the I/O then, although high, it maxes to about 30%, does not hit the 50%, which is what happens when the backup includes /boot with the databases running as well.

Hope this gives a clear picture. And thanks for responding.

We have decided to run a full backup every time we perform a kernel updates. Doing so shall allow us to keep the Kernel update current, at the very least.

However, the real problem is with the high spike in i/o wait when the backup runs with the boot fs included.

Will be really helpful in case someone with any insights offers any advise.

Thanks
R
 
Old 12-05-2014, 12:39 AM   #7
rayfward
Member
 
Registered: May 2009
Location: Leeds Uk
Distribution: Linux Mint 20.2
Posts: 136

Rep: Reputation: 17
Hi R
Backups are very intense CPU users I'm assuming your using a DLT drive? It does mention in the man page that a CPU crisis will cause a reboot. Top only reports the average. You can disable/suspend the watchdog and let it finish.
See man page watchdog "The watchdog daemon can be stopped without causing a reboot if the device /dev/watchdog is closed correctly, unless your kernel is compiled with the CONFIG_WATCHDOG_NOWAYOUT option enabled. "

It is unlikely to be a file system corruption.
I would consider that :-
The tapes are damaged.
The tapes are out of space.
The tapes are being used at double density (Double density doesn’t !)
All need CPU time.
In the end watchdog needs CPU and causing a reboot means the backup may not be complete. This would renderer the backup useless.
Incremental Backups.
Fine if you have lots of single files bad for databases. Again what ever databases you are backing up, Incremental will back only the ones that have been changed but not the whole package. First time you implement your DR plan you will find all the flaws leading to some very late nights.

Regards
Ray
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can backup a remote server(only folder needed) with ftp ,daily backup? ahjafari Linux - Newbie 1 10-26-2011 04:04 PM
Backup & reboot access for Apache web server geethajayabala Linux - Server 2 07-16-2011 10:58 PM
Sheduled daily backup in linux ramecare Linux - Server 5 03-31-2011 04:07 PM
How do I automate a reboot at 1AM Daily? explorer Linux - General 1 04-07-2004 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration