B. Enable NFS Client to Linux
1. Install nfs client
yum install nfs-utils -y
2. mount for temporary
mount -t nfs mssql:/tmp /media/backup
[root@teguhth ~]# mount -t nfs mssql:/tmp /media/backup
[root@teguhth ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 475M 0 475M 0% /dev
tmpfs 487M 1.1M 486M 1% /dev/shm
tmpfs 487M 7.7M 479M 2% /run
tmpfs 487M 0 487M 0% /sys/fs/cgroup
/dev/mapper/centos-root 22G 4.6G 18G 21% /
/dev/sda1 1014M 138M 877M 14% /boot
tmpfs 98M 0 98M 0% /run/user/0
mssql:/tmp 35G 33G 2.4G 94% /media/backup
[root@teguhth ~]#
3. mount permanent add /etc/fstab & run "mount -a "
mssql:/tmp /media/backup nfs defaults 0 0
[root@teguhth ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Wed Jun 7 16:53:23 2023
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/centos-root / xfs defaults 0 0
UUID=ef4772bc-4818-4681-b8a0-4b21a783d6f0 /boot xfs defaults 0 0
/dev/mapper/centos-swap swap swap defaults 0 0
#/swapfile swap swap defaults 0 0
#10.10.10.7:/tmp /media/backup nfs defaults 0 0
mssql:/tmp /media/backup nfs defaults 0 0
[root@teguhth ~]#
[root@teguhth ~]# mount -a
[root@teguhth ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 475M 0 475M 0% /dev
tmpfs 487M 1.1M 486M 1% /dev/shm
tmpfs 487M 7.7M 479M 2% /run
tmpfs 487M 0 487M 0% /sys/fs/cgroup
/dev/mapper/centos-root 22G 4.6G 18G 21% /
/dev/sda1 1014M 138M 877M 14% /boot
tmpfs 98M 0 98M 0% /run/user/0
mssql:/tmp 35G 33G 2.4G 94% /media/backup
[root@teguhth ~]#
C. Enable nfs client windows
mount -o \\10.10.10.7\tmp Z:
No comments:
Post a Comment