Chinaunix

标题: 请问 NBU下配置robot,怎么确认SCSCI_id LUN [打印本页]

作者: xzc999    时间: 2009-05-07 11:48
标题: 请问 NBU下配置robot,怎么确认SCSCI_id LUN
http://seer.entsupport.symantec.com/docs/269490.htm
这里只说是CuAt:
name = "smc0"
attribute = "lun_id"
value = "0x1000000000000"
type = "R"
generic = "DU"
rep = "s"
nls_index = 26

From the sample output, the SCSI ID is 0x111ca and the LUN is 1. The LUN is derived from the LUN ID, by right-shifting it 48 bit.
右移48bit,但是怎么从"0x1000000000000"到1
我还是没搞明白!
作者: hovercat    时间: 2009-05-07 12:00
操作系统和带库型号报上来,大家看看。
作者: xzc999    时间: 2009-05-07 12:28
Index DriveName              DrivePath                Type    Shared   Status
***** *********              **********               ****    ******   ******
  0   IBMDDSGen51            /dev/rmt0.1              pcd      No       DOWN
  1   IBMULT3580-TD30        /dev/rmt1.1              hcart3   No       UP
        TLD(0) Definition       DRIVE=1
Currently defined robotics are:
  TLD(0)     robot control host = backup
             volume database host = backup
Standalone drive volume database host = backup
Press any key to continue
root@a:/veritas/openv/volmgr/bin#./robtest
No locally-controlled robots with test utilities are configured
root@a:/veritas/openv/volmgr/bin#lsdev -Cs fcp
dac0 Available 04-08-02 1722-600 (600) Disk Array Controller
dac1 Available 05-08-02 1722-600 (600) Disk Array Controller
rmt1 Defined   05-08-02 IBM 3580 Ultrium Tape Drive (FCP)
smc0 Defined   05-08-02 IBM 3582 Library Medium Changer (FCP)
root@a:/veritas/openv/volmgr/bin#lsdev -Cs scsi
hdisk0 Available 09-08-00-5,0  16 Bit LVD SCSI Disk Drive
hdisk1 Available 09-08-00-8,0  16 Bit LVD SCSI Disk Drive
rmt0   Available 09-08-00-6,0  LVD SCSI 4mm Tape Drive
ses0   Available 09-08-00-15,0 SCSI Enclosure Services Device
root@a:/veritas/openv/volmgr/bin#lsdev -C |grep SCSI
fscsi0     Available 04-08-02      FC SCSI I/O Controller Protocol Device
fscsi1     Available 05-08-02      FC SCSI I/O Controller Protocol Device
hdisk0     Available 09-08-00-5,0  16 Bit LVD SCSI Disk Drive
hdisk1     Available 09-08-00-8,0  16 Bit LVD SCSI Disk Drive
iscsi0     Available               iSCSI Protocol Device
rmt0       Available 09-08-00-6,0  LVD SCSI 4mm Tape Drive
scsi0      Available 09-08-00      PCI-X Dual Channel Ultra320 SCSI Adapter bus
scsi1      Available 09-08-01      PCI-X Dual Channel Ultra320 SCSI Adapter bus
ses0       Available 09-08-00-15,0 SCSI Enclosure Services Device
sisscsia0  Available 09-08         PCI-X Dual Channel Ultra320 SCSI Adapter
作者: 无牙    时间: 2009-05-07 15:53
用odmget 看一下smc0的值,再建就行了。创建前要把smc0先删除了。
作者: wolfheader    时间: 2009-05-07 16:05
看我的blog,哈哈

惭愧,我复习了一下,也没说详细,hoho
作者: wolfheader    时间: 2009-05-07 16:31
不是右移

by right shifting it 48 bits.

应该是从右遍起,数48bits

看一下windows计算器的help

In the hexadecimal, binary, and octal number systems, Calculator displays only the lower digits of an answer when the result has more digits than your display size allows. This behavior mimics the way calculations work in computers.

For the hexadecimal number system, QWORD results can contain up to 16 digits (64 bits), DWORD results can contain up to eight digits (32 bits), Word results can contain up to four digits (16 bits), and Byte results can contain up to two digits (8 bits).

For example, using the hexadecimal number system displayed as Word, the largest result you can generate is FFFF (equal to 65535 in decimal). If you double that number (FFFFx2), the answer is 1FFFE. This contains five digits, so Calculator will display only the lower four digits of the answer: FFFE.

For the decimal number system, the three display sizes available are Degrees, Radians, and Grads.


我猜

大概意思是从右边去掉12个字符(48bits)

我纯粹瞎猜,没见过LUN超过1的例子,如果有大数的话,可能需要去掉48bits,12位后再转换进制,汇编没学好,希望猜的对
作者: 无牙    时间: 2009-05-07 17:09
我理解也是这个意思。
作者: xzc999    时间: 2009-05-07 19:13
odmget 出来的LUN id是个value = "0x1000000000000"这样的值
我现在要手动添加robot
mkdev -c media_changer -s fcp -t ovpass -p fscsi0 -w 0x111ca,1
这个地方1是怎么出来的,很是头痛呀
作者: yddll    时间: 2009-05-07 19:17
0x是16进制,shifting的48位是说的2进制,所以这里实际是12,这里lunid实际是0x1
作者: xzc999    时间: 2009-05-07 20:14
check out

untitled.JPG (34.96 KB, 下载次数: 58)

untitled.JPG

作者: david5337    时间: 2009-05-07 21:35
了解到了
作者: fishinthesea    时间: 2009-05-08 17:40
标题: 回复 #1 xzc999 的帖子
0x开头表示16进制,所以0x1 0000 0000 0000 每一位都是二进制的4位,这样右移48bit即右移48位,得到1
作者: 无牙    时间: 2009-05-08 18:15
原帖由 fishinthesea 于 2009-5-8 17:40 发表
0x开头表示16进制,所以0x1 0000 0000 0000 每一位都是二进制的4位,这样右移48bit即右移48位,得到1


描述的贼清楚!
作者: xzc999    时间: 2009-05-08 19:53
多谢各位大大
现在搞清楚了!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2