[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] condor mount disk problem in shell script



To be clear, the log content is the output from your condor job?

Is this condor job running on your local machine or do you have other machines in your condor pool?

Jason Patton

On Tue, May 21, 2019 at 3:35 AM åä <kan.wu@xxxxxxxxxxxxx> wrote:
my shell script is:
sudo mkfs.ext4 /dev/vdb
if [ $? == 0 ]; then
    echo "format /dev/vdb success"
else
    echo "format /dev/vdb fail"
fi
out_dir=/data
sudo mkdir -p $out_dir
sudo mount /dev/vdb $out_dir
if [ $? == 0 ]; then
    echo "mount /dev/vdb to /data success"
else
    echo "mount /dev/vdb to /data fail"
fi

sudo chown wukan:wukan $out_dir
echo "..........." >> /data/test.txt
if [ ! -f /data/test.txt ]; then
    echo "/data/test.txt file is not exist"
else
    echo "/data/test.txt file is exist"
fi

when i run this script in condor worker machine in condor system.
the statement "sudo mount /dev/vdb $out_dir" does not work yet.
when i execute command "df -h"
the dir /data does not mount to /dev/vdb success.

but the log say it work ok.
the log content is:
Creating filesystem with 131072000 4k blocks and 32768000 inodes
Filesystem UUID: 441915d2-ab78-4258-8f76-f90c7c3a1a3f
Superblock backups stored on blocks: 
 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
 102400000

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done     

format /dev/vdb success
mount /dev/vdb to /data success
/data/test.txt file is exist



What's the problem may be? but when i run this script outside of the condor system.
the script work ok.and the dir /data  mount to /dev/vdb success.
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/