- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- CPIO to a mount point
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
Forums
Discussions
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
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
08-25-2004 04:27 AM
08-25-2004 04:27 AM
I am trying to use CPIO to transfer some file systems from one system to another. I hope some of you could shed some light on it.
At the source server, I run,
cd /
find ./ -print | cpio -ocvB > /dev/rmt/0m
At the destination server, I run,
cd /
cpio -icvBdum abc/* < /dev/rmt/0m
"/abc" is a mount point for a file system. I made sure the root has right to write to "/abc".
After waiting for a few hours, I got nothing but "abc/lost+found".
However, if I run,
cd /abc
cpio -icvBdum abc/* < /dev/rmt/0m
I got all th files under "/abc/abc". I have to run "mv /abc/abc/* /abc" to get the files into the right place.
Since I have many file systems to transfer, I would like to be able to run command such as,
cpio -icvBdum abc/* abd/* abe/* ... < /dev/rmt/0m
Please advise.
Thanks.
Yizhi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 04:34 AM
08-25-2004 04:34 AM
SolutionIf so, mount the filesystem from the new system onto the old system.
Using CPIO,
# cd
# find . -depth | cpio -pmuldv
No need to swap tapes and you retain the permissions and owners (assuming the owners exist on the new system as well).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 04:36 AM
08-25-2004 04:36 AM
Re: CPIO to a mount point
cpio -icvBdum ./abc
Since the path names you fed to cpio begin with "./".
FYI- don't use "abc/*" on a command line since it will try to expand "*" to matching file names on the CURRENT directory- Not what is on the tape...
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 07:11 AM
08-25-2004 07:11 AM
Re: CPIO to a mount point
Are both servers on the same network ?
Then you could use cpio between both systems.
# find /source | cpio -ov | remsh other_server " cd /target ; cpio -idvum "
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 10:13 AM
08-25-2004 10:13 AM
Re: CPIO to a mount point
I trird the NFS idea Rick suggested. However, some of the files can not be read by the root at the new server, because these files are only accessible to the owner and the group.
Any ideas?
Best regrads.
yizhi