Kacper

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by Kacper

  1. According to reply from a forum /sbin/poweroff will wait Settings -> VM Manager -> VM shutdown time-out: number of seconds before forcing shutdown.
  2. And it will wait for docker to shutdown and array to close gracefully?
  3. Hi, I have created mini howto with script that actually does the job for me. Look here: I am sure it can be done better way, e.g. as a plugin. I have read that in kernel there are is other battery module (sbs), that will work with other, maybe newer laptops. My solution uses ac and battery modules and works with thinkpads and probably many more laptops. Making universal plugin might require community testing on different machines or reading docs for sbs kernel power module. Anyway, I have accomplished what I wanted and shared my results Thanks for help. I have added kernel modules for unraid 6.9.0. In this post I will attach sbs module, if anyone has pc that is using sbs then maybe can share some knowledge. Best regards, Kacper myCustomModules6_9_0.zip
  4. Hi, I am using Thinkpad W530 Laptop for unraid server. Today, after fruitful discussion on this forum I made a user.script that will shutdown unraid when laptop battery is bellow 30% and ac is off. Plugin user.script is required to use my solution. All You need to do is to extract attached archive to folder: /boot/config/plugins/user.scripts/scripts/shutdownWhenBatteryDepleted root@nas:/boot/config/plugins/user.scripts/scripts/shutdownWhenBatteryDepleted# ls -l total 64 -rw------- 1 root root 2716 Mar 6 09:41 ac.ko.xz -rw------- 1 root root 6700 Mar 6 09:41 battery.ko.xz -rw------- 1 root root 177 Mar 6 11:20 description -rw------- 1 root root 1018 Mar 6 12:54 script root@nas:/boot/config/plugins/user.scripts/scripts/shutdownWhenBatteryDepleted# It is important not to change script name, as path to *.ko.xz module is hardcoded in the script file. When this is done, You must test script, by running it manually. Then after You make sure it works in Your system You can enable the scheduler. Script will write log using logger command when shutdown is issued. On first run script will load ac and battery kernel modules. In the attached figure I am running script every one minute, but maybe every 2 minutes would be sufficient. You can enter */2 * * * * to run script every 2 minutes. Use this website https://crontab.guru to find Your preferred schedule. Use at Your own risk! For testing purpose I suggest commenting out (sign #) command /sbin/poweroff in my script. I am still unsure if /sbin/poweroff is proper way to shutdown VMs and docker gracefully. Waitng for support to answere my question, as I was unable to find it on the Internet. Best Regards, Kacper shutdownWhenBatteryDepleted_unraid6_8_3.zip shutdownWhenBatteryDepleted_unraid6_9_0.zip
  5. Hi, I have read many posts and I have seen Boot.php script. But still I am not user howto shutdown unraid properly from command line preserving timeouts required for VMs to close? I have written user.scirpt that will shutdown my server when battery runs out bellow 30% of capacity, but i don't know what is the correct command line command? poweroff will not wait for vms to close i suppose
  6. Hi, If i make an upgrade do I have to purchase license again? Is there any guide howto upgrade painless and copy all my settings? Best Regards, Kacper
  7. This is for people running unraid on LAPTOP! Thanks to this kernel plugin I have managed to compile ac.ko.xz and battery.ko.xz modules. As soon as I have done this, I have noticed that new version of unraid was released funny thing. Later I am planning to compile this two modules for new unraid. For now I am uploading version 6.8.3, as I will wait for a while with updating my server. Advantage of this procedure is that oryginal unraid kernel stays untouched. To install it is required to copy module files somewhere on hard drive, for example /boot/myCustomModules. Then enter following command: insmod ac.ko.xz ismod battery.ko.xz Battery information and ac adapter info will be avaliable under folder: /sys/class/power_supply/ Now it is required to write some user script that will shutdown unraid when battery is bellow 30% and ac_power = 0 myCustomModules6_8_3.zip
  8. I get Your point also. I am also developing some things for fun, but never have time to publish all recently I am at least trying to do some photo/screenshot story if I get something cool done. I can see that Your kernel-build docker works or partially works for unraid 6.8.3. EDIT: Ok to be precise script downloads source codes, part of kernel has compiled, however at some point gcc has crashed. I had to login to root at unraid and killall gcc, killall cc1 killall as. Probably some extra effort can be done to make compilation fully sucessfull. I think this error is about some extra patches being applied. For me it is important to compile battery and ac_supply modules, so I will not investigate any further. I am planning to add these two modules manually by using modprobe, without touching original kernel. My unraid's uptime is 224 day, so I won't mess with such a stable kernel. I set variable UNRAID_V = 6.8.3 in docker configuration and CUSTOM_MODE=true. Then in docker console: apt-get update apt-get install mc then I can use: mc So I have full comfort of editing Your build script, which is cool I must admit. Some good work done here Thanks and don't get dicouraged. p.s. I do not mount any folders as it is shown on dockerhub. I preffer to copy new kernel manually. It is simple and safe to be done
  9. I set custom_mode = true. How can i make script download kernel and let me configure make menuconfig? My goal is to add power/battery drivers to unraid kernel as I am running unraid on Thinkpad W530 laptop, which has battery plugged in (UPS). Unfortunatelly I am unable to read battery status and shutdown unraid in case of power failure, because kernel is lacking battery drivers. Ok later I have found the answere that I need to modify build script and replace make oldconfig with make menuconfig. Unfortunatelly in the same post I can see that 6.8.3 is not supported anymore? Then I wen't to discussion from page 22. I get the point of these guy, who is upset with removing support of 6.8.2. This is how software is developed now. I agree that it sucks, as old versions schould be avaliable for community, you have not enough disk space or what? Stop supporting it, but leave old codes where they where. Comparision to Apple and Microsoft is because the also do what they want and don't care about users opinion. Well that how it is. I used to be a linux desktop user, but linux community started the same behaviour as MS and AP. They introduce updates, change things that break my working system. So I went back to windows. I have the same behaviour, but less often something breaks. I am always super pissed off when i am forced to upgrade something and then it fails to start and I have to spent working day fixing shit some programmer messed up instead of spending time with my family. Some thing schould work out of the box. Recently I had such a story with owncloud update and zoneminder update. Solutions were simple, but developers didn't care to write instruction what has changed, so two days went to the trash looking for a fix Thats why people prefer minor security risk, than doing update that might f... up their system completely. I know it is effort to support old versions, so dont support it, but leave it undeleted - simple.
  10. I am happy to hear it is useful, even though a bit chaotic. I am not sure if I understand the problem. I have installed owncloud and serviio from community apps (not docker hub search). In first place it is better to use community package, if required software is not there then docker hub. I have found that community packages have some variables and settings exposed right away when installing so it is much easier to use package. I am attaching screen shot of the search results on my pc.
  11. Had the same problem, thats wierd. There schould be button rebuild parity
  12. Thats why to virtualize seriously use xenserver. Unraid and proxmox are both faulty when it comes to windows VMs. Or go for win10 which seams to work in unraid.
  13. I have found the answere. Mikrotik CHR free version has bandwidth limit on single interface 1Mbit. Dude is using ping to probe latency, so every logging in to dude server causes traffic that will make false reading for dude ping probe, as it wil overfill bandwidth. To solve this problem following rules can by applied in the mikrotik terminal: /ip firewall mangle add action=mark-packet chain=postrouting new-packet-mark=OUT passthrough=yes protocol=tcp add action=mark-packet chain=prerouting new-packet-mark=IN passthrough=yes protocol=tcp add action=mark-packet chain=prerouting new-packet-mark=IN passthrough=yes protocol=udp add action=mark-packet chain=postrouting new-packet-mark=OUT passthrough=yes protocol=udp /queue simple add max-limit=900k/900k name=OUT packet-marks=OUT target="" add max-limit=900k/900k name=IN packet-marks=IN target="" This will limit maximum bandwith usage and prevent latency to go high. Now dude server will work unjamed. Otherwise one can get P1 license, then the speed limit is 1Gbit, but it will hit the same problem at 1Gbit connection So rules presented here are also aplicable for 1Gbit interface, but instead of k one can put M for Meg. SOLVED!
  14. Is it possible to install some app/plugin to get more qemu options to configure? I dont see howto create second network interface in unraid for instance.
  15. I have installed Mikrotik CHR version with VM setting as in my first post. What is amazing is that Mikrotik gives CHR version for free!!
  16. Hi, I have installed Mikrotik CHR as VM on unraid. My configuration looks like on the attached image. I am experiencing networking problem. When I am logging in to the dude server using dude program it say "getting stuff" at the bottom. During this stage latency to my mikrotik VM jumps above 100 ms, like that: Reply from 10.1.1.230: bytes=32 time<1ms TTL=64 Reply from 10.1.1.230: bytes=32 time<1ms TTL=64 Reply from 10.1.1.230: bytes=32 time<1ms TTL=64 Reply from 10.1.1.230: bytes=32 time<1ms TTL=64 Reply from 10.1.1.230: bytes=32 time<1ms TTL=64 Reply from 10.1.1.230: bytes=32 time<1ms TTL=64 Reply from 10.1.1.230: bytes=32 time<1ms TTL=64 Reply from 10.1.1.230: bytes=32 time<1ms TTL=64 Reply from 10.1.1.230: bytes=32 time=102ms TTL=64 Reply from 10.1.1.230: bytes=32 time=274ms TTL=64 Reply from 10.1.1.230: bytes=32 time=113ms TTL=64 Reply from 10.1.1.230: bytes=32 time=93ms TTL=64 Reply from 10.1.1.230: bytes=32 time=77ms TTL=64 Reply from 10.1.1.230: bytes=32 time=53ms TTL=64 Reply from 10.1.1.230: bytes=32 time=22ms TTL=64 Reply from 10.1.1.230: bytes=32 time=12ms TTL=64 Reply from 10.1.1.230: bytes=32 time=115ms TTL=64 Reply from 10.1.1.230: bytes=32 time=102ms TTL=64 What can be causing the problem? I have tested with one cpu, two cpus and all cpus passed to vm.
  17. It is my home server for nas, dlna (streaming movies to TV), owncloud (sync data between stationary computer and my work laptop), dude (mikrotik CHR server). Laptop is power efficient, has built in huge ups (battery), takes 1,5 U in my rack. It is perfect for server. W is workstation series with i7, two graphic cards, 32GB ram, 2 USB3.0 slots and two internal 2,5 inch hard drives and msata 512 GB drive for VMs and cache. And also it is few years old computer, so I can sell it for little money or have great server at no cost. I will attach photo (2 usb drives attached under the shelf and fan). I think for home media server second hand, profesional series laptop is perfect and cost effective solution. Therefore power module would be neet solution for ups. I think unRaid could provide package with modules compiled for their kernel, so one can copy only that specific module. I understand keeping system as light as possible, but at users own risk there schould be a way
  18. Hi, I am using my unRaid on Lenovo W530 laptop. In linux there is module called power module, which allows me to check if my computer is running on AC or battery. So the battery works like a very good ups. How can I add/enable power module in unRaid to check if I have AC adapter connected ? Second question is, where to put mu custom script to be started at unRaid boot. I would like to write a bash script that will check AC adapter connected and will shutdown unraid server after 5 minutes of no AC plugged in. I think this is very simple task, but I am not familiar with unraid strategy, so i don't know where to put it. In regular linux I would insert launch of my script in /etc/rc.local and script itselfe in /root/script/battery.sh. But what is the unraid way to do this?
  19. Hi, where can I change boot delay in unraid using its webUI would be preffered? I want my server to wait 5 minutes before booting at the boot menu.
  20. Good point! I am not familiar with forums I can see that in unraid 6.4.3 settings->management acces there is option Use SSL Thanks hehe
  21. dlandon/owncloud is good one for docker.
  22. Hi, I have 2 drives inside Lenovo W530 and 2 drives 2,5'' connected via usb 3.0. During parity calculation temperature is: 42, 50 deg. Celcius for internal drives and 42, 46 degree for external USB drives. When idle drives are at 30 degree temperature. Parity build takes around 6 hours for 2TB parity disk. Is it ok if my drives will be hot like that every 2 months for parity check? What is Your temperature experience for 2,5'' drives - what temperature and how long without drive failure? Please share your experience. I have installed two fans and some wents and now I don't know if i schould leave it like that? I will be doing parity check once in 2 months, under regular usage drives will be cool as I am not using them in very instensive way. It is a home server. Regrads, KN
  23. A digression of topic: What a nonsense excuse. Obviously it supposed to have https with self-signed cert as default. I hate this way o thinking to postpone the responsibility. It is very convenient these days. I was born in days where companies were asking users for their opinion and using it to improve their product. It seams that now we live in world where companies are ignoring user feedback, with bunch of “system happy “ users complementing this system. To the topic: There is stunnel package that can wrap http connection over ssl, so there if someone knows how to make plugins it can be done easily. Maybe it already is?