Network Mounts Flashcards
install NFS
yum install nfs-utils rpcbind -y
add mount point
mkdir /nfsmount
Allow nfs through firewalld
firewall-cmd –permenant –add-service=nfs
firewall-cmd –reload
add entry to /etc/exports for NFS
vim /etc/exports:
/app01/esbdata *(rw,sync)
or
/app01/esbdata lx00016138d(rw,sync,no_root_squash) lx00016136d(rw,sync,no_root_squash)
exportfs -a
start nfs service
systemctl start nfs
systemctl enable nfs
Mount nfs share
mount -t nfs lx00016140p:/app01/esbdata /app01/esbdata
vim /etc/fstab
lx00016140p:/app01/esbdata /app01/esbdata nfs rsize=8192,wsize=8192,timeo=14,intr
mount -a
Create network connect to network share
vim /etc/hosts
10.1.166.43 hostname.com
Install samba client packages
yum install -y samba samba-common samba-client cifs-utils
Mount SMB Share
vim /etc/fstab
//server/mount /mount cifs rw,username=user,password=pass 0 0
Where to find examples of samba configuration
/etc/samba/smb.conf.example
basic share configuration file
/etc/samba/smb.conf
[myshare] comment = This is our share path = /myshare guest ok = no writeable = yes
Command to test the configuration of a Samba share
testparm
Start samba services
systemctl start smb
systemctl start nmb