- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- blocksize
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
Discussions
Discussions
Forums
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
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
тАО08-27-2010 10:59 PM
тАО08-27-2010 10:59 PM
blocksize
How to check the block size of tape drive??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2010 11:02 PM
тАО08-27-2010 11:02 PM
Re: blocksize
I want to restore a DB backup of an AIX system to HP-UX system.While trying for a restore,it is giving an error like blocksize not matching,unable to restore.how to proceed??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2010 05:27 AM
тАО08-28-2010 05:27 AM
Re: blocksize
In the absence of knowing exactly what command (including its options) that you used to create the backup, it is virtually impossible to provide a useful answer.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2010 07:17 AM
тАО08-28-2010 07:17 AM
Re: blocksize
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2010 08:04 PM
тАО08-28-2010 08:04 PM
Re: blocksize
If you are using tar to backup to the tape you can specify the block size you want write the data chunk into it ,
# tar with b option:
b : blocking factor of the archive record::
Use the next arg argument as the blocking factor for archive records. The default is 20; the maximum is at least 20. However, if the f - modifier is used to specify standard input, the default blocking factor is 1.
The blocking factor is determined automatically when reading nine-track tapes (key letters x and t). On nine-track tapes, the physical tape record length is the same as the block size. The block size is defined as the logical record size times the blocking factor (number of logical records per block).
The blocking factor must be specified when reading flexible disks and cartridge tapes if they were written with a blocking factor other than the default.
If a tar file is read using a blocking factor not equal to the one used when the file was written, an error may occur at the end of the file but there may or may not be an actual error in the read. To prevent this problem, a blocking factor of 1 can be used, although performance may be reduced somewhat.
tar writes logical records of 512 bytes, independent of how logical records may be defined elsewhere by other programs (such as variable-length records (lines) within an ASCII text file).
You can also use dd to write to the tape device, and you can specify a block size: 1024k means 1MB block size.
Example:
# dd if=/dev/vgSAPdir/rsaparch of=/dev/rmt/0mn bs=1024k
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2010 03:20 PM
тАО08-29-2010 03:20 PM
Re: blocksize
You check the blocksize of a tape record, not the tape drive.
You can get the recordsize by reading a large buffer and checking the return value of read(2), especially if smaller than your buffer size.
>Raj: The blocking factor must be specified when reading flexible disks and cartridge tapes
If you use pax(1), it will automatically figure this out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2010 11:45 PM
тАО09-03-2010 11:45 PM