You are not logged in.
last night system would not power down correctly
This is one my biggest worry about it. Indeed I always stop the daemon manually and check everything's fine before starting the shut down procedure.
Offline
Hopefully latest version solves the problem.,...
Mr Green
Offline
Mr Green wrote:last night system would not power down correctly
This is one my biggest worry about it. Indeed I always stop the daemon manually and check everything's fine before starting the shut down procedure.
Odd, systemd should allow time to sync before powering down. If there are any systemd experts reading this, please let me know if the service file asd uses is kosher:
[Unit]
Description=Symlinks and syncs user defined dirs to RAM thus reducing HDD/SDD calls and speeding-up the system
Wants=local-fs.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/anything-sync-daemon sync
ExecStop=/usr/bin/anything-sync-daemon unsync
[Install]
WantedBy=multi-user.target
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I get dropped to login prompt when booting, am using systemd... systemd does take a few goes before it settles down. If you need any output let me know in the mean time I will keep testing.
Mr Green
Offline
So you're still meeting with failures? Can you post your asd.conf and how large are the dirs you are asking it to sync?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
#
# /etc/asd.conf
#
# For documentation, see: https://wiki.archlinux.org/index.php/Anything-sync-daem
on
# Define the target(s) directories in the WHATTOSYNC array
# Do NOT define a file! These MUST be directories with an absolute path!
#
# Note that the target DIRECTORIES and all subdirs under them will be included
# In other words, this is recursive
#
# Below is an example to wet your appetite
#WHATTOSYNC=('/var/log' '/srv/http' '/home/foo/bar')
WHATTOSYNC=('/var/log')
# Define where data will reside in tmpfs
# Think hard about this if using utils like bleachbit as it has a nasty habit
# of nuking files it identifies as junk in /tmp
#
# A safer location for things is actually /dev/shm
#
# This location must be mounted to tmpfs and MUST be writable and executable
# for the user
# Use NO trailing backslash!
#VOLATILE="/dev/shm"
# Define the permissions of the prefix subdirectory
# Must at least be writable, readable and executable for the user
#PREFIX_PERMISSIONS=700
/var/log [du -h .]
0 ./old
0 ./libvirt/uml
0 ./libvirt/qemu
0 ./libvirt/lxc
4.0K ./libvirt
0 ./hp/tmp
4.0K ./hp
92K ./cups
34M .
Mr Green
Offline
Do not sync /var/log or bad things will happen.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Would have been real handy to sync /var/log when using an SSD drive....
Mr Green
Offline
@graysky: everything working fine today... Can I safely uninstall anything-sync-daemon package now?
@Mr Green: Check my post on page 5 to see what kind of sh*t happens with asd syncing /var/log on a SSD
Offline
@Mr Green: Check my post on page 5 to see what kind of sh*t happens with asd syncing /var/log on a SSD
You can and should link to the posts you're referring to, as users can set the number of posts per page - for me this thread is only 2 pages long.
The post in question: https://bbs.archlinux.org/viewtopic.php … 9#p1162699
Offline
@graysky never have no fatal problems running asd, going to read up ssd wiki
Mr Green
Offline
@karol - Thanks for the reference for users to see. I t is too bad that systemd gets pissed off when syncing the dir in question. If I knew more about it, perhaps delaying the start of asd would remedy the problem.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I keep /var/log synced to RAM, and I don't have any problems (as far as I know). I have no idea why, though, I guess my system isn't supposed to like this...
Sometimes, when I'm trying to get any audio software or hardware working with my system, I wonder why I ditched Windows. But every time I work at a windows computer, I remember it again.
Offline
@graysky I think that sysd shuts down so fast nothing has time to do anything. Not tried init version.... yet
Mr Green
Offline
http://patrakov.blogspot.co.uk/2011/01/ … files.html
Not sure if that will help, noticed 'After' and he writes about restarting event on error...
Mr Green
Offline
On the 3.4 I noticed that if I stop the daemon manually then the cron job still sync my folders. Have this been solved on 3.6?
Now I've upgraded to 3.6 and still have to test. Regard the installation pacman said me:
WARNING:
You MUST compare your existing /etc/asd.conf to the one provided
by this package or else new features will not work and you risk breakage
of the software in general!
But no /etc/asd.conf.pacnew was there...
Offline
@graysky I think that sysd shuts down so fast nothing has time to do anything. Not tried init version.... yet
Interesting hypothesis. Seems like systemd would not halt the machine until the processes it starts finished though. Do you want to take the lead on following up this in an email with one of the systemd devs? Perhaps post to their mailing lost on behalf of the project?
On the 3.4 I noticed that if I stop the daemon manually then the cron job still sync my folders. Have this been solved on 3.6?
Now I've upgraded to 3.6 and still have to test. Regard the installation pacman said me:
WARNING:
You MUST compare your existing /etc/asd.conf to the one provided
by this package or else new features will not work and you risk breakage
of the software in general!But no /etc/asd.conf.pacnew was there...
1) Yes, solved. Please see the change log on github or in the source tarball for details.
2) This is only true if pacman detects a change from your version. I do not understand how this situation is not true though since you certainly have defined something in the WHATTOSYNC array.
Last edited by graysky (2012-09-19 09:12:32)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
2) It's simple because yesterday, after many unwanted sync I decided to empty the WHATTOSYNC array, so everything's fine
I'll go on testing the new version
About the shutdown: since the last pacman -Syu sending SIGTERM to all processes fails in my system and I still haven't detect why. This was before start to trying asd, but I'm not sure if it may effect also asd. So that's why I prefer sync and turn off asd before halting. I also noticed that if I copy one or two GB to ram and heavy modify them, sync take quite much time (naturally due to the HDD writing speed) and as Mr Green said there may be no such time available during the shut down procedure.
I'm also having some troubles to make asd sync the same folders that services like Dropbox do. It seems that Dropbox doesn't like too much the backups and the symlinks.. I don't know if something can be made for this..
Offline
No idea how Dropbox works. Are you pointing it to sync the source or the linked source that asd creates?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
DB and similar cloud services keep the contents of a folder synced with their servers so your files are always backed up and you can access them from everywhere.
Now asd is syncing some subfolders that Dropbox already checks creating symlinks and backups. When doing this DB drives crazy with great CPU and disk usage. Moreover during shut down the removed backups can't be synced by DB as obviously there's no time. Surely a solution will include to move the backups to an asd system directory, but I have to investigate how DB works with symlinks.
Offline
@karol: Sorry, I didn't know about the feature to set the post number per page.
@graysky: Sorry, but you didn't answer my question... can I uninstall anything-sync-daemon safely now?
Offline
@graysky
http://freedesktop.org/wiki/Software/sy … n_Problems
Joining mailing list got a the 'RTFM' reply.....
Mr Green
Offline
@graysky: Sorry, but you didn't answer my question... can I uninstall anything-sync-daemon safely now?
You can uninstall it anytime. I gave it a post remove function to unsync thus restoring your synced dirs automatically.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I keep /var/log synced to RAM, and I don't have any problems (as far as I know). I have no idea why, though, I guess my system isn't supposed to like this...
Same here, nothing bad has happened here... yet.
If it's shutdown that's the problem, it could be because my shutdown is delayed by my external hard drive - it takes a few seconds to unmount since it's usually on power save.
Offline
@Mogger - systemd or sysv?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline