Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
k8s
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c79ad402
authored
Aug 05, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete nfs-install.sh
1 parent
1e37164b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
script/seetaas/nfs-install.sh
script/seetaas/nfs-install.sh
deleted
100755 → 0
View file @
1e37164
#!/bin/bash
#wangtingwei
###################安装部署raid5###########
nfs_path
=
/storage/nfs
#read -p "请输出你要做raid5的四块磁盘名字" $1 $2 $3 $4
echo
"+++++++++++++++++++++安装mdadm以及xfsprogs+++++++++++++++++++++++++++++"
apt install mdadm xfsprogs
echo
"+++++++++++++++++设置raid5++++++++++++++++++++++"
mdadm -C -v /dev/md5 -l 5 -n 3 -x 1 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
mdadm -Ds >> /etc/mdadm/mdadm.conf
mkdir
$nfs_path
-pv
mkfs -xfs /dev/md5
mount /dev/md5
$nfs_path
df -h |grep /dev/md5
&&
echo
"raid5挂载成功,挂载路径是/storage/nfs"
###################其他参考手册##############
#umount /storage/nfs
#mdadm -S /dev/md5 # stop md5
#cat /proc/mdstat # check md5 state
#mdadm -As /dev/md5 # assemble md5
##################部署nfs####################
apt install nfs-kernel-server nfs-common
echo
"
$nfs_path
*(rw,sync,no_root_squash)"
>>/etc/exports
/etc/init.d/nfs-kernel-server restart
#apt install nfs-common
#sudo mount -t nfs 192.168.1.242:/mnt/md5 [NFS_MNT_CLIENT_LOC]
Write
Preview
Markdown
is supported
Attach a file
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 post a comment