The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
Подключение ленточного накопителя HP MSL 2024 по fibre channel , !*! sergicus, 22-Ноя-17, 10:55  [смотреть все]
Вот у меня какая проблема - мне нужно подключить по fibre channel ленточный накопитель к серверу на freebsd 11.1

У меня есть fg карта Qlogic ISP 2532   и ленточный накопитель HP MSL 2024
Я установил эту карточку в сервер, подключил оптическим  патчкордом к ленточному накопителю.

пересобрал ядро  с опциями

device         isp
device         ispfw
options        ISP_TARGET_MODE

Вижу сетевая карта видна

dmesg | grep -i isp
isp0: <Qlogic ISP 2532 PCI FC-AL Adapter> port 0x2000-0x20ff mem 0xdfa00000-0xdfa03fff,0xdf900000-0xdf9fffff irq 16 at device 0.0 on pci2

Запускаю
[root@bareos /usr/ports/sysutils/pciutils]# ctladm port -l
Port Online Frontend Name     pp vp
0    NO     camsim   camsim   0  0  naa.5000000988d59b01
1    YES    ioctl    ioctl    0  0
2    YES    tpc      tpc      0  0
3    NO     camtgt   isp0     0  0


[root@bareos /usr/ports/sysutils/pciutils]# ctladm devlist -v
LUN Backend       Size (Blocks)   BS Serial Number    Device ID
[root@bareos /usr/ports/sysutils/pciutils]#


[root@bareos /usr/ports/sysutils/pciutils]# sysctl dev.isp.
dev.isp.0.use_gff_id: 1
dev.isp.0.use_gft_id: 1
dev.isp.0.topo: 0
dev.isp.0.loopstate: 0
dev.isp.0.fwstate: 0
dev.isp.0.linkstate: 0
dev.isp.0.speed: 0
dev.isp.0.role: 0
dev.isp.0.gone_device_time: 30
dev.isp.0.loop_down_limit: 60
dev.isp.0.wwpn: 5764963215614133682
dev.isp.0.wwnn: 5764963215614133683
dev.isp.0.%parent: pci2
dev.isp.0.%pnpinfo: vendor=0x1077 device=0x2532 subvendor=0x103c subdevice=0x3262 class=0x0c0400
dev.isp.0.%location: slot=0 function=0 dbsf=pci0:16:0:0 handle=\_SB_.PCI0.PEX1.PXS1
dev.isp.0.%driver: isp
dev.isp.0.чsc: Qlogic ISP 2532 PCI FC-AL Adapter
dev.isp.%parent:
[root@bareos /usr/ports/sysutils/pciutils]#


Я не понимаю что делать дальше?? ПОДСКАЖИТЕ

  • Подключение ленточного накопителя HP MSL 2024 по fibre channel , !*! sergicus, 14:51 , 23-Ноя-17 (1)
    Частично разобрался

    После долгих поисков нашел и прописал

    hint.isp.0.role="2"  в     /boot/device.hints

    Перегрузил и логах появилось

    [root@bareos /home/serge]# dmesg | grep -i isp
    isp0: <Qlogic ISP 2532 PCI FC-AL Adapter> port 0x2000-0x20ff mem 0xdfa00000-0xdfa03fff,0xdf900000-0xdf9fffff irq 16 at device 0.0 on pci2
    isp0: Chan 0 setting role to 0x2
    ch0 at isp0 bus 0 scbus0 target 0 lun 1
    sa0 at isp0 bus 0 scbus0 target 0 lun 0

    Т.е появились устройства /dev/nsa0   /dev/sa0    /dev/esa0  

    Потом вводил
    [root@bareos /home/serge]# ctladm port -l
    Port Online Frontend Name     pp vp
    0    NO     camsim   camsim   0  0  naa.500000013145ef01
    1    YES    ioctl    ioctl    0  0
    2    YES    tpc      tpc      0  0
    3    NO     camtgt   isp0     0  0

    [root@bareos /home/serge]# ctladm port -o on -t fc
    Front End Ports enabled


    [root@bareos /home/serge]# ctladm port -l
    Port Online Frontend Name     pp vp
    0    NO     camsim   camsim   0  0  naa.500000013145ef01
    1    YES    ioctl    ioctl    0  0
    2    YES    tpc      tpc      0  0
    3    YES    camtgt   isp0     0  0  naa.5001438021dfc5b2

    Вот что тотолько не могу до них достучатся

    [root@bareos /home/serge]# mt -f /dev/esa0 status
    mt: /dev/esa0: Input/output error
    [root@bareos /home/serge]# mt -f /dev/sa0 status
    mt: /dev/sa0: Input/output error
    [root@bareos /home/serge]# mt -f /dev/nsa0 status
    mt: /dev/nsa0: Input/output error


    Что посоветуете ????

    • Подключение ленточного накопителя HP MSL 2024 по fibre channel , !*! eRIC, 20:01 , 23-Ноя-17 (2)
      > [root@bareos /home/serge]# ctladm port -o on -t fc
      > Front End Ports enabled

      хорошо что во второй раз догадались включить порты, частенько об этом забывают

      > [root@bareos /home/serge]# ctladm port -l
      > Port Online Frontend Name     pp vp
      > 0    NO     camsim  
      > camsim   0  0  naa.500000013145ef01
      > 1    YES    ioctl    
      > ioctl    0  0
      > 2    YES    tpc    
      >   tpc      0  0
      > 3    YES    camtgt   isp0
      >     0  0  naa.5001438021dfc5b2

      #ctladm realsync off
      #camcontrol rescan isp0
      #camcontrol devlist

      +
      #dmesg (найти наименование устройств)
      #cat /proc/scsi/scsi
      #mt --version
      #mt status
      #mt -f /dev/nst0 stsetoptions scsi2logical (возможно нужно будет применить)
      #mt -f /dev/nst0 tell

      пробовали?

      • Подключение ленточного накопителя HP MSL 2024 по fibre channel , !*! sergicus, 09:09 , 24-Ноя-17 (3)

        >[оверквотинг удален]
        > #camcontrol rescan isp0
        > #camcontrol devlist
        > +
        > #dmesg (найти наименование устройств)
        > #cat /proc/scsi/scsi
        > #mt --version
        > #mt status
        > #mt -f /dev/nst0 stsetoptions scsi2logical (возможно нужно будет применить)
        > #mt -f /dev/nst0 tell
        > пробовали?

        Большое спасибо за ответ

        Вводил
        [root@bareos /home/serge]# ctladm realsync off
        ctladm: option realsync not found

        Я посмотрел в манах, во freebsd 10 версии эта опция была https://www.freebsd.org/cgi/man.cgi?query=ctladm&apropos=0&s...а в 11 версии ее в манах нет https://www.freebsd.org/cgi/man.cgi?query=ctladm&apropos=0&s...

        По остальным вот что выводится.

        [root@bareos /usr/ports]# camcontrol rescan isp0
        camcontrol: Unable to find bus:target:lun for device isp0: No such file or directory


        [root@bareos /usr/ports]# camcontrol devlist
        <HP Ultrium 5-SCSI I25W>           at scbus0 target 0 lun 0 (sa0,pass0)
        <HP MSL G3 Series 4.90>            at scbus0 target 0 lun 1 (pass1,ch0)
        <GB0160EAPRR HPG2>                 at scbus1 target 0 lun 0 (pass2,ada0)
        <GB0160EAPRR HPG2>                 at scbus2 target 0 lun 0 (pass3,ada1)
        <AHCI SGPIO Enclosure 1.00 0001>   at scbus7 target 0 lun 0 (ses0,pass4)
        <WD Elements 25A3 1013>            at scbus9 target 0 lun 0 (da0,pass5)
        [root@bareos /usr/ports]#


        [root@bareos /usr/ports]# mt status
        mt: /dev/nsa0: Input/output error

        [root@bareos /usr/ports]# mt -f /dev/nst0 stsetoptions scsi2logical
        mt: stsetoptions: unknown command


        [root@bareos /usr/ports]# mt -f /dev/nst0 tell
        mt: tell: unknown command

        Вот сейчас пытаюсь разобраться


        я попробовал включить все порты


        [root@bareos /usr/ports/misc/mtx]# ctladm port -o on
        Front End Ports enabled
        [root@bareos /usr/ports/misc/mtx]#
        [root@bareos /usr/ports/misc/mtx]# ctladm port -l
        Port Online Frontend Name     pp vp
        0    YES    camsim   camsim   0  0  naa.500000013145ef01
        1    YES    ioctl    ioctl    0  0
        2    YES    tpc      tpc      0  0
        3    YES    camtgt   isp0     0  0  naa.5001438021dfc5b2
        [root@bareos /usr/ports/misc/mtx]#


        [root@bareos /usr/ports/misc/mtx]# mt -f /dev/nst0
        usage: mt [-f device] command [count]
        [root@bareos /usr/ports/misc/mtx]# mt -f /dev/nst0 status
        mt: /dev/nst0: No such file or directory
        [root@bareos /usr/ports/misc/mtx]# mt -f /dev/sa0 status
        mt: /dev/sa0: Input/output error
        [root@bareos /usr/ports/misc/mtx]# mt -f /dev/ch0 status
        mt: /dev/ch0: Input/output error
        [root@bareos /usr/ports/misc/mtx]# mt -f /dev/pass0 status
        mt: Couldn't get mt XML string: Inappropriate ioctl for device
        [root@bareos /usr/ports/misc/mtx]# mt -f /dev/pass1 status
        mt: Couldn't get mt XML string: Inappropriate ioctl for device
        [root@bareos /usr/ports/misc/mtx]#

        • Подключение ленточного накопителя HP MSL 2024 по fibre channel , !*! eRIC, 10:34 , 24-Ноя-17 (4)
          начнем с начала :)

          в /boot/loader.conf:
          # FC HBA
          ispfw_load="YES"
          isp_load="YES"
          # CAM Control
          ctl_load="YES"

          есть?
          в /boot/device.hints:
          hint.isp.0.role="2"
          hint.isp.1.role="2"

          есть?

          перезагружались?

          далее:

          # grep -iE "scsi|tape" /var/log/dmesg

          #camcontrol devlist -v

          #ctladm port -o on -t fc

          #ctladm port -l

          (возможно потребуется)
          #camcontrol load sa0 && camcontrol tur sa0

          #dd if=/dev/nsa0 bs=32k (так как он в виде raw и скорее всего пустой)

          #mt -f /dev/nsa0 rewind
          #mt -f /dev/nsa0 weof
          #mt status

          и обязательно следите за /var/log/messages

        • Подключение ленточного накопителя HP MSL 2024 по fibre channel , !*! sergicus, 10:45 , 24-Ноя-17 (5)

          В логах у меня идет такое


          Nov 24 12:07:40 bareos kernel: (sa0:isp0:0:0:0): FCP RESPONSE, LENGTH 8: FCP_CMND fields invalid CDB0=0x16
          Nov 24 12:07:40 bareos last message repeated 2 times
          Nov 24 12:07:49 bareos kernel: (ch0:isp0:0:0:1): FCP RESPONSE, LENGTH 8: FCP_CMND fields invalid CDB0=0x1a
          Nov 24 12:07:49 bareos kernel: (ch0:isp0:0:0:1):
          Nov 24 12:07:49 bareos kernel: FCP RESPONSE, LENGTH 8: FCP_CMND fields invalid CDB0=0x1a
          Nov 24 12:07:49 bareos kernel: (ch0:isp0:0:0:1): FCP RESPONSE, LENGTH 8: FCP_CMND fields invalid CDB0=0x1a
          Nov 24 12:07:49 bareos kernel: (ch0:isp0:0:0:1): MODE SENSE(6). CDB: 1a 00 1d 00 20 00
          Nov 24 12:07:49 bareos kernel: (ch0:isp0:0:0:1): CAM status: Unrecoverable Host Bus Adapter Error
          Nov 24 12:07:49 bareos kernel: (ch0:isp0:0:0:1): Error 5, Retries exhausted
          Nov 24 12:07:49 bareos kernel: (ch0:isp0:0:0:1): chgetparams: error getting element address page

          • Подключение ленточного накопителя HP MSL 2024 по fibre channel , !*! sergicus, 11:15 , 24-Ноя-17 (6)
            решил сделать сначала и перегрузил


            ввел это

            [root@bareos /home/serge]# ctladm port -l
            Port Online Frontend Name     pp vp
            0    NO     camsim   camsim   0  0  naa.50000004b1217301
            1    YES    ioctl    ioctl    0  0
            2    YES    tpc      tpc      0  0
            3    NO     camtgt   isp0     0  0
            [root@bareos /home/serge]# ctladm port -o on
            Front End Ports enabled
            [root@bareos /home/serge]#


            вот логи системы


            Nov 24 10:54:06 bareos kernel: ctlfe_onoffline: isp0 current WWNN 0x5001438021dfc5b3
            Nov 24 10:54:06 bareos kernel: ctlfe_onoffline: isp0 current WWPN 0x5001438021dfc5b2
            Nov 24 10:54:07 bareos kernel: ctlfe_onoffline: isp0 (path id 0) target role enable succeeded

            ввожу
            [root@bareos /home/serge]# mt status
            mt: /dev/nsa0: Input/output error
            [root@bareos /home/serge]#


            выходит лог
            Nov 24 10:55:29 bareos kernel: (sa0:isp0:0:0:0): FCP RESPONSE, LENGTH 8: FCP_CMND fields invalid CDB0=0x16

            на ленточном хранилище
            Port A Status     Login complete
            Speed     4 Gb/s
            Port Type     Loop (L)
            ALPA     0x01


            я сменил скорость оптики на ленте до 2Гб

            в логах появилось

            Nov 24 10:58:57 bareos kernel: isp0: Chan 255 LINK FAILED


            потом ввел
            [root@bareos /home/serge]# mt status
            mt: /dev/nsa0: Device not configured
            [root@bareos /home/serge]#

            [root@bareos /home/serge]# mt -f /dev/sa0 status
            mt: /dev/sa0: Device not configured
            [root@bareos /home/serge]#

            в логах ничего




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру