Network Mounts Flashcards

1
Q

install NFS

A

yum install nfs-utils rpcbind -y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

add mount point

A

mkdir /nfsmount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Allow nfs through firewalld

A

firewall-cmd –permenant –add-service=nfs

firewall-cmd –reload

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

add entry to /etc/exports for NFS

A

vim /etc/exports:
/app01/esbdata *(rw,sync)
or
/app01/esbdata lx00016138d(rw,sync,no_root_squash) lx00016136d(rw,sync,no_root_squash)

exportfs -a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

start nfs service

A

systemctl start nfs

systemctl enable nfs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Mount nfs share

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Create network connect to network share

A

vim /etc/hosts

10.1.166.43 hostname.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Install samba client packages

A

yum install -y samba samba-common samba-client cifs-utils

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Mount SMB Share

A

vim /etc/fstab

//server/mount /mount cifs rw,username=user,password=pass 0 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where to find examples of samba configuration

A

/etc/samba/smb.conf.example

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

basic share configuration file

A

/etc/samba/smb.conf

[myshare]
        comment = This is our share
        path = /myshare
        guest ok = no
        writeable = yes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Command to test the configuration of a Samba share

A

testparm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Start samba services

A

systemctl start smb

systemctl start nmb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly