Fix GlusterFS mount ownership/permissions

This commit is contained in:
Fred Park 2016-10-06 09:29:53 -07:00
Родитель d83d39f64c
Коммит c9648c5cfd
5 изменённых файлов: 9 добавлений и 4 удалений

Просмотреть файл

@ -20,7 +20,7 @@ RUN apk update \
&& tar zxvpf libtorrent-${libtorrent_version}.tar.gz \
&& cd libtorrent-rasterbar-${libtorrent_version} \
&& ./configure --prefix=/usr --enable-debug=no --enable-python-binding --with-boost-system=boost_system \
&& make -j4 install \
&& make -j"$(nproc)" install \
&& ldconfig /usr/lib \
&& cd .. \
&& rm -rf libtorrent-rasterbar-${libtorrent_version} \

Просмотреть файл

@ -42,7 +42,7 @@ The jobs configuration should set the following properties within the `tasks`
array which should have a task definition containing:
* `image` should be the name of the Docker image for this container invocation,
e.g., `alfpark/namd:2.11-cuda`
* `command` should contain the `mpirun` command. If using the sample NAMD-TCP
* `command` should contain the `mpirun` command. If using the sample NAMD-GPU
image provided, `"/sw/run_namd.sh <benchmark> <steps> <ppn>"` can be used
to run the included benchmarks:
* `<benchmark>` is the benchmark to run: `apoa1` or `stmv`

Просмотреть файл

@ -15,4 +15,4 @@ curl -O $github_url/$dataset
curl -O $github_url/$train
# train
th $train -t "$(nproc)"
th $train -t "$(nproc)" $*

Просмотреть файл

@ -30,4 +30,4 @@ sed -i "/ local targets = torch.Tensor(opt.batchSize)/a \
targets = targets:cuda()\n" $train
# train
th $train -t "$(nproc)"
th $train -t "$(nproc)" $*

Просмотреть файл

@ -41,6 +41,9 @@ if [ $AZ_BATCH_IS_CURRENT_NODE_MASTER == "true" ]; then
# create volume
echo "creating gv0 ($bricks)"
gluster volume create gv0 replica $numnodes transport tcp$bricks
# modify volume properties
gluster volume set gv0 storage.owner-uid `id -u _azbatch`
gluster volume set gv0 storage.owner-gid `id -g _azbatch`
# start volume
echo "starting gv0"
gluster volume start gv0
@ -64,6 +67,7 @@ set -e
# add gv0 to /etc/fstab for auto-mount on reboot
mountpoint=$AZ_BATCH_NODE_SHARED_DIR/.gluster/gv0
mkdir -p $mountpoint
chmod 775 $mountpoint
echo "adding $mountpoint to fstab"
echo "$ipaddress:/gv0 $mountpoint glusterfs defaults,_netdev 0 0" >> /etc/fstab
@ -88,6 +92,7 @@ do
fi
done
set -e
chmod 775 $mountpoint
# touch file noting success
touch .glusterfs_success