免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3394 | 回复: 7
打印 上一主题 下一主题

如何设置tape device block size [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-23 13:25 |只看该作者 |倒序浏览
如何设置tape device block size,是在st.conf中配置什么参数吗?EBS安装手册中说要把tape device block size mode设置成variable,不知道怎么设置?

论坛徽章:
0
2 [报告]
发表于 2006-01-07 02:59 |只看该作者
See man st for details.

You need to set "ST_VARIABLE (x0001)" option on for variable block size setting in your "data-property-name" in your st.conf.

Using the example 1 in "st" manual page as an example:
tape-config-list =  "Magic DAT", "Magic 4mm Helical Scan", "magic-data";
magic-data       = 1,0x34,1024,0x1639,4,0,0x8c,0x8c,0x8c,3;

The formal syntax for data-property-name called as "magic-data" here is:
<data-property-name> = <version>, <type>, <bsize>, <options>, <number of densities>, <density> [, <density>*], <default-density>;

Here, 0x1639 in magic-data is the options set.  

According  the flag define in man st,  <options> is a bit  pattern  representing the devices,  as defined in /usr/include/sys/scsi/targets/stdef.h.  Valid flags for tape configuration are:
     ST_VARIABLE                            0x0001
     ST_QIC                                 0x0002
     ST_REEL                                0x0004
     ST_BSF                                 0x0008
     ST_BSR                                 0x0010
     ST_LONG_ERASE                          0x0020
     ST_AUTODEN_OVERRIDE                    0x0040
     ST_NOBUF                               0x0080
     ST_KNOWS_EOD                           0x0200
     ST_UNLOADABLE                          0x0400
     ST_SOFT_ERROR_REPORTING                0x0800
     ST_LONG_TIMEOUTS                       0x1000
     ST_BUFFERED_WRITES                     0x4000
     ST_NO_RECSIZE_LIMIT                    0x8000
     ST_MODE_SEL_COMP                       0x10000
     ST_NO_RESERVE_RELEASE                  0x20000
     ST_READ_IGNORE_ILI                     0x40000
     ST_READ_IGNORE_EOFS                    0x80000
     ST_SHORT_FILEMARKS                     0x100000
     ST_EJECT_TAPE_ON_CHANGER_FAILURE       0x200000
     ST_RETRY_ON_RECOVERED_DEFERRED_ERROR   0x400000


So, we know the following flags are set in "options" (0x1639) for magic-data:
ST_VARIABLE                        0x0001
ST_BSF                                 0x0008
ST_BSR                                 0x0010
ST_LONG_ERASE                  0x0020
ST_KNOWS_EOD                  0x0200
ST_UNLOADABLE                  0x0400
ST_LONG_TIMEOUTS            0x1000
-----------------------------------------------
+                                          0x1639

In this example, ST_VARIABLE flag is turned on.

论坛徽章:
0
3 [报告]
发表于 2006-01-07 03:58 |只看该作者
st.conf Modifications Are Unnecessary for Sun Tape Products.

Please refer to infodoc 77027.

论坛徽章:
0
4 [报告]
发表于 2007-08-21 18:06 |只看该作者
how i know the data compress is on with this configuration
ST_MODE_SEL_COMP                       0x10000    >>>???

my tape device is "HP C7438A" , and i am using DAT tape . is supporsed can go up to 72 GB , but i  somehow don't get compressed dump  (72 GB i guess ) .

论坛徽章:
0
5 [报告]
发表于 2007-08-21 22:11 |只看该作者
solaris有缺省的备份块大小,可以使用tar cvfb 里面的这个b选项来控制大小,尤其是备份的磁带需要到其他系统上读的时候更应该强制设置b选项,否则读不出来。
solaris的块好像不支持varible,从没有设置过。

论坛徽章:
0
6 [报告]
发表于 2007-08-22 08:34 |只看该作者
自己设置有什么好处?

论坛徽章:
0
7 [报告]
发表于 2007-08-22 08:56 |只看该作者
st下一般是增加你的磁带驱动器的.有的block size有些在主机上不能修改的.

论坛徽章:
0
8 [报告]
发表于 2007-08-22 15:53 |只看该作者
直接dd 之
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP