-
Axman6
I haven't been able to find a clear answer on this, but is there a way to zfs send (or something else) a whole pool to make a full backup, which can be zfs received later? I have a broken configuration on my vdev (ashift=9 instead of 12) so I want to dump it somewhere, recreate the vdev and then send it back, maintaining all the datasets and snapshots
-
mason
Axman6: You can capture the stream to a file, although this is more fragile than having it temporarily live in another pool.
-
Axman6
hmm, may be I missed this, but sending the pool using zfs send tank would actually work, and retain all the snapshots etc?
-
mason
Axman6: You'd want to send a replication stream, -R, but it's just a stream of data at that point, while it's in-flight. But you'd be far, far better having it live inside another pool for the purpose, rather than just sitting as a bare file somewhere.
-
Axman6
yeah that's probably the way I'll need to go. Sadly to do that I'll need to buy a lot of new hardware
-
mason
Axman6: Look on the bright side. That extra hardware can then turn into a dedicated back-up pool.
-
Midjak
Hello when I build curl 7.88.1 from port I have still a security report about vulnerabilities but when I look on the official website I don't see any threat on the last 2 versions .
-
Midjak
Maybe it takes time for the site to update but I would like to know the exact threat. How can we get this information?
-
Midjak
Ok I have found the reference thanks to vuxml
-
meena
and what was it?
-
Midjak
Indeed these threat are resolved in the last versions and are not referenced in vuxml anymore.
-
Midjak
-
VimDiesel
Title: curl - Security
-
Midjak
-
VimDiesel
Title: FreeBSD VuXML - curl
-
Midjak
maybe there is something which is not up to date on my system
-
Midjak
pkg audit doesn't show any threat too
-
Midjak
So I'm not sure whether to rely on the security report provided by the port system
-
meena
are you on quarterly?
-
Midjak
yes
-
Midjak
no sorry I am on main
-
Midjak
main on both kernel and port. Is it bad ?
-
yuripv
Midjak: mind showing the exact security report itself?
-
Midjak
-
VimDiesel
Title: CVE - CVE-2023-23914
-
Midjak
yuripv
-
Midjak
Well I think it's not a big deal as pkg audit doesn't show any threat on 7.88
-
Midjak
maybe port tree will be updated later
-
angry_vincent
i just had curl update ( in ports )
-
Midjak
oh I think I understood sorry
-
Midjak
this report ony informs that curl can run as server and subject to threat
-
Midjak
but doesn't indicate there is a threat actually
-
Midjak
only*
-
cristiioan
Is thunderbolt working on freebsd
-
yuripv
Midjak: that's not "exact security report"
-
yuripv
i'm just wondering *why* it is shown to you, so wanted to see the exact text the ports show
-
Midjak
oh yes sorry
-
Midjak
servers and may therefore pose a remote security risk to the system.
-
Midjak
This port has installed the following files which may act as network servers and may therefore pose a remote security risk to the system.
-
Midjak
it's just a warning not a big deal
-
Midjak
I was cheated by the extreme capitalization :-))
-
Midjak
sorry for that
-
yuripv
:)
-
Letiute
Hi
-
Letiute
which path of snapshot in zroot refer to OS settings and apps installed? I installed a wacom pen driver that I think made my pen not work. I only want to revert the software settings part. Not the database etc part
-
ox1eef_
Can someone share /dev/MAKEDEV with me ?
-
Letiute
it seems netflix and amazon prime won't run on freebsd?
-
yuripv
ox1eef_: isn't that a linux thing?
-
ox1eef_
Indeed, looks like 'mknod' is the fix in my case (deleted large parts of /dev by mistake). OpenBSD has /dev/MAKEDEV - not sure about Linux.
-
mason
Letiute: Yeah, I think "widevine" is the issue there.
-
Letiute
mason and there is no clean way out?
-
mason
Letiute: Conceivably you could run Chrome in a Linuxulator, but that has reports of success that vary over time. A VM might be another option.
-
Letiute
ok
-
Letiute
my wacom pen/ table stopped working since followed this:
freshports.org/x11-drivers/xf86-input-wacom
-
VimDiesel
Title: FreshPorts -- x11-drivers/xf86-input-wacom: X.Org legacy Wacom tablet driver
-
Letiute
xinput does not shows wacom pen
-
Letiute
uhid2: <Wacom Co.,Ltd. CTL-672, class 0/0, rev 2.00/1.00, addr 1> on usbus0
-
Letiute
in dmesg
-
angry_vincent
i never ha wacom devices but i think modern way to deal with them is with libinput, not legacy xorg drivers
-
Letiute
pkg remove xf86-input-wacom
-
Letiute
willr eboot
-
Letiute
or how can i rever to a snapshot for this issue and not revert / change database files (postgres)?
-
rtprio
Letiute: you can also copy the file change out of the snapshot
-
Letiute
rtprio "copy teh file change"?
-
rtprio
yeah, the snapshot lives in .zfs/snapshots/<snapshot-name> and you can treat it like a normal file
-
rtprio
or read about zfs-rollback
-
Letiute
rtprio ok will read
-
Letiute
which of the following I need to revert to: zroot, zroot/ROOT, zroot/tmp, zroot/usr, zroot/usr/home, zroot/usr/ports, zroot/usr/src, zroot/var, there are many
-
Letiute
rtprio I thought those were meta data and pointers :)
-
Letiute
and real files can't be extracted from snapshots unless restored
-
Letiute
I didn't send/rec yet
-
Letiute
they are just on my system
-
rtprio
which one depends on what file you're tring to recover
-
Letiute
no idea
-
rtprio
if the file is in /var it will probably reset your postgrs
-
rtprio
if it's the package you're trying to revert, why not just uninstall the package
-
Letiute
rtprio I think, thigns messed when Iinstalled xf86-input-wacom
-
rtprio
then uninstall that package, or did you already?
-
Letiute
and did kldload cuse
-
Letiute
and did pw groupmod webcamd -m user1
-
Letiute
also did webcamd -d ugenx.y
-
Letiute
I uninstalled few moments ago. Do I need to reboot rtprio?
-
Letiute
wacom was not smooth before. Not its not working.
-
Letiute
anyway rebooting
-
rtprio
if the module doesn't unload, perhaps so. it would be the easiest to reboot
-
Letiute
how to unload?
-
Letiute
via terminal
-
rtprio
kldunload
-
Letiute
ok
-
Letiute
rebooting
-
Letiute
futile
-
rtprio
as in the module still loaded?
-
rtprio
and can it not be unloaded?
-
Letiute
no idea
-
Letiute
how can I check
-
rtprio
kldstat
-
Letiute
ok
-
Letiute
don't see it though
-
rtprio
that was the point of rebooting, yeah
-
Letiute
still best to reboot
-
Letiute
let see
-
sn00p
I am trying to unlock my account when I lock screen with xscreensaver when I type my password it doesn't unlock my screen anybody know whats wrong
-
satanist
capslock?
-
sn00p
its off
-
Letiute
rtprio works like a charm after reboot. no idea what changed though
-
rtprio
Letiute: if the module was not loaded it sounded like perhaps that was it
-
rtprio
sn00p: there should be a log for what's wrong
-
Letiute
rtprio speaking of snapshots, I guess the postgres data is in /var/db/postgres/... so while making snapshots, I see zroot/var also. so if I restore it, pg will be affected.? so anything OS related also there in that dir?
-
Letiute
rtprio can you also paste the path of file view/recover from snapshots (that was new forme)
-
Letiute
when things like happen, how can I treat OS files snapshot and postgres files snapshot differently and separatly?
-
rtprio
yes, you're corect about the /var snapshot
-
rtprio
if you want it to be ... detached from /var you'd want to put /var/db/postgres on it's on partition
-
rtprio
( stop postgres; mv /var/db/postgres to a different name; zfs create -o mountpoint=/var/db/postgres zroot/postgres; chown, copy data back in, restart postgres )
-
rtprio
Letiute: os snapshots would primarly be ROOT and perhaps usr, not much else,
-
otis
or set postgres_data to difrerent path in different dataset
-
rtprio
and again, if i say, botched a file in /etc, i'd probably cp /.zfs/snapshots/mysnapshot/etc/rc.conf /etc/rc.conf and not restore the whole snapshot
-
Letiute
rtprio otis I see
-
Letiute
whats better, postgres_data var change or mount -o?
-
Letiute
by the way, rare question, anyone you happen to change keymas of keyboard in freebsd. I used to have capslock and escape swapped and left alt & ctrl swapped
-
rtprio
i don't understand
-
rtprio
mount -o? you don't use /sbin/mount with zfs
-
Letiute
rtprio I meant, whats better way of achieving the same thing: postgres_data var change in pg settings or mount -o?
-
Letiute
my `moutn -0 ` i meant zfs create -o mountpoint=/var/db/postgres zroot/postgres;
-
rtprio
you can create another file system and configure postgres to it, if you want. the way i posted preserves the default config which can be easier
-
Letiute
last question: I am doing nvme raid. I have postgres and os, what compression level with zstd is ok if capacity is a concern but not the level where it gives huge performance issues
-
Letiute
rtprio understood!
-
rtprio
you might have to test some things, but i'd probably not use compression;
-
Letiute
rtprio another filesystem? like it would be treated as a partition/drive by zfs?
-
Letiute
rtprio ok
-
untitled
any idea who to contact to remove a bugreport from freebsd bugzilla?
-
rtprio
remember, only new files are compressed when written if you change the compression setting
-
rtprio
without -o mountpoint=/var/db/postgres it would appar as /postgres which i suppose you could configure in postgres, but it doesn't follow the common pattern
-
Letiute
yes, I was wondering if there would be a way to recompress them
-
rtprio
that might be worth some of your own investigation
-
Letiute
ok
-
V_PauAmma_V
untitled, I think the most you can do is have it marked as spam, if it is spam. Otherwise, the bug reporter can close it.
-
debdrup
-
VimDiesel
Title: FreeBSD / src / 1dc1f6bd313876 - FreshBSD
-
rtprio
No commits found in 4 milliseconds
-
debdrup
-
VimDiesel
Title: src - FreeBSD source tree
-
debdrup
not sure why freshbsd failed
-
meena
-
VimDiesel
Title: FreeBSD / src / 1dc1f6bd3138760a9e96e13017cc3c05e5e1b1e9 - FreshBSD
-
meena
it wants the full commit hash
-
debdrup
i'm pretty sure it didn't used to want the full commit hash
-
debdrup
git rev-parse --short produces short hashes that're shorter than what I stripped that hash down to (and it can get even shorter than that, but at that point there's a risk of collision)
-
skered
debdrup: I think git gives you the shortest possible that won't result in that.
-
debdrup
Oh, that's possible, yeah.
-
debdrup
Currently it looks like it can make do with only 13 bytes.
-
skered
I can assume an init. repo with one commit isn't the shortest possible but some something like src or ports its at the min. limt and you're getting the smallest without issues.
-
meena
debdrup: oh look, Freaky just joined
-
debdrup
meena: I asked him to :3
-
Freaky
.o/
-
skered
But if you're saving commits outside of git then you might have issues in the future. So make you want something longer.
-
debdrup
Freaky: meena noticed that freshbsd needs full hashes now, is that correct?
-
debdrup
-
VimDiesel
Title: FreeBSD / src / 1dc1f6bd313876 - FreshBSD
-
debdrup
Also, thank you for taking time for this silly nonsense. :P
-
Freaky
I don't think partial hashes have ever worked
-
debdrup
Hm, I thought I remembered having used them, but maybe I'm wrong?
-
Freaky
-
VimDiesel
Title: FreeBSD / src - FreshBSD
-
debdrup
That makes sense, though, since it's using wildcards.
-
debdrup
Well, a wildcard.
-
debdrup
I wouldn't dream of asking you to implement gits rev-parse --short functionality in whatever language it's using, so it's probably fine to leave it as is.
-
debdrup
Well, I guess it would be the reverse of that functionality, but it's still a way too big ask, I think.
-
rtprio
were there some ... accidents in the source tree
-
rtprio
git history eventually leads to a commit that looks somewhat out of place
-
debdrup
rtprio: I'm not sure what you mean
-
debdrup
There are probably unavoidable artfacts from the source having gone from cvs over svn to git. :P
-
rtprio
i don't know if i could find it again
-
Freaky
debdrup: I don't think it's an unreasonable request, shouldn't be too hard
-
» Freaky wonders what happened to sha256 commit ids
-
rtprio
didn't realize this was your site, Freaky
-
debdrup
I think most of the community sites are made by people that're fairly active in the community, which is quite nice.
-
Freaky
debdrup: links with short hashes are now converted into prefix commit hash searches
-
debdrup
Freaky: that was quick!
-
Freaky
only a couple of lines in the router
-
AmyMalik
this power consumption thing I've been seeing whenever I reboot into FreeBSD has had me very confused
-
AmyMalik
although I am also using hardendebsd which has some dev-friendly (as opposed to power-friendly) options which may impact matters
-
AmyMalik
I pull like 0.7W more than I do under Linux. Is kern.hz still a thing in 2023, and if so, should I be setting it low?
-
debdrup
Try it.
-
debdrup
Doesn't seem like 0.7W is worth the extra time it makes everything take, but aside from kern.hz, FreeBSD is basically a soft-realtime OS already, so changing it doesn't hurt anything.
-
debdrup
0.7W is probably also within the margin of error for any kind of testing you're doing, given how many lines of code are involved.
-
Freaky
does kern.hz do anything by default now?
-
Freaky
or is it just if kern.eventtimer.periodic=1
-
debdrup
Those are two different things.
-
AmyMalik
I'll set kern.hz to 100
-
AmyMalik
(I wonder howit'd go if I set it to 10)
-
debdrup
Try it.
-
debdrup
You should probably investigate what it actually does.
-
debdrup
Freaky: the periodic mode forces eventtimers to only use the hardware clock, which as you probably know can drift.
-
Freaky
I thought it switched between ticking at hz and "tickless" mode with dynamic oneshot timers
-
debdrup
Right, if it's set to 0, as is the default, FreeBSD uses a dynamic t ickless mode.
-
debdrup
tickless*
-
mason
I think there's varying efficiency for various timer coalescing algorithms in any event.
-
debdrup
Freaky: using the periodic mode has it relying on the actual hardware though.
-
debdrup
I think even with tickless mode, kern.hz=100 in hypervisor guests still has some effect, due to hypervisors not handling tickless kernels very well.
-
debdrup
hz(9) has more information on it all, and I don't remember most of it I think. :(
-
debdrup
There's also some link to timecounter(4), but I can't remember what that's all about.
-
yuripv
rtprio: re: commits out of place; wasn't it you bisecting into some openzfs merge commit which contents looked completely out of place?
-
rtprio
i might have asked about it before
-
rtprio
but i'm having trouble finding it again
-
» skered shakes the 8ball...
-
skered
blah no xorg update.
-
rtprio
haven't you heard, the cool kids are all wayland these days
-
» skered shakes it for xwayland updates...
-
skered
doh none there either.
-
Letiute
If I want to treat a `/dir` differently in terms of backups, compression, even mirroring etc, do I need to create a new pool for it?
-
parv
What do you mean by "mirroring", as in live copy?
-
Letiute
parv `mirror` as in raid .
-
Letiute
stripe, mirror, raidz1.2 are some features of zfs
-
mohsen_hassani
hi folks :) in FreeBSD-13.1 do we have a kernel option to contol the buffer size for TTYs? I've already changed consmsgbuf_size but it seems not related. My problem is when in the terminal I do (cu -l /dev/ttyu1) and another terminal (printf '<\n\n>') I can only get like 382 characters exactly. There must be something which is blocking the next output. I already had the same issue in NetBSD and in there I changed (kern.tty.qsize = 4096) in the kernel
-
mohsen_hassani
options and it wored properly. So I'm wondering if we have such an option here in FreeBSD 13.1
-
Letiute
parv do I make sense?
-
rtprio
Letiute: yes, for 'mirroring' no for the rest
-
parv
Letiute, Backups can be made either via ZFS snapshots or via rsync on a directory of a dataset. Separate ZFS compression does require at least a separate dataset. ZFS mirror would mean starting with new pool layout. So all the things you mentioned could relate to each other.
-
rtprio
you can zfs create zroot/blah and set different compression on /blah
-
rtprio
but you can
-
rtprio
can
-
rtprio
can't make /blah a raidz2 when the rest is a mirror
-
Letiute
i SEE
-
Letiute
I see*
-
rtprio
if you have a specific example / configuration it could help us advise you
-
Letiute
what is required for /bla to have raidz2?
-
Letiute
rtprio I will share a tiny topology diagrame soon for the big picture but for now I was thinking to make /postgresdb1 and /postgresdb2 (2 databases living on different dirs via TABLESPACE), both having different compression levels
-
rtprio
Letiute: at least four drives
-
Letiute
rtprio the defintion of a drive , for zfs, is just a partition of physical drive?
-
rtprio
putting postgres data onto it's on zpool is not a bad idea, but i think you might be expecting too much of compression
-
Letiute
rtprio y ou mean its 'own' zpool?
-
rtprio
Letiute: yes, own zpool
-
Letiute
I am setting ztsd-3 for db1 and ztsd-7 or 9 for db2
-
rtprio
it could be a partition but if you're going to make multiple pools from partitions you're going to take a performace hit and lose out on some feature of zfs
-
Letiute
so I "can" make a new zpool for few directories?
-
parv
Using 4 partitions of a disk for RAIDZ2 is pointless
-
rtprio
Letiute: have you tested that compression with postgres is enough compresion to be worth the effort
-
Letiute
what features of zfs will be lost in that case?
-
Letiute
performance hit due to simultanious data acces on same physcial drive?
-
rtprio
Letiute: you have some reading to do, as it seem you might misunderstand the topology of a pool and a filesystem
-
rtprio
pool is a set of disks with a specific configuration (mirror, raidz1, etc) and can have many partitiosn (from zfs create)
-
Letiute
rtprio no I have not tested. This would be the test
-
rtprio
so it sounds like you'd need a box with 5 drives, at least one for the os and 4 for the raidz2 for postgres
-
rtprio
but database purists would say to put postgres on mirrors instead
-
Letiute
for now I have only one dsk
-
yuripv
rtprio: simple example:
pastebin.com/aSJmwYfk
-
VimDiesel
Title: titan:yuri:/usr/src$ git branch --contains f04cb31e7c17* maintitan:yuri:/usr - Pastebin.com
-
yuripv
(just look for any openzfs commits :)
-
Letiute
rtprio as you said "you can zfs create zroot/blah and set different compression on /blah" so I have to create a new pool / dataset for /db1 /db2?
-
Letiute
rtprio which reading doc would you redommend for zfs?
-
parv
Do check the block size used by Postgresql in order to set the same for "recordsize" of the pool for performance, etc
-
Letiute
I see
-
Letiute
parv default value is 8192 bytes in pg. what is iin zfs?
-
parv
128 kiB
-
Letiute
oh. so ..
-
Letiute
8kb vs 128k
-
rtprio
yuripv: yep
-
rtprio
Letiute: you're free to do what you want, but if you're testing compression on zfs you only need a single disk. to test performance of single disk vs raidz probably should be a different test
-
Letiute
rtprio `zpool create pg1pool /pg1` `zpool set compression=... pg1pool`
-
Letiute
rtprio ok I will talk about raidz in a moment
-
» AmyMalik boggles
-
rtprio
no, it's zpool create zroot/pgpool1
-
rtprio
no, it's zfs create zroot/pgpool1
-
rtprio
damnit
-
Letiute
-
VimDiesel
Title: Untitled Jam - Google Jamboard
-
rtprio
maybe you should reread `man zfs` and `man zpool`
-
Letiute
rtprio so I have to create pgpool1 "inside" zroot? I cant create an indepednat pool of pg1/2?
-
Letiute
rtprio ok
-
Letiute
what do you think of the drawing?
-
rtprio
i don't have a web browser
-
rtprio
so you have 2 2tb disks?
-
rtprio
this manual* mirroring thing... i don't think you want that
-
Letiute
rtprio nvme is 1tb each
-
rtprio
and you definately don't want to mirror it from a striped 1tb
-
Letiute
rtprio well i can keep it there plugged all the time too
-
rtprio
mirror the 1tb for what you're doing
-
Letiute
why is that?
-
Letiute
1tb don't have the full data. 1tb raid0 canlt live without the other 1tb making it 2tb total
-
rtprio
because raid0 is fragile for starters
-
Letiute
its striped raid0
-
Letiute
yes
-
rtprio
fragie
-
rtprio
and depending on how you're planning mirroring ... i just. it's just gross
-
rtprio
could you backup 2tb of snapshots onto that drive? that would be great
-
rtprio
you could find a file you deleted six months ago.
-
Letiute
rtprio yes but mirroring will happening online/live
-
rtprio
i also see you're planning on a raidz2 of ssd and hard drives... are those all the same size? i don't think that's goin to work, or it's going to work poorly
-
Letiute
and I don't have to restore the snapshot if its already mirrored. I just plug and boot from hdd if nvme fails
-
rtprio
Letiute: a zpool mirror will happen live
-
Letiute
rtprio all radz2 are 1tb each
-
Letiute
the speed of ssd will be just limited to the speed of hdd
-
Letiute
thats all
-
Letiute
right?
-
Letiute
rtprio yes
-
rtprio
you're paddling upstream of how zfs is generally accepted and while that might work for you it might not work well
-
Letiute
zpool mirror will happen live.
-
rtprio
and anyone you ask for help is going to have a wtf moment as you describe your topology
-
Letiute
I see
-
rtprio
also i don't think you can have a nested mirror like you're describing
-
Letiute
which one?
-
rtprio
you can't have a raid0 raid a member of a zpool mirror
-
rtprio
again, you can do it how you want, but if i had this pile of drives on this list, i told you what i'd do
-
Letiute
I see.
-
rtprio
is #2 a usb or estata or what?
-
Letiute
so #1,2 is not doable?
-
rtprio
*esata
-
Letiute
#2,4 are in hdd drive docker box (external)
-
Letiute
navme is m.2
-
Letiute
nvme*
-
Letiute
other drives are sata
-
Letiute
2.5"
-
rtprio
you could manually maintain the mirror from 1 to 2 but that seems like a lot of work and #1 is still raid0 so i wouldn't trust it with any data
-
Letiute
manually? rsync?
-
rtprio
yes, something like that
-
Letiute
so I can"not" make #1 to #2 mirror?
-
parv
Letiute, that "mirror" looks like a backup than ZFS mirror
-
Letiute
parv ya but technically a miror
-
Letiute
can it not happen?
-
rtprio
i'll say again, you can copy data to it, but it's not automaitic
-
rtprio
so parv is right, that's a backup, not a mirror
-
Letiute
but technically i cannot make a mirror like that?
-
Letiute
or can I?
-
rtprio
you can't
-
rtprio
mirror nvme1,2 and then you are fast and redundant
-
Letiute
why because the soruce is raid0?
-
rtprio
you could put postgres data on ssd1,2 mirrored, that would also be fast and redundant
-
rtprio
Letiute: yes, mirror members must be identical
-
Letiute
so the cause of not being able to be mirrored by #1,2 is that #2 is not two drives?
-
Letiute
its one
-
rtprio
does it have the exact same disk geomerty? no it doesn't not, can't be mirroed
-
rtprio
i suggest we move on so we don't debate this al day
-
Letiute
ok..
-
rtprio
i donno parv, how would you set this up
-
parv
rtprio, Just as you have mentioned
-
parv
For the need of 2TiB data on ZFS stripe, buy 2x 2 TiB SSD for ZFS mirror
-
Letiute
2x 1TB drives you mean?
-
parv
and at least 1 spare for all the disks
-
Letiute
or even 2x 1tb hdd
-
parv
s/all the disks/all the topologies/
-
Letiute
2x 1TB drives you mean? not 2x 2tb
-
Letiute
so just for understanding, if I had 1tb + 1tb hdd, I could mirror #1?
-
Letiute
the reason I can't is the disk geometry? and that the 2tb is a drive with 2 partitions
-
Letiute
correct?
-
rtprio
if you had 2 more nvme, made another raid0, maybe
-
rtprio
you can only mirror the same thing
-
parv
Letiute, If your data will fit in less than 1 TiB of space, then 2x 1TB for ZFS mirror will be enough
-
rtprio
git it out of your head you can just make up blocks of data like linux fakeraid and everything will be o
-
rtprio
k, real data on real filesystems need to be the same
-
parv
s/1TB/1 TiB/ # for shame!
-
Letiute
ok
-
Letiute
rtprio why nvm raid has to mirror to another nvme? can't they be ssds on one mirror and nvme on other?
-
rtprio
are they the exact same size? sectors?
-
Letiute
no but I thought zfs would just take the least one
-
Letiute
rtprio if this is the case, then I can't mix ssd and hdd in #3 as well?
-
rtprio
i don't understand why you feel the need to do things the hard way
-
rtprio
it might work, but no one is goign to want to help you with it
-
Letiute
I see
-
Letiute
you mean #3 might work?
-
rtprio
you know you could also try these things and read the messages zpool tell you
-
Letiute
ok
-
rtprio
it might warn you that they're different sizes and might perform lie dogshit
-
rtprio
if that's what you want to do, then perhaps i have better things to do now
-
Letiute
got it
-
Letiute
you mean #3 might work? or might not work?
-
rtprio
might work
-
Letiute
ok
-
rtprio
why not try it and see how it goes
-
Letiute
I think then, #2 might not even boot...
-
Letiute
ok.
-
Letiute
the hard way :)
-
Letiute
but I should rethink
-
Letiute
about your advice. my topology is off
-
Letiute
#4 is ok?
-
rtprio
a usb drive that you rsync to; sure can't see a problem with that
-
Letiute
not even with -c in rsync?
-
Letiute
checkum
-
Letiute
checksum*
-
Letiute
oh . I thought you mean "rsync cant see a problem with data corruption"
-
Letiute
ok. so #4 is ok.
-
Letiute
thank you rtprio parv
-
rtprio
yes, rsync will happily sync your corrupted data to it's backup destination
-
rtprio
which is why i suggested saving snapshots onto that 2tb drive
-
Letiute
am.. ya but the source (zfs) should and would correct it
-
Letiute
am ok..
-
rtprio
what if you bungle a file? something crashes and eats the file.
-
rtprio
rsync would just wisk that along and there's no corruption as far as zfs is concerned
-
AmyMalik
this one, still?
-
Letiute
understood. the only problem is restor time of snapshots. e.g if #1 fails, I have to formate, reinstall freebsd, the restore snapshort from 2tb
-
Letiute
AmyMalik evolving proces :)
-
rtprio
not the way i'm describing you should do it
-
Letiute
rtprio snaps make sense
-
rtprio
just boot into the other nvme and update bios order. order a replacement drive. no downtime
-
Letiute
rtprio how are you proposing ?
-
rtprio
zroot mirror on nvme1,2
-
rtprio
postgres mirror on ssd1,2
-
rtprio
zfs-send snapshots to the 2tb drive
-
Letiute
rtprio wait. if #1 crashes, I can't make mirrors/plug play
-
Letiute
the only option I would have is to plug a new nvme, install freebsd, restore snapshot
-
rtprio
why do you thin that
-
Letiute
correct?
-
rtprio
why do you think that?
-
rtprio
no you'd just boot off the other nvme, that's the whole point of a mirror
-
rtprio
and then swap it out, and rebuild the mirror, re-redundant again
-
Letiute
which mirror? we are putting snapshots. didn't made a mirror
-
debdrup
always this one, apparently.
-
rtprio
two distinct strategies
-
parv
This is going in circles; meow out
-
rtprio
yeah man, have you done any reading about zfs before coming in here with the worst desgined zfs layout?
-
Letiute
rtprio yes since 2 days. Are we on same page that #1 is raid 0 and i just save snapshots to another hdd. If #1 crashes, what will I swap? which mirror?
-
Letiute
let it be the last point for today :)