I am using NFS with kubernetes and have following questions Can we expand the . . .

Ibrark8s:
I am using NFS with kubernetes and have following questions

Can we expand the NFS storage in future keeping the stored data intact?
Is NFS ensure 100% Availability, Integrity, and durability of data ?
What would be the way forward of recovering data if NFS goes down?

Trung Tran:
It depend on your NFS server, if you use service from cloud provider for this, they have committed SLA and also the solutions for backup and recovery, data loss prevention etc…

Trung Tran:
https://docs.aws.amazon.com/filegateway/latest/files3/use-nfs-csi.html

Ibrark8s:
@Trung Tran thank you but we are using locally by integrating NFS with kubernetes via storageclass for RWX mode purpose

Ibrark8s:
@Trung Tran https://ibraraziz-cloud.blogspot.com/2022/09/tkgs-vmware-readwritemany-functionality.html?m=1|https://ibraraziz-cloud.blogspot.com/2022/09/tkgs-vmware-readwritemany-functionality.html?m=1

Ibrark8s:
@Trung Tran followed this link

Trung Tran:
good to know, thanks @Ibrark8s

Alistair Mackay:
Hi @Ibrark8s

In answer to your original questions - if you’re using VMware vSAN solution or similar then the availability, integrity and maintenance of that is defined in the documentation for it.

If on the other hand, you’re just using some Linux server that serves NFS exports then

  1. Yes you should be able to if you’re using an LVM volume for the filesystem you’re exporting to NFS. Rules for expanding LVMs then apply.
  2. This depends on how the server is managed, i.e. backup schedules, operating system patches etc. There are tutorials on the web for setting up high availability for NFS, but you’d have to deploy and maintain more than one server.
  3. Restore the backup. There would be no service while the server is restored and data only preserved to the time of the last backup. Invest in a good backup solution.

Ibrark8s:
Thank you so much for the detailed answer @Alistair Mackay

Lisenet:
In short:

  1. Yes.
  2. No. NFS is merely a protocol, means to access data, you still need physical disks to store your data on. Availability, integrity, and durability of data depends on your storage solution. NFS is not a storage solution. It is a way to access your storage solution.
  3. NFS going down does not imply your data is lost. It may be, but it’s not given. Backup your data.