NFS restore directory

karlos

Renowned Member
Apr 11, 2010
52
0
71
Hi all, how do I point too and restore my NFS VMdump backups?

The wiki states this format: vzrestore vzdump-openvz-777.tar 600

But how do I point to the nfs share?
 
see /mnt/pve/ ...
 
sorry? is this what you mean Tom?

vzrestore /mnt/pve/vzdump-openvz-777.tar 600
 
I have seen a few other examples of how this is done but perhaps not specific enough for my setup.

My NFS storage folder in PVE shows: NFS:backup/vzdump-openvz-102-2010_05_24-07_05_35.tar

Going by the wiki I figure the format should be: vzrestore vzdump-openvz-102-2010_05_24-07_05_35.tar 102
or perhaps vzrestore backup/vzdump-openvz-102-2010_05_24-07_05_35.tar 102

Both of these have a 'file does not exist error'. Can I restore directly from the NFS server or do I need to create a local PVE folder and first transfer the files across?
 
no its on a windows PC running hanewinnfs

the Proxmox storage see's the server as 192.168.1.10 and /g/nfs
 
Last edited:
I would have thought a restore from a network directory outside of Proxmox was relatively commen, can anyone point me in the right direction here?
 
you need to mount the NFS via the Proxmox VE web interface, see http://pve.proxmox.com/wiki/Backup_-_Restore_-_Live_Migration#Web_Interface

if you follow this, you will see the nfs mounted on /mnt/pve/...

just type 'mount' to see the location,

see this from one of our test servers:
Code:
proxmox-106:~# mount

/dev/mapper/pve-root on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/mapper/pve-data on /var/lib/vz type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
192.168.2.130:/mnt/vg2/nfs-images/NFS-Images on /mnt/pve/NFS-Images type nfs (rw,addr=192.168.2.130)
192.168.2.130:/mnt/vg2/nfs-backups/NFS-Backups on /mnt/pve/NFS-Backups type nfs (rw,addr=192.168.2.130)
192.168.2.103:/srv/iso on /mnt/pve/NFS-ISO-MITS2 type nfs (rw,addr=192.168.2.103)
192.168.2.130:/mnt/vg2/nfs-iso/NFS-ISO on /mnt/pve/NFS-ISO type nfs (rw,addr=192.168.2.130)
proxmox-106:~#