- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- tar, ssh, and dd with Ultrium 1 tape
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
12-28-2005 08:36 AM
12-28-2005 08:36 AM
tar, ssh, and dd with Ultrium 1 tape
If I do a tar from the local disk to tape, default 10240-byte blocks, I get about 8mbytes/sec writing or reading (tar c/tvf.) That's fine for what we need.
If I do tar cvf - . | dd of=/dev/st0 bs=10240, and then read that back, I get about the same results.
But, if I do tar cvf - . | ssh localhost "dd of=/dev/st0 bs=10240", I get dramatically slower write speed. And surprisingly to me, reading a tape created using the ssh (reading without the ssh, using the tar tvf directly from /dev/st0) is even slower than writing!
Tar doesn't complain (or even comment) about block sizes, etc. and all the data is there, it's just too slow to be useful, by an order of magnitude. Obviously, sshing to localhost is pointless in this example, I just did that to eliminate one variable when I started using this computer for remote tars (from hp-ux 10.20, of all things) and encounted the performance problem.
I have tried various combinations of dd options (conv=block, etc.) with seemingly no improvement.
Any suggestions will be appreciated.
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2005 04:42 PM
12-28-2005 04:42 PM
Re: tar, ssh, and dd with Ultrium 1 tape
This problem could be made worse by ssh itself.
What version of ssh are you running? What is the networking environment as far as speed and such?
Those Ultrium drives are very, very fast and should be able to do a 50 GB Ignite style backup in about 20 minutes.
Its also possible the scsi drivers for Linux are not correct.What is the distribution of Linux you are using? Is the kernel up to date?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2005 10:37 PM
12-28-2005 10:37 PM
Re: tar, ssh, and dd with Ultrium 1 tape
I think that your 8MB/s is very low, with LTO-1, you should get near to 34 MB/s.
The SSH adds overhead because of encryption.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2005 03:38 AM
12-29-2005 03:38 AM
Re: tar, ssh, and dd with Ultrium 1 tape
1. 8mb/sec is ample for what we need, but less than 800kbytes/sec is a problem.
2. the ssh is only being used to *write* the tape, not read it back in. Tapes written with the ssh pipeline read back in (not using ssh) 10x slower than tapes written without the ssh pipeline.
Star is an interesting suggestion, but given that the eventual objective is to back up various OSes that won't have star, I still need to solve the ssh problem. All I can count on is tar and ssh on the client systems.
I'm mainly interested in finding out how/why the data is being written differently due to the use of the ssh pipe and what I can do to fix it.
I'm guessing that dd isn't waiting for the pipeline to fill its input buffer, and writing partial blocks, although I'm not exaclty sure how the Ultrium drive handles that. If that's happening, should tar be able to restore the data without error (which it can)???
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2005 03:58 AM
12-29-2005 03:58 AM
Re: tar, ssh, and dd with Ultrium 1 tape
I don't have an Ultrium drive on anything else so I can't test it with other OSes.
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2005 05:21 AM
12-29-2005 05:21 AM
Re: tar, ssh, and dd with Ultrium 1 tape
Try booting the system if possible on the non-SMP kernel.
I've been having some I/O problems with the SMP kernel under certain bizarre situations.
We suspect storage, but it still could be the kernel.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2005 07:01 AM
12-29-2005 07:01 AM
Re: tar, ssh, and dd with Ultrium 1 tape
The tapes written using rmt at 1.5mbytes/sec read locally on the linux box at the same speed as tapes written locally without the ssh pipe. Local reading/writing is about 8mbytes/sec, which as I said is fine for what we're doing.
Reading each ssh tape was going to take more like a week, so using rmt is providing a big improvement vs. the ssh pipeline.
I will update when I can experiment further.
Paul