# # Installing Dell OpenManage on SuSE #=================================== # # prerequisites: #=============== # # 1. help to find the kernel source tree #--------------------------------------- # # Run these two lines: kVer=`uname -a|tr -s ' '|cut -f3 -d' '` ln -s linux /usr/src/linux-$kVer # # If you never have compiled the kernel yourself within your system, you # probably need these additional steps: cd /usr/src/linux make cloneconfig make dep # This will adjust the files # /usr/src/linux/include/linux/autoconf.h # /usr/src/linux/include/linux/version.h # and these two files are used by the OpenManage install routines. # # 2. care for path compatibility #------------------------------- # # Redhat is using /etc/rc.d/init.d/ where SuSE is using # /etc/init.d/. SuSE has a pair of compatibility links: # /etc/rc.d -> init.d # /etc/init.d/init.d -> . # Because I do not like to have symlinks "-> ." I use # instead: # rm /etc/rc.d mkdir /etc/rc.d ln -s ../init.d /etc/rc.d/init.d # # To install racser from the source package, SuSE systems need a # sym link redhat -> packages in /usr/src/ # ln -s packages /usr/src/redhat # # # 3. build /etc/rc.d/init.d/functions #------------------------------------ # cat >/etc/init.d/functions <<"EOF" . /etc/rc.status function success () { blogger "$@"; true; rc_status -v; } function failure () { blogger "$@"; false; rc_status -v; } function echo_success () { true; rc_status -v; } function echo_failure () { false; rc_status -v; } function daemon () { PREFIX="" if [ "$1." = "racsrvc." ]; then PREFIX="/usr/sbin/" fi echo /sbin/start_daemon ${PREFIX} ${1+"$@"} >>/var/log/sbin_service.log /sbin/start_daemon ${PREFIX}${1+"$@"}; } function status() { checkproc $1; rc_status -v; } EOF # # 4. build /sbin/service #----------------------- # cat >/sbin/service <<"EOF" #!/bin/bash echo "`date +%y%m%d.%H%M%S` $0 $@" >>/var/log/sbin_service.log name=$1; shift; test -n "$name" || exit 1 if [ "$name" = "megadev" ]; then /etc/init.d/megadev ${1+"$@"} elif [ "$name" = "racser" ]; then /etc/init.d/racser ${1+"$@"} elif [ "$name" = "racvnc" ]; then /etc/init.d/racvnc ${1+"$@"} elif [ "$name" = "racsrvc" ]; then /etc/init.d/racsrvc ${1+"$@"} elif [ "$name" = "dellomsa" ]; then /etc/init.d/dellomsa ${1+"$@"} elif [ "$name" = "omawsd" ]; then /etc/init.d/omawsd ${1+"$@"} else echo " `date +%y%m%d.%H%M%S` rc$name ${1+"$@"}" >>/var/log/sbin_service.log rc$name ${1+"$@"} fi EOF chmod a+rx /sbin/service # # # the act: #========= # # 5. start installation #---------------------- # tar -xzvf om34_lnx_managed_system_A02.tar.gz cd dell/omsw/ ./start.sh # # the message: # Turning off DMA on IDE CDROM drives. # Disabling DMA for CDROM /dev/hda # is there to ignore it. # This action is unnecessary - SuSE knows best to build proper kernels # with working drivers. ;-)) # # the message: # ../WaitLx: error while loading shared libraries: libgnomeui.so.32: # cannot open shared object file: No such file or directory # is doing no harm here. # # the final screen likes to inform me: # Error occurred while installing Remote Access. # Some components not installed properly. # but I guess this is a point where Dell's brain still has to grow. # # After clicking the "finish" button, some messages appear within the # console: # /sbin/service: line 7: /etc/init.d/racser: No such file or directory # /sbin/service: line 9: /etc/init.d/racvnc: No such file or directory # ..missing..missing..failed..missing..failed..missing..missing..missing # /sbin/service: line 11: /etc/init.d/racsrvc: No such file or directory # Maybe this is only because "my" /sbin/service still is not accurate, # but I wonder why the installer likes to call racser, racsrvc and racvnc # without having them installed. # # my "personal log file" /var/log/sbin_service.log has noticed during # this installation: # # 030713.120524 /sbin/service racser status # 030713.120524 /sbin/service racser start # 030713.120524 /sbin/service racvnc status # 030713.120524 /sbin/service racvnc start # 030713.120524 /sbin/service dellomsa status # 030713.120524 /sbin/service dellomsa restart # /sbin/start_daemon /usr/sbin/dcstor32d # /sbin/start_daemon /usr/sbin/dcevt32d # 030713.120535 /sbin/service omawsd status # 030713.120535 /sbin/service omawsd start # /sbin/start_daemon /usr/lib/dell/openmanage/iws/bin/linux/omaws32 -run # 030713.120536 /sbin/service racsrvc status # 030713.120536 /sbin/service racsrvc start # 030713.120536 /sbin/service megadev status # 030713.120536 /sbin/service megadev restart # # and now the following processes are running: # # 19538 ? S 0:10 /usr/sbin/dcstor32d # 19539 ? S 0:00 /usr/sbin/dcstor32d # 19540 ? S 0:00 /usr/sbin/dcstor32d # 19541 ? S 0:00 /usr/sbin/dcstor32d # 19545 ? S 0:00 /usr/sbin/dcevt32d # 19546 ? S 0:00 /usr/sbin/dcevt32d # 19547 ? S 0:00 /usr/sbin/dcevt32d # 19565 ? S 0:00 /usr/lib/dell/openmanage/iws/bin/linux/omaws32 -run # 19566 ? S 0:00 /usr/lib/dell/openmanage/iws/bin/linux/omaws32 -run # 19567 ? S 0:00 /usr/lib/dell/openmanage/iws/bin/linux/omaws32 -run # 19569 ? S 0:00 /usr/lib/dell/openmanage/iws/bin/linux/omaws32 -run # 19570 ? S 0:00 /usr/lib/dell/openmanage/iws/bin/linux/omaws32 -run # 19571 ? S 0:00 /usr/lib/dell/openmanage/iws/bin/linux/omaws32 -run # 19572 ? S 0:00 /usr/lib/dell/openmanage/iws/bin/linux/omaws32 -run # 19573 ? S 0:00 /usr/lib/dell/openmanage/iws/bin/linux/omaws32 -run # 19574 ? S 0:00 /usr/lib/dell/openmanage/iws/bin/linux/omaws32 -run # 19575 ? S 0:00 /usr/lib/dell/openmanage/iws/bin/linux/omaws32 -run # 19606 ? S 0:05 /usr/sbin/dcstor32d # 19607 ? S 0:00 /usr/sbin/dcstor32d # 19608 ? S 0:00 /usr/sbin/dcstor32d # # This installation has brought the RPMs dellomsa, dellomsa-drivers # and afaapps, but NOT the RAC parts. # # 6. fulfill installation #------------------------ # # To fulfill what the ./start.sh should have done, I did this: # # on some installations, the ./start.sh did manage to do this: # rpm -Uhv rac22/linux/racser-src-2.20-1.src.rpm cd /usr/src/packages/SOURCES/ tar -xzvf racser-src-2.20.tar.gz # cd racser-src-2.20 # cat racser-src-2.20.README cd /usr/src/redhat/SPECS rpm -bb racser-src-2.20.spec # # but the final command still was waiting for my hand: # rpm -i --nodeps /usr/src/redhat/RPMS/i386/racser-src-2.20-1.i386.rpm # rpm -Uhv rac22/linux/racser-devel-2.20-1-rh-ki.i386.rpm # rpm -Uhv --nodeps --force rac22/linux/racadm-2.20-1.i386.rpm # # this still ends in error: # rpm -Uhv rac22/linux/racvnc-1.0-1.src.rpm cd /usr/src/redhat/SOURCES/ tar -xzvf racvnc-1.0.tar.gz cd racvnc-1.0 patch -p1 <../racvnc-1.0.patch cd /usr/src/redhat/SPECS rpm -bb racvnc-1.0.spec # ... make[4]: Target `all' not remade because of errors. # ... Bad exit status from /var/tmp/rpm-tmp.15957 (%build) # # # this will install a bogus firmware file (what is it meant for?): # rpm -Uhv --nodeps rac22/linux/racfirmware-2.20-1-rh-ki.i386.rpm # # # probably this is not needed, but I did: # rpm -Uhv drac25/server/linux/redhat/dellomsa-omsasync-1.0-2918.i386.rpm # # # 7. after installation #---------------------- # # now it is possible to use racadm (with most of its functions): # racadm setrac -d # # is telling: # Reading Host parameters only: # OS utc time=0x3F1139E8 offset=0x1C20 # Host Name=linux38 # OS Name=Linux 2.4.22-pre3 # OS Type=0x2 # # Some calls are still segfaulting: # racadm racdump # racadm getconfig # racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 1 xxx # # but it is possible to get rid of the calvin password # with: # omconfig rac users username=root userpassword=XXXXXXXX omconfig rac reset ## Have fun! emoenke@gwdg.de 030713