Commit f1d4cc62 authored by Martin Potthast's avatar Martin Potthast
Browse files

Update fs.sh

parent d914be27
...@@ -172,6 +172,11 @@ cmd_mount() { ...@@ -172,6 +172,11 @@ cmd_mount() {
exit 1 exit 1
fi fi
if grep -qs "/mnt/ceph/storage " /proc/mounts; then
logError "The mount point is already in use: /mnt/ceph/storage. Try unmounting it first."
exit 1
fi
sudo mount -t ceph -o name=webisstud,secretfile=/etc/ceph/ceph.client.webisstud.secret ceph.dw.webis.de:/storage /mnt/ceph/storage sudo mount -t ceph -o name=webisstud,secretfile=/etc/ceph/ceph.client.webisstud.secret ceph.dw.webis.de:/storage /mnt/ceph/storage
} }
...@@ -187,6 +192,11 @@ cmd_mount_rw() { ...@@ -187,6 +192,11 @@ cmd_mount_rw() {
exit 1 exit 1
fi fi
if grep -qs "/mnt/ceph/storage " /proc/mounts; then
logError "The mount point is already in use: /mnt/ceph/storage. Try unmounting it first."
exit 1
fi
sudo mount -t ceph -o name=webis,secretfile=/etc/ceph/ceph.client.webis.secret ceph.dw.webis.de:/storage /mnt/ceph/storage sudo mount -t ceph -o name=webis,secretfile=/etc/ceph/ceph.client.webis.secret ceph.dw.webis.de:/storage /mnt/ceph/storage
} }
...@@ -197,6 +207,11 @@ cmd_umount() { ...@@ -197,6 +207,11 @@ cmd_umount() {
exit 1 exit 1
fi fi
if ! grep -qs "/mnt/ceph/storage " /proc/mounts; then
logError "There is no mount at the mount point: /mnt/ceph/storage."
exit 1
fi
sudo umount /mnt/ceph/storage sudo umount /mnt/ceph/storage
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment