Skip to content

Commit

Permalink
ansible: support disk partition and vd* as chunkserver
Browse files Browse the repository at this point in the history
Fixes: issue opencurve#349
  • Loading branch information
aspirer committed May 17, 2021
1 parent 4b772c2 commit 008709e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion curve-chunkserver/home/nbs/chunkserver_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function fstab_record {
if [ $? -ne 0 ]
then
echo "#curvefs" >> /etc/fstab
for i in `lsblk|grep chunkserver|awk '{print $1}'`
for i in `lsblk|grep chunkserver|awk '{print $1}' | grep -Eo 'sd.*|vd.*'`
do
echo "UUID=`ls -l /dev/disk/by-uuid/|grep $i|awk '{print $9}'` `lsblk|grep $i|awk '{print $7}'` ext4 rw,errors=remount-ro 0 0" >> /etc/fstab
done
Expand Down

0 comments on commit 008709e

Please sign in to comment.