Help with Backup and Restore please?

  • Thread starter Thread starter jonathanb
  • Start date Start date
J

jonathanb

Guest
Hello everyone,

I'm a Windows user that wants to try Proxmox and other Linux things. I'm trying to make a full server network with Proxmox and while I did that a made the Windows server corrupt. This happened twice and when the third time comes I want to be able to restore the full image with the backup function from Proxmox.

I'm a beginner with Linux so I googled and found this promising page http://pve.proxmox.com/wiki/Backup_-_Restore_-_Live_Migration
Unfortunately it didn't work for me and now I want to ask if there are any tutorials on the net that I can use to make a backup and restore it.

I have already tried to make a NFS share with FreeNAS but Proxmox coudn't get to it and with the knowledge that I have about Linux I hoped for a more simple solution.

I really hope someone can help me out with this. I'm trying more than two months with this. :(


---
Jonathan
 
...
I'm a beginner with Linux so I googled and found this promising page http://pve.proxmox.com/wiki/Backup_-_Restore_-_Live_Migration
Unfortunately it didn't work for me and now I want to ask if there are any tutorials on the net that I can use to make a backup and restore it.
...
Hi,
why it dosn't work for you? Will be a vzdump-file created? Hint's in the logfiles?
Is your storage config right?
Post the output of
Code:
df -k
mount
cat /etc/pve/storage.cfg

Udo
 
Thank you Udo for the fast reply!

why it dosn't work for you? Will be a vzdump-file created? Hint's in the logfiles?
Is your storage config right?

When I wanted to mount the NFS share in Proxmox it said that Proxmox didn't had the permission to do so. I'm used to the permission system from Windows and not Linux. I could have simply made a stupid mistake in the NFS share from my Freenas server.

Code:
df -k
mount
cat /etc/pve/storage.cfg

I'll try this when I'm done with work and will post the results here.
 
Output:
Code:
xenhead:~# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/pve-root  38446576    876624  35616980   3% /
tmpfs                  2018312         0   2018312   0% /lib/init/rw
udev                     10240       704      9536   7% /dev
tmpfs                  2018312         0   2018312   0% /dev/shm
/dev/mapper/pve-data 106617928    294300 106323628   1% /var/lib/vz
/dev/sdd1               516040     31648    458180   7% /boot
192.168.1.10:/mnt/Network
                     454979680  11393088 407188224   3% /mnt/pve/Server_backups
xenhead:~# 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)
procbususb on /proc/bus/usb type usbfs (rw)
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/sdd1 on /boot type ext3 (rw)
192.168.1.10:/mnt/Network on /mnt/pve/Server_backups type nfs (rw,addr=192.168.1.10)
xenhead:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content images,iso,vztmpl,rootdir

lvm: HDD1
        vgname hdd_sda1
        content images

lvm: HDD2
        vgname hdd_sdb1
        content images

lvm: HDD3
        vgname hdd_sdc1
        content images

lvm: HDD4
        vgname hdd_sde1
        content images

nfs: Server_backups
        path /mnt/pve/Server_backups
        server 192.168.1.10
        export /mnt/Network
        content backup

Everything looks normal to me, but I still can't make a connection with the NFS share on the FreeNAS server. I think that I need to put a password when I'm going to mount it. How can I put a password with the mount command?
 
This is wat happends when I try to mount the NFS share.

Code:
xenhead:/mnt# mount 192.168.1.10:/Main /mnt/nfs-mountpoint
mount.nfs: 192.168.1.10:/Main failed, reason given by server: Permission denied

Any idea how I can fix this? I think when I can mount this that I can restore the backup.
 
Hey Tom,

Thanks for the reply!
I can make a backup and when I look inside the share from the FreeNAS server I see content which looks like the backup from my Virtual Windows. My problem now is that I can't get it to mount so that I can use this:
Code:
qmrestore vzdump-qemu-555.tar 500

As far as I know it will then restore the backup. My vzdump-qemu-101-2011_04_15-15_00_02.tar is in a Virtual machine too so could that be a problem?

This is how I have made my test network:

Proxmox:
- Windows server 2008R2 x64
- Freenas

I made a backup from the Windows server and that backup went to the NFS share that is located in the Freenas server. Hopefully this will make more sense.

If Proxmox has made a backup from Windows server and it sends the backup to the share, does that mean that Proxmox already has mounted the nfs share somewhere?

I'm sorry, but I'm a complete beginner with this. :confused:
 
....

If Proxmox has made a backup from Windows server and it sends the backup to the share, does that mean that Proxmox already has mounted the nfs share somewhere?

I'm sorry, but I'm a complete beginner with this. :confused:

yes, if you configured a NFS via GUI it will be mounted on /mnt/pve/....

sometimes there is no content there because its only activated if you access it (e.b. via GUI), just take a look.
 
It's true that there is nothing inside the pve, but this doesn't help much. I still can't manually mount that NFS share on the Proxmox server. It says Permission denied while the server can make backups to it. Isn't it strange? I can't send a account and password with the mount command?
 
Just found out that you need the whole path of the share instead of the nfs share name.

Wrong:
Code:
mount 192.168.1.10:/Main /mnt/nfs-mountpoint
Right:
Code:
mount 192.168.1.10:/mnt/Main /mnt/nfs-mountpoint

Thanks for trying to help me Udo and Tom! :D