- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: moving allbase files via cpio?
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
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
тАО06-25-2001 12:43 PM
тАО06-25-2001 12:43 PM
I would like to move allbase files from one LV to another without the pain and suffering of export/import. However, I know how diddling with sparse files can make a database app wax unhappy in a biblical sense.
I tried a test run with the following:
cd /old-dir
find . | cpio -o | (cd /new-dir; cpio -ivmud)
A dircmp between /old-dir and /new-dir was happy. File sizes for data and index files stayed the same. The data is no good, of course, because allbase was up and running -- this was just a dry run. The real deal would be done with allbase completely down.
Am I right in assuming that cpio preserves sparse files? If not, does anyone have a better suggestion for a wholesale move of allbase data from one LV to another (that avoids a full export and import)?
Thanks,
Jim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2001 12:59 PM
тАО06-25-2001 12:59 PM
Re: moving allbase files via cpio?
I've never tried it before so I can't help much, but I'd suggest doing a 'du -sk *' in the two directories to see the number of blocks the files are using. My guess is that if the new files are sparse they will have the same number of blocks as the old ones.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2001 01:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2001 01:46 PM
тАО06-25-2001 01:46 PM
Re: moving allbase files via cpio?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2001 01:48 PM
тАО06-25-2001 01:48 PM
Re: moving allbase files via cpio?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2001 06:58 PM
тАО06-25-2001 06:58 PM
Re: moving allbase files via cpio?
Jordan is right. I had copied the entire oracle database filesystem successfully in the same way, long back. The command used was like this -->
#cd /oracleold
#find . -depth -print |cpio -pdmuxv /oraclenew
Assuming your original oracle files are in /oracleold and the new oracle destination is /oraclenew. The above command will give you the printout on the screen also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2001 08:50 PM
тАО06-25-2001 08:50 PM
Re: moving allbase files via cpio?
Hi
U can use like this
#cd /oldpath
#find . -xdev -depth -print | cpio -pmdx /newpath
For more information see man page of find and cpio.
Best of luck
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2001 07:06 AM
тАО06-26-2001 07:06 AM
Re: moving allbase files via cpio?
I'm bolstered by the reports of successful Oracle tablespace relocation via cpio's passthrough functionality. I've used cpio for a decade, but never noticed the passthrough option. I should always remember to RTFM. I guess it's part of the same male genetic defect that inhibits guys from asking directions at the filling station when we're lost ;-)
I have every reason to believe that this will work. All the same, I will post a follow-up reply after the work is done to confirm success.
Warm Regards,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2001 07:48 AM
тАО06-26-2001 07:48 AM
Re: moving allbase files via cpio?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2001 08:22 AM
тАО06-26-2001 08:22 AM
Re: moving allbase files via cpio?
Now, bottom line: Will our allbase database come up and work after the cpio puddle move (I love that, BTW)? I've received reports so far of successful Oracle and Allbase moves in the past using this method. Am I "missing the forest for the trees" with sparse files as related to allbase?