-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Hibernation hdd. #309
Comments
我也遇到了一样的问题,所有应用套件全部关闭,并且日志写在了tmp内存中,依然无法硬盘休眠不知道是什么影响的 |
Try it didn't work for me. https://www.openos.org/threads/dsm7.4418/ |
I have the same problem. |
Please update ARPL, rebuild the loader and test it again. |
yes,metoo,it's not work |
Unfortunately, I don't know hieroglyphs. Describe in a few words with Google translator. Thank you. |
OK. |
Ok, I've reduced the amount of systemd logs, but apparently that's not it! I still have no idea what it could be. |
You probably need to edit scemd.conf |
Ok, please go to loader, update ADDONs, rebuild the loader and test it. |
As I was the author of the original post (about /dev/null) I can add several words.
|
Ops, my bad! I'll adapt my script, thanks. |
I found one more item. I am not exactly sure on it... But... |
Ok, thanks for the information |
Hello, I come to the news. I updated everything and I rebuilt the loader without success unfortunately, still no hibernation. Do you have other ideas to test? |
nothing for now :( |
Eh... But what about checking and annihilation of stamp-powersched.timer?.. It may be not the only main reason for no hibernation, but seems to be important reason. |
I'm changing systemd.timer to crontab |
May be right now it is simplier to make extension "powersched" configurable on/off?.. I really do not need it (and its binary does nothing). But the persistent presense of it makes things worse because of systemd.timer. |
Ok, I'll do |
The problem of hibernation of disks is smbd related. I tried disabling SMB through DSM configuration - right then my disks (SATA and SAS on SAS-hba) hibernated... And few words about beta6 and powersched extension. Previously I had beta3 (so this extension was mandatory). I rebooted with ARPL menu, updated ARPL, rebooted, updated everything below ARPL in update menu, checked extension menu, installed reducelog extension, rebuilded loader, rebooted again and now loaded DSM. But I found that binary and timer are still there! I think this is because this extension was absent previously and was absent now. So previous mandatory version with systemd.timer left untouched. And I had to delete binary manually and run systemctl disable/kill powersched.*. |
About samba and one more solution for hibernation. |
You need to make two scripts - on boot-up and shutdown. It is very easy in DSM interface using its control panel. Both scripts run as root and has any names you like. On shutdown: And then reboot. Everything should now work - both samba and hibernation. As we store all logs in ram - there is no practical need to do anything with them. But I think that it is better to leave as done now, as this two logs contain only garbage with ARPL. On the other hand I do not know how to examine boot logs that were produced before first script (but dmesg works). And as for ARPL - there may be some more elegant solution, I don't know... |
Is it necessary to reset the systemd log count to its original state? or is it enough to download the latest loader and update the addons and apply the rules?
|
@vasiliy-gr Very thanks for the informations! |
Hello, I followed your instructions, I updated everything and ARPL, I installed the "reducelog" extension, and I configured the two startup and shutdown scripts.
|
I have 4 NASes. All of them use Proxmox, 12th generation of Intel CPUs, m/b-s Asus Prime Z690-P Wifi D4 or Z690M-Plus D4, SATA controllers are disabled, internal network cards are disabled, Intel 10G X550-T1 lan cards, LSI 9300-8i, 9400-8i and two 9400-16i, and a bunch of drives from 14 to 16 TB both SATA and SAS (WD Ultrastar and some Toshiba-s). Also every NAS names itself as DS3622xs+ with 7.1.1-42962 u2 DSM. And as for hibernation - all four work perfectly with ARPL 1.0-beta6. And I can check it easily on SAS hdd-s - they have inverted logic for activity leds on backplane (if no activity - led shines, on activity led turns out or blink), as in hibernation SAS leds turn out, as SATA leds do with no activity or in hibernation. |
|
And one more thing to do if my previous advices do not work as desired... Examine /etc/crontab. Remove any lines with powershed. There should be no/zero/0 mentions of powershed... Then restart crond: systemctl restart crond. If this not help, try the following two commands: Also if this not help, scan /etc/systemd/system/ and below for powershed files. And delete all of them. Reboot after as a variant... And I advice all this things in case that powershed addon was not selected in building loader. It disturbs hibernation also in this case. |
A question to @fbelavenuto: |
This did it also for me. Tried all hints, but it never worked. I'm on beta 12. |
Yes, deselect addon and remove the files inside DSM (if exists): Execute the command into DSM shell (use SSH, log as user and use "sudo -i" to turn ROOT): |
After reboot somebody restores crontab with powersched in it. Is it possible to disable this functionality? |
Yes, remove the addon "powersched". Go to loader, remove addon, rebuild and re-execute commands above to remove modifications made by powersched addon |
But I do not use the addon! The problem is that powersched is somehow used no matter the fact of using this addon. |
What is the ARPL version used? |
Beta13. |
paste your user-config.yml here please (remove sensitive data) |
Were it is stored? |
Plug your usb flash drive in a PC, get from first partition (windows will mount and show files) |
.... I don't use flash. I use img on Proxmox. |
Ok, go to loader, in the shell type the following command: cat /mnt/p1/user-config.yml You can go to advanced menu and edit user-config manually to get the contents too |
Ok. Several minutes then. I check again restoration of crontab and then will go to loader shell. |
root@arpl:/opt/arpl# cat /mnt/p1/user-config.yml |
After reboot hibernation still works. Thumb up ! But... in /etc/crontab this line did show up again:
sh-4.4# ls /var/lib/systemd/timers/ For me the issue is solved. Thank you vasiliy-gr and fbelavenuto. |
Sorry for delay. For test, force a rebuild. |
What do you mean by 'force a rebuild'? I downloaded beta13 image, loaded configure in grub, started menu.sh. There I made all the necessary configuration from the beginning. After that - bulid loader, boot loader. The result with from crontab recreation from this point. user-config.yml also from this point. No powersched addon of course. |
Choose "Build loader" again. |
It may help? You consider that the second loader build gives another result than the first one?.. |
Yes, I made many tests and works here, then test build again! |
Ok. In half an hour or so. My NAS-es is under maintenance now (rebuild of raid5) and the nearest intermediate stop will be in half an hour on one NAS. |
The experiment. As it was not the same NAS as previously (that NAS is not available at least 8 hours) I made the experiment with extended mode.
|
Ok, try this: In the arpl shell, type: rm -Rf /mnt/p3/addons/powersched Build and test |
Now crontab line is not recreated. |
Ok, some bug with this addon, I'll investigate, thanks for the tests |
Please help me.
I'm trying to install with your new bootloader 1.0 beta2 918+ and 920+. Everything works except hibernation HDD.
There is always some kind of operation with the hard drive.
Can this be fixed? On the forum they write that it is written logs on the disk, but I did not find a solution.
Tell me. Thank you.
i3 -6100(1151), board GA-H110M-S2, 8Gb, HDD 500Gb
The text was updated successfully, but these errors were encountered: