-
rtprio
does it not?
-
adonis
rtprio: does it not what?
-
polarian
hm
-
polarian
I was wondering why updating from 14.3 --> 15.0 pf was blocking packets
-
polarian
in 14.3 pass out was default in pf, if you blocked in you had an implicit pass out
-
polarian
but in 15.0 this is gone, and you must explicitly pass out
-
polarian
interesting...
-
rtprio
adonis: you cant smartctl -a /dev/gpt/id/${uuid}?
-
rwp
rtprio, What? /dev/gpt/id/something? Does that exist? Does something enable it?
-
rtprio
rwp: i thought it could be
-
rtprio
/dev/gptid/832f9f02-92ec-11ed-a294-589cfc0428ea hrm, but that's a partition
-
rtprio
why not prevent the identifiers from changing?
-
adonis
rtprio: smartctl -a /dev/gpt/<gpt_label> doesn't work. How do I prevent the identifiers from changing?
-
rtprio
well, let's back up; what drive is it?
-
adonis
I have multiple drives in a zfs pool (3.5 spinning disks). I assigned labels to them.
-
adonis
I'm not sure how or why, but sometimes the drives identifier ada0, ada1, gets shuffled around and ada0 might not exist anymore.
-
adonis
which breaks my smartd.conf
-
rtprio
does this happen randomly on boot or ...
-
adonis
yes its on reboot/shutdown/startup of system.
-
adonis
shutdown+startup
-
adonis
its important to note that freebsd is running a vm, and the disks are passed through to it.
-
rtprio
uh, something causes it
-
adonis
running *as a vm
-
rtprio
ok, there it is
-
rtprio
that is an ... unusual way to run ZFS
-
adonis
:).. I used to run on baremetal but since I have a lot of cores on my zfs machine I turned into a vm host
-
adonis
inside the host is my freebsd vm with zfs pool (pass-through disks)..
-
rwp
Unfortunately modern kernels (both *BSD and Linux) order /dev/da? drives at boot time and rather dynamically and prone to race conditions. As far as I know it is not possible to force this to be persistent. Other than UUID labels.
-
rtprio
there _used_ to be a kernel option to make them more static
-
rtprio
but i can't seem to find it again
-
rwp
I just haven't run into a case myself where it mattered for my smartd.conf configuration which drive was which drive.
-
rwp
My systems all have two drives or eight drives or whatever but they are all equiv and so it doesn't matter if they are re-ordered at boot time or not. And for ZFS I am using GPT partitions so those are persistent but those are not used by smartd.
-
adonis
rwp: are you just doing DEVICESCAN in your smartd.conf?
-
rwp
Nope. I list them out. Example: /dev/da0 -a -I 190 -I 194 -o on -S on -s (S/../../[1-6]/03) -m root
-
rwp
And so on 1, 2, 3, ... with different hours to run self tests but it doesn't matter if they have moved around as long as all of them get a self test each night.
-
rwp
I skew the hours so that they don't all run at the same time.
-
adonis
rwp: I'm doing the same, the issue is on reboot's etc, that da0 may no longer exist because it became da1. So a group of disks da0-da4 referenced in my smartd.conf becomes da1-da5
-
rwp
At reboot I have never seen 0 be vacant. The kernel will always allocate device ids starting with 0 and on through N.
-
rtprio
here's an idea, don't reboot
-
adonis
rwp: Ok, I'm probably wrong.. then what happen is da0 becomes ada0..
-
adonis
happens*
-
rtprio
what the heck is your virtualization doing
-
adonis
I obviously have to test what scenario causes this issue better lol, but that’s the gist yea.
-
rwp
da0 is for SCSI, SAS, USB devices. ada is for SATA devices. If you have ada then you have a SATA device.
-
rwp
A /dev/daX device will not become a /dev/adaX device. It will just always be a /dev/adaX device.
-
rwp
My example above is for a system with SAS disks. And you were talking about /dev/daX so I went there for the example.
-
adonis
hmm ok, I have be to be wrong then as to how the identifiers are changing.
-
rtprio
well is just the number changing or what
-
adonis
let me reboot now.
-
rwp
Usually it is just the number changing.
-
adonis
ok, I can't lol.
-
rwp
And especially if two SATA devices are on different SATA controllers such as when two are on the primary motherboard bridge and the motherboard has six more on a secondary controller. There appears to be a race condition enumerating them and those are what I see changing most often.
-
rtprio
wait
-
adonis
I have a group of disks on SCSI yes, and another group on SATA
-
rtprio
why not just run smart on the host when the vm goes down
-
rtprio
this just seems... backwards
-
adonis
rtprio: why would I run it on the host for the disks that are passed through. Once passed through they are no longer even seen by the host.
-
adonis
rwp: regarding the starting from 0, I'm looking at my ada disks right now and they are starting from ada2
-
rwp
I did some research and apparently kern.geom.label.disk_ident.enable=1 will enable /dev/diskid/* but none of my systems have it enabled. Do newer installed systems enable it by default?
-
adonis
rwp: that’s from a 6-port sata controller with only disks connected
-
adonis
4* disks connected
-
rwp
Interesting. I haven't seen that myself. I am going to enable kern.geom.label.disk_ident.enable=1 on one of my test systems and see what happens.
-
adonis
rwp: ok, no, I'm wrong again, sorry. I do see I have a ada0 and ada1, those just don't show via 'camcontrol devlist'
-
rwp
I am curious. If you run "camcontrol devlist" do the passX numbers also start at 2?
-
rwp
Oh, okay, whew! Because that preserves what I thought must happen.
-
adonis
So my vm has ada0 and ada1 which are not pass through disks but logical disks that I created in the vm host itself and gave to freebsd.
-
adonis
logical virtual disks
-
adonis
ada2-ada5 are sata disks from the 6port sata controller I'm passing through
-
adonis
I'm looking at the history of my smartd.conf.. and yea I see it used to reference ada0 and ada1 as some of my pool disks..
-
rwp
I am not quite tracking. Your FreeBSD system with the /dev/adaX starting at 2 is a virtual machine? And the hosting system is a FreeBSD system with /dev/adaX starting at 0? Wish I had a diagram...
-
adonis
I'll explain. My FreeBSD system is a VM. It has two disks (virtual disks) given to it from the vm host that show up as adaX disks. It also has another group of 8 disks that are passed through completely, a group of 4 disks on a SCSI controller and a group of 4 on a SATA controller.
-
adonis
the virtual disks are simply for OS storage and a swap partition. The 8 passed through disks are for the zfs pool. The 8 passed through disks are what I am monitoring in smartd.conf.
-
adonis
I can see in my smartd.conf history that at some point the disks monitored were ada0-ada3, da0-da3. But then that broke as it seemed the sata disks changed from being ada0-ada3 to ada2-ada5.
-
rwp
On the system I enabled that kernel option and rebooted has an internal mmcsd nand flash storage device but I am not using it at all. That device then showed up in /dev/diskid/DISK-A2AE2A17 and all partitions on it. But that device is not smart capable. None of the SATA disks on that system show up in that directory.
-
rwp
I imagine that at early boot time all devices are in /dev/diskid/* but then as they are consumed and mounted the kernel removes all other devices, as it does, to prevent then from being accessed.
-
rwp
And so the result on my test system is that only the unused device is left in /dev/diskid/* so even if that "works" it is not useful for smart access.
-
adonis
rwp: how does FreeBSD determine that my two vm disks should stay at ada0 and ada1 (my pool disks ada2-ada5) instead of flipping to ada4, ada5 (my pool disks ada0-ada3)?
-
adonis
on a reboot
-
adonis
is it just a matter of which disks it detects first?
-
rwp
I don't know. It's outside my expertise. But I would have said they are not guaranteed to be stable. They might change on reboot. And that's the issue.
-
LapsangS
good morning
-
adonis
yup that the issue :D
-
rwp
Not to ghost you but I need to drop afk immediately for a bit...
-
adonis
rwp: no prob!
-
LapsangS
i tried wayland but with my old hardware and legacy driver, it seemed like it is better to stick with X
-
adonis
I feel like opening a ticket on smartmontools. Would be nice if it just supported identifying disks by /dev/gpt/<label>.
-
rtprio
do it
-
adonis
:scratches_head.. I feel like this will go the way of "no, fbsd needs a way to identify disks in a manner that doesn't change. Labels are for partitions not disks."
-
adonis
lol who knows what they'll say
-
adonis
-
rtprio
or you could run scrutiny which monitors all disks and keeps track by drive serial number
-
adonis
rtprio: Hmm, that’s a good idea!
-
adonis
thatll bypass the issue since scrutiny will just do smartctl --scan and remap the drives via their serial numbers everytime.
-
adonis
that’s what I expect at least :)
-
adonis
alright, sleep time. rtprio, rwp, thanks a lot!
-
antranigv
mornings, y'all.
-
cavokz
Howdy.
-
GoSox
is there a good place to discuss specifically available GUIs and themes for freebsd - and assumingly any other unix os too? I’m guessing most of you guys in here aren’t big in to GUIs
-
antranigv
GoSox most people here use GUIs :-)
-
GoSox
oh you do? it sounds like you’re all cli only types
-
GoSox
but anyway, i’m just about to jump in to bed so no gui related questions today :D
-
scottpedia
GoSox: I think by "GUI" you mean desktop environments.
-
scottpedia
idk if you can install gnome or KDE on freebsd...
-
scottpedia
i am new to this camp too so
-
polarian
ugh
-
polarian
istg I hate networking sometimes
-
polarian
pf is disabled, IPv6-only, bhyve vm has an IPv6 address, with the gateway of an IPv6 address on the tap interface (I know I could have use LLA but meh, but there is no route
-
polarian
tcpdump shows solicitation packets coming in on tap
-
polarian
but no response, despite the fact tap has the address being asked for...
-
polarian
im prob just going to need to bridge at this point
-
polarian
as I am days behind and I am not going to get paid otherwise
-
polarian
okay bridged it and it works, but I dont want to bridge I was it routed...
-
polarian
I do that with all my other VMs, but for some reason I cant get it to work with IPv6
-
polarian
must have fucked something up
-
polarian
or maybe not, because the host is getting NS but isn't responding to them, and pf isn't blocking it because pf is disabled
-
polarian
so why would the host ignore the NS coming in on tap0 when it has the address its fucking asking for
-
CrtxReavr
So according to xz(1) `-c, --stdout, --to-stdout` are options to "Write the compressed or decompressed data to standard output instead of a file. This implies"
-
CrtxReavr
Burt whenever I try it, I just get xz: Compressed data cannot be written to a terminal
-
CrtxReavr
xz: Try `xz --help' for more information.
-
CrtxReavr
'xz --help' says same: -c, --stdout write to standard output and don't delete input files
-
rrahl0
so, I updated one of my systems from 14.3 to 15.0. and for some reason it also upgraded my jail. now pkg/freebsd-update is broken in that (as it believes to be 15.0) is there something I can do to fix that?
-
rrahl0
or at least freebsd-update/pkg think they are on 15.0
-
rrahl0
imo it gets weirder
hst.sh/agebacucuq.makefile this is on the host
-
rrahl0
hm, seems like os-release doesn't get changed when you upgrade FreeBSD? is that normal?
-
rwp
rrahl0 has already left but if /etc/rc.d/os-release did not get upgraded then I think the system did not get upgraded. That's a file in base. And that file did not get updated. Therefore base did not get upgraded.
-
swee
how can I make pkg automatically restart a service when a specific package is upgraded
-
polarian
to the question I asked "can you make installworld/installkernel from sshfs" it seems like the answer is yes!