-
Notifications
You must be signed in to change notification settings - Fork 21
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
winDRBD compilation error #25
Comments
Hi, thank you for trying to compile WinDRBD.
to get a compilable output. Then first create the patched Happy hacking and please let me know about your |
Hi someone (git clone? tar? something else?) converted the transform shell script file to DOS linefeeds (0x0a 0x0d, or ^J^M). I would recommend to use a CygWin shell on the Windows side (once you are at that step). Good luck :) |
Hi, your build environment has to match your Ewdk installation. Nowadays Ewdk is distributed as an ISO so you need to Also you need to create a ms-$(BUILD_ENV).cmd script Please let me know about the progress. And if possible paste text instead of making a screenshot Best regards,
|
According to your instructions, I modified the corresponding file, and now when I run make on windows box, I encounter the following error. |
Hi you can try a make clean It should remove the pdb files. Congratulations you're almost done :) |
Hi, |
Hi, After solving the.PDB problem, I encountered a new problem |
Hi I recall I had the issue with the pdb files and copying the project directory I did not encounter the other error with the struct / union, could you please Especially the first error line would be interesting ... does it say something You are very brave compiling WinDRBD on your own, do you want to develop |
HI, The downloaded installation software is not suitable for my use scenario. I want to make some modifications to windrbd and then adapt it to my other software. |
The above issue is due to my windows Settings, which should change the language of non-Unicode programs to English resource.rc(17) : error RC2127 : version WORDs separated by commas expected |
Hi good to see that you are making progress. Maybe you also need to pull the tags:
Could you send the relevant lines in resource.rc? And what specifically do you want to implement, maybe |
Please also send the output of
|
My compilation log gives the following error about versioninfo.sh
Patchlevel is WinDRBD version is ., Resource version is ,
|
When I finished executing this command as he asked, I do make. |
The function I want to implement is that drbd does not do full disk synchronization for the first time (because maybe my disk is not full), I pass the value to drbd in the unit of sector or block, and drbd synchronize according to the value I pass in. I have tried similar on linux drbd, passing the value through ioctl. I don't know if windrbd supports ioctl. By the way, can windrbd support win11, or is there any development plan for win11? |
Hi, regarding the crypto: there is a readme.txt which briefly explains how to create the required files. You need to also add your files to your build environment settings in Makefile.win (don't forget make copy after changing Makefile.win). Regarding Windows 11: It has been reported that WinDRBD (starting from 1.1.0) also runs on Windows 11. However a Microsoft signed driver is required since Windows 11 won't load unsigned (or self signed) drivers any more. To do so you need to:
After all it is very complicated but this is out of scope of our control. Regarding your function: You also can create a user mode application that patches the bitmap Please let me know what you think about it. |
Thank you very much for your help. I successfully compiled and installed the windrbd driver. Could you give me a general description of the process of making exe files through inno-setup? I know nothing about inno-setup, but I want to try this process. Do I need to execute make package on cygwin of windows box after successfully installing windrbd driver? Do I need to compile the source code of drbd-utile About the function i mentioned earlier: |
Have you noticed that when you use make install after making, the windrbd.sys file is not placed in "C:\windows\system32\drivers\windrbd.sys"? And executing "Driverquery" in cmd does not produce windrbd as expected. |
One more question is about compiling drbd-utils with cygwin on windows. I do cygrunsrv.exe -I windrbdumhelper -p /cygdrive/c/windrbd/usr/sbin/windrbd.exe -auser-mode-helper-daemon -1 /cygdrive/c/windrbd/windrbd-umhelper.log -2 /cygdrive/c/windrbd/windrbd-umhelper.log -t manual || exit 0 make[1]: Leaving directory '/cygdrive/j/utiles/drbd-utils/user/windrbd'` |
When I try to use make package to generate an exe file after make install, I get the following error: |
If I want to protect my system disk with windrbd is that possible? Because I tried to use only RAW format disks |
Hi I didn't use make install in WinDRBD for some time now, so it is probably broken. Regarding C: (system disk) it is possible but currently not well supported .. if you |
Let's forget about the make package, I don't feel like I need to use it that much right now. |
Hi, As I understand you want to reuse existing data (like an NTFS partition) and at the initial resync sync only blocks that contain valuable data. You can do so by: drbdadm dump-md > md.txt (use drbdadm dump-md -d to find the correct drbdmeta parameters) That should be far more easier than patching WinDRBD ... Does it help? Best regards,
|
Hi :) As you can see the bitmap changes as you write data. After updating the bitmap you want to run:
According to @JoelColledge this should work. Please let me know your findings. I am a bit unresponsive the next 3 weeks (vacation) so please be patient :) Best regards,
|
Have a good holiday. My question now is that the md.txt file I got here, I don't know how the blocks (I mean drbd divides the data into 4K blocks for each bit in the bitmap) correspond to the md.txt file I got. |
It is a run-length encoding. The hex values like If there is no run-length part then the hex value just represents the next 64 bits. The comments like In your case you could just write the whole bitmap without worrying about the run-length encoding. For instance, the following would represent a 128 bit bitmap, where only bit 6 is set. That is, a 512KiB device with a bitmap for syncing the data set by
|
I downloaded the tag package and unpacked it on my Intranet (ubuntu). I executed make on Ubuntu and then followed the instructions in the INSTALL document to execute Makefile.win. Since there is no network on the Intranet, I executed versioninfo.sh on ubuntu beforehand. I then commented the relevant content in Makefile.win and now I get the following error when compiling on Windows ent.
The text was updated successfully, but these errors were encountered: