-
Soni
it would be helpful if we could even figure out how to mount the drive in the VM...
-
Soni
kinda hard to copy it or shrink it if we can't even mount it
-
rwp
mjp, Reading man zfs-remove it says "Top-level vdevs can only be removed if the primary pool storage does not contain a top-level raidz vdev, ..." which limits the useful ability of that recipe. I mean working on mirrors is great and mirrors are very common. But not working with raidz vdevs is limiting because large arrays are always raidz vdevs. Though again probably it's unusual to want to do this with large arrays.
-
rwp
Soni, You can't boot the VM?
-
Soni
rwp: we can boot the VM but that doesn't help us
-
Soni
we don't know how to attach the filesystem we're trying to shrink
-
rwp
If you can boot the VM then I would boot the VM and rsync the data over to any other storage location. Then rebuild the file system. Then copy it back. That's most reliable.
-
rwp
You said VM so I might assume it is at a cloud host, because if in the local office things would be easier to backup onto a local disk. At a VM hosting company one could temporarily rent out a little bit of storage space for anything that was there. Then release it after the backup-restore cycle had completed.
-
rwp
And if it were me I would definitely feel less stressed if I had a full backup before doing the operation. Just in case something goes wrong. You make your own luck.
-
Soni
this is a qemu VM running locally
-
Soni
on a linux host
-
Soni
look we can't read UFS on linux
-
Soni
hence why this requires a VM
-
rwp
Ah! For me that would make things much easier since I would then just rsync the data over to my desktop where I have a lot of space, or over to my NAS where I have even more space! But I assume you don't have such luxury. :-(
-
Soni
but we can't figure out how to make the UFS filesystem visible to the VM
-
voy4g3r2
people may knock it but my office365 cloud space was a LIFE SAVER when my synology died
-
Soni
so basically we're stuck at "nothing can read UFS"
-
concussious
bsd reads ufs ^.^ (sorry for trolling, I'm done)
-
rwp
Install FreeBSD on a new VM and use it to mount the block storage space of the other VM?
-
voy4g3r2
mount -t ufs not available?
-
rwp
Since I have given my thoughts and brainstorms I am going to back out wishing you Good Luck at solving this problem. Real life is calling me afk right now. Good Luck!
-
voy4g3r2
mount -t ufs <device> <where you want to mount it>?
-
Soni
qemu-system-x86_64: -blockdev driver=raw,node-name=ext,read-only=on,file.driver=file,file.filename=/dev/sdc: 'file' driver requires '/dev/sdc' to be a regular file
-
Soni
this is the linux BS we're struggling with
-
voy4g3r2
so the qemu is operational? but you can nto just mount the ufs inside the qemu
-
concussious
i know this is unhelpful right now, but this is why i vehemently oppose "remove X because X is old and probably has problems". like, show us the problems or hush. linux deprecated ufs because it's "old and broken" but it's not broken, the original author is still maintaining it and adding new features even.
-
concussious
we are having problems right now with other people deprecating stuff because it's "old and broken" that is actually just very stable.
-
concussious
soni, did you try nomadbsd?
-
concussious
it's like a livecd of freebsd with a desktop
-
Soni
anyway, we think our question (how do you shrink) is answered (you don't)
-
Soni
unless anyone wants to help us with qemu on linux
-
concussious
okay, sorry
-
concussious
maybe if we knew why you wanted to shrink it we could try to help you find an alternative solution to your problem
-
Soni
we can just move the files
-
Soni
in theory
-
Soni
if we can figure out how to get this thing to work
-
markmcb
is there any freebsd tool that something like ubuntu's needrestart?
-
llua
implying we know what needrestart is
-
markmcb
after updates it tells you which process need to be restarted and can automate that
-
skered
markmcb: checkrestart
-
skered
And just assume you have to restart during most freebsd-update's
-
skered
Not always true but a safe thing assume if it'
-
skered
's outside of soemthing that isn't core
-
markmcb
skered, thanks
-
concussious
I'm beginning to think that the description for file descriptors should have the keywords "standard streams" because wikipedia and others are calling them that now. Is this reasonable? I'm having trouble smithing a document description to that effect.
-
concussious
I also kind feel like the wikipedia article is what needs to be fixed, and not our manpage.
-
voy4g3r2
file descriptors to be honest make me think it is ALWAYS a file.. and one could say STDOUT is a file, along with anything else.. but you could just in theory pipe it to a terminal
-
voy4g3r2
i like the standards streams concept but you know.. manual pages :)
-
voy4g3r2
i probaqbly should of did this jellyfin ports install with a ports manager.. the amount of entries required by the user is crazy
-
concussious
currently we have "fd, stdin, stdout, stderr – file descriptor files"
-
zwr
I suppose you could say the Unix definition of a file also includes things that aren't in the filesystem
-
voy4g3r2
and sometimes i do not trust wikipedia but that is just me
-
concussious
never trust wikipedia. I started editing wikipedia when i was 8 years old.
-
voy4g3r2
you said never, i said sometimes
-
voy4g3r2
it is on the list of source for verification just not the sole source of truth, that is all
-
concussious
in freebsd, experts review my PRs. in wikipedia, there's just a bot that oftentimes reverts important details
-
concussious
I was also half-joking. i read wikipedia everyday.
-
concussious
but, i have tried to fix incorrect information on there and had a bot revert it.
-
voy4g3r2
i just think of the The Newsroom episode where they tried to updated wikipedia due to an error.
-
concussious
honestly if an impassioned child is writing textbooks, that's probably pretty good quality vs someone who is mad at their wife on the way to work that they view as "getting their hours in".
-
rwp
markmcb, Look at the output of "freebsd-version -kr" and if they are different then you need to reboot.
-
concussious
I'm extremely concerned about the proposed WYSIWYG editor for the handbook.
-
concussious
The FreeBSD Handbook is one of the finest tutorials in all of computer science. It's written like the best textbooks I've saved up money for.
-
concussious
Archwiki is a very, very high quality resource which is a completely different type of thing with a completely different level of professionalism which is completely out of place in the handbook.
-
angry_vincent
can anyone clarify what to do ebout cpu frequency and intel speed shift. now that latter is enabled, i have set epp to 100 to have maximum powersave, i seeing that cpu frequency is at 800MHz ( as expected ). when epp is that at 0, then it goes all up to 2000MHz. However, this cpu base frequency is 1800Mhz with turbo-boost up to 4000MHz.
-
angry_vincent
-
VimDiesel
Title: Intel Core i78550U Processor 8M Cache up to 4.00 GHz Product Specifications
-
angry_vincent
question is - i want to run poudriere build at max possible freq to speed things up, and then go back to maximum powersave
-
angry_vincent
where is to set that and how?
-
angry_vincent
termbin.com/i0rq < -- dev.cpu sysctl
-
angry_vincent
termbin.com/s6pp relevant part for hwpstate
-
rwp
How are you controlling the cpu frequency? powerdxx?? One could restart "powerdxx -a max" for the build and then restart it again with defaults afterward.
-
angry_vincent
powerdxx is obsolete with intel speedshift
-
angry_vincent
i.e not working properly
-
angry_vincent
as well as powerd
-
rwp
Well... I have older systems and I need powerdxx on my system. powerd does not work at all on my Intel E3-1240 cpu.
-
angry_vincent
so, then, maybe someone else can help
-
concussious
hopefully
-
mason
rwp: Ah, that's too bad. I thought the idea was for powerdxx to be deprecated as powerd caught back up.
-
nomia
for a new laptop should i install 14.0 now or 14.1 beta
-
nomia
or wait for final 14.1?
-
dstolfa
nomia: you can always install 14.0 and upgrade once 14.1 is out
-
markmcb
rwp, thanks but i was more looking for something that focused on packages and the services they provide, e.g., if i have 10 servers running service xyz, and an update to the package is pushed, i'd like to be able to say "if xyz gets an update, restart the related service"
-
xFCFFDFFFFEFFFAF
o/
-
dch
o/
-
nomia
dstolfa: ok thx
-
nomia
i was just wondering if i should wait
-
Soni
/dev/vtbd2p2 899G 24G 803G 3% /mnt/oldinst
-
Soni
yeah... can we shrink this?
-
Soni
it is ufs
-
Soni
*sigh* where are we gonna shove 24G...
-
Soni
24G in freebsd is how much again?
-
Soni
okay that is powers of two
-
Soni
oh good we were wrong - we only need 1.2G
-
dstolfa
nomia: 14.1 seems to have some good things coming up, so it'll probably be worth an upgrade but the upgrade boils down to freebsd-update upgrade -r 14.1-RELEASE and running through the process
-
dstolfa
i've never had a freebsd-update break honestly
-
xx
-
VimDiesel
Title: Index of /pub/FreeBSD-Archive/old-releases/
-
markmcb
skered, rwp, checkrestart(1) and 20 lines of shell script does what I was looking for. I can whitelist a few services and if they show up in the checkrestart output I restart the service. Great for things like tailscale with frequent updates and installed on most of my instances. Thanks for the help!
-
CrtxReavr
Is there a CLI util for taking crc hashes of files similar in function to md5 or sha* ?
-
meator
Hey. I have set PasswordAuthentication to no in sshd_config, but password based authentication is still allowed. Will UsePAM=no do what I want?
-
meator
Internet tutorials mention ChallengeResponseAuthentication. It isn't present in the config file, so I assume that this information is outdated.
-
rwp
CrtxReavr, When you say CLI you mean command line interface, right? But md5, sha512, md5sum, sha512sum, and others are all command line interface programs, right?
-
rwp
And those are all in base too. No ports needed.
-
rwp
meator, Did you restart sshd after making changes to sshd_config? "service sshd restart"
-
CrtxReavr
rwp, yes. . . but I'm looking for something that does crc. . . or crc32c actually.
-
meator
rwp: I restarted both the (virtual) computer and sshd.
-
meator
To test this out, I moved my client's ~/.ssh to ~/.ssh~ and then tried to connect. This means that my client ssh shouldn't have access to my keys, so the server should deny me. But I was prompted for a password and I was accepted upon entering it.
-
rwp
CrtxReavr, Oh! Sorry. We talk about checksums so often when we mean secure hashing and such that I just took crc to be colloquial speech. My bad.
-
rwp
I don't know of any crc tools off the top of my head. They must exist though.
-
CrtxReavr
There's devel/crc32s, but that's a libary.
-
rwp
meator, I will try a local test with PasswordAuthentication=no and test it on FreeBSD as I know that works elsewhere.
-
rwp
I learned what I thought was an interesting technique the other day. I figured out that I could set sshd options in the /etc/rc.conf file. I know that is obvious. But I found it handy for some jail use.
-
rwp
I can set this for example: /jails/ikiwiki1/etc/rc.conf:sshd_flags="$sshd_flags -oPermitRootLogin=yes -oAcceptEnv='LANG LC_*'"
-
rwp
I modify the jail's /etc/rc.conf anyway. Found it convenient to put the custom flags I wanted for that jail there and it consolidates some of my configuration.
-
meator
Hmm. I am not much of a FreeBSD expert, I use it only on a VM to test portability of my program. FreeBSD is pretty good for that, this is the second time I have found a conformance/correctness bug in my program thanks to it. I honestly don't know why it works on Linux, it should have failed there too, but only FreeBSD showed a more strict, but still conformant behavior.
-
meator
sshd_config says that "Note that passwords may also be accepted via KbdInteractiveAuthentication."
-
rwp
meator, I confirm that if I leave PAM configured that turning off PasswordAuthentication=no is insufficient and I still get a password prompt.
-
rwp
But if I disable PAM then it turns off passwords too. sshd_flags="$sshd_flags -oPasswordAuthentication=no -oUsePAM=no"
-
meator
What are the implications of disabling PAM?
-
rwp
However avoiding PAM would also avoid other authentication methods such as 2-factor which is usually configured through PAM and one-time-auth tokens and every other authentication method we think about.
-
rwp
I am not sure what other things are happening in the /etc/pam.d/* files. Probably doing environment variables such as LANG, LC_*, probably umask, and possibly process limits (ulimit -a), but honestly I am not sure and would need to inspect through it and try things.
-
rwp
If you are wishing to use ONLY ssh keys for login I think turning PAM off is probably okay and you would not notice any issues.
-
rwp
For another site I maintain, it is a software forge site with ssh+git access for members doing only git commands and nothing else, I disable PAM due to other reasons and everything is okay there on that high use site.
-
meator
Ah, I lost one of my keys by fiddling with .ssh too much. Thankfully nothing important.
-
meator
rwp: Thanks for your answers!
-
rwp
What is your specific goal at this moment in the pursuit of disabling passwords?
-
meator
security
-
meator
I have SSH keys.
-
rwp
I use ssh keys too. But I also only ever use strong passwords. I am confident of the security of pI9lOPtmukafzOsV and no one is going to brute force through a password such as those.
-
meator
My password is 1234
-
rwp
I use and recommend "pkg install pwgen" and create passwords using "pwgen -s 16 4" and then arbitrarily pick one of the generated set to use. Having a password such as one of those is safe as math.
-
meator
So I was quite concerned about leaving password based auth open.
-
meator
My password is more memorable.
-
rwp
I often will give a login to a friend on my personal machine. I ask for their ssh key and install it. I only ever rarely give them an actual password. They won't ever need it. And then I set their login account to have a disabled password.
-
rwp
Perhaps better is to audit accounts and ensure that accounts that do not need a password have their password field disabled. In FreeBSD '*' disables the password, as no hashed character will ever match the single star character, but allows the account to be active and other authentication methods such as ssh keys allow access.
-
rwp
I will routinely use vipw to just edit files but the pw -w no command can create user accounts without a password easily: pw useradd -n user37 -c 'User Thirtyseven' -N -m -w no
-
CrtxReavr
In those cases, I normally just let it set a random password, which I don't give them.
-
rwp
That's secure. But then later after I have forgotten I see that a password is set and I don't remember if it is one they have control over or not. If I see '*' there then I know that the account does not have an active password. It's a memory hint to me later, self-documenting.
-
rwp
It's an opportune time for me to complain that I wish FreeBSD did not use a compiled binary database for account data and wished it used the traditional plain text files instead. For the less than ~50 typical accounts on an typical system there is no performance reason to need it. Anyone with a thousand accounts is already using a database anyway.
-
CrtxReavr
rwp, it's not compiled, per se. . . but it's faster than a flat text file.
-
rwp
Re "compiled" might not be the totally accurate description but whatever word describes reading the plain text files and producing the binary indexed db(3) files.
-
CrtxReavr
I like the little things that set us apart from linux.
-
rwp
Linux? This sets FreeBSD apart from Unix! And that's where it needs serious discussion before doing. :-/
-
CrtxReavr
Well, sets BSD apart from SysV.
-
rwp
System V uses plain text files just like Unix v7. FreeBSD is, as far as I know, unique in using a db(3) database for accounts instead of plain text files.
-
rwp
I must retract that as I look and OpenBSD also uses pwd_mkdb to create db(3) account databases too.
-
rwp
And so does NetBSD too. It's the entire family on this side of things.
-
rwp
So that mutation must have occurred pretty early in the fork.
-
llua
4.3BSD-Net/2
-
llua
ish
-
rwp
4.3BSD-Net/2 is the common ancestor of all of the current *BSD family.
-
rwp
The NetBSD folks have a good historical diagram:
netbsd.org/about/history.html
-
VimDiesel
Title: The History of the NetBSD Project
-
V_PauAmma_V
-
VimDiesel
Title: [csrg] Index of /usr.sbin/pwd_mkdb
-
uuuuu
I don't have a freebsd vm on hand to check, where can I find the default value for the vm.overcommit sysctl in source code?
-
V_PauAmma_V
So before the 3 BSDs existed.
-
rwp
V_PauAmma_V, Seeing that history is really making me feel my age now.
-
rwp
uuuuu, I have a grep running but this popped out first:
cgit.freebsd.org/src/tree/share/man/man7/tuning.7#n193
-
VimDiesel
Title: tuning.7 « man7 « man « share - src - FreeBSD source tree
-
V_PauAmma_V
uuuuu, see sys/vm/swap_pager.c for your version of FreeBSD in
cgit.freebsd.org/src.
-
VimDiesel
Title: src - FreeBSD source tree
-
rwp
uuuuu, Result of the grep:
termbin.com/mius
-
nomia
freebsd can't mount exfat usb drives?
-
rwp
nomia, How are you attempting to mount one?
-
nomia
mount -t msdosfs /dev/da0s1 /mnt
-
rwp
msdosfs != exfat
-
rwp
Try this: mount -v -t exfat /dev/da0s1 /mnt
-
nomia
invalid fstype
-
rwp
Hmm...
-
rwp
What does "file -s /dev/da0s1" say for you? I am wondering if you actually have a valid exfat file system.
-
V_PauAmma_V
You need fuse and fusefs-exfat, IIRC.
-
nomia
-
VimDiesel
Title: How to mount exFAT formatted SD memory card on FreeBSD
-
rwp
Ah! I have "pkg install fusefs-exfat" on my system. That's why it works for me. Thanks V_PauAmma_V for that!
-
nomia
then i have to reboot
-
rwp
nomia, Why do you need to reboot?
-
nomia
idk
-
nomia
(: that page says so
-
rwp
That reboot at that page is just to test that everything loads okay at boot time.
-
nomia
k
-
rwp
In case one made an edit mistake in /boot/loader.conf file. You don't actually need to reboot now.
-
V_PauAmma_V
rwp, tangentially, see fstyp(8).
-
rwp
And as far as I know the fuse module is loaded on demand by some method because it works for me and I don't have that in my /boot/loader.conf file.
-
rwp
V_PauAmma_V, Cool! I did not know about that command.
-
rwp
And keeping with history there is no 'e' on the end of it. (shakes my head)
-
V_PauAmma_V
e was in short supply then.
-
rwp
They were used up elsewhere.
-
rwp
nomia, I read "man mount.exfat-fuse" and it makes no mention of needing to load a module. I think I have never needed to do it manually. So pretty sure it must be loaded automatically when needed. I do not have the module listed in my /boot/loader.conf file and think that micski.dk article might be overstepping what is actually needed at that point.
-
rwp
I note that fusefs.ko is part of base. Though the mount.exfat-fuse is a port the fusefs module is in the OS base.
-
rwp
I would need to sort through my bag of unlabeled USB sticks in order to test this theory today though. And at the moment I am being called away from the keyboard.
-
rwp
When it is all working for you it would be great if you mentioned here if anything more was needed to make that work for you. TTYL!
-
nomia
no luck
-
nomia
still says invalid fstype
-
babz
nomia: whereis mount.exfat mount.exfat-fuse
-
nomia
mount.exfat -o ro /dev/da0s1 /mnt
-
nomia
that worked
-
nomia
not mount -t
-
babz
the command naming isnt compatibe with mount
-
babz
it expects mount_$fstype
-
nomia
i made the symlink in /usr/local/bin
-
CrtxReavr
It installs as /usr/local/bin/mount.exfat?
-
CrtxReavr
Um. . . /usr/local/ is ports/packages managed. . . *YOU* should not be creating symlinks in it.
-
nomia
k
-
phryk
does pkg offer a machine-readable output format? specifically want it for for pkg query, version and audit.
-
CrtxReavr
Doesn't look like it. . . not unless you write your own.
-
CrtxReavr
Though, it's ouput is pretty simple & consistent, so it shouldn't be hard.
-
markmcb
scoobybejesus,
text.is/4YMJ
-
VimDiesel
Title: services_to_restart( &x22;authelia&x22; &x22;phpfpm&x22; &x22;nginx&x22; &x22;syncthing&x22; &x22;tailscaled&x22; &x22;zrepl&x22; ) - text.is
-
markmcb
side note, not sure if it's just be, but bsd.to appears to be down
-
CrtxReavr
It would be useful if pkg had a runtime option for json output.
-
CrtxReavr
-
VimDiesel
Title: View paste F7DQ
-
scoobybejesus
cool thanks!
-
uuuuu
What I am trying to do is disable overcommit and set global memory limits for the following outcomes: 1. Processes will get error if they try to allocate more than a set limit 2. oom does not activate and does not activate to kill processes that did not cause the allocation failure (eg. kill biggest process mode) and 3. system is not grounded to a halt because of thrashing.
-
uuuuu
I am looking for something similar to vm.overcommit_memory=2 vm.overcommit_ratio=99 on linux.
-
uuuuu
forums.FreeBSD.org/threads/how-to-m…ail-in-a-sane-way.83582/post-550016 (whole thread is worth a read though) suggests that even with vm.overcommit=7 oom killer will still activate if programs memory used is passed swap limit (I have no idea why because earlier in the thread (
forums.FreeBSD.org/threads/how-to-m…ail-in-a-sane-way.83582/post-549905)
-
uuuuu
the user tried malloc with the with large size with sysctl set and it failed (or at least without them noticing anything being killed). So if this is the case, is there another way? vm.overcommit = 7 in combination with protect command is not good enough here unless protect -di 1 (init) stops all existing and new processes from being
-
uuuuu
killed by oom when existing swap space is exhausted (assuming oom isn't triggered by something other than exhausted swap space and/or protect(1) accounts for the other scenarios that may trigger oom). I see limits(1) may help, but does hw.physmem act on physical ram in addition to swap as I want programs to use some swap?
-
VimDiesel
Title: How to make "impossible" memory allocations fail in a sane way? | Page 3 | The FreeBSD Forums
-
nmz
pkg: sqlite error while executing COMMIT TRANSACTION in file pkgdb.c:1157: database is locked
-
phryk
can somebody advise me on bhyve(-vm)? i have a win10 vm that's slow as hell. i assigned 4 cores with 2 threads each as well as 8g memory to it. i already moved it from an .img file to a dedicated (platter) disk partition, but it's still unreasonably slow, even for windows.
-
phryk
i did the move from .img file to disk by just dd'ing the contents of the .img to /dev/adaXpY and i have a hunch that this might be the cause, but i'm not sure and i can't find any information about the different disk types going more into depth than man bhyve…
-
jauntyd
-
VimDiesel
Title: Index of /groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.240-1Fedora People
-
phryk
in case that's important: sectorsize is 512 and type is ms-basic-data
-
phryk
jauntyd: i'm not using virtio, i'm currently using ahci-hd as disk type. is that so much worse performance-wise?
-
uuuuu
phryk: yes. This is an issue that affects all platforms and libvirt backends
-
phryk
uuuuu: i don't quite follow… if it's an issue for libvirt backends, doesn't that mean virtio is also affected?
-
phryk
mhh. i guess i'll just nuke one of my nvme partitions and set up a fresh win10 vm on that…
-
uuuuu
phryk: I was referring to disk performance being slow if not using virtio device for vm (added via virsh/virt-manager) and virtio drivers not installed on guest. When not using virtio device and drivers issue can be experienced with kvm backends on linux (I am not 100% on if xen is affected) for example
-
phryk
uuuuu: thanks for the clarification. i'm not using virt-manager or virsh, tho – but bhyve-vm. that technically supports virtio, but i think i'll try the nvme route first as it's explicitly pointed out for good performance in the bhyve-vm wiki.
-
polyex
in /etc/syslog.conf it has the includes after !*. ! inverts and * is a program or hostname, so does that mean it's saying the includes don't implicitly apply to any program or host?
-
rennj
-
rennj
!*
-
VimDiesel
Title: syslog.conf(5)
-
polyex
but later it says ! inverts the logic. so there's 2 contexts for ! and they mean kinda the opposite lol
-
polyex
what's the style for multiple selectors in syslog.conf? most severe to the left, least specific on the left?
-
polyex
if i use kern.*;*.warn /var/log/messages then logger -p kern.info foo, foo never shows up in messages
-
V_PauAmma_V
See "IMPLEMENTATION NOTES" in syyslog.conf(5).
-
V_PauAmma_V
s/syy/sy/
-
polyex
V_PauAmma_V ya i read that but what's it matter to me?
-
polyex
you saying my logger msg is being rewritten?
-
V_PauAmma_V
I'm guessing it is.
-
polyex
that kinda makes testing tough geez
-
polyex
how does syslogd know if a kern message is coming from the kernel or from the logger bin?
-
tsoome
why do you think, it does know?:)
-
V_PauAmma_V
Different socket for kernel log messages, IIRC.
-
polyex
V_PauAmma_V that a security thing so ppl with shell access can't simulate kernel messages?
-
V_PauAmma_V
That just keeps you from shooting yourself in the foot unless you really want to. See -k in syslogd(8).
-
polyex
i read it
-
polyex
what's the danger in not having that?
-
V_PauAmma_V
I think it's less danger as such than POLA.
-
polyex
POLA?
-
V_PauAmma_V
Principle Of Least Astonishment.
-
polyex
shooting myself in the foot if... syslog messages are faked to be from kern?
-
polyex
in what scenario would that happen
-
V_PauAmma_V
I can't answer that question as asked, as people are ever-inventive in designing footshooters.
-
polyex
to avoid problems with multiple selectors being interpreted in weird ways, any problem with just putting 1 selector per line?
-
polyex
like kern.* /var/log/mylog, \n security.* /var/log/mylog...
-
V_PauAmma_V
That won't prevent the "mail.crit,*.err" example from acting as described.
-
polyex
so how do we learn how multiple selectors combine? because the manpage itself says it's not intuitive
-
V_PauAmma_V
The manual page doesn't make that crystal clear. So I guess trial and error based on the examples it provides?
-
V_PauAmma_V
(Which is arguably not ideal.)
-
polyex
ya that's terrible. is there any way i can do it 1 selector action combo at a time to keep it simple?
-
rennj
freebsdwiki.net/index.php/Syslog heh install syslog-ng, or perhaps check the oreilly FreeBSD® Unleashed book.
-
VimDiesel
Title: Syslog - FreeBSDwiki
-
rennj
It is possible to create (or spoof) an event from the console using the logger command.
-
polyex
termbin.com/h3j5 is the logic i want
-
rennj
heh think freebsd handbook had that example already
-
V_PauAmma_V
I don't know what will happen if several lines refer to the same file.
-
rennj
you did check the handbook?
-
polyex
ya
-
rennj
termbin.com/t5u4 old old 20 years old...probably not valid anymore
-
polarian
What is the policy when it comes to ports... can anyone whos read the handbook submit port patches?
-
polarian
or should you leave that to the maintainer?
-
polarian
what if the maintainer hasn't replied in months? and the new update is pretty important?
-
rennj
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/message
-
V_PauAmma_V
portmgr@, maybe?
-
V_PauAmma_V
rennj, that's a single line. :-)
-
V_PauAmma_V
polarian, is that a Bugzilla report?
-
polarian
V_PauAmma_V: no... because I was unsure if it qualified
-
polarian
I tried to reach them privately first
-
polarian
I talk to upstream a lot... so I was unsure if there was a reason they were holding back releases
-
polarian
no response... so I am wondering what options are there...
-
polarian
I assume bugzilla report is the first thing to do? but should you make reports for outdated packages? coming from Linux that is strictly prohibite d
-
V_PauAmma_V
I'd open a PR (with a patch for the version upgrade if you can, but not required). Worst that can happen is "nothing", which is the same as currently.
-
polarian
oki thanks for advice
-
rennj
did you even try single line then # Reset program name filtering !*
-
rennj
next single line, rest the filtering
-
rennj
next single line, rest the filtering
-
rennj
-
VimDiesel
Title: The FreeBSD Diary -- syslog.conf - putting stuff where you want it
-
rennj
-
VimDiesel
Title: System Monitoring — Remote Logging with Syslog | pfSense Documentation
-
rennj
-
rennj
!*
-
rennj
+*
-
rennj
reset the filters
-
rennj
dont have to do the remote logserver part
-
polyex
any benefit to having daemons syslog to their own facility like local0 or is that pointless?
-
rennj
im curious if it solved your problems?
-
polyex
i just put all the selectors on 1 line
-
rennj
heh.
-
rennj
i use to do very very complex syslog/bsm auditing to remote dvd robot ...thank god it was solaris.
-
rennj
audits/logs burned to readonly dvd's
-
rennj
try hacking the logs on readonly/closed session dvd
-
rennj
udp not going to do
-
rennj
syslog remote box using udp...nah...
-
rennj
and i had oracle db processing that crap behind the scenes no less..madness.
-
rennj
like doing cisco netflow logs..tracking
-
rennj
500 sparc 5's workstations..collecting their logs...
-
rennj
back in the 70MHz days.. and 500MB/1GB scsi drive if lucky...
-
rennj
way before google
-
rennj
dvd rom robot was 2002 tech. after google..not sparc5 mid 1990 tech..
-
rennj
same deal bsm audits/remote syslog server
-
polyex
if you didn't use udp syslog for shipping because it wasn't reliable, what'd you use?
-
lw
what
-
lw
make[4]: don't know how to make .o. Stop
-
lw
make[4]: stopped in /src/freebsd/src/stable/14/sys/modules/dpdk_lpm4
-
rennj
well fbsd stunnel/tls it
-
rennj
solaris had billion dollar company behind it
-
rennj
$ buys features