- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to enable compression on DAT under Linux ?
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
02-04-2003 02:42 AM
02-04-2003 02:42 AM
How to enable compression on DAT under Linux ?
How can I enable hardware compression on a 20/40GB DAT internal tape drive on a Compaq Proliant ML350 G3 running RH Linux 8.0 ? Linux says it's a Sony 10000 drive, /dev/st0 operates fine but mt compression/defcompression/density refuses to shift it from standard 20 GByte capacity on DDS-4 tape.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 02:19 PM
02-04-2003 02:19 PM
Re: How to enable compression on DAT under Linux ?
What does the following command return:
mt -f /dev/nst0 compression
How much normal data can you put on the tape?
Do you have 20+GB of data to test with?
If not, just use the nst0 device, and put the same known-data-set on, over and over and see where it stops.
If you're not putting already-compressed files on, you should get more than 20GB easily. If they are already compressed, then you'll only get a bit over 20GB (if at all).
DAT40i's we use generally only get 25-30GB onto a tape.
The SDT10000 (which are very good drives) do about the same.
If you are not getting more than 20GB, ever, you might want to tear it out, and double check that the compression is enabled (physically) on the device.
It's a jumpered setting from memory.
If you want more compression, try using a user-space compression (bzip2) to compress the stream before putting it to the tape. If you are using something like 'tar' (-j flag) or 'cpio' (don't use -O, and pipe it), then you can do it easily.
Most other commercial tools allow you to use software-compression also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 02:17 AM
02-05-2003 02:17 AM
Re: How to enable compression on DAT under Linux ?
I'm definitely not getting more than 20GB - am doing uncompressed dumps which gives "end of tape detected" reliably at the ~20 GB mark.
mt compression doesn't report anything, although I've used a tool called scu and it reports 20 GB capacity.
using mt defcompression or compression with >0 args doesn't appear to do anything either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 03:11 AM
02-05-2003 03:11 AM
Re: How to enable compression on DAT under Linux ?
mt -f
It might be that your tapedrive can be accessed in a certain mode by using a device file with another minor number. (See /usr/src/linux/Documentation/devices.txt
Good luck,
Albert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 03:33 AM
02-05-2003 03:33 AM
Re: How to enable compression on DAT under Linux ?
Albert's "mt -f /dev/st0 datcompression on" gives an unknown command "datcompress" - i.e. not supported by my mt binary. The "compression" argument returns nothing just like David's.
Many "setdensity" experiments later I'm still getting "density code 0x25 (DDS-3)" from "mt status".
No minor numbered devices available in /dev or from devices.txt.
I've ended up running tar with -z but I can't span tapes like that and my Oracle database on there will only keep growing...!
I'll rip the lid off sometime and compare jumpers with another 2500SC that's running NW6.1 that I think is getting compressed.
More thoughts, anyone?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 05:09 AM
02-05-2003 05:09 AM
Re: How to enable compression on DAT under Linux ?
If the other device files are not available in /dev you can make them with mknod.
the devices.txt file where I was referring to contains:
9 char SCSI tape devices
0 = /dev/st0 First SCSI tape, mode 0
1 = /dev/st1 Second SCSI tape, mode 0
...
32 = /dev/st0l First SCSI tape, mode 1
33 = /dev/st1l Second SCSI tape, mode 1
...
64 = /dev/st0m First SCSI tape, mode 2
65 = /dev/st1m Second SCSI tape, mode 2
...
96 = /dev/st0a First SCSI tape, mode 3
97 = /dev/st1a Second SCSI tape, mode 3
...
128 = /dev/nst0 First SCSI tape, mode 0, no rewind
129 = /dev/nst1 Second SCSI tape, mode 0, no rewind
...
160 = /dev/nst0l First SCSI tape, mode 1, no rewind
161 = /dev/nst1l Second SCSI tape, mode 1, no rewind
...
192 = /dev/nst0m First SCSI tape, mode 2, no rewind
193 = /dev/nst1m Second SCSI tape, mode 2, no rewind
...
224 = /dev/nst0a First SCSI tape, mode 3, no rewind
225 = /dev/nst1a Second SCSI tape, mode 3, no rewind
...
you can see the major,minor number by ls -l
There is also a tool available (stinit) which initializes the tapedrive with the required settings.
Albert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 05:28 AM
02-05-2003 05:28 AM