- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX 11.00 FileSystem Copy with fabackup or dd or...
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-18-2004 03:48 AM
тАО06-18-2004 03:48 AM
Can any one tell me , how to backup files system to another filesystem , using (1) fbackup or (2)dd or (3)tar command.
I have two file system
/data1 size 1GB used=800MB
/data2 size 1GB used=0MB.
can i copy all files and dirs of /data1 filesystem , to /data2 filesystem using fbackup or dd. both are vxfs filesystem.
I beleive this will be faster and accurate than cp command.
Thanks in advance.
Raj. D.
--------
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2004 03:53 AM
тАО06-18-2004 03:53 AM
Re: HP-UX 11.00 FileSystem Copy with fabackup or dd or tar.
(cd /data1; tar cf - .) | (cd /data2; tar xvf -)
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2004 03:53 AM
тАО06-18-2004 03:53 AM
Re: HP-UX 11.00 FileSystem Copy with fabackup or dd or tar.
You can use cpio.
# find /data1 | cpio -pcmudv /data2
Regards,
Robert-Jan
Ps, to gain extra speed remove the -v option.
- Tags:
- cpio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2004 03:54 AM
тАО06-18-2004 03:54 AM
Re: HP-UX 11.00 FileSystem Copy with fabackup or dd or tar.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2004 03:54 AM
тАО06-18-2004 03:54 AM
Solutionit is not needed fbackup filesystem, just copy it!
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=611082
Check thread above, it has a lot of suggestions about that.
My one was:
# cd /data1
# find . -xdev -print | cpio -pdmvux /data2
I suggest you to compare two directories at the end:
# diff /data1 /data2
HTH.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2004 04:54 AM
тАО06-18-2004 04:54 AM
Re: HP-UX 11.00 FileSystem Copy with fabackup or dd or tar.
Jeff , Robert , Pete & Etore , and who all replied. The Problem solved , with , solution of :
1] Jeff & 2] Ettore .
The command given by robert is creating one more directory called data1 under /data2
i.e
Robert:
# find /data1 | cpio -pcmudv /data2
Pete:
# find /data1 -print | cpio -pdumxl /data2
creates one more directory.
i.e /data2/data1/....under /.
This two works fine.
of Jeff and Etorre ,
Thanks to all .
--------------
Raj. D.
-------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2004 05:00 AM
тАО06-18-2004 05:00 AM
Re: HP-UX 11.00 FileSystem Copy with fabackup or dd or tar.
This command i have tried and found good result.
# umount /data2
# dd if=/dev/vg01/data1 of=/dev/vg01/data2
# fsck /dev/vg01/data2
# mount -F /dev/vg01/data2 /data2
# diff /data1 /data2
Found OK.
Thanks to all who replied ,
Raj.D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2004 05:29 AM
тАО06-18-2004 05:29 AM
Re: HP-UX 11.00 FileSystem Copy with fabackup or dd or tar.
I use this method as well, just take into account that it's good only if logical volumes size is equal.
PS. It's better to use /dev/vgxx/rlvol and not lvol. You can change bs in dd command in order to accelerate the process.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2004 10:15 PM
тАО06-19-2004 10:15 PM
Re: HP-UX 11.00 FileSystem Copy with fabackup or dd or tar.
But Whats the Block size to be used , to accelarate the dd operation.
is it bs=64 . ?
Raj. D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2004 09:26 PM
тАО06-20-2004 09:26 PM
Re: HP-UX 11.00 FileSystem Copy with fabackup or dd or tar.
although cpio passthrough copying, as recommended by others, is the most common method, in terms of performance for copying an entire filesystem you can hardly beat dd (you found out yourself).
The only things to be aware of are:
target rlvol must be the same size or larger than the source rlvol.
(if larger, you simply run extendfs on the target rlvol after the copy is done and before mounting it)
Blocksize should be between 256k and 4096k.
Whether this actually makes a difference, is hard to tell because it depends on the system configuration. I found 256k suitable for most situations.
Especially if you have filesystems with tens or hundreds of thousands of files the dd method will save you *hours* compared to cpio.
Regards,
Bernhard