- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to verify dd copy and possible bs values t...
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
04-12-2005 11:32 AM
04-12-2005 11:32 AM
ALPHA: # dd if=/dev/vgtower/rttfiles of=/dev/vgdr/rdrfiles bs=8192k
The output of bdf after the copy follows:
/dev/vgtower/ttfiles
631734272 499158032 131540536 79% /home/runtime/is/files
/dev/vgdr/drfiles 631734272 499141016 131557408 79% /dr
My question is why do the "used" and "available" values not match?
/dev/vgtower resides on an XP512 while /dev/vgdr resides on a DS2300 Disk Array with 5x146GB disks.
In the long listing below, please note that the directories 250-0 and 250-4 reside on separate logical volumes and hence would not be copied by dd. Could this explain the discrepancy above even though the directory sizes are identical?
ALPHA:# ll /home/runtime/is/files
total 0
drwxrw-r-- 2 tower tower 96 Aug 20 2001 0-0
drwxrwxrwx 4 tower tower 96 May 27 1999 250-0
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-10
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-12
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-14
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-16
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-18
drwxrwxrwx 3 tower tower 96 Jul 18 1999 250-2
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-20
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-22
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-24
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-26
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-28
drwxr--r-- 3 tower tower 96 Mar 29 11:30 250-350
drwxrwxrwx 4 tower tower 96 Aug 19 1999 250-4
drwxrwxrwx 2 tower tower 96 Jul 29 1999 250-6
drwxrwxrwx 4 tower tower 96 Feb 13 2004 250-8
drwxr-xr-x 2 tower tower 96 Mar 13 2004 lost+found
ALPHA:# ll /dr
total 0
drwxrw-r-- 2 tower tower 96 Aug 20 2001 0-0
drwxrwxrwx 2 root sys 96 Feb 14 2001 250-0
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-10
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-12
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-14
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-16
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-18
drwxrwxrwx 3 tower tower 96 Jul 18 1999 250-2
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-20
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-22
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-24
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-26
drwxrwxrwx 4 tower tower 96 Jul 18 1999 250-28
drwxr--r-- 3 tower tower 96 Mar 29 11:30 250-350
drwxrwxrwx 2 root sys 96 Feb 14 2001 250-4
drwxrwxrwx 2 tower tower 96 Jul 29 1999 250-6
drwxrwxrwx 4 tower tower 96 Feb 13 2004 250-8
drwxr-xr-x 2 tower tower 96 Mar 13 2004 lost+found
I used fsck and mkfs to verify the copy and the results are below. If there is another way, please let me know.
ALPHA:# fsck -F vxfs -n /dev/vgdr/drfiles
pass0 - checking structural files
pass1 - checking inode sanity and blocks
pass2 - checking directory linkage
pass3 - checking reference counts
pass4 - checking resource maps
OK to clear log? (ynq)n
sanity checks/updates have not been completed - restart? (ynq)n
ALPHA:# mkfs -F vxfs -m /dev/vgtower/ttfiles
mkfs -F vxfs -o ninode=unlimited,bsize=8192,version=3,inosize=256,logsize=256,largefiles /dev/vgtower/ttfiles 631734272
ALPHA:/home/runtime/is/import # mkfs -F vxfs -m /dev/vgdr/drfiles
mkfs -F vxfs -o ninode=unlimited,bsize=8192,version=3,inosize=256,logsize=256,largefiles /dev/vgdr/drfiles 631734272
I did testing on the internal disk of a N-Class to get an understanding of the best bs value to use. The results are listed below:
Raw logical volume size = 7,372,800 KB
Command used:
dd if=/dev/vg00/rtlv1 of=/dev/vg00/rtlv2 bs=nnnnk
bs=1024k time=12 min 39 secs
bs=4096k time=11 min 21 secs
bs=8192k time=11 min 9 secs
bs=16384k time=11 min 1 sec
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2005 01:36 PM
04-12-2005 01:36 PM
SolutionIf so that had to at least start out identical. I suspect that one or the other filesystems had activity prior to the bdf's being run. I assume that you got no errors on the dd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2005 01:53 PM
04-12-2005 01:53 PM
Re: How to verify dd copy and possible bs values to use
ALPHA:/opt/omni/lbin # time dd if=/dev/vgtower/rttfiles of=/dev/vgdr/rdrfiles bs=8192k
77116+0 records in
77116+0 records out
real 10:09:02.5
user 0.4
sys 3:07.8
I just remembered being pulled away by something else between mounting the filesystems and running bdf. You are right that filesystem activity in the interim caused the difference.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2005 02:40 PM
04-12-2005 02:40 PM
Re: How to verify dd copy and possible bs values to use
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2005 04:09 PM
04-12-2005 04:09 PM
Re: How to verify dd copy and possible bs values to use
I inherited the box/environment from a Sys Admin who had a cron jobs that did the following:
chmod -R 777 /pathname
I have doing Sys Admin for 2 plus years now and currently in the process of cleaning up said box/environment.
The directories belong to an application which is due to be upgraded shortly; I was looking to audit and do fixes then.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2005 04:12 PM
04-12-2005 04:12 PM