- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- duplicating a file system and it's data
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
01-15-2004 08:59 AM
01-15-2004 08:59 AM
Here is the situation, I have about 20 /oracle/SID/sapdataX directories mount on seperate file systems. My /oracle /oracle/SID and /oracle/stage directories are also mounted on seperate file systems. I have a need to copy the data from the /oracle /oracle/SID and /oracle/stage file systems to new temporary file systems, which will be mounted up as /oracle /oracle/SID and /oracle/stage when the copy is complete. So, my question is this, what is the best way to copy the data?
for /oracle
/dev/vg02/lvol1 --> /dev/vg03/lvol1
for /oracle/SID
/dev/vg02/lvol2 --> /dev/vg03/lvol2
for /oracle/stage
/dev/vg02/lvol2 --> /dev/vg03/lvol3
I need to make sure I just get the data on these file systems, therefore I cannot do a cp from /oracle --> /oracle_tmp because that will pick up my /oracle/SID/sapdata directories.
Any ideas would be greatly appreciated.
Thanks,
-Bryan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 09:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 09:07 AM
01-15-2004 09:07 AM
Re: duplicating a file system and it's data
Something so simple...thanks for straightening me out!
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 09:13 AM
01-15-2004 09:13 AM
Re: duplicating a file system and it's data
You can also look at a combination of find with cpio.
I do not have a man pages present but with cd /target
find /oracle -xdept ( something like this, non crossing filesystems) | cpio cv .( other option)
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 09:31 AM
01-15-2004 09:31 AM
Re: duplicating a file system and it's data
# mount /dev/myvg/mynewlv /copy
# cd /orig_dir
# find . -depth -print | cpio -pdumv /copy
umount /orig_dir
umount /copy
# mount /dev/myvg/mynewlv /orig_dir
Move onto to next directory