Data Backup and Recovery

SDU Linux - 0001-267 Command error: Could not find SCSI devices

Mathias_Robichon
7,836 Views

Hi folk,

I'm trying to run SDU on RedHat 5.3 with FC. Hba is an Emulex. I'm using HU 4.1.2 and SDU 4.1.1. The problem occurs when SDU is trying to discover the LUN (I guess SDU has a problem with SCSI rescan process).

[root@lx-smo-fcp ~]# snapdrive storage create -lun nacl2:/vol/toto/lun3 -lunsize 200m -fs /toto

    LUN nacl2:/vol/toto/lun3 ... created

    mapping new lun(s) ... done
    discovering new lun(s) ... *failed*

    Cleaning up ...
     - LUN nacl2:/vol/toto/lun3 ...     Cleanup has failed.
    Please delete LUN
        nacl2:/vol/toto/lun3
0001-267 Command error: Could not find SCSI devices

You can find an extract of sd-trace.log :

9:00:41 09/29/09 [7813b90]?,2,2,0001-267 Command error: Could not find SCSI devices
19:00:41 09/29/09 [7813b90]?,2,2,0001-267 Command error: Could not find SCSI devices
19:00:41 09/29/09 [7813b90]?,2,2,0001-984 Admin error: Failed to get the physical devices associated with nacl2:/vol/toto/lun3 (6)

After cleanup, whether I remap the LUN, the LUN access is OK and sanlun displays the right thing and the multipath is working.

Any idea ? (You will able to find the SDU log file in attach)

Regards,

Mathias

1 ACCEPTED SOLUTION

nagendrk
7,834 Views

I've observed similar behavior when sg_utils was not installed? Have you installed?

View solution in original post

12 REPLIES 12

nagendrk
7,835 Views

I've observed similar behavior when sg_utils was not installed? Have you installed?

Mathias_Robichon
7,805 Views

You're absolutely right !!! I'm looking for the solution for 1

week. Thanks for your help.

Mathias

yum install sg_utils
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package sg3_utils.i386 0:1.25-1.el5 set to be updated
--> Processing Dependency: libsgutils.so.1 for package: sg3_utils
--> Running transaction check
---> Package sg3_utils-libs.i386 0:1.25-1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
sg3_utils               i386       1.25-1.el5       base              491 k
Installing for dependencies:
sg3_utils-libs          i386       1.25-1.el5       base               46 k

Transaction Summary
=============================================================================
Install      2 Package(s)        
Update       0 Package(s)        
Remove       0 Package(s)       

Total download size: 537 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): sg3_utils-libs-1.25-1.el5.i386.rpm                                                      |  46 kB     00:00    
(2/2): sg3_utils-1.25-1.el5.i386.rpm                                                           | 491 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: sg3_utils-libs               ######################### [1/2]
  Installing: sg3_utils                    ######################### [2/2]

Installed: sg3_utils.i386 0:1.25-1.el5
Dependency Installed: sg3_utils-libs.i386 0:1.25-1.el5
Complete!

neto
7,805 Views

Hi Mathias

This is neto from Brazil

How are you?

Please make sure that you have installed sg3-utils.

Please let me know if you need any help.

I'm here to help and contribute.

All the best

neto

NetApp - I love this company!

Mathias_Robichon
7,805 Views

Hi Neto,

You're right, this is the pronlem, I installed it and SDU is working fine.

Best Regards Neto.

Mathias

neto
7,805 Views

Hi Mathias

This is neto from Brazil

How are you?

Glad to hear that worked.

Please if you need anything, remember that you have a friend down here that can contribute and help (anytime).

All the best

Your friend,

neto

jmmorrell
7,805 Views

How do you install SG3 utils on RHEL4 w/o yum? It's telling me command not found. I'm not too proficient with linux.

What are SG3 utils? What does it do?

I'm receiving the same error and think this may be my problem.

watan
7,805 Views

Have a look at the following for the sg3_utils install.

https://now.netapp.com/Knowledgebase/solutionarea.asp?id=kb29418

jmmorrell
7,805 Views

Thanks. I am trying to install and it needs a dependency. see below

[root@BastestLinux ~]# rpm -U -v /tmp/Redhat/sg3_utils-1.22-3.1.x86_64.rpm
warning: /tmp/Redhat/sg3_utils-1.22-3.1.x86_64.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
        libsgutils.so.1()(64bit) is needed by sg3_utils-1.22-3.1.x86_64
    Suggested resolutions:
        /var/spool/up2datesg3_utils-libs-1.22-3.1.x86_64.rpm

Where can I get that I searched the redhat site and could not find this lib

jmmorrell
7,805 Views

I found the lib and got sg3 utils installed. thanks

michaelhellmann
6,695 Views

I have a similar problem creating a LUN with snapdrive but the sg_utils are installed (RedHat 6.0)

Thanks in advance for your help:

[root@nb2cm004 ~]# rpm -qa | grep sg3_utils

sg3_utils-libs-1.28-3.el6.i686

sg3_utils-libs-1.28-3.el6.x86_64

sg3_utils-1.28-3.el6.x86_64

[root@nb2cm004 ~]# snapdrive storage show -all

raw device: nb2cm005.ww003.siemens.net:/vobstore2       mount point: /net/nb2cm005.ww003.siemens.net/vobstore2 (non-persistent) fstype nfs

device filename        adapter path    size    proto   state   clone      lun path                     backing snapshot

----------------        ------- ----    ----    -----   -----   -----      --------                     ----------------

nb2cm005.ww003.siemens.net:/vobstore2   information not available -- LUN may be offline

[root@nb2cm004 ~]# sanlun lun show

[root@nb2cm004 ~]# snapdrive storage create -lun 192.163.0.25:/vol/testvol/test2.lun -lunsize 5g

        LUN deb21qec:/vol/testvol/test2.lun ... created

        mapping new lun(s) ... done

        discovering new lun(s) ... *failed*

        Cleaning up ...

        Cleanup has failed.

        Please delete LUN

                deb21qec:/vol/testvol/test2.lun

0001-427 Admin error: Rescan of devices on host failed:

neto
6,695 Views

Hi All,

This is neto from Brazil

How are you?

Please check

sanlun fcp show adapter -v

All the best

neto

michaelhellmann
6,695 Views

Hi neto,

Thanks a lot for your help.

iSCSI will be used, so the command shows nothing:

[root@nb2cm004 ~]# sanlun fcp show adapter -v

Unable to locate /usr/lib/libHBAAPI.so library

Make sure the package installing the library is installed & loaded

Sometimes the "snapdrive storage show -all" results in an error message:

[root@nb2cm004 ~]# snapdrive storage show -all

raw device: nb2cm005.ww003.siemens.net:/vobstore2       mount point: /net/nb2cm005.ww003.siemens.net/vobstore2 (non-persistent) fstype nfs

device filename        adapter path    size    proto   state   clone      lun path                     backing snapshot

----------------        ------- ----    ----    -----   -----   -----      --------                     ----------------

nb2cm005.ww003.siemens.net:/vobstore2   information not available -- LUN may be offline

...

some other commands

...


[root@nb2cm004 ~]# snapdrive storage show -all

0001-185 Command error: storage show failed: no NETAPP devices to show or add the host to the trusted hosts (options trusted.hosts) and enable SSL on the storage system or retry after changing snapdrive.conf to use http for storage system communication and restarting snapdrive daemon.

Public