- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Temporary backup scheme
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
04-10-2001 10:25 AM
04-10-2001 10:25 AM
I am upgrading the Server to HP11.0 and Oracle 8i and due to the new disk requirements, I can not have /backup anymore (Until my clients buy new disks). To make the downtime as short as possible, I was planning to copy the datafiles to tape before opening the database again and then backup userdata directories to the same tape. My problem is that I don't know how to automate this process. SAM's automated backup
will rewind the tape after the database backup since it is using fbackup. Recovering from cpio will be lengthy if a user only lost one file!. The only solution I have at hand is to put all directories (datafiles and users) in one backup scheme and estimate when the oracle backup will finish so that I can open the database before the tape finishes with the usersdata. Any alternatives,...thanks Haitham
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2001 11:02 AM
04-10-2001 11:02 AM
Re: Temporary backup scheme
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2001 11:11 AM
04-10-2001 11:11 AM
Re: Temporary backup scheme
The entire process should take less than 2 minutes including bouncing the database. You can then backup the snapshots at your convenience.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2001 11:29 PM
04-10-2001 11:29 PM
Re: Temporary backup scheme
copying you database to tape will require your database to be down for a much longer period.
The cost of one (or more) large disks would normally not weigh up to the cost of the downtime. Also recovery would be many times faster from your backup directory than from tape.
Another option would be an online database backup, so you can keep your database up and running during the backup.
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2001 06:41 AM
04-11-2001 06:41 AM
SolutionInstead of "copying" the files, take the input file through "compress" and output the results to your destination location. Your backup disk requirement is significantly less and CPU cycles for compress are often quicker than IO cycles for tape drives.
I use that for many of my databases, even when doing hot backups. Here is an example for compressing one directory files to a second directory (all files in parallel):
DIR1=/oradata/DBNAME/disk1
DIR2=/archives/DBNAME
cd $DIR1
for name in *
do
compress -f -c $name > $DIR2/$name.Z &
done
wait
Again, always document/test recovery whenever a new backup method is implemented.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2001 06:49 AM
04-11-2001 06:49 AM
Re: Temporary backup scheme
What is the disk structure that your database resides on (Mirror?)
If it is a mirror them split the mirror, mount the split and then backup the split volume, merge the split volume back online.
Hey Presto an one line backup.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2001 08:58 AM
04-11-2001 08:58 AM
Re: Temporary backup scheme
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2001 11:50 PM
04-11-2001 11:50 PM
Re: Temporary backup scheme
Mirrow backup routine :-
# When started
date >> ~/var/adm/n0cronlog
################################
# Flush memory
################################
sync
sync
################################
echo "Splitting disks"
lvsplit -s _copy /dev/avro/avro
################################
echo "FSCK on split disk"
################################
fsck /dev/avro/avro_copy
################################
echo "Making mount dir"
# Just in case it was deleted
################################
mkdir /avrobackup
################################
echo "Mounting split disk to /avrobackup"
################################
mount /dev/avro/avro_copy /avrobackup
################################
COPY ROUTINE HERE FBACKUP,TAR,CPIO ETC
find .|cpio -pudvm /avroTWO
################################
# Create Complete copy file
# Used as a Flag file
################################
touch /avroTWO/COPYCOMPLETE
################################
echo "Unmounting the split disk"
################################
umount /dev/avro/avro_copy
################################
echo "Removing the mount dir"
################################
rmdir /avrobackup
################################
echo "Merging the disk back online"
################################
lvmerge /dev/avro/avro_copy /dev/avro/avro
################################
echo "Avrocopy to avroTWO complete"
###############################
date >> ~/var/adm/n0cronlog
# When finished
HTH
Paula