Ignore:
Timestamp:
04/14/12 19:52:40 (12 years ago)
Author:
aclsce
Message:

Added check to be sure there is enough space on temporary filesystems (only on vargas, titane and mercure sx9).
If there is not enough space, we stop.

File:
1 edited

Legend:

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

    r644 r651  
    15471547 
    15481548} 
     1549 
     1550############################################################ 
     1551# Check of space available on temporary filesytems 
     1552function IGCM_sys_check_quota { 
     1553  IGCM_debug_PushStack "IGCM_sys_check_quota"  
     1554  if ( $DEBUG_sys ) ; then 
     1555    echo "IGCM_sys_check_quota " 
     1556  fi 
     1557  # Limit of quota (in %) 
     1558  limit_quota=90 
     1559  # Check of the volume 
     1560  volume_quota=$(quota_u -w | grep 'Quota soft' | awk '{print $5}') 
     1561  if [ ! X${volume_quota} = X ] ; then 
     1562    quota_volume=${volume_quota%%\%} 
     1563#    echo $quota_volume 
     1564    if [ ${quota_volume} -ge ${limit_quota} ] ; then 
     1565      IGCM_debug_Print 1 "Please, check your quota of inode on scratch" 
     1566      IGCM_debug_Print 1 "Use the ccc_quota command" 
     1567      IGCM_debug_Print 1 "You must have more than 10% available to run" 
     1568      IGCM_debug_Exit "Not enough space to run ! STOP HERE" 
     1569      IGCM_debug_Verif_Exit 
     1570    fi 
     1571 
     1572  fi 
     1573  IGCM_debug_PopStack "IGCM_sys_check_quota" 
     1574} 
Note: See TracChangeset for help on using the changeset viewer.