Archive for March, 2022

6
Mar

Linux NFS

   Posted by: admin    in Mẹo vặt của hiếu râu

Server side

yum install nfs-utils
systemctl enable rpcbind
systemctl enable nfs-server
systemctl enable nfs-lock
systemctl enable nfs-idmap
systemctl start rpcbind
systemctl start nfs-server
systemctl start nfs-lock
systemctl start nfs-idmap


vi /etc/exports
/_ISOs  *(rw,sync,no_subtree_check,insecure)
mkdir -p /_ISOs

chmod -R 777 /_ISOs

exportfs -rav
exportfs -v
showmount -e

systemctl stop nfs-server
systemctl start nfs-server
systemctl status nfs-server
Client side

yum install nfs-utils
mkdir /_ISOs

mount -t nfs <serverIP>:/_ISOs /_ISOs/

xe sr-create name-label=ISO_IMAGES_LOCAL type=iso device-config:location=/_ISOs deviceconfig:legacy_mode=true content-type=iso

cfdisk /dev/sdb

vgcreate

xe sr-create name-label=”2TB” shared=false device-config:device=/dev/sdb type=lvm
lvdisplay