mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
Fix the match error when starting OSD daemons.
If we have osd.7 and osd.77 on the same host, osd.7 will not be mounted if osd.77 is mounted. Signed-off-by: huangjun <hjwsm1989@gmail.com>
This commit is contained in:
parent
10382d1b8e
commit
59507101a0
@ -342,10 +342,10 @@ for name in $what; do
|
||||
|
||||
if [ "$fs_type" = "btrfs" ]; then
|
||||
echo Mounting Btrfs on $host:$fs_path
|
||||
do_root_cmd_okfail "modprobe btrfs ; btrfs device scan || btrfsctl -a ; egrep -q '^[^ ]+ $fs_path' /proc/mounts || mount -t btrfs $fs_opt $first_dev $fs_path"
|
||||
do_root_cmd_okfail "modprobe btrfs ; btrfs device scan || btrfsctl -a ; egrep -q '^[^ ]+ $fs_path ' /proc/mounts || mount -t btrfs $fs_opt $first_dev $fs_path"
|
||||
else
|
||||
echo Mounting $fs_type on $host:$fs_path
|
||||
do_root_cmd_okfail "modprobe $fs_type ; egrep -q '^[^ ]+ $fs_path' /proc/mounts || mount -t $fs_type $fs_opt $first_dev $fs_path"
|
||||
do_root_cmd_okfail "modprobe $fs_type ; egrep -q '^[^ ]+ $fs_path ' /proc/mounts || mount -t $fs_type $fs_opt $first_dev $fs_path"
|
||||
fi
|
||||
if [ "$ERR" != "0" ]; then
|
||||
EXIT_STATUS=$ERR
|
||||
|
Loading…
Reference in New Issue
Block a user