- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Explanation of records and blocks
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
03-15-2007 07:59 AM
03-15-2007 07:59 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2007 08:17 AM
03-15-2007 08:17 AM
Re: Explanation of records and blocks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2007 08:22 AM
03-15-2007 08:22 AM
Re: Explanation of records and blocks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2007 08:34 AM
03-15-2007 08:34 AM
SolutionThe backup file is 38456242 blocks X 512 bytes/block = 19689595904 bytes
dd output 18777 blocks X 1024 * 1024 bytes/block = 19689111552 byes + a portion of one 1024KiB block because the input file size was not an exact multiple of 1024KiB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2007 08:42 AM
03-15-2007 08:42 AM
Re: Explanation of records and blocks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2007 02:49 PM
03-15-2007 02:49 PM
Re: Explanation of records and blocks
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 01:20 AM
03-16-2007 01:20 AM
Re: Explanation of records and blocks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 03:32 AM
03-16-2007 03:32 AM
Re: Explanation of records and blocks
fbackup, cpio, tar are all much better for tape control, standard blocking, header info and volume sets?
A restore from a dd will require that the person knows all the switches and blocking factors used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 04:23 AM
03-16-2007 04:23 AM
Re: Explanation of records and blocks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 04:26 AM
03-16-2007 04:26 AM
Re: Explanation of records and blocks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 06:51 AM
03-16-2007 06:51 AM
Re: Explanation of records and blocks
As far as compressibility, you can sort of guess at the compression ratio by running a dd and piping the output into compress then into wc -c. The compress utility probably doesn't use the same algorithm but it will be close.
By the way, when was the last time these tapes were tested by performing a restore?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 07:09 AM
03-16-2007 07:09 AM
Re: Explanation of records and blocks
find /dir1 /dir2 /dir3 /dir4 /dir5 -depth | cpio -ov 2> /daily_files/`date -u +%d%b%y`.data | dd of=/dev/rmt/2m obs=1024k
I know there is a risk with magnetic media and these are backups not archive. A couple of years ago I had to trash about 100 9 track tapes from a VMS system that were over 20 years old. I recovered all the data and put it in CDROM's.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 07:36 AM
03-16-2007 07:36 AM
Re: Explanation of records and blocks
find /dir1 /dir2 /dir3 /dir4 /dir5 -depth | cpio -ov 2> /daily_files/`date -u +%d%b%y`.data | dd of=/dev/rmt/2m obs=1024k
becomes
cd /
find ./dir1 ./dir2 ./dir3 ./dir4 ./dir5 -depth | cpio -ov 2> /daily_files/`date -u +%d%b%y`.data | dd of=/dev/rmt/2m obs=1024k
so that restore to alternate locations become at least an order of magnitude easier.
The dd'ing is being done to better block the i/o so that it streams better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 07:51 AM
03-16-2007 07:51 AM
Re: Explanation of records and blocks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 03:36 PM
03-16-2007 03:36 PM
Re: Explanation of records and blocks
You can always use pax(1) to change the paths so it might not be worth this change?