Discussion:
Backup database to tape in compressed mode
(too old to reply)
unknown
2008-05-19 04:59:41 UTC
Permalink
Dear All,

Please let me know is it possible to dump database to tape
in compressed mode.

I used following syntax to dump to tape

dump database <dbname> to 'compress::2::tapedump1' at
<BACKUPSERVER> capacity=40960000 with init

execution of above syntax throws following error

The 'WriteFile' call failed for device '\\.\TAPE0' with
error number 87 (The parameter is incorrect). Refer to your
operating system documentation for further details.

Can anyone suggest how to dump and load database in
compressed mode to Tape


Thank you in advance.
A. M.
2008-05-19 07:36:43 UTC
Permalink
Post by unknown
Please let me know is it possible to dump database to tape
in compressed mode.
I used following syntax to dump to tape
dump database <dbname> to 'compress::2::tapedump1' at
<BACKUPSERVER> capacity=40960000 with init
execution of above syntax throws following error
The 'WriteFile' call failed for device '\\.\TAPE0' with
error number 87 (The parameter is incorrect). Refer to your
operating system documentation for further details.
Can anyone suggest how to dump and load database in
compressed mode to Tape
As you've noticed, that compression syntax doesn't
work. The newer "with compression = N" might work.
I haven't tested that so I can't say for certain
but, because it uses a different compression
method, it might. A simple test will tell you
quickly enough.

As a last resort, you can also use the compressed
tape device (the device driver tells the tape
device to use internal compression. This isn't
very good. No better than 2 to 1 compression at
the best of times).

-am © MMVIII
unknown
2008-05-20 05:26:23 UTC
Permalink
dump database <dbname> to tapedump1 with compression=2

The 'WriteFile' call failed for device '\\.\TAPE0' with
error number 87 (The parameter is incorrect). Refer to your
operating system documentation for further details

Can anyone tried dumping database in compressed format to
Tape?
Post by A. M.
Post by unknown
Please let me know is it possible to dump database to
tape in compressed mode.
I used following syntax to dump to tape
dump database <dbname> to 'compress::2::tapedump1' at
<BACKUPSERVER> capacity=40960000 with init
execution of above syntax throws following error
The 'WriteFile' call failed for device '\\.\TAPE0' with
error number 87 (The parameter is incorrect). Refer to
your operating system documentation for further details.
Can anyone suggest how to dump and load database in
compressed mode to Tape
As you've noticed, that compression syntax doesn't
work. The newer "with compression = N" might work.
I haven't tested that so I can't say for certain
but, because it uses a different compression
method, it might. A simple test will tell you
quickly enough.
As a last resort, you can also use the compressed
tape device (the device driver tells the tape
device to use internal compression. This isn't
very good. No better than 2 to 1 compression at
the best of times).
-am © MMVIII
Manish Negandhi
2008-05-20 07:45:19 UTC
Permalink
Post by unknown
dump database <dbname> to tapedump1 with compression=2
 The 'WriteFile' call failed for device '\\.\TAPE0' with
error number 87 (The parameter is incorrect). Refer to your
operating system documentation for further details
Can anyone tried dumping database in compressed format to
Tape?
Can you post your ASE version and OS version ?
Also just to eliminate any other filename types of issues, try the
same command without using compress on the tape, does it work fine ?

-HTH
Manish Negandhi
[TeamSybase]
unknown
2008-05-20 09:09:45 UTC
Permalink
Hi Manish,

Sybase Version is Adaptive Server Enterprise/12.5.3
Operating System Windows Server 2003

without compress mode the backup works fine

Syntax used for without compress to tape :

dump database master to tapedump1 with init

Syntax used with compressed mode to tape :

A) First Attempt
dump database master to tapedump1 with compression=2

Following error shown
The 'WriteFile' call failed for device '\\.\TAPE0' with
error number 87 (The parameter is incorrect).

B) Second Attempt
dump database master to 'compress::2::tapedump1' with init

This works fine but does not dump to tape!!!!

Backup Server: 4.132.1.1: Attempting to open byte stream
device: 'compress::2::tapedump1::00'
Server Message: Number 602801, Severity 1
Server 'DEVELOPMENT01_BS', Procedure 'bs_write_header', Line
0:
Backup Server: 6.28.1.1: Dumpfile name 'master081410BB8B '
section number 1 mounted on byte stream
'compress::2::tapedump1::00'

Can you explain this?
Post by Manish Negandhi
Post by unknown
dump database <dbname> to tapedump1 with compression=2
 The 'WriteFile' call failed for device '\\.\TAPE0'
with
Post by Manish Negandhi
Post by unknown
error number 87 (The parameter is incorrect). Refer to
your operating system documentation for further details
Can anyone tried dumping database in compressed format
to Tape?
Can you post your ASE version and OS version ?
Also just to eliminate any other filename types of issues,
try the same command without using compress on the tape,
does it work fine ?
-HTH
Manish Negandhi
[TeamSybase]
unknown
2008-05-20 10:55:17 UTC
Permalink
Instead of the tapedimp1 reference can you get the backup to work with the
fullpath in the dump command string?
--
Cory Sane
[Member of TeamSybase]
Certified Sybase Associate DBA for ASE 15.0
not a Sybase Inc. employee
<Reliance> wrote in message news:***@sybase.com...
Hi Manish,

Sybase Version is Adaptive Server Enterprise/12.5.3
Operating System Windows Server 2003

without compress mode the backup works fine

Syntax used for without compress to tape :

dump database master to tapedump1 with init

Syntax used with compressed mode to tape :

A) First Attempt
dump database master to tapedump1 with compression=2

Following error shown
The 'WriteFile' call failed for device '\\.\TAPE0' with
error number 87 (The parameter is incorrect).

B) Second Attempt
dump database master to 'compress::2::tapedump1' with init

This works fine but does not dump to tape!!!!

Backup Server: 4.132.1.1: Attempting to open byte stream
device: 'compress::2::tapedump1::00'
Server Message: Number 602801, Severity 1
Server 'DEVELOPMENT01_BS', Procedure 'bs_write_header', Line
0:
Backup Server: 6.28.1.1: Dumpfile name 'master081410BB8B '
section number 1 mounted on byte stream
'compress::2::tapedump1::00'

Can you explain this?
Post by Manish Negandhi
Post by unknown
dump database <dbname> to tapedump1 with compression=2
The 'WriteFile' call failed for device '\\.\TAPE0'
with
Post by Manish Negandhi
Post by unknown
error number 87 (The parameter is incorrect). Refer to
your operating system documentation for further details
Can anyone tried dumping database in compressed format
to Tape?
Can you post your ASE version and OS version ?
Also just to eliminate any other filename types of issues,
try the same command without using compress on the tape,
does it work fine ?
-HTH
Manish Negandhi
[TeamSybase]
unknown
2008-05-20 11:42:30 UTC
Permalink
Following command Tried as per suggestion
dump database master to 'compress::2::\\.\TAPE0' with init

Error Msg

Backup Server: 4.132.1.1: Attempting to open byte stream
device: 'compress::2::\\.\TAPE0::00'
Server Message: Number 412402, Severity 2
Server 'DEVELOPMENT01_BS', Procedure 'bs_write_header', Line
0:
Backup Server: 4.124.2.1: Archive API error for
device='compress::2::\\.\TAPE0::00': Vendor application
name=Compress API, Library version=1, API
routine=syb_open(), Message=syb_open: open() error=22,
msg=Invalid argument
Post by unknown
Instead of the tapedimp1 reference can you get the backup
to work with the fullpath in the dump command string?
--
Cory Sane
[Member of TeamSybase]
Certified Sybase Associate DBA for ASE 15.0
not a Sybase Inc. employee
Sybase Version is Adaptive Server Enterprise/12.5.3
Operating System Windows Server 2003
without compress mode the backup works fine
dump database master to tapedump1 with init
A) First Attempt
dump database master to tapedump1 with compression=2
Following error shown
The 'WriteFile' call failed for device '\\.\TAPE0' with
error number 87 (The parameter is incorrect).
B) Second Attempt
dump database master to 'compress::2::tapedump1' with
init
This works fine but does not dump to tape!!!!
Backup Server: 4.132.1.1: Attempting to open byte stream
device: 'compress::2::tapedump1::00'
Server Message: Number 602801, Severity 1
Server 'DEVELOPMENT01_BS', Procedure 'bs_write_header',
Backup Server: 6.28.1.1: Dumpfile name 'master081410BB8B '
section number 1 mounted on byte stream
'compress::2::tapedump1::00'
Can you explain this?
Post by unknown
dump database <dbname> to tapedump1 with compression=2
The 'WriteFile' call failed for device '\\.\TAPE0'
with
Post by unknown
error number 87 (The parameter is incorrect). Refer to
your operating system documentation for further
details >
Post by unknown
Can anyone tried dumping database in compressed format
to Tape?
Can you post your ASE version and OS version ?
Also just to eliminate any other filename types of
issues, try the same command without using compress on
the tape, does it work fine ?
-HTH
Manish Negandhi
[TeamSybase]
Mark A. Parsons
2008-05-20 11:59:27 UTC
Permalink
When ASE is initially installed a couple bogus tape dump devices are defined in sysdevices (sp_helpdevice).

I usually drop these (since I don't use them) and as such I don't recall the exact definition of said devices.

Have you redefined the 'tapedump1' device? If not, then I suspect your problem is the bogus definition for tapedump1.

Can you provide the output for 'sp_helpdevice tapedump1'?
Post by unknown
Hi Manish,
Sybase Version is Adaptive Server Enterprise/12.5.3
Operating System Windows Server 2003
without compress mode the backup works fine
dump database master to tapedump1 with init
A) First Attempt
dump database master to tapedump1 with compression=2
Following error shown
The 'WriteFile' call failed for device '\\.\TAPE0' with
error number 87 (The parameter is incorrect).
So 'tapedump1' appears to be defined as '\\.\TAPE0' ... probably not a valid device on your system, no?
Post by unknown
B) Second Attempt
dump database master to 'compress::2::tapedump1' with init
This works fine but does not dump to tape!!!!
OK, it works, but do you get a dump file and if so where is the dump file placed ($SYBASE\ASE*\install?,
c:\windows\system32?) and what is it's name (tapedump1? TAPE0?)?
Post by unknown
Backup Server: 4.132.1.1: Attempting to open byte stream
device: 'compress::2::tapedump1::00'
Server Message: Number 602801, Severity 1
Server 'DEVELOPMENT01_BS', Procedure 'bs_write_header', Line
Backup Server: 6.28.1.1: Dumpfile name 'master081410BB8B '
section number 1 mounted on byte stream
'compress::2::tapedump1::00'
Can you explain this?
While you could look at redefining the 'tapedump1' device (sp_dropdevice, sp_addevice, sp_helpdevice), you can also
directly reference the tape device using its OS path/name in the dump command, eg,

dump database master to j:\tape1


NOTE: I have no idea how a tape device would be referenced in the Windows OS. Is it as easy as using the same name
that shows up in the explorer window for the device?
Mark A. Parsons
2008-05-20 12:19:08 UTC
Permalink
OK, found the default dump devices in a client's Windows dataserver:

1> sp_helpdevice
2> go
device_name physical_name description
-------------- -------------- -----------------------------------------------
tapedump1 \\.\TAPE0 disk, dump device
tapedump2 \\.\TAPE1 tape, 625 MB, dump device

The device_name is the logical name for a physical dump device. device_name is referenced in 'dump' and 'load'
commands. The dataserver will look for device_name's in the 'dump' command and if it finds one will replace the
reference in the 'dump' command with it's associated physical_name value.

NOTE: The value in device_name can be anything you want (eg, cookie_dough, sushi, etc).

The physical_name is the physical name of the dump device and should reference a valid location for a file (disk or
tape) in your OS. The values listed above (in the default dump devices provided at ASE creation time) are typically
bogus locations on most (all?) OS's.

The description is automatically generated by Sybase based on the arguments provided to sp_addumpdevice

---------------------

In your case you're referencing a bogus definition for 'tapedump1'.

Also notice that 'tapedump1' has been defined as a disk dump device ... which may be causing heartburn for Sybase if
it's trying to issue tape-related commands to what it expects is a disk device.

I'd suggest dropping 'tapedump1' (and 'tapedump2'), and then redefine them to point at valid dump devices in your OS.

Alternatively, skip the creation/use of dump devices and just reference them directly in your 'dump' (and 'load') commands.
Post by Mark A. Parsons
When ASE is initially installed a couple bogus tape dump devices are
defined in sysdevices (sp_helpdevice).
I usually drop these (since I don't use them) and as such I don't recall
the exact definition of said devices.
Have you redefined the 'tapedump1' device? If not, then I suspect your
problem is the bogus definition for tapedump1.
Can you provide the output for 'sp_helpdevice tapedump1'?
Post by unknown
Hi Manish,
Sybase Version is Adaptive Server Enterprise/12.5.3
Operating System Windows Server 2003
without compress mode the backup works fine
dump database master to tapedump1 with init
A) First Attempt
dump database master to tapedump1 with compression=2
Following error shown
The 'WriteFile' call failed for device '\\.\TAPE0' with
error number 87 (The parameter is incorrect).
So 'tapedump1' appears to be defined as '\\.\TAPE0' ... probably not a
valid device on your system, no?
Post by unknown
B) Second Attempt
dump database master to 'compress::2::tapedump1' with init
This works fine but does not dump to tape!!!!
OK, it works, but do you get a dump file and if so where is the dump
file placed ($SYBASE\ASE*\install?, c:\windows\system32?) and what is
it's name (tapedump1? TAPE0?)?
Post by unknown
Backup Server: 4.132.1.1: Attempting to open byte stream
device: 'compress::2::tapedump1::00'
Server Message: Number 602801, Severity 1
Server 'DEVELOPMENT01_BS', Procedure 'bs_write_header', Line
Backup Server: 6.28.1.1: Dumpfile name 'master081410BB8B '
section number 1 mounted on byte stream
'compress::2::tapedump1::00'
Can you explain this?
While you could look at redefining the 'tapedump1' device
(sp_dropdevice, sp_addevice, sp_helpdevice), you can also directly
reference the tape device using its OS path/name in the dump command, eg,
dump database master to j:\tape1
NOTE: I have no idea how a tape device would be referenced in the
Windows OS. Is it as easy as using the same name that shows up in the
explorer window for the device?
A. M.
2008-05-20 13:40:29 UTC
Permalink
Post by unknown
dump database <dbname> to tapedump1 with compression=2
The 'WriteFile' call failed for device '\\.\TAPE0' with
error number 87 (The parameter is incorrect). Refer to your
operating system documentation for further details
OK, it looks like that isn't going to work either
(I suspected it might because the compression routines
were different but obviously not different enough).
I gather that TAPE0 is a valid tape device on your OS.
Does your tape device support native compression?
Post by unknown
Can anyone tried dumping database in compressed format to
Tape?
Like I mentioned before, the last time I tried it,
with the old compress syntax, it didn't work.

Your only other alternative is to do compressed
dumps to disk and then archive them to tape. This
also means doing the reverse to restore them.

-am © MMVIII

Loading...