- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Backup Process Using 100% CPU
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2006 04:48 AM
01-06-2006 04:48 AM
-----------------------------------------------
#Always backup root filesystem
#
FS=/
echo "Starting backup of \"$FS\" `/bin/date`." >>$BACKUPLOG
cd $FS
find . -print | \
grep -v '/arc' | \
grep -v '/intra' | \
grep -v '/curly' | \
grep -v '/tempgis' | \
grep -v '/photos' | \
cpio -oBcdmuv > $NOREWIND_TAPE 2>$BACKUPDETAIL
echo "Backup of \"$FS\" completed `/bin/date`." >>$BACKUPLOG
# Run backup loop in subshell, and tee output to the backup log
(cat $FSYS | while read FS
do
echo "Starting backup of \"$FS\" `/bin/date`."
echo "Starting backup of \"$FS\" `/bin/date`." >>$BACKUPDETAIL
cd $FS
find . -print | cpio -oBcdmuv > $NOREWIND_TAPE 2>>$BACKUPDETAIL
echo "Backup of \"$FS\" completed `/bin/date`."
echo "Backup of \"$FS\" completed `/bin/date`." >>$BACKUPDETAIL
done) >> $BACKUPLOG
---------------------------------------------_
This is an HP9000 running HP-UX 11.00, which was created using Ignite-UX. The system has 1 Processor, 32 bit, 256 MB memory, and 2 swap spaces of 128MB each.
The CPU is running at 100% for the duration of the backups, and I do not see any apparent problems during this timeframe.
Any advice would be greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2006 05:31 AM
01-06-2006 05:31 AM
Re: Backup Process Using 100% CPU
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2006 06:06 AM
01-06-2006 06:06 AM
Re: Backup Process Using 100% CPU
Thanks for your reply and I guess I should've given you at least 4 points... Anyhow, Here's the tape Defs I didn't originally include:
NOREWIND_TAPE=/dev/rmt/1mn
REWIND_TAPE=/dev/rmt/1m
And there -s no "set -u" within the script, so I don't know what that provides.
The backup runs between 1900 and 2200 hrs so I have no idea if the tape light's blinking.
I use sar for my daily Performance check, is it possible to run top thru CRON (maybe AT) to monitor during that timeframe?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2006 06:26 AM
01-06-2006 06:26 AM
Re: Backup Process Using 100% CPU
First, this is a rather small machine especially RAM-wise. 128 MB is not much for 11.0.
What may be happening is that the backup kicks off and the find commands run. Doing a find can impact a machine since it has to traverse down the mountpoing you are running it on. The find is also piping the output to cpio to write to the drive. What **MIGHT** be happening is that find is using a few resources, and cpio is using a few resources, but with only 128MB ram, you are using up the available resources and causing the system to page out. If that starts happening then you can severely impact a systems performance.
You can run top periodically and have it write its output to a file. Use the '-f filename' option to top. Have a look at 'man top' for more information on the options available to you with top.
You might also consider running a periodic 'swapinfo -tam' to check your swap utilization during the time the backup runs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2006 07:52 AM
01-06-2006 07:52 AM
Re: Backup Process Using 100% CPU
Thanks for the feedback. Those were pretty much my suspicions too. There's no other processes running during that timeframe, so I'll just run a 'swapinfo' cronjob during that timeframe. Not sure they'll spring for the memory as it's pretty expensive; They'd be going for a ne server instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2006 07:52 AM
01-06-2006 07:52 AM
Re: Backup Process Using 100% CPU
Thanks for the feedback. Those were pretty much my suspicions too. There's no other processes running during that timeframe, so I'll just run a 'swapinfo' cronjob during that timeframe. Not sure they'll spring for the memory as it's pretty expensive; They'd be going for a new server instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2006 11:10 AM
01-06-2006 11:10 AM
Re: Backup Process Using 100% CPU
DIRNAME=tmp
rm -rf /$DIRNAM
(DO NOT TRY THIS ON YOUR SYSTEM)
Oops, there's a slight mistake. $DIRNAM should be $DIRNAME. But the shell doesn't know that and the resultant statement now reads:
rm -rf /
That statement is the end of your system--all files and directories on all disks will be removed with no recovery excepty re-install. Now if the set -u was inserted in the front of the script, the rm statement would not be executed because $DIRNAM is undefined and the script stops.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2006 12:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2006 04:52 AM
02-23-2006 04:52 AM