HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sparse Oracle files on a copy - bdf, du and ll
Operating System - HP-UX
1825691
Members
3354
Online
109686
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-10-2010 05:53 AM
06-10-2010 05:53 AM
Sparse Oracle files on a copy - bdf, du and ll
hi,
This is probably a very frequently asked question, but here goes:
I am migrating a bunch of file systems from an XP512 to a Netapp FAS 3170. I'm using
tar cf - . | (cd xxxx;tar xvf -)
to move the data.
Since these are primarily Oracle files, the question of sparse files was churning about in my head. Anyway, I copied from /oracle/db6 to /netapp/db6 and was struck with the huge discrepancy shown by bdf:
# bdf |grep db6
/dev/vx02/lvol6 3145728 1024176 1988960 34% /oracle/db6
/dev/netapp/lvol13 3276800 2142144 1063745 67% /netapp/oracle/db6
However, listing the file sizes using ls -l gave the identical result in both file systems:
# cd /netapp/oracle/db6
# ls -la
total 1228848
drwxr-xr-x 5 oramaint oradba 96 Mar 18 11:00 .
drwxr-xr-x 24 root sys 8192 Jun 9 15:57 ..
drwxrwxrwx 2 root sys 96 Nov 9 2004 .EZtmp.d
drwxr-xr-x 2 oramaint oradba 96 Nov 26 2006 ftstdata
-rw-r----- 1 oramaint oradba 629153792 Mar 18 11:00 ftstdata ap.tmp
drwxr-xr-x 2 root root 96 Apr 21 2008 lost+found
# ls -al ftstdata
total 3051648
drwxr-xr-x 2 oramaint oradba 96 Nov 26 2006 .
drwxr-xr-x 5 oramaint oradba 96 Mar 18 11:00 ..
-rw-r----- 1 oramaint oradba 629153792 Feb 15 2005 ap.tmp
-rw-r----- 1 oramaint oradba 41951232 Mar 18 11:00 ar.tmp
-rw-r----- 1 oramaint oradba 314580992 Mar 18 10:59 oa.tmp
-rw-r----- 1 oramaint oradba 52436992 Mar 18 10:59 po.tmp
-rw-r----- 1 oramaint oradba 524296192 Jun 9 20:38 uogx01.dbf
# cd /oracle/db6
# ls -la
total 162
drwxr-xr-x 5 oramaint oradba 1024 Mar 18 11:00 .
drwxrwxr-x 24 oramaint applfin 8192 Sep 3 2008 ..
drwxrwxrwx 2 root sys 96 Nov 9 2004 .EZtmp.d
drwxr-xr-x 2 oramaint oradba 96 Nov 26 2006 ftstdata
-rw-r----- 1 oramaint oradba 629153792 Mar 18 11:00 ftstdata ap.tmp
drwxr-xr-x 2 root root 96 Apr 21 2008 lost+found
# ls -al ftstdata
total 2044466
drwxr-xr-x 2 oramaint oradba 96 Nov 26 2006 .
drwxr-xr-x 5 oramaint oradba 1024 Mar 18 11:00 ..
-rw-r----- 1 oramaint oradba 629153792 Feb 15 2005 ap.tmp
-rw-r----- 1 oramaint oradba 41951232 Mar 18 11:00 ar.tmp
-rw-r----- 1 oramaint oradba 314580992 Mar 18 10:59 oa.tmp
-rw-r----- 1 oramaint oradba 52436992 Mar 18 10:59 po.tmp
-rw-r----- 1 oramaint oradba 524296192 Jun 9 20:38 uogx01.dbf
So my question is - is bdf reporting sparse files incorrectly at the source, and not the destination? is this an issue of blocksizes on the Netapp vs the XP512? The data seems to be identical, and presumably it'll be ok to go ahead and use it on the Netapp - I just need to be reassured that this is just a disk utilization reporting issue, not a broken copy.
many thanks!
Scotty
This is probably a very frequently asked question, but here goes:
I am migrating a bunch of file systems from an XP512 to a Netapp FAS 3170. I'm using
tar cf - . | (cd xxxx;tar xvf -)
to move the data.
Since these are primarily Oracle files, the question of sparse files was churning about in my head. Anyway, I copied from /oracle/db6 to /netapp/db6 and was struck with the huge discrepancy shown by bdf:
# bdf |grep db6
/dev/vx02/lvol6 3145728 1024176 1988960 34% /oracle/db6
/dev/netapp/lvol13 3276800 2142144 1063745 67% /netapp/oracle/db6
However, listing the file sizes using ls -l gave the identical result in both file systems:
# cd /netapp/oracle/db6
# ls -la
total 1228848
drwxr-xr-x 5 oramaint oradba 96 Mar 18 11:00 .
drwxr-xr-x 24 root sys 8192 Jun 9 15:57 ..
drwxrwxrwx 2 root sys 96 Nov 9 2004 .EZtmp.d
drwxr-xr-x 2 oramaint oradba 96 Nov 26 2006 ftstdata
-rw-r----- 1 oramaint oradba 629153792 Mar 18 11:00 ftstdata ap.tmp
drwxr-xr-x 2 root root 96 Apr 21 2008 lost+found
# ls -al ftstdata
total 3051648
drwxr-xr-x 2 oramaint oradba 96 Nov 26 2006 .
drwxr-xr-x 5 oramaint oradba 96 Mar 18 11:00 ..
-rw-r----- 1 oramaint oradba 629153792 Feb 15 2005 ap.tmp
-rw-r----- 1 oramaint oradba 41951232 Mar 18 11:00 ar.tmp
-rw-r----- 1 oramaint oradba 314580992 Mar 18 10:59 oa.tmp
-rw-r----- 1 oramaint oradba 52436992 Mar 18 10:59 po.tmp
-rw-r----- 1 oramaint oradba 524296192 Jun 9 20:38 uogx01.dbf
# cd /oracle/db6
# ls -la
total 162
drwxr-xr-x 5 oramaint oradba 1024 Mar 18 11:00 .
drwxrwxr-x 24 oramaint applfin 8192 Sep 3 2008 ..
drwxrwxrwx 2 root sys 96 Nov 9 2004 .EZtmp.d
drwxr-xr-x 2 oramaint oradba 96 Nov 26 2006 ftstdata
-rw-r----- 1 oramaint oradba 629153792 Mar 18 11:00 ftstdata ap.tmp
drwxr-xr-x 2 root root 96 Apr 21 2008 lost+found
# ls -al ftstdata
total 2044466
drwxr-xr-x 2 oramaint oradba 96 Nov 26 2006 .
drwxr-xr-x 5 oramaint oradba 1024 Mar 18 11:00 ..
-rw-r----- 1 oramaint oradba 629153792 Feb 15 2005 ap.tmp
-rw-r----- 1 oramaint oradba 41951232 Mar 18 11:00 ar.tmp
-rw-r----- 1 oramaint oradba 314580992 Mar 18 10:59 oa.tmp
-rw-r----- 1 oramaint oradba 52436992 Mar 18 10:59 po.tmp
-rw-r----- 1 oramaint oradba 524296192 Jun 9 20:38 uogx01.dbf
So my question is - is bdf reporting sparse files incorrectly at the source, and not the destination? is this an issue of blocksizes on the Netapp vs the XP512? The data seems to be identical, and presumably it'll be ok to go ahead and use it on the Netapp - I just need to be reassured that this is just a disk utilization reporting issue, not a broken copy.
many thanks!
Scotty
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2010 06:43 AM
06-10-2010 06:43 AM
Re: Sparse Oracle files on a copy - bdf, du and ll
Hi Scotty:
If you want to copy a sparse file and not expand it at the destination, you 'fbackup/frecover' or 'pax'. Using 'tar' or 'cp' expands the file.
The number of characters reported by 'ls' is the actual offset for the file and hence remains constant.
You could use:
# cd srcdir && fbackup -i . -f - | ( cd dstdir && frecover -Xsrf - )
or:
# cd srcdir && pax -w . | ( cd dstdir && pax -r -pe )
Regards!
...JRF...
If you want to copy a sparse file and not expand it at the destination, you 'fbackup/frecover' or 'pax'. Using 'tar' or 'cp' expands the file.
The number of characters reported by 'ls' is the actual offset for the file and hence remains constant.
You could use:
# cd srcdir && fbackup -i . -f - | ( cd dstdir && frecover -Xsrf - )
or:
# cd srcdir && pax -w . | ( cd dstdir && pax -r -pe )
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP