Trying To Add Storage For Backup... Unsuccessfully

  • Thread starter Thread starter Huss
  • Start date Start date
H

Huss

Guest
Hi Im pretty new to proxmox, been using it for about 8months, but with just the basics...
I now want to backup a few KVM's I have so I can do a new clean install and start again, hence wiping out all the errors Ive done in the past....

at the moment I'm trying to follow a tutorial I found on wiki http://pve.proxmox.com/wiki/Backup_-_Restore_-_Live_Migration

And when I try add the server IP I get the following error...
Code:
Error: command '/sbin/showmount --no-headers --exports 10.1.1.5' failed with exit code 1
firstly I want to ask, am I going about this backup the right way, or is there another way of doing this..
Ive done a few searches but as I'm new to all this, I sort of get lost in the info...

If I am, can some one please tell me where I'm going wrong...

I have 3 x KVM server's I really need and don't want to lose, in this reinstall....

the current info Im trying to add is...

Storage

Storage Name: proxmox_backups Enable: yes
Server:
10.1.1.5 (local IP proxmox is installed on) Content: VZDump
Export: /mnt/vg2/nfs-backups/NFS-backups (copied the tutorial)

and when i try and scan server, this error pops up
Code:
Error: command '/sbin/showmount --no-headers --exports 10.1.1.5'  failed with exit code 1
I'm running Proxmox 1.5

Uptime13:57:30 up 7 days 12:06, load average: 0.00, 0.00, 0.00 CPU(s)2 x Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz CPU Utilization
0.39%​
IO Delays
0.00%​
Physical Memory (4.84GB/360MB)
360MB​
Swap Space (4.00GB/199MB)
199MB​
HD Space root (57.09GB/1.05GB)
1.94%​

Version (package/version/build)pve-manager/1.5/4627 Kernel VersionLinux 2.6.24-8-pve #1 SMP PREEMPT Fri Oct 16 11:17:55 CEST 2009

Also if i just try save it, I get the following error..
Code:
Error: command '/bin/mount -t nfs 10.1.1.5:/mnt/vg2/nfs-backups/NFS-backups /mnt/pve/proxmox_backups' failed with exit code 32
Thanks

I also tried saving in a diferent directory
Code:
/mnt/pve/proxmox_backups/
which I found on the server, but still getting errors...
Code:
Error: command '/bin/mount -t nfs 10.1.1.5:/mnt/pve/proxmox_backups/ /mnt/pve/proxmox_backups' failed with exit code 32

I think it has something to do with my actual IP I'm using, but even after trying the router IP, Im still getting the same errors...

thanks
 
Last edited by a moderator:
where do you want to store the backup? if you want to store backups on NFS, you need an extra NAS server (not on Proxmox VE).
 
hi Tom
I want to store the backups, either on my proxmox server, then ftp the files to my desktop, or directly on my desktop...

then after I reinstall proxmox I will re-setup the KVM's using the backups..

Thanks
Huss
 
in this case, you need to make dir on your Proxmox VE host, e.g.:
Code:
mkdir /backup

now, go to the web gui and add this dir as a storage target.

and then copy to files manually or by a script to your desktop.
 
HI
after I create the dir
Code:
mkdir /backup
via ssh, do I then go to my web gui, but this time when create storage I select, add directory instead of add nfs share. and use the same path I just created in ssh..

thats what Ive now done, and I have a tar file in my backups dir...

so it will be safe to reinstall proxmox now, and then migrate the tar file back once done...

thanks
 
yes, if the backup was successful (see the log) it contains all VM relevant data.
 
just backing up the last VM now..
So far it looks good and each VM backup looks about the right size, also I didn't compress them in hope on leaving less room for errors when restoring.
ill definitely check the logs once its complete and then hopefully go ahead and start the reinstall...

Thanks For Helping...
Very Much Appreciated......
 
Very strange, I am able to install Proxmox 1.4, but when i try install Proxmox 1.5 it freezes at Booting the system... press F2 for verbose mode.....
and when i hit F2 I get the following error over and over....

Code:
ata1.00: exeptopn Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
ata1.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
ata1.00: status: { DRY }
sd 0:0:0:0: timing out command, waited 180s
Buffer I/O error on device sda, logical block 0
I guess it might have something to do with my hdd, maybe faulty.. But what I dnt get is, that 1.4 will work, and then after installing 1.4 I did apt-get update & apt-get upgrade, and now I have 1.5 again....

well I guess its installed now, and just need to figure out how to restore the VM's. Migration didnt work because I don't have a 2nd Proxmox machines, Ill try recreate the backup directory and see if I can somehow restore them from there...

Thanks

***EDITED.....
Is it possible I use the same restore as I would with a NFS share Backup, I have now created the same directory on the proxmox console as I had when creating the initial backup, and have moved the files across to the server.. just wondering if I use the same command as NFS share, which would be

Code:
qmrestore vzdump-qemu-102-2010_03_16-04_48_19.tar 500

I thought it would be best to ask before I actually ran the command, in case it was wrong, and ended up messing something up... which would defeat the whole purpose of the reinstall :)

Thanks Again
 
Last edited by a moderator:
...
Code:
qmrestore vzdump-qemu-102-2010_03_16-04_48_19.tar 500

you can also provide the preferred target storage (see 'man qmrestore'), just in the case you more than one configured.
 
Hi Tom
I tried
Code:
man qmrestore
and it doesnt tell me much, or maybe I just didn't understand it...

but I tried
Code:
qmrestore  /backup/vzdump-qemu-102-2010_03_16-04_48_19.tar 101

and it restored the server with no errors...

Thank you for all your help...
and I have learned something new, regarding proxmox lol....