May 1, 2009 Steps to use repo-rpm*rpm to update the DCS software. 1) Copy the repo-rpm*rpm to the /tmp directory on the DCS 2) log in to the DCS as root 3) run the command: yum localupdate /tmp/repo-rpm*rpm 4) run the command: yum upgrade 5) reboot the DCS Sample output.................... [root@dhcp100 ~]# yum localupdate /tmp/repo-rpm-1.1-3.*rpm repo-rpm-1.1-3.noarch.rpm 100% 76MB 1.7MB/s 00:44 Loading "kernel-module" plugin Setting up Local Package Process Examining /tmp/repo-rpm-1.1-3.noarch.rpm: repo-rpm - 1.1-3.noarch Marking /tmp/repo-rpm-1.1-3.noarch.rpm as an update to repo-rpm - 1.1-1.noarch Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package repo-rpm.noarch 0:1.1-3 set to be updated --> Running transaction check Beginning Kernel Module Plugin Finished Kernel Module Plugin Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Updating: repo-rpm noarch 1.1-3 /tmp/repo-rpm-1.1-3.noarch.rpm 78 M Transaction Summary ============================================================================= Install 0 Package(s) Update 1 Package(s) Remove 0 Package(s) Total download size: 78 M Is this ok [y/N]: y Downloading Packages: Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Updating : repo-rpm ######################### [1/2] Updated: repo-rpm.noarch 0:1.1-3 Complete! [root@dhcp100 ~]# yum upgrade Loading "kernel-module" plugin Setting up Upgrade Process Setting up repositories dag 100% |=========================| 1.1 kB 00:00 kde-redhat-stable-all 100% |=========================| 1.9 kB 00:00 sl-errata 100% |=========================| 951 B 00:00 sl-contrib 100% |=========================| 951 B 00:00 sl-base 100% |=========================| 1.1 kB 00:00 kde-redhat 100% |=========================| 1.9 kB 00:00 lsi-dcs 100% |=========================| 951 B 00:00 lsi-dcs-local 100% |=========================| 951 B 00:00 rhaps 100% |=========================| 951 B 00:00 Reading repository metadata in from local files primary.xml.gz 100% |=========================| 8.2 kB 00:00 lsi-dcs : ################################################## 33/33 Added 4 new packages, deleted 14 old in 0.08 seconds primary.xml.gz 100% |=========================| 12 kB 00:00 lsi-dcs-lo: ################################################## 48/48 Added 5 new packages, deleted 0 old in 0.21 seconds Excluding Packages in global exclude list Finished Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for dcs-motherboard to pack into transaction set. dcs-motherboard-1.1-33.no 100% |=========================| 7.2 kB 00:00 ---> Package dcs-motherboard.noarch 0:1.1-33 set to be updated ---> Downloading header for dcsSnmpAgent to pack into transaction set. dcsSnmpAgent-5.4-132.dcs. 100% |=========================| 13 kB 00:00 ---> Package dcsSnmpAgent.i386 0:5.4-132.dcs.2 set to be updated ---> Downloading header for mdd_32 to pack into transaction set. mdd_32-3.5-1.i386.rpm 100% |=========================| 7.2 kB 00:00 ---> Package mdd_32.i386 0:3.5-1 set to be updated --> Running transaction check Beginning Kernel Module Plugin Finished Kernel Module Plugin Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Updating: dcs-motherboard noarch 1.1-33 lsi-dcs-local 76 k dcsSnmpAgent i386 5.4-132.dcs.2 lsi-dcs-local 119 k mdd_32 i386 3.5-1 lsi-dcs-local 28 k Transaction Summary ============================================================================= Install 0 Package(s) Update 3 Package(s) Remove 0 Package(s) Total download size: 223 k Is this ok [y/N]: y Downloading Packages: Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Updating : dcs-motherboard ######################### [1/6] Updating : mdd_32 ######################### [2/6] Stopping DCS SNMP Agent: [ OK ] Starting DCS SNMP Agent: [ OK ] Updating : dcsSnmpAgent ######################### [3/6] Stopping DCS SNMP Agent: [ OK ] Starting DCS SNMP Agent: [ OK ] Cleanup : dcs-motherboard ######################### [4/6] Cleanup : dcsSnmpAgent ######################### [5/6] Cleanup : mdd_32 ######################### [6/6] Updated: dcs-motherboard.noarch 0:1.1-33 dcsSnmpAgent.i386 0:5.4-132.dcs.2 mdd_32.i386 0:3.5-1 Complete! --------------- end sample ----------------------------------------------- Oct. 30, 2008 An earlier version of the dcs-utility rpm would mistakenly delete the file /usr/local/sbin/mb_id. This is fixed in version 1.4-22. When that file is deleted, the DCS will not be able to make connections after the next reboot. You get a error message stating that 'mdd' is not running. The fix for this is to download the file mb_id.tar.gz and untar it into /usr/local/sbin. run: tar -zxf mb_id.tar.gz -C /usr/local/sbin/ After a reboot, the system will again be able to make connections. ========================================================================= We now have a yum repository for DCS updates. To start using this repository, copy the files dcs*.repo into the directory /etc/yum.repos.d This repository will contain all the rpms' that are modified by thinkLogical that are relevant to the DCS. In order to access the repositories, the DCS must have access to the Internet. If Internet access is not possible, there is also the provision to obtain the updates on a USB thumb drive, or to install them locally. Please contact Logical Solutions if you need to order the USB device. More information about the upgrade program 'yum' can be found it its' man page. ( man yum ) To update the DCS from the Internet, use the following command: yum --enablerepo=lsi-dcs upgrade To update the DCS from the USB device, use the command: yum --enablerepo=lsi-dcs-media upgrade The third method of updating is to download all the update files onto the DCS and install them locally. This usually is a two step process; 1) download the file onto a system that does have Internet access, 2) copy the file from that system onto the DCS The repo-rpm* file contains all the updates and will build a local update database onto the DCS. Copy the repo-rpm* file to the /tmp/ directory on the DCS and then run the command: yum localinstall /tmp/repo-rpm* (if yum complains about using localinstall, use localupdate) Then run the command: yum upgrade In both cases, yum will list the upgrades that it will install, and then ask for confirmation to proceed. We recommend that the DCS be restarted after the upgrade process is complete. ========================================================== Installing the ftp server onto the DCS To make copying files onto the DCS easier, we are now enabling a ftp server on the DCS. To install it onto a DCS that does not already have it, do the following: download the dcs-utility and vsftpd rpms from the same place as this README file. Once they are on the DCS (in /tmp/), run the commands: yum localinstall /tmp/vsftpd* yum localupgrade /tmp/dcs-utility* Note: the dcs-utility update is included in the repo-rpm file. If that update was already performed, then then localupdate of dcs-utility is not needed. It won't damage anything if it is done, yum will inform you it was already updated. Now, run the command: enable.ftp The ftp server is now running. It will accept anonymous logins (use anonymous as the user name and your name or email address as the password). When you upload a file to the DCS, it is stored in the directory: /var/ftp/uploads If update instructions assume /tmp/ as the location of files and you used ftp to upload them, then use /var/ftp/uploads/ in place of /tmp/.