networkuser
Goto Top

Proxmox - Backup in Samba Share sichern

Hallo,
ich betreibe einen Virtualisierungsserver auf Basis von Proxmox. (RAID1 2x2TB WD Red)
Um die VMs sichern zu können, habe ich eine NAS erworben. Diese unterstützt nur das SMB-Protokoll.
Ich habe im Netz bereits gesucht und heraus gefunden, dass ich den SMB-Share im Dateisystem von Proxmox einhängen muss um darauf zugreifen zu können.
Dies habe ich gemacht und das eingehängte Verzeichnis als "Directory" als Backup-Storage in der Weboberfläche hinterlegt.
Wenn ich ein Backup ausführe und auf der NAS sichern möchte bricht selbiges mit folgender Meldung ab (Es werden Daten auf die NAS kopiert, jedoch sind diese nicht das gesamte Backup):

INFO: starting new backup job: vzdump 100 --remove 0 --mode snapshot --compress lzo --storage backup-nas --node root-srv
INFO: Starting Backup of VM 100 (qemu)
INFO: status = running
INFO: update VM 100: -lock backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating archive '/mnt/VMBackups/dump/vzdump-qemu-100-2014_02_28-21_30_46.vma.lzo'  
INFO: started backup task '89e07952-06be-495c-b4de-c4a269f925c0'  
INFO: status: 0% (268435456/1020054732800), sparse 0% (215752704), duration 3, 89/17 MB/s
ERROR: VM 100 qmp command 'query-backup' failed - got timeout  
INFO: aborting backup job
ERROR: Backup of VM 100 failed - VM 100 qmp command 'query-backup' failed - got timeout  
INFO: Backup job finished with errors
TASK ERROR: job errors


Lokale Backups sind jedoch ohne Fehler möglich und Proxmox ist Up-to-date.

Woran könnte es liegen? Und welche Möglichkeit habe ich (ohne weitere Kosten zu verursachen), dieses Problem zu lösen?

Vielen Dank im Voraus!!

Gruß
freddy976

Content-Key: 231325

Url: https://administrator.de/contentid/231325

Printed on: April 19, 2024 at 03:04 o'clock

Member: NetworkUser
NetworkUser Mar 04, 2014 at 18:42:17 (UTC)
Goto Top
Bis jetzt haben sich den Post nur sehr wenige angesehen... habe ich das Thema eventuell im falschen Unterforum gepostet?
Falls ja -> Sorry!
Hat keiner eine Idee?... Ich verzweifle hier langsam ;) ... Ich suche jetzt schon die ganze Zeit nach sinnvollen Möglichkeiten und auch nach Alternativen Bare Metal Backup Lösungen. Ich finde nur leider keine. :/ Samba per NFS in einer VM freigeben scheitert leider daran, dass es mit NFS nicht möglich ist einen Samba Share freizugeben. face-sad

Schon jetzt Danke!

Gruß
freddy976
Member: Frank
Frank Mar 19, 2014 at 10:29:31 (UTC)
Goto Top
Hallo @freddy976,

ich denke Proxmox ist recht selten, daher gibt es kaum jemand, der dir dabei helfen kann. Ich habe mit Proxmox vor ein paar Tagen mal angeschaut.
Benutzt Du den "local"-Storage oder einen anderen Storage-Server (z.B. per iSCSI, NFS etc.).

Letztendlich ist es ein Debian mit einer KVM. Wenn du eine Subscription hast, kannst du natürlich den Support kontakten. Die Preise dazu sind nicht sehr hoch. Wie auch immer, da es ein Debian ist würde ich einen anderen Weg vorschlagen. Stellen unter der normalen Linux-Bash (du kannst dich einfach mit "root" und Deinem Passwort per SSH anmelden) einen festen SMB Mount mit Deinem Backup Server her und synchronisiere z.B. per "rsync" einfach die die Daten. Dann noch einen Cronjob dazu erstellen und fertig ist dein Backup. Die Daten werden bei Proxmox "local" unter /var/lib/vz abgespeichert.

Um die VMs sichern zu können, habe ich eine NAS erworben. Diese unterstützt nur das SMB-Protokoll.

Besser wäre es, wenn du Dir z.B. ein NAS mit iSCSI oder NFS Support gekauft hättest. Dann könntest du per Proxmox (oder jeder anderen Virtualisierungslösung) diesen Speicher einbinden, direkt darauf speichern und dann dessen Backupfunktionalität nutzen. Ich habe z.B. ein Qnap NAS, damit funktioniert das alles ohne Probleme. Die sind zwar ein wenig teurer, als die vom üblichen MMarkt, aber dafür gibt es kaum Probleme.

Gruß
Frank
Member: Frank
Frank Mar 19, 2014 updated at 10:39:25 (UTC)
Goto Top
Hi,

noch ein kleines Update:

INFO: status: 0% (268435456/1020054732800), sparse 0% (215752704), duration 3, 89/17 MB/s
10. ERROR: VM 100 qmp command 'query-backup' failed - got timeout

Was hast du denn für ein NAS genau gekauft? Du bekommst ja einen "Timeout". Evtl packt es das neuen NAS nicht, die Größe der VM zu speichern. Wie ist denn das NAS formatiert? Kann man im NAS Timeout Zeiten ändern?

Wenn die 1020054732800 Bytes sind, wären das umgerechnet 950 GB.
Wenn die 1020054732800 Bits sind, wären das 118.75 GB

Schafft das Dein NAS?

Gruß
Frank
Member: eSpezi
eSpezi Mar 25, 2014 updated at 08:10:56 (UTC)
Goto Top
Servus Freddy,

seit Oktober letzten Jahres gibt es offenbar ein generelles Proxmox Problem mit dem Backup auf gemountete CFIS Shares.
Das Proxmox Forum (forum.proxmox.com) ist voll mit Posts zu dem Thema.

Leider hat niemand eine sinnvolle Lösung (zumindest habe ich keine gefunden).
Das einzige was zu helfen scheint ist ein Kernel Downdate.
Mit NFS kann ich einen meiner Server backupen. Leider habe ich diese Möglichkeit nicht bei anderen Maschinen, weshalb ich auch verzweifelt nach einer wirklichen Lösung suche. Downdaten ist keine, da die Maschinen produktiv sind...

In Deinem Fall könntest Du es ja mal mit einer älteren Proxmox Version versuchen (vor Oktober 2013, ich glaube das war die Version 3.0).

Gruß
Harry
Member: NetworkUser
NetworkUser Mar 25, 2014 at 11:54:13 (UTC)
Goto Top
Hallo, danke für die mittlerweile zahlreichen Antworten!
Ich habe mittlerweile meine NAS dazu gebracht NFS zu "sprechen". ;) (Konfiguriert als 2x2TB WD Red - RAID 1)
Dadurch wird ein Backup auf die NAS möglich.
Um dieses auch wiederherstellen zu können musste ich das RAW-Dateiformat für die HDDs der VMs wählen, da bei allen anderen kein Recover möglich ist. (Task Error - got timeout)
Jetzt stellt sich mir nur noch eine Frage:
Kann ich davon ausgehen, wenn ich das Backup im Snapshot Mode nachts durchlaufen lasse, dass die Daten konsistent gesichert werden?
(Ich betreibe eine FreeNAS VM inkl. ZFS und Verschlüsselung als File-Server)

Vielen Dank für die Hilfe!

freddy976
Member: Frank
Frank Mar 25, 2014 at 13:39:36 (UTC)
Goto Top
Hi @freddy976,

Um dieses auch wiederherstellen zu können musste ich das RAW-Dateiformat für die HDDs der VMs wählen,...
hmm, Snapshots funktionieren meines Wissens nur mit dem QCOW2 Format? Funktioniert dann der Snapshot-Mode trotzdem bei Dir?

Gruß
Frank
Member: NetworkUser
NetworkUser Mar 25, 2014 updated at 14:59:36 (UTC)
Goto Top
Hey,
Ja das Snapshot Backup funktioniert.(Zumindest laut logfile aus der GUI)

EDIT: Hier das Logfile vom Backup:

 
INFO: Starting Backup of VM 102 (qemu)
INFO: status = running
INFO: update VM 102: -lock backup
INFO: backup mode: snapshot
INFO: bandwidth limit: 1000000 KB/s
INFO: ionice priority: 7
INFO: creating archive '/mnt/pve/backup-nfs/dump/vzdump-qemu-102-2014_03_25-05_53_36.vma.lzo'  
INFO: started backup task 'ac2d604a-0659-4cbe-a265-72c19145fb49'  
INFO: status: 0% (260505600/1030792151040), sparse 0% (2744320), duration 3, 86/85 MB/s
INFO: status: 1% (10495721472/1030792151040), sparse 0% (9693286400), duration 43, 255/13 MB/s
INFO: status: 2% (20641349632/1030792151040), sparse 1% (12388225024), duration 465, 24/17 MB/s
INFO: status: 3% (31533826048/1030792151040), sparse 2% (22813003776), duration 517, 209/8 MB/s
INFO: status: 4% (42043179008/1030792151040), sparse 3% (33322356736), duration 529, 875/0 MB/s
INFO: status: 5% (51705020416/1030792151040), sparse 4% (42984198144), duration 540, 878/0 MB/s
INFO: status: 6% (62320345088/1030792151040), sparse 5% (53599522816), duration 552, 884/0 MB/s
INFO: status: 7% (72896217088/1030792151040), sparse 6% (64175394816), duration 564, 881/0 MB/s
INFO: status: 8% (82502090752/1030792151040), sparse 7% (73781268480), duration 575, 873/0 MB/s
INFO: status: 9% (93120167936/1030792151040), sparse 8% (84399345664), duration 588, 816/0 MB/s
INFO: status: 10% (103510441984/1030792151040), sparse 9% (94789619712), duration 600, 865/0 MB/s
INFO: status: 11% (113926209536/1030792151040), sparse 10% (105205387264), duration 612, 867/0 MB/s
INFO: status: 12% (124300230656/1030792151040), sparse 11% (115579408384), duration 624, 864/0 MB/s
INFO: status: 13% (134667960320/1030792151040), sparse 12% (125947138048), duration 636, 863/0 MB/s
INFO: status: 14% (144348151808/1030792151040), sparse 13% (135627329536), duration 647, 880/0 MB/s
INFO: status: 15% (154914258944/1030792151040), sparse 14% (146193436672), duration 659, 880/0 MB/s
INFO: status: 16% (165390188544/1030792151040), sparse 15% (156669366272), duration 672, 805/0 MB/s
INFO: status: 17% (175517728768/1030792151040), sparse 16% (166796906496), duration 684, 843/0 MB/s
INFO: status: 18% (186252853248/1030792151040), sparse 17% (177532030976), duration 697, 825/0 MB/s
INFO: status: 19% (196730421248/1030792151040), sparse 18% (188009598976), duration 709, 873/0 MB/s
INFO: status: 20% (206419918848/1030792151040), sparse 19% (197601816576), duration 723, 692/6 MB/s
INFO: status: 21% (216598446080/1030792151040), sparse 20% (207780343808), duration 735, 848/0 MB/s
INFO: status: 22% (227209183232/1030792151040), sparse 21% (218391080960), duration 748, 816/0 MB/s
INFO: status: 23% (237637468160/1030792151040), sparse 22% (228819365888), duration 760, 869/0 MB/s
INFO: status: 24% (248250171392/1030792151040), sparse 23% (239432069120), duration 772, 884/0 MB/s
INFO: status: 25% (257907818496/1030792151040), sparse 24% (249089716224), duration 783, 877/0 MB/s
INFO: status: 26% (268334530560/1030792151040), sparse 25% (259516428288), duration 795, 868/0 MB/s
INFO: status: 27% (278757048320/1030792151040), sparse 26% (269938946048), duration 807, 868/0 MB/s
INFO: status: 28% (289444069376/1030792151040), sparse 27% (280625967104), duration 820, 822/0 MB/s
INFO: status: 29% (299100012544/1030792151040), sparse 28% (290281910272), duration 831, 877/0 MB/s
INFO: status: 30% (309727133696/1030792151040), sparse 29% (300909031424), duration 843, 885/0 MB/s
INFO: status: 31% (320338460672/1030792151040), sparse 30% (311520358400), duration 855, 884/0 MB/s
INFO: status: 32% (329869361152/1030792151040), sparse 31% (321051258880), duration 866, 866/0 MB/s
INFO: status: 33% (340255703040/1030792151040), sparse 32% (331437600768), duration 878, 865/0 MB/s
INFO: status: 34% (350910218240/1030792151040), sparse 33% (342092115968), duration 890, 887/0 MB/s
INFO: status: 35% (361555099648/1030792151040), sparse 34% (352736997376), duration 903, 818/0 MB/s
INFO: status: 36% (371333726208/1030792151040), sparse 35% (362515623936), duration 914, 888/0 MB/s
INFO: status: 37% (381992173568/1030792151040), sparse 36% (373174071296), duration 926, 888/0 MB/s
INFO: status: 38% (392497594368/1030792151040), sparse 37% (383679492096), duration 938, 875/0 MB/s
INFO: status: 39% (402337824768/1030792151040), sparse 38% (393489838080), duration 951, 756/2 MB/s
INFO: status: 40% (412723576832/1030792151040), sparse 39% (403875590144), duration 963, 865/0 MB/s
INFO: status: 41% (423104741376/1030792151040), sparse 40% (414256754688), duration 975, 865/0 MB/s
INFO: status: 42% (432987963392/1030792151040), sparse 41% (424139976704), duration 988, 760/0 MB/s
INFO: status: 43% (443261059072/1030792151040), sparse 42% (434413072384), duration 1000, 856/0 MB/s
INFO: status: 44% (453912625152/1030792151040), sparse 43% (445064638464), duration 1012, 887/0 MB/s
INFO: status: 45% (464595779584/1030792151040), sparse 44% (455747792896), duration 1024, 890/0 MB/s
INFO: status: 46% (474263650304/1030792151040), sparse 45% (465415663616), duration 1035, 878/0 MB/s
INFO: status: 47% (484786896896/1030792151040), sparse 46% (475938910208), duration 1047, 876/0 MB/s
INFO: status: 48% (495066808320/1030792151040), sparse 47% (486218821632), duration 1060, 790/0 MB/s
INFO: status: 49% (505301630976/1030792151040), sparse 48% (496453644288), duration 1072, 852/0 MB/s
INFO: status: 50% (515883532288/1030792151040), sparse 49% (507035545600), duration 1084, 881/0 MB/s
INFO: status: 51% (526409924608/1030792151040), sparse 50% (517561937920), duration 1096, 877/0 MB/s
INFO: status: 52% (536147656704/1030792151040), sparse 51% (527299670016), duration 1107, 885/0 MB/s
INFO: status: 53% (546758590464/1030792151040), sparse 52% (537910603776), duration 1119, 884/0 MB/s
INFO: status: 54% (557444825088/1030792151040), sparse 53% (548596838400), duration 1131, 890/0 MB/s
INFO: status: 55% (567145398272/1030792151040), sparse 54% (558297411584), duration 1143, 808/0 MB/s
INFO: status: 56% (577667334144/1030792151040), sparse 55% (568819347456), duration 1155, 876/0 MB/s
INFO: status: 57% (588078055424/1030792151040), sparse 56% (579230068736), duration 1167, 867/0 MB/s
INFO: status: 58% (598492053504/1030792151040), sparse 57% (589644066816), duration 1179, 867/0 MB/s
INFO: status: 59% (608274939904/1030792151040), sparse 58% (599426953216), duration 1190, 889/0 MB/s
INFO: status: 60% (618840260608/1030792151040), sparse 59% (609992273920), duration 1202, 880/0 MB/s
INFO: status: 61% (629276409856/1030792151040), sparse 60% (620428423168), duration 1215, 802/0 MB/s
INFO: status: 62% (639798411264/1030792151040), sparse 61% (630950424576), duration 1227, 876/0 MB/s
INFO: status: 63% (650236788736/1030792151040), sparse 62% (641388802048), duration 1239, 869/0 MB/s
INFO: status: 64% (660003160064/1030792151040), sparse 63% (651155173376), duration 1250, 887/0 MB/s
INFO: status: 65% (670577524736/1030792151040), sparse 64% (661729538048), duration 1262, 881/0 MB/s
INFO: status: 66% (681070297088/1030792151040), sparse 65% (672222310400), duration 1274, 874/0 MB/s
INFO: status: 67% (691443662848/1030792151040), sparse 66% (682595676160), duration 1286, 864/0 MB/s
INFO: status: 68% (701347856384/1030792151040), sparse 67% (692499869696), duration 1299, 761/0 MB/s
INFO: status: 69% (711961346048/1030792151040), sparse 68% (703113359360), duration 1311, 884/0 MB/s
INFO: status: 70% (721720901632/1030792151040), sparse 69% (712872914944), duration 1322, 887/0 MB/s
INFO: status: 71% (732168716288/1030792151040), sparse 70% (723320729600), duration 1334, 870/0 MB/s
INFO: status: 72% (742544834560/1030792151040), sparse 71% (733696847872), duration 1346, 864/0 MB/s
INFO: status: 73% (753169203200/1030792151040), sparse 72% (744321216512), duration 1358, 885/0 MB/s
INFO: status: 74% (762930397184/1030792151040), sparse 73% (754082410496), duration 1370, 813/0 MB/s
INFO: status: 75% (773406720000/1030792151040), sparse 74% (764558733312), duration 1382, 873/0 MB/s
INFO: status: 76% (784060579840/1030792151040), sparse 75% (775212593152), duration 1394, 887/0 MB/s
INFO: status: 77% (793746604032/1030792151040), sparse 76% (784898617344), duration 1405, 880/0 MB/s
INFO: status: 78% (804429758464/1030792151040), sparse 77% (795581771776), duration 1417, 890/0 MB/s
INFO: status: 79% (814998945792/1030792151040), sparse 78% (806150959104), duration 1429, 880/0 MB/s
INFO: status: 80% (825457377280/1030792151040), sparse 79% (816609390592), duration 1441, 871/0 MB/s
INFO: status: 81% (835061481472/1030792151040), sparse 80% (826213494784), duration 1453, 800/0 MB/s
INFO: status: 82% (845623918592/1030792151040), sparse 81% (836775931904), duration 1465, 880/0 MB/s
INFO: status: 83% (856228364288/1030792151040), sparse 82% (847380377600), duration 1477, 883/0 MB/s
INFO: status: 84% (865900625920/1030792151040), sparse 83% (857052639232), duration 1488, 879/0 MB/s
INFO: status: 85% (876295421952/1030792151040), sparse 84% (867447435264), duration 1500, 866/0 MB/s
INFO: status: 86% (886838525952/1030792151040), sparse 85% (877990539264), duration 1512, 878/0 MB/s
INFO: status: 87% (897236467712/1030792151040), sparse 86% (888388481024), duration 1525, 799/0 MB/s
INFO: status: 88% (907844780032/1030792151040), sparse 87% (898996793344), duration 1537, 884/0 MB/s
INFO: status: 89% (917636775936/1030792151040), sparse 88% (908788789248), duration 1548, 890/0 MB/s
INFO: status: 90% (928281329664/1030792151040), sparse 89% (919433342976), duration 1560, 887/0 MB/s
INFO: status: 91% (938835640320/1030792151040), sparse 90% (929987653632), duration 1572, 879/0 MB/s
INFO: status: 92% (948340326400/1030792151040), sparse 91% (939492339712), duration 1583, 864/0 MB/s
INFO: status: 93% (958922883072/1030792151040), sparse 92% (950074896384), duration 1596, 814/0 MB/s
INFO: status: 94% (969343107072/1030792151040), sparse 93% (960495120384), duration 1609, 801/0 MB/s
INFO: status: 95% (979655131136/1030792151040), sparse 94% (970807144448), duration 1621, 859/0 MB/s
INFO: status: 96% (990083678208/1030792151040), sparse 95% (981235691520), duration 1633, 869/0 MB/s
INFO: status: 97% (1000649064448/1030792151040), sparse 96% (991801077760), duration 1645, 880/0 MB/s
INFO: status: 98% (1010990645248/1030792151040), sparse 97% (1002142658560), duration 1657, 861/0 MB/s
INFO: status: 99% (1020665790464/1030792151040), sparse 98% (1011817803776), duration 1668, 879/0 MB/s
INFO: status: 100% (1030792151040/1030792151040), sparse 99% (1021943910400), duration 1682, 723/0 MB/s
INFO: transferred 1030792 MB in 1682 seconds (612 MB/s)
INFO: archive file size: 7.92GB
INFO: Finished Backup of VM 102 (00:28:06)
INFO: Backup job finished successfully
TASK OK

NetworkUser
Member: Snooze
Snooze Aug 12, 2014 at 08:45:16 (UTC)
Goto Top
Hi Freddy,

der Thread ist ja nun doch schon etwas älter und ich hoffe ich kann dir trotzdem noch helfen.
Wie eSpezi schreibt ist ein Kernel downgrade momentan die einzige Lösung die zu funktionieren scheint. Denn auch in der aktuellsten Version von Proxmox sind Backups auf Samba Freigaben bei mir nicht möglich. (Stand: 12.08.2014)
Die Kernel Version die bei mir funktioniert ist die pve-kernel-2.6.32-23. Ich kann jetzt ohne Probleme auf meinen Samba Share sichern und zurückspielen.
Wenn ein Downgrade bei dir eine Option ist und nicht für mehr Probleme als davor sorgt kannst du es ja mal ausprobieren.

Grüße