- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Strange behaviour with 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
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
05-28-2004 12:50 AM
05-28-2004 12:50 AM
Strange behaviour with cpio
I need to copy data from file system to another.
I did :
# cd /d1 (old dir)
# find . -depth | cpio -pdumv /d1new
Copy was stopped (not enough space).
#bfd
/dev/vg01/lvol1 9216000 8941578 265934 97% /d1
/dev/vg04/lvol1 9420800 9420800 0 100% /d1new
mkfs -F vxfs -o ninode=unlimited,bsize=2048,version=3,inosize=256,logsize=1024,nolargefiles /dev/vg01/lvol1 9216000
mkfs -F vxfs -o ninode=unlimited,bsize=8192,version=3,inosize=256,logsize=256,largefiles /dev/vg04/lvol1 9420800
#diff /d1 /d1new
Common subdirectories: /d1/lost+found and /d1new/lost+found
Common subdirectories: /d1/ora_appli and /d1new/ora_appli
Common subdirectories: /d1/oracle and /d1new/oracle
Common subdirectories: /d1/was and /d1new/was
I do not understand why I do not have enough space. PE sizes are not the same : 4 Mb (vg01) and 8 Mb (vg04)
Thanks
Laurent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 01:11 AM
05-28-2004 01:11 AM
Re: Strange behaviour with cpio
cd /d1 ; find . -path ./d1 -prune -o -print | cpio -pdxm /d1new
Or maybe try it like so:
vxdump -0 -f - -s 1000000 -b 16 /d1| (cd /d1new ; vxrestore rf -)&
remove all files in /d1new first....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 01:28 AM
05-28-2004 01:28 AM
Re: Strange behaviour with cpio
Maybe you have some sparse files in /d1 that are ballooning up to their expected full size when cpio writes them to the second filesystem?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 01:32 AM
05-28-2004 01:32 AM
Re: Strange behaviour with cpio
If you are NOT copying another filesystem too (mounted under /d1, just type mount to see all mounted filesystems), another reason could be the blocksize of d1new being 4 times the block size of d1. The blocksize is the smallest amount of diskspace allocated to the file. This means that you waste more space on small files, which may become a problem if there are many files.
I do not know if all files occupy filesystem space in blocks of blocksize, but of course on large file you loose (procentually) less space.
Your PE size is only relevant to the LVM manager and determines the minimum size increase of an LV.
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 01:38 AM
05-28-2004 01:38 AM
Re: Strange behaviour with cpio
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2004 02:29 AM
05-28-2004 02:29 AM
Re: Strange behaviour with cpio
I think also that problem is size of blocksize. I am going to change my file system to have the same blocksize of original file system.
For sparse files, there are not Oracle Datafiles (not dbf). I do not know how to find quickly sparse files in my file system.
Laurent