Home | About the Adaptec Linux Blog | Adaptec Trusted Storage


How do I get Adaptec Storage Manager to work with Ubuntu 7.10?

Posted in Storage Management under Linux by Phil Wilson

Philippe wrote:-

I am experiencing problems getting the Adaptec Storage Manager software to install on the 32 bit version of Ubuntu 7.10 “Gutsy Gibbon”. The OS is working fine and sees all the arrays but the management software seems to be designed for Redhat or SuSE distrubtions. Can you help at all? 

The Adaptec Storage Manager (ASM) software is posted on our support site in rpm format but should work with many distributions. I gave it a try in my lab with both 32 and 64 bit Ubuntu 7.10 and found the following procedure worked for me. 

  • Download the latest version of Adaptec Storage Manager for Linux (choose the 32 or 64 bit version depending on the installation) from http://www.adaptec.com/support. At the time of writing, the latest release is version 5.20 build 17414. Save the rpm file somewhere.

  • Check if you have the alien command available and if not, install it (“sudo apt-get install alien” worked for me)

  • Convert the downloaded rpm file to deb format using the alien command so in my case on a 32 bit installation, “sudo alien –scripts asm_linux_x86_v5_20_17414.rpm” which produces file “storman_5.20-1_i386.deb” (don’t forget the –scripts parameter).

  • Install the deb file. I used “sudo dpkg –i storman_5.20-1_i386.deb”

This will install Adaptec Storage Manager (the installation directory is /usr/StorMan) and start the agent. The installation script does not however configure the rc scripts so it is necessary to take some manual steps to make sure the agent is started automatically on boot. Additionally, Ubuntu seems to boot to run level 2 by default, however the Adaptec Storage Manager startup scripts are configured to run the ASM agent in run levels 3 and 5. To allow the agent to start in run level 2 and setup the rc scripts, follow these steps.

  • Edit the /etc/init.d/stor_agent file. Identify the lines beginning #Default and change them to match the following

# Default Start:  2 3 5

# Default Stop:  0 1 6

(This removes run level 2 from “stop” and adds it to “start”).

  • Check that /etc/init.d/stor_agent is executable and run the update-rc.d script  “sudo update-rc.d stor_agent defaults”

To start the Adaptec Storage Manager GUI, run the script /usr/StorMan/StorMan.sh. When prompted to login, Adaptec Storage Manager treats any “non root” user as a “guest” with look but can’t touch privileges. To make changes within Adaptec Storage Manager (create / delete arrays etc) it is necessary to login to Adaptec Storage Manager using root which will require the root password to be set to something known. 

Thanks for reading,

Phil

36 Responses to “How do I get Adaptec Storage Manager to work with Ubuntu 7.10?”

  1. Mipam Moudry Says:

    Hi,
    I have tried your procedure and it hangs on the convert step. I am using Ubuntu 7.10 64 bit.

    Here is the output :

    mipam@origin:~$ sudo alien -v –scripts asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qp –queryformat %{SUMMARY} asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qp –queryformat %{POSTIN} asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qp –queryformat %{NAME} asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qp –queryformat %{POSTUN} asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qp –queryformat %{PREUN} asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qp –queryformat %{RELEASE} asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qp –queryformat %{PREFIXES} asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qp –queryformat %{CHANGELOGTEXT} asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qp –queryformat %{COPYRIGHT} asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qp –queryformat %{DESCRIPTION} asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qp –queryformat %{ARCH} asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qp –queryformat %{VERSION} asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qp –queryformat %{PREIN} asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qcp asm_linux_x64_v5_20_17414.rpm
    rpm -qpi asm_linux_x64_v5_20_17414.rpm
    LANG=C rpm -qpl asm_linux_x64_v5_20_17414.rpm
    mkdir StorMan-5.20
    chmod 755 StorMan-5.20
    rpm2cpio asm_linux_x64_v5_20_17414.rpm | (cd StorMan-5.20; cpio –extract –make-directories –no-absolute-filenames –preserve-modification-time) 2>&1
    Unpacking of ‘asm_linux_x64_v5_20_17414.rpm’ failed at /usr/share/perl5/Alien/Package/Rpm.pm line 153.
    find StorMan-5.20 -type d -exec chmod 755 {} ;
    rm -rf StorMan-5.20

    MM

  2. Mipam Moudry Says:

    This procedure doesn’t work. Why was my comment about it not working been deleted?
    Another point your line containing : sudo alien –scripts asm_linux_x86_v5_20_17414.rpm

    should be: sudo alien –-scripts asm_linux_x86_v5_20_17414.rpm

  3. Pavel Flajshans Says:

    Thanks a lot for this article.
    Just one suggestion. If you want use arcconf from /usr/StorMan, it’s necessary to put line “/usr/StorMan” into /etc/ld.so.conf and then run ldconfig.
    Arcconf uses bundled library libstdc++.so.5.
    Tested on Ubuntu 7.10 Gutsy.

  4. Mipam Moudry Says:

    Sorry about whining, it works like a charm now on both 63 bit and 32 bit.

    Thanks!

  5. Phil Wilson Says:

    Thanks for the suggestions and corrections. Sorry I haven’t responded sooner but have been traveling.

    I found the editor I use unhelpfully turns two short hyphens into one longer one! I’ll watch out for that in future - I hope it didn’t cause too much grief - thanks for pointing this out Mipam.

    Thanks to Pavel for the tip regarding the libraries that arcconf uses and the dynamic linker.

  6. Alex Mclintock Says:

    Would it be possible to supply this package as an ubuntu package as well as an RPM one?

    And possibly supply it to one of the main repositories too?

    :-)

  7. James Robertson Says:

    I noticed that when it ran the scripts on Ubuntu 8.04.1 I go this

    Server:~# /etc/init.d/stor_agent restart
    stopping Adaptec Storage Manager agent …
    cut: fields and positions are numbered from 1
    Try `cut –help’ for more information.
    cut: fields and positions are numbered from 1
    Try `cut –help’ for more information.

    starting Adaptec Storage Manager agent …
    cut: fields and positions are numbered from 1
    Try `cut –help’ for more information.
    cut: fields and positions are numbered from 1
    Try `cut –help’ for more information.

    I had to edit /etc/init.d/stor_agent and alter the entries with “cut -b0-6″ to “cut -b1-6″.

    thanks

  8. dam Says:

    @James Robertson
    me too. I use this procedure:
    cd /usr/StorMan
    cp stor_agent stor_agent.ori
    sed -e “s/0-6/\ 1-6/g” -i stor_agent

    @Phil Wilson
    I found the editor I use unhelpfully turns two short hyphens into one longer one! I’ll watch out for that in future

    just use or when you write commands ;-)

  9. dam Says:

    oops. part of the message was filtered (of course)
    I mean
    just use pre /pre or code / code tags when you write commands ;-)

  10. Thomas Says:

    this works also for Debian Etch.

    Only thing is, that i needed to disable ipv6, as the Storage Agent only bound to tcp6 and udp6. After disabling ipv6 it worked.

    is there a way to reduce the ports needed?

    tcp 0 0 0.0.0.0:34570 0.0.0.0:* LISTEN 3752/java
    tcp 0 0 0.0.0.0:34571 0.0.0.0:* LISTEN 3752/java
    tcp 0 0 0.0.0.0:34572 0.0.0.0:* LISTEN 3752/java
    tcp 0 0 0.0.0.0:34573 0.0.0.0:* LISTEN 3752/java
    udp 0 0 0.0.0.0:34570 0.0.0.0:* 3752/java
    udp 0 0 0.0.0.0:34577 0.0.0.0:* 3752/java
    udp 0 0 0.0.0.0:34578 0.0.0.0:* 3752/java
    udp 0 0 0.0.0.0:34579 0.0.0.0:* 3752/java
    udp 0 0 0.0.0.0:34580 0.0.0.0:* 3752/java

  11. Alexander Says:

    Hello, Thomas!

    Plz say how do you disable ipv6 in StorMan agent?

  12. Adam Says:

    Hi,

    It used to work on Debian Sarge but doesn’t with Etch anymore.
    I can run the graphical tool, but I can’t connect any agent running on Etch.
    I tried to disable IPV6 and tried with both Sun 1.5 and 1.6: no luck.

    Adaptec, please fix storage manager. If you need some tests I’m available to help you.

    Adam.

  13. Adam Says:

    - If you cannot connect to a remote Adaptec Storage Manager
    installed on a Linux system, verify that the TCP/IP hosts file
    is configured properly.

    1. Open the /etc/hosts file.

    NOTE: The following is an example:

    127.0.0.1 localhost.localdomain localhost matrix

    2. If the hostname of the system is identified on the line
    with 127.0.0.1, you must create a new host line.

    3. Remove the hostname from the 127.0.0.1 line.

    NOTE: The following is an example:

    127.0.0.1 localhost.localdomain localhost

    4. On a new line, type the IP address of the system.

    5. Using the Tab key, tab to the second column and enter the
    fully qualified hostname.

    6. Using the Tab key, tab to the third column and enter the
    nickname for the system.

    NOTE: The following is an example of a completed line:

    1.1.1.1 matrix.localdomain matrix

    where 1.1.1.1 is the IP address of the server and
    matrix is the hostname of the server.

    I just found that in an old TXT file and that was the issue.
    Debian ETCH and newer adds 127.0.1.1 hostname hostname.fqdn in /etc/hosts which breaks ASM.
    After replacing 127.0.1.1 by the real public IP address of the server, it works as expected.

    Adaptec: you now have all what’s needed to reproduce the issue in your lab. Please fix the software :)

  14. Phil Wilson Says:

    Hi Adam, huge thanks for investigating this and sorry for the issue.
    I’ll raise a bug on our engineering group and get back to you.

    /Phil.

  15. Valerio Says:

    Hi, someone is using Adaptec Storage Manager in server envoronnment (Ubuntu 8.10 server), then without GUI ? Can it work ?

    Thanks
    Valerio

  16. Phil Wilson Says:

    Hi Valerio, it should work fine if you take heed of the points that Adam mentioned with regard to a bug with the /etc/hosts file and also Thomas’s comments on IPv6. Both these issues and the installation script problem have been raised as bugs with the engineering team which I am pushing to be fixed in the next release.

    Essentially follow the recommendations from the kind folk who have contributed here, install ASM on the Ubuntu system (without GUI), install ASM on the central workstation with GUI you intend to use to monitor / configure. Add the Ubuntu system as a remote node (right click direct attached storage, add IP address, root user and password).

    Any problems .. let me know.

    best regards, Phil

  17. Thomas Says:

    it would be desireable to configure a non-root user for authentication. often the root user is disabled/password-less or it’s not an option to distribute the root password (goes it cleartext over the net?).

    - Thomas

  18. Phil Wilson Says:

    Hi Thomas, I couldn’t agree more. I have a customer here in the UK who provides hosting - once he hands over the h/w to the customer he is still responsible for monitoring but the customer will set the root p/w to one of his / her choice. Regarding the cleartext, I don’t believe so - it should use SSL encryption but I’ll ask the engineers and get a definitive response.

    What would you like to see as an alternative? I’ve had various suggestions like users in group wheel but I’m leaning towards adding the facility to specify a user which has equivalent administrative rights in ASM to root - only thing with that is the root password would need to be known initially.

    If anyone else can come up with suggestions on this I’ll happily champion it - I did raise it some time ago but didn’t manage to make the case well enough for something to happen.

    I’ll update this with a definitive statement regarding whether there is a danger of passwords going cleartext.

    huge thanks, Phil.

  19. Eugene Says:

    Hi Phil,

    I’m trying to install the ASM on a Linux Fedora Core 9, x64 system. I’m having trouble with logging in. I’ve followed the thread to the T and did everything but I can’t seem to be able to login as root. I’m getting an error saying “User root cannot be logged into testbox”. The docs mention /etc/pam.d/storman but unfortunately I can’t seem to find what I should have in that file. It’s like authentication is not working and it’s not accepting the root system password (which I use to log into the box with). Any ideas?

  20. Phil Wilson Says:

    Hi folks, sorry for the delay in posting a reply here - I contact Eugene directly by email and he confirmed the following solved his issue.

    excerpt from my mail to Eugene ….

    I have seen this before with older versions of ASM (v4 or early versions of 5) - ASM requires an older libstdc++ library than is generally shipped with distributions. With later versions of v5 and version 6 of ASM we started to ship this library as part of the RPM to avoid the nuisance of having to install libstdc++ compatibility packages.

    If you are using an older version, would you be able to try using the latest (6.10 BLD 18359)

    http://www.adaptec.com/en-US/speed/raid/storage_manager/asm_linux_x64_v6_10_18359_rpm.htm

    rpm –erase StorMan
    rpm –install asm_linux_x64_v6_10_18359_rpm

    You can verify if this is the problem by checking the dependencies of one of the libraries in /usr/StorMan for example

    [root@localhost StorMan]# ldd /usr/StorMan/libSTORUTIL.so
    linux-gate.so.1 => (0×00110000)
    libcrypt.so.1 => /lib/libcrypt.so.1 (0×00117000)
    libstdc++.so.5 => /usr/StorMan/libstdc++.so.5 (0×00149000)
    libm.so.6 => /lib/libm.so.6 (0×00209000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0×00232000)
    libc.so.6 => /lib/libc.so.6 (0×0039e000)
    /lib/ld-linux.so.2 (0×00381000)

    You can see that libstdc++.so.5 is in the /usr/StorMan directory whereas it may be unresolved in your case.

    thanks, Phil.

  21. Frustrated Says:

    So, don’t suppose this will be updated for Ubuntu 9.04? I’d like to see how this can be made to work in a step-by-step fashion for the newer O.S. with links to the files you use. This is incredibly frustrating.

  22. Phil Wilson Says:

    Hi there, sorry for the delay in coming back to you - I’ve been travelling to our head office and stuck in meetings so am just trying to catch up.

    I understand the frustration and I’m definitely on your side - I had a meeting with the product management team yesterday and raised this issue. I did a quick check that ASM would work on Ubuntu 9.04 server and it seems to be okay but as you say, having to go through a bunch of steps to get it to work is a real nuisance.

    I’ll post back soon as I have any more news on this.

    thanks for posting, Phil

  23. Georg Kahest Says:

    Everything seems to be working, but the ASM is bound to IPV6 rather then V4.
    Can i disable IPV6 only for ASM, because disabling IPV6 altogether isn’t option. Working on Ubuntu 9.10

  24. Phil Wilson Says:

    Hi Georg, I’m not sure how to do this - I’ll see if I can figure it out, if anyone else knows - could they post their method?

    many thanks, Phil

  25. Jörg Herzinger Says:

    Works perfectely well with Debian Lenny. I didn’t check if the changes to /etc/init.d/stor_agent were really necessary, but at least it works. Thanks and hopefully at some time Adaptec will consider serious Linux Distributions like Debian/Ubuntu and kick RedHad and Suse support.

  26. Phil Wilson Says:

    Thanks Jörg, do feel free to comment on a new post I started regarding improving support for Debian based distributions. I’m looking for ideas to take to the management team that reflect what people actually want.

    best regards, Phil

  27. Tim S Says:

    Phil, I am going to install http://www.adaptec.com/en-US/speed/raid/storage_manager/asm_linux_x64_v6_10_18359_rpm.htm

    on my Fedora 11 system.

    Before i run rpm -ivh ….
    is there a list of dependencies that you have that I can check first?

    Thanks in advance.

  28. Phil Wilson Says:

    Hi Tim, rpm-qR StorMan gives

    /bin/sh
    /usr/bin/perl
    libX11.so.6()(64bit)
    libXext.so.6()(64bit)
    libc.so.6()(64bit)
    libc.so.6(GLIBC_2.2.5)(64bit)
    libc.so.6(GLIBC_2.3)(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3)(64bit)
    libm.so.6()(64bit)
    perl(strict)
    rpmlib(CompressedFileNames) <= 3.0.4-1
    rpmlib(PayloadFilesHavePrefix) <= 4.0-1

    I think most of this would be present. If you don’t have the graphical desktop you may need to install with the –nodeps option. In this case you would probably install the GUI on another machine and remotely manage your FC11 system.

    Hope this is a help, thanks, Phil

  29. Jesse Jarzynka Says:

    I have a question about e-mail notifications and arcconf. If you set up email notifications through a remote java interface, will the e-mail be sent out even if you arent connected remotely? I would assume so. And also, is it possible to set up email notifications through arcconf, or only through the java GUI? Thanks, Jesse

  30. Phil Wilson Says:

    Hi Jesse, once configured, email alerts, SNMP traps are sent from the agent so there is no need for the GUI to be connected for these to be issued. On the second point, its a nuisance - I wanted to do this myself, but the configuration file which stores the details of SMTP gateway, recipients etc is binary (.ser file) and I haven’t found a way to edit it manually so unfortunately for the initial config and if you need to change the settings you would need to connect from a GUI.

    thanks, Phil

  31. Jesse Jarzynka Says:

    Phil, thanks so much for the response. One last question I had were tasks. I see a default task called “Test all spare disks for errors”, but I don’t see any way to add tasks or even a way to remove that task, just modify the recurrence or name. Is that just the way it is? Thanks again, Jesse.

  32. Phil Wilson Says:

    Hi Jesse, thanks!

    If you right click on the machine name in the ASM GUI -> agent actions, click on the task tab, you can modify view or delete (apart from testing the spares) any scheduled tasks you have created.

    The tasks themselves are created by right clicking on the logical drive in ASM and choosing an option like verify / verify with fix / expand. On these operations you have the option to schedule it to occur at regular intervals (or in the case of expand for some convenient time in the future).

    For info, quite a few customers like to switch on the background consistency check which isn’t actually a task but runs a continuous background process which issues a medium verify command to every block on all drives in an array including spares guaranteeing to complete within the defined number of days (user changeable but defaults to 30).

    Some customers like to schedule a verify with fix task to run at weekends which will check for errors and should be able to correct most disk medium errors - hopefully before a disk fails and you are trying to rebuild an array.

    It is also possible to start a task from the CLI utility arcconf though this doesn’t support scheduling.

    [root@uklab-cern5 ~]# arcconf task

    Usage: TASK START LOGICALDRIVE [noprompt]
    Usage: TASK STOP LOGICALDRIVE

    Usage: TASK START DEVICE [noprompt]
    Usage: TASK STOP DEVICE
    ======================================================

    Performs a task on a logical device or a physical devices.

    Task : Task to be started or performed.

    LogicalDrive# : logical device ID on which task is to be performed
    Logical Tasks : verify_fix (Verify with fix)
    verify
    clear

    Channel# ID# : The Channel and ID of the physical device on which task is to be
    performed. Optionally ALL indicates all ready drives for initialize
    task only (ex. ARCCONF TASK START 1 DEVICE ALL INITIALIZE).
    Physical Tasks : verify_fix
    verify
    clear
    initialize
    secureerase
    [root@uklab-cern5 ~]#

    thanks, Phil

  33. Jesse Jarzynka Says:

    Phil, thanks again for your very helpful posts. I wasn’t about to click a verify just to to see if I could schedule it there just in case it started right away! Now that I know, that is very helpful.

    Kind of a clunky GUI, but good to have working on Debian finally! Thanks again.

  34. Jesse Jarzynka Says:

    Phil, I just noticed something. A lot of my servers are using 2230 controller which is fine, but some are identified simply as “AIC 7920″ which I think is just the ASIC model. Would I have to shut the servers down to look at the actual card to find the model? Or is there a version of ASM that should work based on that ASIC? I don’t see ASM as listing the ASIC anywhere. Thanks again! -Jesse

  35. Jesse Jarzynka Says:

    That should say “AIC 7902″

  36. William Pechter Says:

    FYI — it works fine with Ubuntu/Kubuntu 9.10 as well. I installed asm_linux_v4.30-16038.rpm to work with my 2410 and it fired right up following the above information.

Leave a Reply