Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
code-generic
code-webis-cmd
Commits
f1d4cc62
Commit
f1d4cc62
authored
Sep 28, 2020
by
Martin Potthast
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update fs.sh
parent
d914be27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
tools/ceph/fs.sh
tools/ceph/fs.sh
+15
-0
No files found.
tools/ceph/fs.sh
View file @
f1d4cc62
...
...
@@ -172,6 +172,11 @@ cmd_mount() {
exit
1
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
}
...
...
@@ -187,6 +192,11 @@ cmd_mount_rw() {
exit
1
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
}
...
...
@@ -197,6 +207,11 @@ cmd_umount() {
exit
1
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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment