Changeset 3117


Ignore:
Timestamp:
May 10, 2013, 8:53:34 PM (6 years ago)
Author:
bruno
Message:

r5279@localhost: bruno | 2013-05-07 14:03:39 +0200

  • Integrates the sg_rw_mode tool in case of OBDR support for SCSI cards
  • Adds more info in log file (df -i, df -a, grub/lilo conf files


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/mindi

    r3115 r3117  
    27612761    # Copy an additional ProLiant tool for OBDR support
    27622762    if [ -f $MINDI_TMP/OBDR ]; then
     2763        found=0
    27632764        if [ -x /usr/bin/hpsa_obdr_mode ]; then
    27642765            mkdir -p $mountpoint/usr/bin
    27652766            cp -a /usr/bin/hpsa_obdr_mode $mountpoint/usr/bin
    2766             LogIt "INFO: Copying /usr/bin/hpsa_obdr_mode to ramdisk for improved OBDR support"
    2767         else
    2768             LogAll "WARNING: You're using OBDR mode without having the /usr/bin/hpsa_obdr_mode tool"
     2767            LogIt "INFO: Copying /usr/bin/hpsa_obdr_mode to ramdisk for improved Smart Array OBDR support"
     2768            found=1
     2769        fi
     2770        if [ -x /usr/bin/sg_wr_mode ]; then
     2771            mkdir -p $mountpoint/usr/bin
     2772            cp -a /usr/bin/sg_wr_mode $mountpoint/usr/bin
     2773            LogIt "INFO: Copying /usr/bin/sg_wr_mode to ramdisk for improved SCSI OBDR support"
     2774            found=1
     2775        fi
     2776        if [ $found -eq 0 ]; then
     2777            LogAll "WARNING: You're using OBDR mode without having the /usr/bin/hpsa_obdr_mode nor the /usr/bin/sg_wr_mode tool"
    27692778            LogAll "         This may lead to a tape not going back to sequential mode after OBDR boot"
    27702779        fi
     
    30393048LogFile "df result:"
    30403049LogFile "----------"
    3041 df -T >> $LOGFILE
     3050df -aT >> $LOGFILE
    30423051LogFile "-------------"
     3052LogFile "df -i result:"
     3053LogFile "----------"
     3054df -i >> $LOGFILE
     3055LogFile "-------------"
     3056if [ -r /boot/grub/menu.lst ]; then
     3057    LogFile "-------------"
     3058    LogFile "INFO: /boot/grub/menu.lst content"
     3059    LogFile "-------------"
     3060    cat /boot/grub/menu.lst >> $LOGFILE
     3061fi
     3062if [ -r /boot/grub/device.map.lst ]; then
     3063    LogFile "-------------"
     3064    LogFile "INFO: /boot/grub/device.map content"
     3065    LogFile "-------------"
     3066    cat /boot/grub/menu.lst >> $LOGFILE
     3067fi
     3068if [ -r /etc/lilo.conf ]; then
     3069    LogFile "-------------"
     3070    LogFile "INFO: /etc/lilo.conf content"
     3071    LogFile "-------------"
     3072    cat /etc/lilo.conf >> $LOGFILE
     3073fi
    30433074LogFile "List of extra modules is:"
    30443075LogFile "$EXTRA_MODS"
Note: See TracChangeset for help on using the changeset viewer.