-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fallback for O_TMPFILE (under kernel 3.1.1) #15
base: master
Are you sure you want to change the base?
Fallback for O_TMPFILE (under kernel 3.1.1) #15
Conversation
be61d5d
to
a350300
Compare
@jclab-joseph Why this is needed? The 3.1.1 is pretty ancient at this point. |
As the author of the related issue says, Make it runnable in Synology docker. |
Oh. Nice. Would you consider sending this patch upstream to Proxmox? I think they might be better suited to support this. |
+1! There are MANY NAS, especially Synology users, and NAS vendors keep quite old software versions, as main need to be stable and do the job. |
can someone please accept MR? Synology is very popular and strong solution. |
I also stuck with this problem. Could you please pay attention to it. |
@vyalyh-oleg OK, but 3.10 is "ANCIENT", unsafe, etc. |
@ayufan I know this. But the maintainer of the Synology OS is the Synology company. Even the latest 7.1.x Synology OS is based on that kernel version, and users can't do anything about it. |
@pagalba-com Fine, but what does it change? :) I cannot and have no way to validate or support the fix - as I wary of using devices with ancient kernels for many reasons (including security). And this is shameful for company as large as Synology to depend on unsupported software. If you want this supported by this project someone has to push the patch upstream to be pulled by the PBS maintainers. Then it will automatically be included in this rebuild. Here is the guide: https://pve.proxmox.com/wiki/Developer_Documentation#Mailing_List |
I did not manage to build this. Is there a version that works on the current version? |
Support kernel under 3.1.1.
08b9c21
to
ef8789a
Compare
It's a pity but proxmox guys don't want to deal with it. |
Thanks @vyalyh-oleg, but it is hard to disagree with the feedback. For this to work it would actually have to be tested (by them) to support 3.10 kernel which is non trivial those days. How many places would has to be fixed? Since the PBS is also a moving target. |
@vyalyh-oleg What we could do is that I would release Synology (3.10 compatible) version once, and ask you to test that all features work. However, I do not plan to keep supporting it except this one off situation. |
I think many NAS users would be very happy, and even from green planet perspective, this makes big sense. Why we should follow big corp waste politics, while we can support sustainable way of living. |
Yes, I can test it on my Synology device (DS916+). |
I can also test on a DS1517+ |
@alexanderharm @jclab-joseph @pagalba-com @vyalyh-oleg As expected the usage of |
@ayufan, am I understood correctly, that you are talking about upgrading ProxmoxVE itself? |
I also consider installing proxmox backup on a low-power device (or as a virtual machine inside PVE) and use synology only as a remote disk. It's a more tangly approach, but it worth attention. Maybe it will be helpful for someone else. |
a99291b
to
aec4cc9
Compare
Hi there, I'm in a same spot as few other people - stuck on kernel 3.10 with no option for update - as far as i see it is related to CPU Synology used.
Both solutions are using NFS which gives too much overhead and PBS is simply way too slow as PBS relies heavily on IOPS performance. So the only viable solution is to have "direct" storage access without network overhead, whether real or virtualized. So my question is: Will it be possible to prepare a flavored build of PBS docker image and include that kernel 3.1* patch? |
Main use case is Proxmox cluster on bare metal, and PBS server on NAS device. Does it require pbs-client to be patched in this case? |
Brute search through the code base gave me 3 files https://github.com/search?q=repo%3Aproxmox%2Fproxmox-backup%20O_TMPFILE&type=code |
Probably yes, but i lack knowledge on how to do it and even where to look. Citing one of Proxmox Staff Member from linked topic:
As far as i can understand the source code - everything related to shared memory is extracted into single library which is patched by @jclab-joseph Therefore it might just work - however for me it's black magic, I know that Rust exists and thats it 😅 |
That looks similar to what is proposed in patch. 🤔 |
so may be you can publish some beta build image, with tag something like 3.1-synorc ? So I can test it, and remove if it will fail.. |
I believe 3.1.1 is nearly 13-years old. Honestly, if someone is using a Synology NAS, and doesn't have the experience/skill to apply this patch to their own fork, I don't think I'd recommend their attempting to run PBS in a container at all. I certainly don't recommend merging it into this branch; As @ayufan has made abundantly clear, they have no method with which to test and maintain such an implementation. Even if it functions in the short-term, there are no guarantees that it will continue to function with future updates to this Dockerfile, or PBS, or Synology (if they ever bother), or Docker. To @ayufan - Sincerely, thank you for your work on this, you have saved me a ton of time and effort! I really respect your response to this request, and I believe you've gone over and above to make a good faith effort to satisfy the folks who have pushed for it to be merged. As I said before, I agree with your first sentiment, and I think it's just generally a bad idea. They can always fork this branch and carry on themselves. To everyone who's asking for this to be merged: No responsible company should be releasing contemporary software using 3.1.1, and it isn't reasonable to ask anyone else to support such an antiquated platform. Even if it is wildly popular (a questionable assertion anyway, see below), its users are, by default, a cohort who either didn't know any better, or otherwise didn't care, and that's an inherently problematic group to provide support for an unofficial and experimental endeavor such as this. You might get through the initial setup using this patch, but I'd expect additional issues to arise sooner or later, simply because this is a highly unorthodox approach to PBS, and your systems are all based on a kernel that predates Docker itself by 2-years. @pagalba-com - how are 2017 stats for NAS popularity relevant? There are loads of newer options that didn't exist when that chart was made. For the record, you can update the kernel on lots of old devices. I'm running the latest kernel right now on a Dell Optiplex with a Windows 7 sticker on the front. The fact that you can't upgrade the kernel on a Synology device is not a good reason to push the responsibility to support an obsolete kernel on other developers--it's a good reason to protest Synology's negligence, and avoid products that aren't capable of being kept up-to-date to begin with. It's Synology's irresponsible firmware that is generating excess e-waste, not software devs who choose not to support an inherently unsafe system. If I were a Synology customer, I would be hounding them for an update or, better yet, actively seeking a replacement solution for my NAS¹ that won't leave you exposed to exploits and vulnerabilities that were patched more than a decade ago.
|
See #11 and #13