bobafetthotmail / folder2ram

mount those folders to ram without losing access to their counterpart on disk!
GNU General Public License v3.0
110 stars 21 forks source link

Strange output umonting folder #13

Closed alewaste closed 5 years ago

alewaste commented 5 years ago

Hi, I tried to unmount all folder and I get this output:

will now stop all mountpoints
stop /var/cache
stop /var/log
stop /var/tmp
stop /var/lib/openmediavault/rrd
stop /var/spool
skipping non-regular file "postfix/dev/log"
skipping non-regular file "postfix/dev/random"
skipping non-regular file "postfix/dev/urandom"
skipping non-regular file "postfix/private/anvil"
skipping non-regular file "postfix/private/bounce"
skipping non-regular file "postfix/private/bsmtp"
skipping non-regular file "postfix/private/defer"
skipping non-regular file "postfix/private/discard"
skipping non-regular file "postfix/private/error"
skipping non-regular file "postfix/private/ifmail"
skipping non-regular file "postfix/private/lmtp"
skipping non-regular file "postfix/private/local"
skipping non-regular file "postfix/private/maildrop"
skipping non-regular file "postfix/private/mailman"
skipping non-regular file "postfix/private/omvnotificationfilter"
skipping non-regular file "postfix/private/proxymap"
skipping non-regular file "postfix/private/proxywrite"
skipping non-regular file "postfix/private/relay"
skipping non-regular file "postfix/private/retry"
skipping non-regular file "postfix/private/rewrite"
skipping non-regular file "postfix/private/scache"
skipping non-regular file "postfix/private/scalemail-backend"
skipping non-regular file "postfix/private/smtp"
skipping non-regular file "postfix/private/tlsmgr"
skipping non-regular file "postfix/private/trace"
skipping non-regular file "postfix/private/uucp"
skipping non-regular file "postfix/private/verify"
skipping non-regular file "postfix/private/virtual"
skipping non-regular file "postfix/public/cleanup"
skipping non-regular file "postfix/public/flush"
skipping non-regular file "postfix/public/pickup"
skipping non-regular file "postfix/public/qmgr"
skipping non-regular file "postfix/public/showq"
stop /var/lib/rrdcached
stop /var/lib/monit
stop /var/lib/php
stop /var/lib/netatalk/CNID
stop /var/lib/mysql
stop /root/viewpower/log
stop /root/viewpower/tomcat/logs
stop /root/viewpower/datas/log
stop /root/viewpower/config
stop /var/lib/smartmontools
stop /tmp
stop /var/lib/dhcp

I didn't get "skipping file" before and I noticed some problem with warning email of OMV. What's the meaning of this alert?

bobafetthotmail commented 5 years ago

Hm, that's output from rsync, it says it isn't copying over the mentioned files as they are symlinks (links to a file). By default it does not copy them unless you use the -l argument.

but I call rsync with that argument too, as I do want it to copy everything over.

rsync -o -g -A -X -q -r -l -t

I'll see if I can reproduce the issue, as I have postfix installed here too even if I'm not using OMV.

bobafetthotmail commented 5 years ago

Ok, they are not symlinks, they are socket files (virtual thing that looks like a file but is not).

I need to add another argument to rsync, the "-a" if I want it to copy over also socket files, will upload an updated version of the script shortly.

About the "problems with the warning email" of OMV, please check if you have the affected files in /var/spool/postfix/dev /var/spool/postfix/private /var/spool/postfix/public

If you don't have them, then it's probably because of folder2ram screwing up the copy, and you should probably either restart postfix or reinstall postfix to create the files again.

After you updated the folder2ram script, anyway.

bobafetthotmail commented 5 years ago

Ok, uploaded it. You can download and install it following the instructions in the readme, and overwrite the current one. Eventually OMV will ship it as an updated package.

alewaste commented 5 years ago

I installed the new script. Errors during unmounting are disappeared. I checked the affected files and they are present... anyway I don't know how to reinstall postfix, because it's automatically installed by OMV.

Thank You.

bobafetthotmail commented 5 years ago

If the files are present, there is no need to reinstall postfix.

What I say below is for information purpose only.

OMV is based on Debian, so if you have ssh access you can reinstall postfix with (run this command as root or with "sudo")

apt-get install --reinstall postfix

Since you confirm that the updated script fixes the problem, I'm closing the issue.