-
V_PauAmma_V
zpool is the volume manager (and software RAID) part of it, and zfs is the filesystem part of it.
-
Chip1972
V_PauAmma_V: where I learn it?
-
cpet
can peole not google any more ?
-
V_PauAmma_V
man zfsconcepts
-
cpet
-
cpet
the whole zfs documentation
-
cpet
you can ask your phone to do it for you heh
-
cpet
hey google what is the difference in zppol and zfs
-
cpet
openzfs docs need a lot of work
-
Chip1972
cpet: I want to learn, not be converted...
-
cpet
converted to what ?
-
cpet
tell me what is the difference in ask google than asking in here ?
-
V_PauAmma_V
Unlike Google now, I'm in the business of providing accurate (and if at all possible usable) information.
-
cpet
first result was a link to oracles docs
-
cpet
probably more accurate
-
V_PauAmma_V
See above, "usable".
-
v01d
V_pauAmma_V: thanks for the man zfsconcepts I didnt know: there is no stupid question!
-
cpet
Chip1972: apropos x will give you every man page with x in it
-
V_PauAmma_V
(I don't think snapping at someone for not using Google is productive.)
-
cpet
if you dont want to google
-
v01d
"(I don't think snapping at someone for not using Google is productive.)" I agree
-
Chip1972
arch users are migrating to fbsd?
-
cpet
why does it matter ?
-
v01d
How are you cpet :)
-
cpet
i have no beer for turkey day
-
v01d
oh, broke?
-
cpet
no people dont want to work holidays any more
-
v01d
haha!
-
cpet
so I didnt know rouses closes at 2pm today
-
v01d
Chip1972: where did you ear such thing ?
-
cpet
since searching google is bad, i do not know as I cant google
-
cpet
:(
-
cpet
i like it when people move form linux to freebsd they complain that wayland doesnt work right :)
-
cpet
again not googling at the fatc that wayland support is there but behind a bit
-
cpet
-
cpet
wonder when that will be available
-
Macer
wow. long smart tests still going on these disks
-
cpet
yeap it takes a while
-
Macer
i think when it started one of them said 1000 minutes
-
cpet
zfs in itself does a pretty good job at detecting issues and fixing them
-
cpet
we used to have a program called badsec which would remap bad sectors
-
Macer
yeah but i haven't added these to the pool yet. i wanted to make sure they'd pass the long smart test before adding the 2nd vdev
-
cpet
-
cpet
heh
-
cpet
now the firmware does that
-
Macer
yeah i thought hard drives do that on their own
-
cpet
i would of just added it in :(
-
Macer
lol
-
cpet
if smart says the drive is good
-
cpet
then hell if im going to wait 14 hours
-
Macer
well... smart hasn't said it's good yet heh
-
Macer
they're down to 20% left .. so i can wait it out
-
cpet
smart does its own small little tests to see if the drive is good or not
-
Macer
i need to yank them to make sure i have the serial numbers and positions right in the spreadsheet anyways
-
cpet
based on what the results are
-
cpet
yeah I wouldnt last that long
-
cpet
added drives, add drives to spread sheet goto break room and dirnk coffee
-
cpet
heh
-
Macer
i'm not really sure what it does for teh short testing
-
Macer
but i figured the long test scans every sector
-
Macer
in one sitting end to end
-
cpet
i had a NAS that said a drive was bad i rebooted it it then said it passed
-
cpet
so i dont trust that smart stuff much
-
Macer
once i get this vdev going in can start ordering an 8TB drive a month or something and expand it until it gets 12 wide like the other vdev
-
Macer
hopefully without destroying the pool lol
-
cpet
attaching a drive should cause any data loss
-
Macer
most places i'm seeing say 4 disks are required to start a raidz2 vdev.. i always thought it was 3
-
Macer
but i guess that would be awkward
-
cpet
4
-
Macer
i hope you mean shouldn't :)
-
cpet
what mnakes sense to you ?
-
cpet
should or shouldn't ?
-
Macer
attaching a drive shouldn't cause any data loss
-
cpet
yeap
-
Macer
well for now i'm going to have mismatched vdevs .. not sure if that's a problem with zfs. i'd think not but there may be science in it
-
cpet
nope
-
Macer
1 vdev will be 12 8TB raidz2 and the other will (for now) be 4 8TB raidz2
-
cpet
yeap the minimum
-
Macer
so i have something to scale off of .. hopefully larger drive prices come down
-
Macer
i'll have 12 bays to work with so i could just make a 20TB x 12 pool or something and get rid of all these old disks
-
Macer
9 Power_On_Hours 0x0012 087 087 000 Old_age Always - 93576
-
Macer
the 4TB drives i'm running are troopers
-
Chip1972
there is a ZPOOL and ZFS tutorial for noobs?
-
Macer
-
V_PauAmma_V
There's a chapter on that topic in the user handbook.
docs.freebsd.org/en/books/handbook/zfs
-
Macer
# 1 Extended offline Completed: read failure 30% 1255 -
-
Macer
hah
-
Macer
so it failed
-
Macer
one of them did at least
-
hodapp
hmmm I should prolly start replacing my crappy old SAS drives
-
hodapp
though it's a RAID-Z2 and has a hot spare so meh
-
Chip1972
what is difference between mount ZPOOL and mount ZFS?
-
V_PauAmma_V
As far as I know, you can't mount a zpool, only a zfs (which can be the root filesystem of a zpool). Why do you ask?
-
Chip1972
according to 'ZFS for Dummies'
-
Chip1972
Use the -R flag to mount the pool to an alternate root location
-
Chip1972
# zpool import -R /mnt/tank2 tank
-
V_PauAmma_V
This is actually mounting the root filesystem of the pool.
-
V_PauAmma_V
(in addition to importing the pool)
-
Chip1972
what is difference between mounting and importing?
-
kenrap
cpet: you know what people are more inclined to do than searching on google for answers? Asking ChatGPT. :P
-
V_PauAmma_V
Importing (and exporting) is what lets you move pools between computers or VMs. Mounting is what makes a zfs (which again, may be the root zfs of the pool) visible somewhere in the directory tree.
-
Chip1972
can I mount whithout and importing?
-
kenrap
You need to import the zpool in order to mount the zpool's datasets.
-
V_PauAmma_V
(datasets being what I not-quite-correctly called "filesystems" above.)
-
Chip1972
how fstab import the zpool?
-
V_PauAmma_V
I think that on multiuser startup, some script in rc.d/ will automatically import all zpools that the computer or VM has access to.
-
V_PauAmma_V
So you wouldn't need to touch fstab, if that automatic importing is what you want.
-
Chip1972
shame on zfs docs...
-
V_PauAmma_V
That "ZFS for dummies" is 5 years old, judging by the URL. It may have been correct then, but OpenZFS changed meanwhile.
-
JetpackJackson
I'm reading the handbook page, is that up to date?
-
Chip1972
is like trying to build a wall, and only find documentation to build a skyscraper
-
V_PauAmma_V
JetpackJackson: I seem to remember that most of that chapter dates from 2022 or 2023. So nearly everything in it should still apply.
-
JetpackJackson
Alright cool
-
JetpackJackson
Makes me wish I had paid more attention in my vm install with zfs cause I just picked the first one (stripe, no mirror, I think?) lol
-
JetpackJackson
Gonna see if I can install on one disk, add more disks, and then change the stripe-y stuff
-
V_PauAmma_V
That's very easy to do in VMs. I've added disks (well, partitions) to a stripe several times when my first disk turned out to be too small.
-
JetpackJackson
Ah ok. Want to be able to add disks freely to my upcoming media server setup so I wanna prepare by figuring out how it all works
-
Macer
# 1 Extended offline Completed: read failure 10% 31134 -
-
Macer
hm.... 2 of the 4 failed the smart test
-
Macer
makes me wonder if there is something else wrong
-
cpet
Macer: you do know that zfs will detect those bad sectors and mark them so ?
-
cpet
zfs is a pretty resilient fs
-
LxGHTNxNG
i've had it break several times, it's quite fragile. but it can detect bad sectors and refuses to knowingly return incorrect data
-
cpet
i guess it depends on the drive as well
-
cpet
Macer: is it procedure to scan the drives first or are you doing it as a good employee ?
-
Macer
expand: expansion of raidz2-0 in progress since Thu Nov 27 22:35:46 2025
-
Macer
ah well.. 2 of the 4 disks failed the long smart test so i'll just pass on those two and just expand the existing vdev 4 more disks and work on making another 16 disk vdev later
-
Macer
i considered making the vdev 24 disks wide but that is kind of pushing it
-
cpet
LxGHTNxNG: ive done some weird things with zfs and never had it break but then again i install the OS and leave it alone
-
rtj
so cool you can ecpand them now
-
cpet
-
cpet
took half my turkey meal and froze it for xmas and new years
-
cpet
cook once eat on 3 occasions
-
rtj
cpet: yes, thats what i was talking about
-
cpet
rtj: the handbook says not to make pools bigger than 9 drives
-
rtj
good to know. i cant afford that many. no need to worry here. ;)
-
cpet
yeap and that is why my zfs pool include a mix of nve ssd and HD
-
cpet
heh
-
cpet
not smart not efficient but it works
-
kerneldove_
15R coming soon!
-
hernan604
soon !
-
hernan604
-
hernan604
lo
-
hernan604
l
-
LxGHTNxNG
maybe you should go an eep
-
cpet
hernan604: you do realize that the actual release date is set to Dec 2 ?
-
cpet
and that too can change
-
cpet
releng/15.0 was created so you can upgrade now using src to 15.0-release
-
hernan604
cpet: yes, but the iso always land there earlier
-
hernan604
(than the expected date)
-
cpet
hernan604: if you really wanted it you would just compile the src
-
Macer
4.03T / 69.1T copied at 223M/s, 5.83% done, 3 days 12:59:26 to go
-
Macer
uhm....
-
Macer
so it was going rather well... now it almost seems like it completely stopped its expansion reflow
-
hernan604
cpet: nah, im just looking for fun
-
Macer
uh oh
-
Macer
this can't be good
-
Macer
it's mounting the local filesystem after i decided to reboot it and now it's just sitting there
-
Macer
ok. it finally started up. that would have sucked
-
Macer
not the end of the world but still sucked.. but yeah i'm guessing because this drive sucks and isn't a nas drive that it's just super slow
-
cpet
its a HDD the max it will go is SATA 6 speeds
-
cpet
which is 600 mbits/s
-
ketas
4.03T / 69.1T copied at 223M/s
-
ketas
that's like hdd maximum
-
ketas
pretty much
-
cpet
lets all add in terabytes of storage the complain when it takes to long at the max speed of the sata interface
-
ketas
there is no 70t hdd so raid i guess
-
ketas
of 2 disks :p
-
ketas
i love how far we have come
-
scottpedia
bro that's pretty much the up limit of a new SATA3 disk ketas
-
Macer
cpet: oh. no. it was actually not going that fast.. that speed was slowly declining and zpool iostat was showing very little activity
-
Macer
maybe i should have been more clear
-
scottpedia
200+MB/s something
-
scottpedia
the equivalent of 2GbE basically
-
scottpedia
Macer: what are you transfering?
-
Macer
i'm expanding a raidz2 vdev
-
ketas
yeah it's pretty sata hdd max
-
ketas
esp if random access too
-
Macer
maybe it was the random access when it really got slow. zpool iostat was showing like 2MB/s for the drives
-
ketas
yeah
-
Macer
after rebooting and having it resume it seems to be going faster again
-
ketas
i bet it's random anyway
-
ketas
that's weird zfs behaviour maybe
-
Macer
not sure... i guess i'll just wait it out
-
scottpedia
my personal favourite of raid is 0 + 1
-
ketas
but it's not like you keep rebooting during disk ops to get +10mb/s extra oomph
-
scottpedia
parallels in series basically
-
Macer
yeah lol
-
Macer
that wouldn't be practical. i did it because i figured something was wrong.
-
ketas
unsure if i would even want 0 part of it
-
Macer
scottpedia: that pool is for raw storage. speed isn't that serious.
-
ketas
but in some cases you need it
-
ketas
if you want to write down 100t file it doesn't fit
-
ketas
:p
-
scottpedia
ideally speaking they should have some kind of a statistical analysis of how often a drive goes haywire
-
ketas
what were benefits of raidz?
-
ketas
speed?
-
Macer
i'd say space
-
scottpedia
aka what kind of importance constitutes the need for a raid 1 setup
-
Macer
space+redundancy
-
ketas
oh maybe
-
scottpedia
read about apple's fusion drive some time ago
-
ketas
here i see myself doing 2 hdd mirrors
-
scottpedia
they say it's kind of good cause it's a tiered storage system
-
scottpedia
dunno how well that could perform in practice
-
ketas
managed to crapperize myself a bit with singles
-
Macer
in my case i'm going to expand this vdev to 16x8TB then move onto making another 16x8TB vdev (or larger maybe) later ... i'd be a little nervous making a raidz2 vdev > 16 drives
-
ketas
so don't do that
-
ketas
or, do, if it's ok
-
Macer
lol. at least with singles if you really screw up you can just mirror on the vdev to work your way out of that even though you have to go 1:1
-
Macer
i've seen people who accidentally added that single disk vdev to a pool lol
-
ketas
you can mirror it out
-
ketas
actually zfs needs more general features
-
Macer
the only time it probably matters a lot is when people try to add slog or l2arc and do it wrong and add a 128GB nvme or ssd to the pool lol
-
ketas
one dreaded one is to replace device with new smaller device
-
Macer
does zfs even let you do that?
-
ketas
it has... hacks
-
Macer
you'd think it would spit out an error if you try to replace with something like half the size of everything else
-
ketas
but no
-
Macer
i think they have that new thing where you can add different sized disks .. not sure if that's in 2.4 or not though
-
ketas
i have my few pools too large and sane idea is to replace with larger disks eh
-
Macer
that's probably something i would never attempt. i guess i can see the use case of throw anything you can at the storage due to financial constraints
-
ketas
different size disks always worked
-
Macer
yeah but you'd have to wait until you replace them all with larger disks for it to expand.. i guess it's easier with mirror vdevs
-
ketas
in mirrors at least
-
Macer
yeah. depending on yow you do it you just have to replace 2 at a time to expand the space .. that's a lot of space to give up though. i'd probably take that route for super important production storage
-
Macer
and have 3 way mirror vdevs lol
-
ketas
yeah why not
-
ketas
someone told it i was wtf but
-
ketas
it's just a disk
-
Macer
lots of read speed at least :)
-
Macer
do zfs mirrors take speed of the drive into consideration? like if you had a 4TB ssd and a 4TB platter would it just favor the ssd and let the platter trot along?
-
ketas
i never tried
-
ketas
apparently it's mixed result it seems
-
Macer
i have a 4TB SSD sitting on a table and a 4TB platter .. i should try that
-
Macer
just to see what happens lol
-
ketas
need guard space i guess
-
Macer
i'm curious if zfs adjusts for that
-
ketas
i missed it on disks
-
ketas
damn
-
ketas
i highly doubt 4t hdd is byte equal to 4t ssd
-
Macer
that can be adjusted with partitioning
-
ketas
yeah
-
Macer
but it should be the same (in theory)
-
Macer
i don't think they use a different standard for sizing
-
ketas
never know eh
-
Macer
i'd guess that zfs would adjust to the slightly smaller drive size regardless
-
ketas
i have 4 same hdd's here, but also diffrent ones
-
ketas
i had brainfart and forgot the part size
-
ketas
:p
-
Macer
ah. that's why i just copy the partition tables from the other disks
-
ketas
so now that pool stays that
-
Macer
then gpt label them
-
Macer
back in the day when i used freenas figuring out where broken disks were was a mess .. they identified them like 3 different ways .. zfs would add them one way but the web ui would show them differently
-
Macer
the best thing i ever did was just install vanilla fbsd on the nas
-
ketas
unsure why all 4 12t hdd's from 3 makers are byte equal tho
-
ketas
and what's max diff?
-
Macer
they should be
-
ketas
in old ones i see 200m diffs on 160g
-
Macer
maybe there is some sort of requirement for it nowadays?
-
ketas
could use public smart db's to do stats :p
-
Macer
like it has to be x +/- 1MB
-
ketas
well there are no hdd standards iirc
-
ketas
on size
-
ketas
or maybe everyone moaned
-
ketas
and they were fffs ook
-
Macer
there sort of is... like 1000GB = 1TB :)
-
Macer
so if they market it wrong then i'm sure that would be a big issue
-
ketas
1000 vs 1024 is another fun too
-
Macer
kind of like how WD didn't let people know they were pawning off SMR drives
-
Macer
yeah. i was a little ticked off about that change.
-
ketas
change?
-
ketas
disks were always sold by 1000
-
Macer
i mean.. 1024 USED to be the thing.. probably not with TB but earlier disks
-
ketas
it was?
-
Macer
like if it was a 1GB disk then it was 1024MB
-
Macer
as far as i can remember.. yes .. other than what you lose formatting
-
ketas
at least i don't recall anything like that >=1999
-
ketas
and people have always moaned how disk is too small in os
-
ketas
:p
-
Macer
yeah. they started doing that in the 2000s or something when disks started becoming larger because if they change 1024 to 1000 then they can market it with more space
-
JetpackJackson
I always get mixed up when different programs show GB vs GiB
-
Macer
ounces make pounds i guess
-
ketas
gb / gib is fuckup
-
ketas
it's great confusion
-
ketas
at many times it doesn't even matter
-
Macer
remnant of binary
-
Macer
well.. i THINK most filesystems still use the 1024 method whereas disks use the 1000
-
ketas
if 78g didn't fit but 72g did it's out of space anyway
-
Macer
i'd have to check on that though
-
ketas
df -h / df -H examples
-
ketas
:p
-
Macer
and i'm sure changing that would involve a major undertaking because i doubt that filesystems can come away from using binary :)
-
Macer
i'm sure when quantum computers become the norm it this will all be moot and filesystems can just be in all states at one time
-
Macer
shrodinger's filesystem
-
ketas
you can cat from that
-
ketas
:p
-
Macer
*schrodinger's
-
Macer
the files can be deleted and exist at the same time!
-
Macer
wait... i think they do that already
-
ketas
Schrödinger's Scheiße
-
Macer
ah well.. let me start doing stuff. i have 2 days and counting until this raidz expansion is done lol .. guess i just need to keep the thing running
-
Macer
on a side note. is RELEASE still slated for today?
-
Macer
oh seems so. the 15.0 release process says they started building RELEASE today
-
ketas
hmm
-
ketas
hopefully it
-
ketas
it's all fixed now
-
JetpackJackson
I thought it was for December
-
ketas
i mean lagging release using is ok
-
ketas
because apparently devving testing isn't enough and going prod is like wait what
-
JetpackJackson
Ah
-
Macer
JetpackJackson: i'm just going off the 15.0 release page ... the RC builds were available the same day or a day or so after
-
JetpackJackson
Ah
-
JetpackJackson
Cool
-
Macer
i think the announcement is for dec 2
-
Macer
but i'm not sure if that's also when they let it out into the wild
-
Macer
9.65T / 69.1T copied at 281M/s, 13.96% done, 2 days 13:40:35 to go
-
Macer
it seems to be picking up speed
-
mzar
you have collected a lot of data
-
Macer
87.2T 69.1T 18.2T - - 3% 79% 1.00x ONLINE - i guess the expansion doesn't show until it's done 'reflowing' the data?
-
Macer
this has to be pretty intense for the disks.. lots of r/w action across the entire pool
-
v01d
oh yeah !!! what's up freebies
-
JetpackJackson
Hi
-
v01d
:)
-
Macer
great. had a drive die while expanding lol
-
Macer
go figure
-
Macer
it broke so badly that zfs just kicked it out the vdev
-
Macer
12.2T / 69.1T copied at 259M/s, 17.65% done, paused for resilver or clear
-
rwp
Macer, I don't know if I should feel sad for you or not. You were just running a testing system exercising the pathways, right? This was a testing system and not an actually in use system, right?
-
Superman
sup
-
la_mettrie
the system
-
hernan604
-
rtprio
so just replace the vdev, what's the big deal?
-
mason
hernan604: Nothing's official until the announcement comes out!
-
kenrap
hernan604: it's not "fully" official because there can be some last minute rebuilds with fixes until the announcement. Think of it as a "beta" to the release until it gets the green flag.
-
mason
^