Applicable to:
- SolusVM
Question
How to add an NFS storage to SolusVM 1?
Answer
The product itself does not automatically have this as an easy "click and do" type.
Manual work is needed.
Note: We can't guarantee the success with this nor the workflow/condition that it will be, nor guide you with proper how-to steps.
Here is an example of the logic/steps that you could take to achieve this:
On the Backup node that you already have, connect via SSH and run:
# apt update && apt install nfs-kernel-server -y -> For Debian/Ubuntu
# yum install nfs-utils -y -> For CentOS/RHELChoose a directory where NFS storage will be shared, such as
/backup/nfs:# mkdir -p /backup/nfs chown -R nobody:nogroup /backup/nfs -> For Debian/Ubuntu
# chown -R nfsnobody:nfsnobody /backup/nfs -> For CentOS/RHEL
# chmod 777 /backup/nfsEdit
/etc/exportsand add an entry to allow access from your SolusVM master and slave nodes:CONFIG_TEXT: /backup/nfs 192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check)
- Replace
192.168.1.0/24With your actual network or specify individual IPs of your master and slave nodes.
4. Restart NFS Services:
# exportfs -rav
# systemctl restart nfs-kernel-server -> For Debian/Ubuntu
# systemctl restart nfs-server -> For CentOS/RHEL
Add the NFS Storage to SolusVM:
- Login to SolusVM Admin Panel.
- Go to Nodes → Storage → Add Storage.
- Choose NFS as the storage type.
- Set the storage path to match the exported directory (e.g.,
/backup/nfs). - Enter the IP Address of the NFS server.
- Click Add Storage.
Mount the NFS Storage on Slave Nodes:
- On each slave node that needs access to this storage, install the NFS client:
# apt install nfs-common -y -> Debian/Ubuntu
# yum install nfs-utils -y -> CentOS/RHEL
- Create a mount point and mount the NFS share:
# mkdir -p /mnt/nfs
# mount -t nfs 192.168.1.X:/backup/nfs /mnt/nfs
Replace 192.168.1.X with your backup node’s IP.
To make it persistent, add the following to /etc/fstab:
CONFIG_TEXT: 192.168.1.X:/backup/nfs /mnt/nfs nfs defaults 0 0
Comments
Please sign in to leave a comment.