Information Technology Reference
In-Depth Information
Setting up NFS for the export domain
Once you have your RHEV up and running with the first data domain up and active, you
can attach an NFS export as an export domain to back up your virtual machines and tem-
plates. The following section shows you how to set up a basic NFS in RHEL for your ex-
port domain in RHEV. Perform the following steps:
1. Register the host to the Red Hat Network or create a local Yum repository and in-
stall the NFS-related packages, as follows:
# yum install nfs-utils -y
2. Create directories from the existing mount point to use them as export disks:
# mkdir /export/rhev_import_export_disk
3. Export the disk in the NFS exports file and run the following command to export
the mount point named /export/rhev_import_export_disk to all the
disks with the few customized export options. Refer to man exports for detailed in-
formation on the export options used, as follows:
# echo ""/export/rhev_import_export_disk
*(rw,sync,no_subtree_check,all_squash,anonuid=36,anongid=36)""
>> /etc/exports
4. Empty the directory by removing all the files in the directory. Make sure to create a
backup of the directory if there is any important data in it before running the fol-
lowing command:
# rm -rf /export/rhev_import_export_disk/*
5. Set the user and group permission to 36:36, which is mandatory, for all NFS export
disks to be attached in RHEV. Take a look at the following command:
# chown 36:36 /export/rhev_import_export_disk/
6. Start the required NFS services and enable all NFS related services to start when
the system boots, as follows:
# /etc/init.d/rpcbind start ; /etc/init.d/nfs start ;
/etc/init.d/nfslock start
# /sbin/service rpcbind start ; /sbin/service nfs
Search WWH ::




Custom Search