Create and add NFS storage to RHV

Set up NFS shares that will serve as storage domains on a Red Hat Enterprise Linux server.

Add firewall rule are to rhel server

firewall-cmd --permanent --add-service nfs
firewall-cmd --permanent --add-service mountd
firewall-cmd --reload

Create and add group kvm; set the ownership of your exported directories to 36:36, which gives vdsm:kvm ownership; change the mode of the directories so that read and write access is granted to the owner

groupadd kvm -g 36
useradd vdsm -u 36 -g 36
mkdir -pv /home/rhv-data-vol
chown -R 36:36 /home/rhv-data-vol
chmod 0755 /home/rhv-data-vol

Add newly created directory to /etc/exports file which controls file systems are exported to remote hosts and specifies options.

echo "/home/rhv-data-vol 192.168.10.1(rw,sync)" >> /etc/exports
exportfs -av

Start, enable NFS server; check list of export server using showmount

systemctl start nfs
systemctl enable nfs
systemctl status nfs
showmount -e
Built with Hugo
Theme Stack designed by Jimmy