-
topcat001The only slight issue I have with mosh is that it does not support cursor shape. I use this a lot, both in my vi-mode shell and in vi.
-
Rivieramine is that it does not seem an active project
-
Rivierafind that too critical for something like that
-
Reinhildeit'll probably reactivate when some cryptographic advancement considered important comes out
-
Reinhildeuntil then, it's in a maintenance mode
-
topcat001it works just fine otherwise
-
topcat001I did see occasional commits on git
-
geometryIs there an automounter expert in the house?
-
geometryI'm trying to convert something which I could do with /etc/fstab, but that would leave it mounted all the time (and this should be lazy-mounted).
-
ekgeometry: AFAIK, there is no "lazy" mounting in FreeBSD. What are you trying to accomplish?
-
geometryTrying to do a single mount using the automounter (which is effectively lazy mounting).
-
ekWhat automounter?
-
ekLike fuse or something?
-
geometryThe automounter (/etc/auto_master).
-
ekautomountd running?
-
geometryYup, the difficulty is figuring out the right syntax for /etc/auto_master.
-
geometryThe portion of the man page under "MAP SYNTAX" seems to be the right section, but I'm left puzzled at WTF "key" should be (some portion of the path I'm guessing, but I'm puzzled).
-
ekgeometry: What are you trying to mount?
-
ekAnd what's currently in /etc/auto_master?
-
geometryAn NFS mount, some of the options are specific to the particular mount and /net doesn't work well.
-
ekI've only used automount a couple times in the past. IIRC, I used it to point to a separate file that specified mount types and locations?
-
ekLike, /etc/automnt_dirs or something.
-
ekgeometry: Can you provide the exact line in /etc/auto_master?
-
geometryI've tried several things none of which give me indications of success, I know what I would use for `mount` or /etc/fstab, but I'm puzzled about converting to automounter.
-
ekI believe the "key" is just the name of the mount (and perhaps what the mount name becomes if available). So, something like: "media -fstype=nfs,rw nfs-server:/share-path" should work?
-
ekOr: "movies -fstype=nfs,ro nfs-server:/movies"
-
ekSomething like that?
-
geometry"too many arguments at /etc/auto_master, line 8"
-
ekWhat's line 8?
-
geometry<mountpoint> auto -fstype=nfs,<other_opts> <nfsserver>:/<nfspoint>
-
geometryActually that is line 9, line 8 begins with '#' so I thing it is counting from 0.
-
ekHow are you specifying <mountpoint>? Also, I don't think you need "auto" in there.
-
ekLeading "/" in the <mountpoint>?
-
ek"test -fstype=nfs,whatever nfs-server:/share" should mount as /master/test or just /test?
-
geometrySince it is a test, it is /tmp/test_point and wouldn't "auto" be the key?
-
ekNo. The key is the first column entry.
-
ekWhat I did was something like "/- auto_mount" in the /etc/auto_master file. Then, in the /etc/auto_mount file, I'd add something like:
-
ek"/mnt/nfs-share -fstype=nfs,rw nfs-server:/nfs-share"
-
rwptopcat001, Just noting that mosh is going to use the terminal so cursor shape would depend on the terminal not mosh.
-
ekAnd I could add additional mountpoints and shares to the /etc/auto_mount file.
-
rwpIt's been a long time since I have set up the automounter. But for key think trigger point to trigger the mount happening.
-
ekYep. It's the "auto" point.
-
ekFor NFS, maybe I didn't use the -fstype= arg. Maybe I did just use the "-intr,nfs,rw" instead? Looking at the auto_master man page, that would make sense, I suppose.
-
rwpI don't recall ever seeing -fstype= and it was just immediately nfs mount options.
-
geometryProblem is I need options besides intr.
-
geometry"failed to execute /etc/autofs/special-intr,<other options>".
-
rwpList them out as comma separated options.
-
rwpI recall there being three types of maps. Host maps, direct maps, indirect maps.
-
rwpIndirect maps more of a rule to generate the paths, are the hardest to get a mental understanding of, so best to start with one of the other two first while trying to understand them.
-
geometryThis is only for 2 mount points, so I doubt indirect maps would be worthwhile.
-
rwpThe host map is perhaps the simplest. Any access to /net/foo will run "showmount -e foo" and see what directories are exported for nfs mount, and then mount them as /net/foo (where foo is a hostname).
-
rwpThen direct maps are pretty much what it says on the label. It maps this to that directly and mounts it.
-
geometryA direct map seems plausible for this situation.
-
rwpAnother tidbit I remember is that it is good to always use a subdirectory of / or deeper. Otherwise doing something like "ls -l /" will cause everything to automount. Better to have it /nfs/foo instead so that this only would happen if someone "ls -l /nfs/" and that is less of an issue.
-
ekYep. I really should mess with automount again. I did have it working and it worked just fine AFAIR.
-
ekIt did take some finagling, though.
-
rwpUsed it industrially when I worked for HP in the lab but haven't had a case since then with so many mount points that doing other than just hard mounting in /etc/fstab was more reasonable.
-
ekSame. I just add to /etc/fstab and done.
-
ekGranted, late,bg,retrycnt= are needed in most cases, but I digress.
-
rwpWhen there are potentially a thousand mount points only sporadically needed then the automouter is a practical solution. This appears in the compute farms where jobs are sent with qsub or other and any random compute server might mount some few mount points to have the job run on it. More practical than having all compute servers mount all thousand mount points.
-
geometryI would prefer /etc/fstab, but this is a setup I've inherited and things are a bit problematic for always being mounted.
-
rwpIf I were home I would walk over to the bookcase and pull out my O'Reilly book on NFS and NIS and it would get me back up to speed. But I am not home and that book is not available to me at this time.
-
rwpSo here is an example that /I think/ should work: /mnt/projectfoo -intr,rw,async other.example.com:/srv/projectfoo
-
rwpPretty sure. I can't test it. But if not that then it would be pretty close to that.
-
ekYeah. I remember it being pretty simple once I got it working. It kind of "clicked" like, "Ah, yes! Okay."
-
rwpHint: Don't use "soft" with nfs. Using soft mounts can lead to silent data corruption. Don't do it.
-
geometryYup.
-
geometryOther trick is use a private network or ULA for NFS and your local services.
-
geometryOkay, I may have gotten things working.
-
rwpWoot!
-
geometryI think the example would likely be much better if it had "/- auto_map" and a sample /etc/auto_map file.
-
geometryHaving "-noauto" really doesn't offer any useful clue.
-
ekgeometry: It does have that example. "/- auto_example" and then and example of "/etc/auto_example" with the mount points.
-
ekYou can use "auto_WHATEVER" AFAIK.
-
geometryYes, but a default installation has /etc/auto_master with the line "#/- -noauto" which isn't too helpful.
-
ekAh! I gotcha'. Yeah, that seems fair.
-
ekWhat was your line that eventually worked?
-
rwpThat example line has probably been in that file since 1990.
-
geometryMostly simply going for a direct map and discarding my preconception of the file containing actual mount points.
-
ekNo example, huh? :)
-
ekI would think direct map for NFS would be the best choice.
-
geometryI fear the example might merely be 20 years old instead of 35 years old, but /home and /var/mail would be classic mount points.
-
rwpBack in the day it would have been /usr/mail then. And depending upon the system /users instead of /home. It's a System V thing.
-
geometry/users was indeed a SysV thing, though I think they accepted /home by 2000 or so.
-
ekOh, I didn't mean specifics of mount points. Just the syntax of the /etc/auto_map or whatever you ended up using. Just for prosperity's sake in case someone else ends up looking for the same info in the future.
-
rwpI think most universities running BSD used /u and then a hierarchy below in order to handle a large number of accounts.
-
rwpI think you need a copy of the O'Reilly NFS and NIS book. It's the missing documentation.
-
ekFor the universities we've recently (in the last 10 years or so?) set up, they use /home or /usr/home. It's fine until they expect it to exist locally when they're logging into a non-NFS mounted /home node or something.
-
geometrySometimes there was a heirarchy below on the server, but desktops simply mounted them directly on /home (or /u) since desktops didn't need that.
-
antranigvant-x I like to use root everywhere, I live dangerously like that yes.
-
antranigvWe use /mnt/home for NFS home and /home for local users. to be fair we have almost zero local users, everything lives in NFS and LDAP.
-
vkarlsenI want to use spiped because it's really neat, but I haven't found a relevant use case for it for myself
-
FarooqIf anyone is in the business of updating the handbook, it teaches about the old bsdlabel thing which is deprecated. That section must get updated with gpart
-
FarooqI've got some FreeBSD VPSes. IPv6 networking stops working after a while after reboot. ping6 fe80::1 still works. But anything else doesn't. Hints?
-
Farooqnetstat -rn6 : termbin.com/hljq3
-
Farooqokay... somehow the loopback interface has claimed fe80::1 which is the ISP gateway...
-
FarooqTHIEF!
-
Farooqokay now it works. Somehow, two redundant addresses have been added both to primary ethernet interface and the loopback one
-
Reinhildeoops
-
FarooqHow can I find out which process is responsible for doing so?
-
FarooqI am reporting a bug. What component should I choose?
-
FarooqI guess it's either kern or misc
-
rosmitsoome: Pressing esc and entering got get doesn't do anything. It outputs something, but I can't see it.
5 hours ago