-
mage
long time no see ... what's the status of PKGBASE?
-
mage
every time I have to upgrade dozen of freebsd jails with freebsd-update I'm wondering this :)
-
mage
freebsd-update is painfully slow
-
mzar
mage: pkgbase is progressing, IIRC GhostBSD fully switched to pkgbase
-
ivy
mage: i've been using pkgbase on 15.0 for months and had no problems at all. the initial switch is still a bit of a faff, but if you're installing a jail from scratch with pkgbase that's not a problem
-
ivy
mage: at this point i'd *never* go back to any other method and i highly recommend pkgbase
-
jemius
huh, seems after installing FreeBSD onto a new, third hard drive, it automatically pulled in my old 2 HDDs with their zpool
-
rtprio
jemius: i would expect it to be in the `zpool import` list, but not automatically imported
-
jemius
I reinstalled with a new zpool name and now it seems fine
-
jemius
Anyways. Now I'd like to repartition the unused two drives, but gpart tells me they're "busy". Hmm.
-
rtprio
the ones with the zpool on them?
-
rtprio
is it active and mounted?
-
rtprio
`zpool list`
-
Tenkawa
Fortunately I only had that happen when I tried to "install" a new build and it just warned me before I overwrote my old pool and I was able to rename it then
-
Tenkawa
It left them alone for me... but I was on different controllers though (if that matters)
-
jemius
ah, got it – you have to delete all partitions on a device, first
-
jemius
how would I put a users home directory into another zpool?
-
rtprio
zfs create otherpool/home
-
rtprio
zfs unmount zroot/usr/home (or whatever it is
-
rtprio
zfs set mountpoint=/home otherpool/home
-
jemius
Hm. Thx
-
jemius
so is the `mount` command line tool ever used for anything on freebsd?
-
rtprio
if it's zfs, no, not really
-
jemius
So if I create a new zpool, that already contains a ZFS file system – what happens now if I do zfs create within that? Is it a filesystem within a filesystem? Seems more like a new mountpoint / directory to me
-
rtprio
it won't let you create a zpool if it's already in use by another pool
-
rtprio
oh, but if you have your old pool, and zfs create oldpool/blah yes, you'll get /oldpool/blah _probably_
-
rtprio
* you can 'regraft' the tree and you can choose to unmount branches also
-
rtprio
that's why i set the mountpoint otherwise it would have been /oldpool/home rather than /home above
-
jemius
rtprio, I was asking because your command from above basically is zfs create within a zpool, right?
-
rtprio
yeah, that's right
-
mzar
jemius: it's called dataset what was created by zfs create
-
rtprio
it's worth playing with zpool/zfs before it's your OS drive(s)
-
mzar
-
jemius
how can you make such a new mountpoint on a different pool permanent? A reboot resets everything…
-
rtprio
it shouldn't
-
jemius
Seems I've meesed up then and have two /home
-
jemius
-
rtprio
oh, that was my bad, i just unmounted hauptsystem/home, but didn't tell it not to boot next time
-
rtprio
zfs set mounted=no hauptsystem/home
-
rtprio
alternately boot into single user, move the files around if you need to and `zfs destroy -r hauptsystem/home`
-
jemius
"mounted is readonly"
-
rtprio
er, shit
-
nimaje
should be canmount or something similar, alternatively unset the mountpoint property
-
rtprio
thanks nimaje i was drawing a blank
-
jemius
alright, that did the trick. Thx guys
-
jemius
if you ever migrate a pool to a new / different system you have to mount everything manually again, right?
-
nimaje
you have to zpool import the pool, what gets mounted is decided by the properties of the datasets
-
jemius
"properties of the datasets" – what does that mean?
-
nimaje
stuff you can read via zfs get and sometimes write via zfs set from the dataset, like mounted, mountpoint, … zfsprops(7) should list them all I think (except that you can create arbitiarly user-definded properties, that just get saved for you, but zfs won't use itself)
-
jemius
OK, thx
-
jemius
I'm writing large amounts of data on a pool, and zfs get sometimes reports that the amount of data on the FS is actually decreasing
-
jemius
-
jemius
can that make sense?
-
rtprio
are you writing it to the correct pool?
-
jemius
yup
-
jemius
Also, several calls show that it is increasing, overall
-
jemius
just sometimes, sometimes it decreases for a minute
-
jemius
There are simultaneous writes ongoing. Maybe it sometimes defragments or re-compresses stuff?
-
rtprio
there is some buffering or caching
-
jemius
it seems FreeBSD calculates file sizes in Gibibyte, and Linux in Gigabyte?
-
jemius
At least `du` gives different sizes
-
jemius
What does `du` return on a compressed file system?
-
rtprio
you can choose what output you get
-
rtprio
in both zfs/zpool and du/df
-
jemius
sth here is very awkward, my folder of movies has an apparent size of 102GB (as on Linux), but the (compressed?) size is 92GB – that's 10GB less. `zfs` however shows that only 7GB are saved by compression
-
jemius
-
jemius
Oò
-
rtprio
are you familar about how 'blocks' work on a file system?
-
rtprio
obvously if you have a file 1 byte long, it takes more than 1 byte to store, up to 4096 bytes because that's the block on the file system
-
rtprio
i'm sure you can fine a more eloquent stack overflow answer about it
-
jemius
hm
-
Ltning
Movies tend to be a lot larger though, so there aren't that many of them in 102GB. Certainly not enough to explain the "missing" 3GB.
-
Ltning
But one possible explanation, or part of one, can be that the reported savings here do not include savings in metadata compression (I think..?)
-
Ltning
Still much much more than I would have expected, though.
-
jemius
me too. The video data itself is imcompressible
-
jemius
many contain subtitles… but still…
-
Ltning
du -h <dir|file> gives actual on-disk use. Add -A to get "apparent" use.
-
Ltning
ZFS is pretty good at not wasting cycles on data that can't be compressed anyway. So there's that, at least.
-
Ltning
(I add -h out of habit since I don't deal well with 512b blocks)