Libro sobre Proxmox maestria
Chapter 2
The following line shows the NFS-shared storage configured to hold an ISO image and OpenVZ/container template only:
content iso, vztmpl maxfiles 1
The NFS-shared storage can keep a maximum of one latest backup as shown:
Older backups get deleted. When setting the maxfiles parameter, always be sure that the storage has enough space to keep up with the retained backups. For example, if maxfiles is set to 10, the storage will keep 10 latest backups and delete the older ones. When backing up 200 GB of data of virtual machines with maxfiles set to 10, the NFS-shared storage will need 2 TB of space at all times to hold 10 backups.
The same NFS share can be attached to Proxmox multiple times for different purposes. For example, an NFS share/nfs_server/share_name can be attached to nfs-iso-01 to store ISO and as nfs-vm-01 to store virtual machines.
iSCSI/LVM requires extra steps than NFS to set up. For this type of share to work with Proxmox, an iSCSI share first needs to be attached with Proxmox, and then an LVM storage can be created on top of it. The following is the iSCSI/LVM configuration from our basic cluster:
iscsi: nas-iscsi-01 content none lvm: nas-lvm-01 vgname nas-lvm-01 content images target iqn.2011-03.org.example.istgt:pmxtgt01 portal 192.168.145.11 base nas-iscsi-01:0.0.0.scsi-330000000391132dd shared
Let's take a look at each line of the previous code.
The following line is an iSCSI type share with name nas-iscsi-01. Always give iSCSI share a distinguished name, since the Proxmox GUI shows both iSCSI and LVM as storage, but only LVM has usable storage space. The iSCSI share will always show available space as zero (0). Also, Proxmox identifies an iSCSI base storage with this name:
iscsi: nas-iscsi-01