dump database shop to "compress::6::/dev/nst0" with init
执行后显示备份成功,从日志里也反映出来:
Aug 27 18:34:27 2006: Backup Server: 4.132.1.1: Attempting to open byte stream device: 'compress::6::/dev/nst0::00'
Aug 27 18:34:27 2006: Backup Server: 6.28.1.1: Dumpfile name 'shop0623910532 ' section number 1 mounted on byte stream
1> load database shop from "compress::6::/dev/nst0"
2> go
Backup Server session id is: 5. Use this value when executing the
'sp_volchanged' system stored procedure after fulfilling any volume change
request from the Backup Server.
Backup Server: 4.132.1.1: Attempting to open byte stream device:
'compress::6::/dev/nst0::00'
Backup Server: 6.28.1.1 : Dumpfile name 'shop0623910532 ' section number 1
mounted on byte stream 'compress::6::/dev/nst0::00'
Backup Server: 4.124.2.1: Archive API error for
device='compress::6::/dev/nst0::00': Vendor application name=Compress API,
Library version=1, API routine=syb_read(), Message=
Msg 8009, Level 16, State 1:
Server 'shopdb', Line 1:
Error encountered by Backup Server. Please refer to Backup Server messages for
details.
1> Aug 31 23:48:30 2006 Backup Server: 6.32.2.3: compress::6::/dev/nst0::00: vol
ume not valid or not requested (server: , session id: 5.)
Aug 31 23:48:30 2006 Backup Server: 1.14.2.4: Unrecoverable I/O or volume error.
This DUMP or LOAD session must exit.
1> load database shop from "compress::/dev/nst0"
2> go
Backup Server session id is: 14. Use this value when executing the
'sp_volchanged' system stored procedure after fulfilling any volume change
request from the Backup Server.
Backup Server: 4.132.1.1: Attempting to open byte stream device:
'compress::/dev/nst0::00'
Backup Server: 6.28.1.1: Dumpfile name 'shop0623910532 ' section number 1
mounted on byte stream 'compress::/dev/nst0::00'
Backup Server: 4.124.2.1: Archive API error for
device='compress::/dev/nst0::00': Vendor application name=Compress API, Library
version=1, API routine=syb_read(), Message=
Msg 8009, Level 16, State 1:
Server 'shopdb', Line 2:
Error encountered by Backup Server. Please refer to Backup Server messages for
details.
1> Sep 1 16:37:37 2006 Backup Server: 6.32.2.3: compress::/dev/nst0::00: volume
not valid or not requested (server: , session id: 14.)
Sep 1 16:37:37 2006 Backup Server: 1.14.2.4: Unrecoverable I/O or volume error.
This DUMP or LOAD session must exit.作者: fieldchen 时间: 2006-09-03 14:28
因为磁带自身就带压缩的了,所以不能加压缩参数。只要在dump的时候把CAPACITY值扩大一些就可以了,因为IBM磁带机压缩后可以放40G的东西,试试作者: RS9000 时间: 2006-09-04 10:09
楼主搞定了美作者: sigposson 时间: 2006-09-04 15:57 标题: 被迫用其它方式 最后不用sybase的load命令了,直接用
mt -f /dev/nst0 fsf 1 (跳过master的备份文件)
dd if=/dev/nst0 of=/shop.dump bs=512k