- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cp or (fback & frestore)
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
Discussions
Discussions
Discussions
Forums
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
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
тАО05-08-2007 04:43 AM
тАО05-08-2007 04:43 AM
cp or (fback & frestore)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 04:49 AM
тАО05-08-2007 04:49 AM
Re: cp or (fback & frestore)
1) How much data? How many MB, GB, TB? How many files?
2) Is the data being copied from one filesystem to another on the same system?
2a) If the copy is going over the network, what speed is the network? Is it a LAN or a WAN?
3) Is there a specific time window this needs to be done?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 04:50 AM
тАО05-08-2007 04:50 AM
Re: cp or (fback & frestore)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 04:50 AM
тАО05-08-2007 04:50 AM
Re: cp or (fback & frestore)
A plain cp from one spot on the a machine to another spot on the same machine will obviously be faster that dumping something off to tape and then recovering it. Other than that, I can't really address your question.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 04:56 AM
тАО05-08-2007 04:56 AM
Re: cp or (fback & frestore)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 04:57 AM
тАО05-08-2007 04:57 AM
Re: cp or (fback & frestore)
Faster o not faster, it would more like suitable or not:
cp:
"copy files and directory subtrees"
http://docs.hp.com/en/B2355-60127/cp.1.html
fbackup:
selectively back up files
http://docs.hp.com/en/B2355-60127/fbackup.1M.html
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 04:57 AM
тАО05-08-2007 04:57 AM
Re: cp or (fback & frestore)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 05:06 AM
тАО05-08-2007 05:06 AM
Re: cp or (fback & frestore)
However, there is a method that you haven't mentioned that will be faster than either.
As long as the destination LVOL is at least as large as the source LVOL then do a raw copy using dd.
umount /source_file_system
dd if=/dev/vgsrc/rlvol1 of=/dev/vgdest/rlvol1 bs=1024k
mount /source_file_system
mount /dest_file_system
If part of what you are trying to do is expand the filesystem then make your destination LVOL as big as you like, do the dd, and then extend the filesystem after the transfer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 05:07 AM
тАО05-08-2007 05:07 AM
Re: cp or (fback & frestore)
If this is an Oracle database I would consider this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=957531&admit=-682735245+1178643965099+28353475
"The only "copy" mechanism that I would *not* use would be 'cp' since it will expand (pad with zeros) any sparse Oracle files."
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 05:11 AM
тАО05-08-2007 05:11 AM
Re: cp or (fback & frestore)
1) cp requires the database be down to get a clean backup.
2) fback requries the database be in backup mode to get a clean backup.
3) DP5 or rman or veritas netback can get clean backups while the database is up, hot and doing transactions.
Answer: The right tool for the right job/situation. You've really not told us enough to provide a definitive answer.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 05:19 AM
тАО05-08-2007 05:19 AM
Re: cp or (fback & frestore)
What storage are you using? You can use Open Migrator (formerly named Data Relocation Utility) and it will do the job on the fly, no need to bring down the databaase down.
Check this out:
http://www.emc.com/products/software/open_migrator/index.jsp
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 06:21 AM
тАО05-08-2007 06:21 AM
Re: cp or (fback & frestore)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 06:22 AM
тАО05-08-2007 06:22 AM
Re: cp or (fback & frestore)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 07:40 AM
тАО05-08-2007 07:40 AM
Re: cp or (fback & frestore)
Please read this and perhaps take appropriate action. Welcome to the forums.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2007 03:33 PM
тАО05-08-2007 03:33 PM
Re: cp or (fback & frestore)
you have a modern computer with 400 Mhz or faster processors,
you have more than 1Gb or RAM,
you have a modern tape drive that can handle 20-100 Mbytes/sec data rates or more
Now these are not pick-and-choose. A fast tape drive will be useless on a slow (less than 200 Mhz) machine. Similarly, a 1200 Mhz machine with 16 processors will be crippled with a DDS-2 tape drive.
If you don't run fbackup without a config file, it will be only slightly faster than cp.
Bill Hassell, sysadmin