=== vlm_ is now known as vlm === lotuspsychje_ is now known as lotuspsychje [11:45] Hi guys, I'm runnig following command for rsync but it doesnt work: [11:45] sudo rsync --daemon salam.txt test@192.168.200.18::/tmp/test --config=/etc/rsyncd.conf [11:45] cat /etc/rsyncd.conf [11:45] [share] [11:45] path = /tmp/test [11:45] #password-file=/root/secret [11:45] secrets file = /root/secret [12:16] why do you want rsync as a daemon? by default it uses ssh for transport and authentication [12:31] Question: how can i find out why an NFS share as client (mounted via /etc/fstab) went offline? Its fixable wtih "mount -a" [13:53] are there any logs about NFS errors anywhere on ubuntu? [13:54] de-facto: check dmesg -T [13:54] already did that [13:54] don't know any other logs - nfs isn't very verbose - at least by default [13:54] and journalctl [13:55] yeah i noticed that, could not find any useful information about it failing yet [13:55] which mount options did you use for the client? normally it should reconnect automatically [13:56] in /etc/fstab "111.222.333.444:/media/DATA/web /var/www/html/web nfs bg,rw,nfsvers=3,rsize=8192,wsize=8192 0 0" [13:57] was not setup by me but i have to fix it [13:58] server is a QNAP [13:58] iirc those rsize/wsize flags aren't needed anymore, but it all looks normal to me [13:58] perhaps apart from nfs3, but that's your choice ;) [13:59] it just goes offline without any logs and a "mount -a" fixes that [13:59] strange [13:59] anything on the server? [13:59] i could out that in a systemd timer but thats an ugly hack [13:59] id rather find out the problem and fix that [14:00] login to the qnap and check the logs [14:00] i dont have any access to it [14:00] oh [14:01] yeah its a mess, i probably will migrate it to cifs and throw that qnap in the garbage, but for now it has to be fixed [14:01] because a whole website goes offline if that happens again [14:01] you haven't specified hard or soft, but hard is default, or at least here, which should reconnect automatically [14:02] how does your fstab line for such a case look like? [14:02] check /proc/mounts - it should list all the flags used [14:02] just paste the nfs line, please [14:02] one moment [14:05] 111.222.333.444:/media/DATA/web /var/www/SAI/web nfs rw,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=111.222.333.444,mountvers=3,mountport=892,mountproto=udp,local_lock=none,addr=111.222.333.444 0 0 [14:06] see man nfs for retrans - it should log somewhere [14:06] i would mount nfs in /mnt/ and keep /media/ for autoremove devices [14:07] good point [14:07] but hey, it's /var/www/something - shouldn't matter [14:08] it's a nice way to keep things tidy without having to symlink or anything [14:08] yeah not my design there, i have to fix the problem though [14:08] also - apache doesn't like symlinks unless you force it to [14:08] use nfswatch on the host [14:08] de-facto: I'd do it that way [14:08] +followsymlinks [14:09] oerheks: he doesn't have access to the host [14:09] RoyK, you mean that config is fine like this? [14:09] +followsymlinksifownermatches or something, even better [14:09] shibboleth: sure, but mounting the fs in the right place is clean [14:09] de-facto: looks fine to me, except rsize and wsize, which I don't think is needed anymore [14:10] oh, don't mind me, i just entered this clubhouse :P [14:10] ok so even with the rsize and wsize it should not disconnect, is it supposed to autoreconnect like this? [14:10] "how about... irc, but vocal?" <--- insert "wow"-clip from bill and teds excellent adventure [14:10] or should i really install a cronjob with "mount -a" in it? [14:11] de-facto: rsize/wsize isn't really relevant here [14:11] eah [14:11] de-facto: probably find the error ;) [14:11] de-facto, or a... systemd unit? [14:11] try to grep through /var/log for nfs errors [14:11] yeah or that, its not a fix though it just raises the probability that my inbox keeps free of this :P [14:11] shibboleth: nfs should handle that itself [14:12] i already grep in dmesg syslog kernlog journalctl [14:12] nothing about nfs there [14:12] mount.nfs even has a flag for umounting locked nfs mounts, -l, --lazy [14:13] not sure what you mean by that [14:14] normally, if you have an nfs client mounting something on a host and the host dies, that share will stay dormant/defunct forever [14:15] the only thing I've seen disconnecting such a thing is if some other machine steals that ip address and thus signals back with 'this isn't allowed' [14:15] but that should most certainly be logged [14:15] so you think the qnap got a hickup and locked the share? [14:16] as i said "mount -a" immediately silently fixed it [14:16] the mount point was just empty before that [14:17] I doubt the qnap could do this, since nfs client normally just tries on forever, that is, unless the qnap was rebooted and didn't start nfs quickly enough for the client to reconnect [14:17] i think it was offline for half an hour or such [14:18] or the mount point empty at least, not sure about the qnap, i dont have any access to it [14:18] then my guess is that it didn't manage to start the nfs server quickly enough or something, but again, then you should see it in dmesg [14:19] that's a long downtime, though [14:19] what would i be looking for in dmesg? i tried searching for "nfs" or "NFS" or that ip address or "mount" [14:19] at least if it was daylight [14:19] just run 'dmesg -T' as root and you'll get the latest stuff - it shouldn't be too much unless you have ufw or something similar spamming it [14:22] yeah unfortunately its full of ufw spam [14:23] dmesg -T | grep -v UFW | grep nfs only gives "FS-Cache: Netfs 'nfs' registered for caching" a day ago though [14:23] thats what i mean NFS not providing any useful info [14:24] ufw logging off ;) [14:24] unlelss you really need them [14:24] there was an attempt to have ufw do userspace logging, but I have no idea how that went [14:25] that is - it's not ufw doing the logging, it's netfilter, kernel, which imho isn't a good idea for such large amounts of logs [14:25] yeah if it was me i would not have installed ufw on there but oh well [14:26] anhow i guess then the only option is to to a "mount -a" ever few minutes [14:26] i dont see an opportunity where to get useful info from NFS about this [14:27] or even better - create a script to check if it is mounted and if not, mount it [14:28] something like "if $( cat /proc/mounts | grep /var/www/html/web > /dev/null 2>&1 ) ; then echo mounted ; else echo nope, not mounted ; fi" [14:29] then just replace echo ... with something logging it was remounted (man logger) and then remounting it [14:29] but "mount -a" would not hurt i guess since it only mounts stuff that is not already mounted right? [14:30] it'll mask other potential problems and if you by chance should want to umount an fs to check it or otherwise, it'll remount it [14:30] fair point [14:31] maybe i put a list of automount filesystems in /etc/default/remount or such and use that from a systemd service with a timer [14:31] should work [14:32] i dont feel particularly good about it because it ignores the cause of that problem but i have to put something in place to mitigate it when i am not ehre [14:33] without access to the qnap thing, well [14:34] i will suggest to throw that in the garbage in the long term, it only causes a lot of problems (other than this) [14:35] quite possibly a good idea ;) [14:36] if you can afford something better, good, otherwise, if you have sufficient bandwidth, perhaps cloud storage, if you trust them, that is [14:36] i was thinking about putting that website stuff on the active directory for them to update stuff and just mount it via cifs in the linux box [14:38] AD is a catalog service, not storage, but good for use with accessing linux machines from windoze machines [14:38] yeah windows and mac clients and the ad managing the credentials for an SMB share [14:39] that works well [14:39] yeah and someone else responsible for incremental backups :P [14:52] de-facto: yes, make sure you have good backups. I guess we all have failed on that at some point === ijohnson is now known as ijohnson|lunch === ijohnson|lunch is now known as ijohnson