Changeset 696


Ignore:
Timestamp:
07/05/12 16:07:24 (12 years ago)
Author:
aclsce
Message:

For quota check function on mercurex9 and titane, added the treatment of the case "more than 100% of the
quota, i.e with a "*" at the end of the quota value"

Location:
trunk/libIGCM/libIGCM_sys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex9.ksh

    r689 r696  
    16111611    unit_quota=$( echo $volume_quota | awk '{print(substr($0, length($0), length($0)))}' ) 
    16121612    unit_avail=$( echo $volume_avail | awk '{print(substr($0, length($0), length($0)))}' ) 
     1613 
     1614    if [ "${unit_quota}" = "*" ] ; then 
     1615        IGCM_debug_Print 1 "Please, check your quota of volume on scratch" 
     1616        IGCM_debug_Print 1 "More than 100% of your quota is used" 
     1617        IGCM_debug_Print 1 "Use the ccc_quota command to check" 
     1618        IGCM_debug_Print 1 "You must have more than 10% available to run" 
     1619        IGCM_debug_Exit "Not enough space to run ! STOP HERE" 
     1620        IGCM_debug_Verif_Exit 
     1621    fi 
    16131622 
    16141623    temp_avail=${volume_avail%%${unit_avail}*} 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh

    r690 r696  
    20522052    unit_quota=${volume_quota: -1} 
    20532053 
     2054    if [ "${unit_quota}" = "*" ] ; then 
     2055        IGCM_debug_Print 1 "Please, check your quota of volume on scratch" 
     2056        IGCM_debug_Print 1 "More than 100% of your quota is used" 
     2057        IGCM_debug_Print 1 "Use the ccc_quota command to check" 
     2058        IGCM_debug_Print 1 "You must have more than 10% available to run" 
     2059        IGCM_debug_Exit "Not enough space to run ! STOP HERE" 
     2060        IGCM_debug_Verif_Exit 
     2061    fi 
     2062 
    20542063    temp_avail=${volume_avail%%${volume_avail: -1}*} 
    20552064    temp_quota=${volume_quota%%${volume_quota: -1}*} 
     
    21062115    unit_quota=${inode_quota: -1} 
    21072116 
     2117    if [ "${unit_quota}" = "*" ] ; then 
     2118        IGCM_debug_Print 1 "Please, check your quota of inode on scratch" 
     2119        IGCM_debug_Print 1 "More than 100% of your quota is used" 
     2120        IGCM_debug_Print 1 "Use the ccc_quota command to check" 
     2121        IGCM_debug_Print 1 "You must have more than 10% available to run" 
     2122        IGCM_debug_Exit "Not enough space to run ! STOP HERE" 
     2123        IGCM_debug_Verif_Exit 
     2124    fi 
     2125 
    21082126    temp_avail=${inode_avail%%${inode_avail: -1}*} 
    21092127    temp_quota=${inode_quota%%${inode_quota: -1}*} 
Note: See TracChangeset for help on using the changeset viewer.