-
mason
TIL pkg prime-list. Useful.
-
mason
demido: I trust what that particular ZFS person says. He knows more about it than most of us, FWIW, based on what I've observed.
-
demido
ok thanks mason. so my external usb drive zfs mirror command sequence ends up as: gpart create -s GPT <devid0>, gpart add -l mylabel0 -t freebsd-zfs -a 1M <devid0>, gpart create -s GPT <devid1>, gpart add -l mylabel1 -t freebsd-zfs -a 1M <devid1>, zpool create mylabel mirror gpt/mylabel0 gpt/mylabel1 ; zpool import mylabel
-
demido
sharing that in case anyone else can use it
-
demido
pretty awesome to be able to get a zfs mirror over 2 external usb drives and get all the benefits of zfs like bit rot healing
-
demido
prior to zfs it was FS dark ages
-
mason
demido: The other thing, actually, is to go back and ask him *why* that'd be ignored.
-
demido
true
-
demido
ok just asked i'll report back what i learn
-
mason
demido++
-
demido
mason dagger said "ZFS splits vdevs up into metaslabs, which are typically 16G. it'll only use the beginning (approximately) n*16G of space"
-
demido
"I suppose you might get exceptionally lucky and that final <4k of space might be enough to fit an extra metaslab in, but the odds are... what, 1 in 4.8 million at best? for random disk sizes"
-
demido
so i'm kinda thinking it's still a good idea to set gpt part -s to qty of whole MB, then let zfs metaslab however it will. thoughts?
-
mason
demido: His final comment about varying disk sizes is something that comes up a surprising amount.
-
ek
It does make sense based on the way disks are sized, I suppose. I'd just let ZFS do it's thing.
-
demido
so skip setting -s on clean 4096 boundary and let zfs figure it out?
-
demido
mason which comment? just wanna be sure i'm not mistaken
-
demido
"I suppose you might get exceptionally lucky and that final <4k of space might be enough to fit an extra metaslab in, but the odds are... what, 1 in 4.8 million at best? for random disk sizes"?
-
ek
Yes. There are cases for the -s arg, but I don't think it'll make a difference in this one. Give it a shot and see what happens? Or have you already and you're having problems?
-
demido
haven't ran into a prob was just taking some advice from tsoome
-
mason
demido: I was thinking specifically about "20:39 < Dagger> but note that this is also your buffer for replacing a disk with a smaller one"
-
ek
tsoome: Is a very good source. I'd listen to them before I listened to myself. That's for sure.
-
demido
mason ah ok ya i was wondering about that. i'm not quite sure what it means
-
demido
mason are you saying that it actually happens quite a bit that the zfs metaslab ends close enough to the end of a partition's size, that it can be a problem with a replacement disk being smaller?
-
mason
demido: Nothing about ZFS. What I'm saying is that unlike spinning rust, SSDs advertised as being the same size often aren't.
-
mason
So if you have a slightly larger one, then need to mirror it to another disk the same size, you'll often find that the new disk is actually smaller despite the advertised size.
-
hodapp
I thought that was an issue with spinning rust too
-
mason
hodapp: Not generally. Spinning rust disks tend to be far more uniform. At least in my experience. Where I've been bitten by mismatched SSDs a few times now.
-
ivy
i remember this being a thing with HDDs in the past, but nowadays the remaining vendors seem to have standardised on how many sectors each size should have
-
ivy
(i still leave a margin though, just in case)
-
rwp
An acceptable plan might be to use the two disks that are currently the same size and then if one fails it will be in the future and larger SSDs will be cheaper so buy two more larger ones and upgrade to the larger sizes.
-
rwp
Note that if one buys two at the same time of anything that are designed to be identical like two SSDs and one fails then there is a higher likelihood that the other one is also identical and will also fail very soon. Twice now I have had two identical spinning disks fail within a week of each other because they were identical and lived identical lives.
-
cpet
i have 6 SSD's and 2 NVE's
-
cpet
one of those drunk purchases :P
-
cpet
lets buy 4 ssd for some random reason
-
cpet
so now the desktop has freebsd ins tall on a mirror NVE with a mirror 500 x 2 and a mirror 2 x 1tb SSD
-
cpet
i would have lost about 500 gb if I did a 4 way z2
-
demido
mason so shouldn't that mean that i DO use -s for whole MB boundary and clean 4096 ending?
-
rwp
demido, I would. Have you Read The Fine Mason docs?
wiki.freebsd.org/MasonLoringBliss/ZFSandGELIbyHAND
-
rwp
cpet, Mirroring is simple and robust and 2-4 devices makes a lot of sense. Using raidz2 on 8-12 devices though also makes a lot of sense. It all depends upon the situation.
-
demido
the #zfs guy said it wouldn't hurt so i might as well. worst case scenario i lose some disk space but idk about that as much as i care about solid setups. and yea i skimmed the mason doc looks pretty good
-
demido
2 usb drives here
-
rwp
Some SSDs that say things like 500GB or 1000GB are not always exactly the same size. If you use partitions then there is always a little space unused at end for reasons of alignment. It's more likely to fit two mismatched drives in that case.
-
demido
and it would be a solution right? to set the size (-s) to the number of whole MBs
-
demido
or what rule of thumb would be good to use?
-
rwp
I think Mason documented this in his RTFM Read The Fine Mason doc where it says -a 1m -s 4096m
-
mason
demido: Could you reiterate the end-of-disk behaviour you were wondering about? Revisiting, I've decided that I don't entirely understand.
-
mason
I'd tend to pick an -s a bit shorter than the whole disk based on the notion that a replacement disk might be smaller. I tend to install to mirrors, and find something that will comfortably fit both disks.
-
demido
mason basically tsoome was saying that you want your partition to be whole 4096s, so the partition doesn't end partway through a 4096 block
-
demido
so in order to do that, you set -s with some base 2 SI amount that fits within the disk
-
demido
so -a 1M to align the start, then -s $x so the end is aligned cleanly
-
demido
so the whole partition is made up of whole 4096 byte blocks
-
demido
that make sense?
-
cpet
2025 amd we still partion are disk like it was 1993
-
cpet
:D
-
mason
Ah, ah. I'm not sure how much that will matter in reality but it sounds pleasantly tidy.
-
cpet
demido: surprised mason didint tell you to join #freebsd-fs
-
mason
I'd have to know about it before I could recommend it.
-
cpet
GPT defaults to 4096n
-
demido
how often do you guys have nvme drives fail?
-
mzar
demido: that's probably more or less random
-
nxjoseph
hi
-
mzar
q: mac_do(4), what do I need except security.mac.do.rules: uid=1001>uid=0 to have is working for uid 1001 ?
-
mzar
is mac_do(4) only for jails ?
-
nxjoseph
VVD, how are you doing?
-
nxjoseph
it's been a while we didn't talk
-
hodapp
mason, ivy: oh, fair enough. perhaps this is just because I lived through the era when a megabyte was more of a feeling than a measurement.
-
mzar
OK, mac_do(4) describes security.mac.do.rules in a bit modernised way, but it still works
-
VVD
nxjoseph, hello!
-
nxjoseph
VVD, hi! I prepared a meal for myself, see you later!
-
Macer
just realized that the fbsd realtek kernel module seems to kill one of my nics.
-
Macer
i was wondering why opnsense kept just dying on me and saw it dropping out and never returning with a watchdog error
-
polarian
is anyone getting tons of AI generated emails recently?
-
polarian
its just gibberish
-
hodapp
lol implying I read my emails
-
polarian
xD
-
nxjoseph
Macer, did you meant that your nic is died physically because of the module?
-
Macer
nxjoseph: yes
-
Macer
it had a watchdog timeout... then would go up and down over and over. i had to install a vendor module.
-
Macer
opnsense has it in their repo
-
Macer
it was taking down everything because it is my vlan gateway too
-
ivy
-
Macer
it happened randomly so it took me a little while to catch it so i could find out what it was.
-
Macer
ivy: ah. yes that's it.
-
Macer
oh wow. from 2012 :)
-
Macer
well if it happens again i'll install opnsense on my ancient supermicro 1u that i've been using as a fbsd testbed
-
Macer
which is a little overkill but it will definitely work
-
ivy
1.3.6.1.4.1.1466.115.121.1.7
-
ivy
whoops
-
mason
demido: I've had two nvme drives I've used seriously, and of those, one is failing. I've got another I got in a retail system that I've started using, and I'll be taking regular back-ups.
-
polarian
-
polarian
from the looks of the video, 802.11ac has been ironed out for 14.3?
-
polarian
so that it will be stable enough to daily drive? (at least on the framework laptop)
-
ek
polarian: There's been A LOT of work on wi-fi drivers for FBSD recently. I believe you're correct about 14.3. They originally wanted to speedline it through on 14.2 but it just wasn't quite ready.
-
ek
With any luck, there'll be some awesome advances with wi-fi very soon.
-
polarian
meh
-
polarian
802.11n works fine
-
polarian
if I want fast internet I plug in ethernet
-
ek
Yep.