免费注册 查看新帖 |

Chinaunix

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

[Veritas NBU] Solaris环境下驱动器的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-10-19 15:56 |只看该作者 |倒序浏览
本帖最后由 garfield_xh 于 2011-10-19 16:01 编辑

hi,各位
我的环境是NBU6.5.4,SOLARIS10_X86环境,我有这样一个问题;
我们更换了它所连接的物理带库(直连方式,ADIC Scalar i500),是的,没错,换了整个带库,成功了识别到了一个驱动器,机械手,新建了一个STU,备向磁带的各个任务均正常;

问题是今天又添加了一个驱动器,扫描后能识别到,但是其状态始终是down的,无法用它来进行备份.......

请大家给指点下?我不知道从哪查起呢 ?

我两次均使用的相同的方法;
nbu_master@root# cfgadm -al |egrep "c2|c3"
c2                             fc-private   connected    configured   unknown
c2::500308c099def001           tape         connected    configured   unknown
c3                             fc-private   connected    configured   unknown
c3::500308c099def005           tape         connected    configured   unknown

nbu_master@root# cat /kernel/drv/sg.conf  
# Configuration file for SCSA Generic.
#
name="sg" class="scsi" target=0 lun=0;
name="sg" class="scsi" target=0 lun=1;
name="sg" class="scsi" target=1 lun=0;
name="sg" class="scsi" target=1 lun=1;
name="sg" class="scsi" target=2 lun=0;
name="sg" class="scsi" target=2 lun=1;
name="sg" class="scsi" target=3 lun=0;
name="sg" class="scsi" target=3 lun=1;
name="sg" class="scsi" target=4 lun=0;
name="sg" class="scsi" target=4 lun=1;
name="sg" class="scsi" target=5 lun=0;
name="sg" class="scsi" target=5 lun=1;
name="sg" class="scsi" target=6 lun=0;
name="sg" class="scsi" target=6 lun=1;
name="sg" parent="fp" target=1 lun=0 fc-port-wwn="500308c099def005";
name="sg" parent="fp" target=1 lun=1 fc-port-wwn="500308c099def005";
name="sg" parent="fp" target=0 lun=0 fc-port-wwn="500308c099def001";
name="sg" parent="fp" target=0 lun=1 fc-port-wwn="500308c099def001";



附:
#devfsadm
#cfgadm -al
#cfgadm -c configure Cx:wwn..
#ls /dev/rmt
#cd /usr/openv/volmgr/bin
#./sg.build all
#cp sg.conf sg.links driver
#cd driver
#rm -f /kernel/drv/sg.conf
#./sg.install

论坛徽章:
0
2 [报告]
发表于 2011-10-19 15:58 |只看该作者
或者说我还缺失了哪些步骤么?
nbu-master@root# vmoprcmd   
。。。。。
                Drive Name               Label   Ready  RecMID  ExtMID  Wr.Enbl.  Type
    Host                       DrivePath                            Status
=============================================================================
IBM.ULTRIUM-TD3.000      No      No                     No        hcart3-Clean
    sd-nbu01                   /dev/rmt/3cbn                        TLD

IBM.ULTRIUM-TD3.001      No      No                     No        hcart3
    sd-nbu01                   /dev/rmt/0cbn                        DOWN-TLD

Device MOnitor里也一样总是down的,手动up,再扫描都不管用

论坛徽章:
0
3 [报告]
发表于 2011-10-19 16:29 |只看该作者
论坛里的帖子http://bbs.chinaunix.net/viewthread.php?tid=596664里有提到solaris环境下st.conf如果写的不对,会造成驱动器始终是down的;那不确定我写的对不对哦!
st.conf里究竟应该是空格还是tab呢?

nbu_master@root# cat /kernel/drv/sg.conf
# Configuration file for SCSA Generic.
#
name="sg" class="scsi" target=0 lun=0;
name="sg" class="scsi" target=0 lun=1;
name="sg" class="scsi" target=1 lun=0;
name="sg" class="scsi" target=1 lun=1;
name="sg" class="scsi" target=2 lun=0;
name="sg" class="scsi" target=2 lun=1;
name="sg" class="scsi" target=3 lun=0;
name="sg" class="scsi" target=3 lun=1;
name="sg" class="scsi" target=4 lun=0;
name="sg" class="scsi" target=4 lun=1;
name="sg" class="scsi" target=5 lun=0;
name="sg" class="scsi" target=5 lun=1;
name="sg" class="scsi" target=6 lun=0;
name="sg" class="scsi" target=6 lun=1;
name="sg" parent="fp" target=0 lun=0 fc-port-wwn="500308c099def005";
name="sg" parent="fp" target=0 lun=1 fc-port-wwn="500308c099def005";
name="sg" parent="fp" target=0 lun=0 fc-port-wwn="500308c099def001";
name="sg" parent="fp" target=0 lun=1 fc-port-wwn="500308c099def001";

nbu_master@root# cat /kernel/drv/st.conf|grep -v "^#"|grep -vi "^$"
name="st" class="scsi" target=0 lun=0;
name="st" class="scsi" target=0 lun=1;
name="st" class="scsi" target=1 lun=0;
name="st" class="scsi" target=1 lun=1;
name="st" class="scsi" target=2 lun=0;
name="st" class="scsi" target=2 lun=1;
name="st" class="scsi" target=3 lun=0;
name="st" class="scsi" target=3 lun=1;
name="st" class="scsi" target=4 lun=0;
name="st" class="scsi" target=4 lun=1;
name="st" class="scsi" target=5 lun=0;
name="st" class="scsi" target=5 lun=1;
name="st" class="scsi" target=6 lun=0;
name="st" class="scsi" target=6 lun=1;

论坛徽章:
0
4 [报告]
发表于 2011-10-19 17:53 |只看该作者
我感觉还是st.conf的问题,我有2个不同WWN的驱动器,但是st.conf貌似没体现区别来。。。我记得有一步提醒我将生成的st.conf追加到/kernel/drv/st.conf下。。。我貌似没做。。。但现在我不知道怎么样产生正确的st.conf呢?  无牙版主。。

论坛徽章:
0
5 [报告]
发表于 2011-10-20 10:53 |只看该作者
没有人知道么。。。。。

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
6 [报告]
发表于 2011-10-20 11:05 |只看该作者
sgscan 的输出

tpautoconf -t 的输出

论坛徽章:
0
7 [报告]
发表于 2011-10-20 14:20 |只看该作者
本帖最后由 garfield_xh 于 2011-10-20 14:22 编辑

回复 6# 无牙


nbumaster@root# sgscan
/dev/sg/c0t0l0: Disk (???): "Sun     STK RAID INT"
/dev/sg/c0t1l0: Disk (???): "Sun     STK RAID INT"
/dev/sg/c0tw500308c099def001l0: Tape (/dev/rmt/0): "IBM     ULTRIUM-TD3"
/dev/sg/c0tw500308c099def005l0: Tape (/dev/rmt/3): "IBM     ULTRIUM-TD3"
/dev/sg/c0tw500308c099def005l1: Changer: "ADIC    Scalar i500"

nbumaster@root#  tpautoconf -t
TPAC60 IBM     ULTRIUM-TD3     64D0 1210114721 -1 -1 -1 -1 /dev/rmt/0cbn - -
TPAC60 IBM     ULTRIUM-TD3     81W0 1210194940 -1 -1 -1 -1 /dev/rmt/3cbn - -

另外1个驱动器可以正常备份。

nbumaster@root# vmoprcmd
........
                                    DRIVE STATUS

Drive Name               Label   Ready  RecMID  ExtMID  Wr.Enbl.  Type
    Host                       DrivePath                            Status
=============================================================================
IBM.ULTRIUM-TD3.000      Yes     Yes    000083  000083  Yes       hcart3-Clean
    sd-nbu01                   /dev/rmt/3cbn                        ACTIVE

IBM.ULTRIUM-TD3.001      No      No                     No        hcart3
    sd-nbu01                   /dev/rmt/0cbn                        DOWN-TLD

nbumaster@root# tpconfig -dev_ping -drive -path /dev/rmt/0cbn      ping没问题
Device Inquiry String: IBM     ULTRIUM-TD3     64D0
Device Serial Number: 1210114721
Default Type: 16


nbumaster@root# robtest
Configured robots with local control supporting test utilities:
  TLD(0)     robotic path = /dev/sg/c0tw500308c099def005l1

Robot Selection
---------------
  1)  TLD 0
  2)  none/quit
Enter choice: 1

Robot selected: TLD(0)   robotic path = /dev/sg/c0tw500308c099def005l1

Invoking robotic test utility:
/usr/openv/volmgr/bin/tldtest -rn 0 -r /dev/sg/c0tw500308c099def005l1

Opening /dev/sg/c0tw500308c099def005l1
MODE_SENSE complete
Enter tld commands (? returns help information)
s d
drive 1 (addr 256) access = 0 Contains Cartridge = no
Sense code = 0x83, Code qualifier = 0x4
drive 2 (addr 257) access = 0 Contains Cartridge = yes
Source address = 4116 (slot 21)
Barcode = 000083L3                        
READ_ELEMENT_STATUS complete
m s6 d1
Initiating MOVE_MEDIUM from address 4101 to 256
move_medium failed
sense key = 0x5, asc = 0x83, ascq = 0x4, UNKNOWN ERROR, KEY: 0x05, ASC: 0x83, ASCQ: 0x04

论坛徽章:
0
8 [报告]
发表于 2011-10-20 14:23 |只看该作者
用vmoprcmd -up 1 可以使其暂时看起来是UP的状态,将VERBOSE=5,然后发起一个备份任务,就会报错
01:45:45.723 [28340] <2> mount_open_media: Waiting for mount of media id 000032 (copy 1) on server sd-nbu01.
01:45:45.724 [28340] <4> create_tpreq_file: symlink to path /dev/rmt/0cbn
01:45:45.733 [28340] <2> manage_scsi_reserve: SCSI RESERVE
01:45:45.735 [28340] <4> expandpath: /usr/openv/netbackup/db/media/tpreq/drive_IBM.ULTRIUM-TD3.001
01:45:46.290 [28340] <2> tapelib: wait_for_ltid, Mount, timeout 0
01:45:51.390 [28340] <2> send_MDS_msg: OP_STATUS 0 8665 sd-nbu01 5 1 0 0 0 0 0 0 *NULL* 0
01:45:51.514 [28340] <2> send_operation_error: Decoded status = 5 from 1
01:45:51.514 [28340] <2> set_job_details: Sending Tfile jobid (13813)
01:45:51.514 [28340] <2> set_job_details: LOG 1319017551 16 bptm 28340 error requesting media, TpErrno = Robot operation failed

01:45:51.514 [28340] <2> set_job_details: Done
01:45:51.514 [28340] <4> db_error_add_to_file: error requesting media, TpErrno = Robot operation failed
01:45:51.520 [28340] <16> mount_open_media: error requesting media, TpErrno = Robot operation failed
01:45:51.520 [28340] <4> create_tpreq_file: symlink to path /dev/rmt/0cbn
01:45:51.532 [28340] <2> manage_scsi_reserve: SCSI RELEASE
01:45:51.534 [28340] <2> drivename_write: Called with mode 1
01:45:51.534 [28340] <2> drivename_unlock: unlocked
01:45:51.534 [28340] <2> drivename_close: Called for file IBM.ULTRIUM-TD3.001
01:45:51.534 [28340] <2> set_job_details: Sending Tfile jobid (13813)
01:45:51.534 [28340] <2> set_job_details: LOG 1319017551 8 bptm 28340 media id 000032 load operation reported an error

01:45:51.534 [28340] <2> set_job_details: Done
01:45:51.534 [28340] <4> db_error_add_to_file: media id 000032 load operation reported an error
01:45:51.543 [28340] <8> write_backup: media id 000032 load operation reported an error
01:45:51.543 [28340] <2> nbjm_media_request: Passing job control to NBJM, type FAIL/1
01:45:51.543 [28340] <2> nbjm_media_request: old_media_id = 000032, media_id = NULL

论坛徽章:
0
9 [报告]
发表于 2011-10-20 18:31 |只看该作者
我删除了drive,reboot -- -r 后重新再配置 robtest还是失败;
nbumaster# cat /kernel/drv/st.conf
name="st" class="scsi" target=0 lun=0;
name="st" class="scsi" target=0 lun=1;
name="st" class="scsi" target=1 lun=0;
name="st" class="scsi" target=1 lun=1;
name="st" class="scsi" target=2 lun=0;
name="st" class="scsi" target=2 lun=1;
name="st" class="scsi" target=3 lun=0;
name="st" class="scsi" target=3 lun=1;
name="st" class="scsi" target=4 lun=0;
name="st" class="scsi" target=4 lun=1;
name="st" class="scsi" target=5 lun=0;
name="st" class="scsi" target=5 lun=1;
name="st" class="scsi" target=6 lun=0;
name="st" class="scsi" target=6 lun=1;
nbumaster# cat /kernel/drv/sg.conf
# Configuration file for SCSA Generic.
#
name="sg" class="scsi" target=0 lun=0;
name="sg" class="scsi" target=0 lun=1;
name="sg" class="scsi" target=1 lun=0;
name="sg" class="scsi" target=1 lun=1;
name="sg" class="scsi" target=2 lun=0;
name="sg" class="scsi" target=2 lun=1;
name="sg" class="scsi" target=3 lun=0;
name="sg" class="scsi" target=3 lun=1;
name="sg" class="scsi" target=4 lun=0;
name="sg" class="scsi" target=4 lun=1;
name="sg" class="scsi" target=5 lun=0;
name="sg" class="scsi" target=5 lun=1;
name="sg" class="scsi" target=6 lun=0;
name="sg" class="scsi" target=6 lun=1;
name="sg" parent="fp" target=0 lun=0 fc-port-wwn="500308c099def005";
name="sg" parent="fp" target=0 lun=1 fc-port-wwn="500308c099def005";
name="sg" parent="fp" target=0 lun=0 fc-port-wwn="500308c099def001";
name="sg" parent="fp" target=0 lun=1 fc-port-wwn="500308c099def001";

这新添加的驱动器是从其他带库上拔过来的,或许不是因为配置的问题,我感觉配置没问题啊。。。
不知道和清洁、驱动器微码是否相关?

论坛徽章:
0
10 [报告]
发表于 2011-10-20 22:46 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP