Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-7110

sanity-hsm.sh can erase all files on filesystem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.9.0
    • Lustre 2.8.0
    • 3
    • 9223372036854775807

    Description

      copytool_setup() {
              local facet=${1:-$SINGLEAGT}
              local lustre_mntpnt=${2:-$MOUNT}
              local arc_id=$3
              local hsm_root=${4:-$(copytool_device $facet)}
              local agent=$(facet_active_host $facet)
      
              if [[ -z "$arc_id" ]] &&
                      do_facet $facet "pkill -CONT -x $HSMTOOL_BASE"; then
                              echo "Wakeup copytool $facet on $agent"
                              return 0
              fi
      
              if $HSM_ARCHIVE_PURGE; then
                      echo "Purging archive on $agent"
                      do_facet $facet "rm -rf $hsm_root/*"
              fi
      

      If the $hsm_root variable is not defined, rm -rf /* command will be executed.

      Easy way to reproduce (please, be careful!!! files on mounted shares will be deleted as well as on cluster node!)

      SINGLEAGT=client sh sanity-hsm.sh

      Attachments

        Activity

          People

            wc-triage WC Triage
            parinay parinay v kondekar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: