-
HER
hi, im trying to resize a zfs partition and gpart warns: gpart table "nda0" is corrupt
-
HER
i dd'ed a smaller disk into a bigger one. and now im trying to resize the partition
-
HER
im doing: gpart resize -i 4 nda0
-
HER
whats the correct way to fix and resize ?
-
V_PauAmma_V
What was the dd command you entered?
-
V_PauAmma_V
(The answer to your question is *probably* to use "gpart recover", but it being a whole data partition, I'd rather check there aren't other problems lying in wait to mangle your data.)
-
polyex
V_PauAmma_V ya that worked ty
-
lw
jbo: pong
-
HER
V_PauAmma_V: simple dd if=/dev/nda0 of=/dev/nda1 status=progress bs=1000M
-
HER
it boots but displays wrong disk size/free disk space
-
lw
jbo: pong
-
polyex
there a convention for what to call a cli that connects to a program using the program's .sock file?
-
polyex
just programcli or?
-
HER
V_PauAmma_V: gpart shows the bigger (new) disk as corrupt, but when i run recover, it doesnt boot
-
HER
throws some error
-
V_PauAmma_V
HER, you said the gpart error was on nda0 (the smaller, source disk). Was that a typo in reproducing the message?
-
polyex
V_PauAmma_V any upside to having rc daemons log to their own file or is it always better for stuff to log directly to syslog?
-
V_PauAmma_V
I have no basis for an informed opinion on that.
-
lw
jbo: EXICTED PONG!
-
lw
why does he keep pinging me then fucking off
-
HER
V_PauAmma_V: the error is in the bigger one, after dd copy. it should show 1tb free space instaed of 500gb (smaller disk)
-
HER
the copied disk boots, but shows wrong disk free space... and when i check with gpart, gpart displays the disk as corrupt
-
HER
and its a geli disk
-
V_PauAmma_V
OK. Did you run "gpart recover"?
-
HER
zfs/geli
-
HER
V_PauAmma_V: yes, and it "works" but when i reboot, it shows some errors...
-
HER
doesnt boot
-
V_PauAmma_V
OK. Try a "gpart resize" (with appropriate command arguments) now.
-
HER
V_PauAmma_V: i will have to dd again
-
HER
because resize fixes the corrupt issue, but then disk wont boot
-
HER
throws some error
-
HER
but thans, V_PauAmma_V , dont spend more time on this... i will try some standard way =)
-
HER
instead of dd.. i will install a new system and copy over
-
» V_PauAmma_V nods at HER.
-
luna_
-
VimDiesel
Title: BSD Now 558: Worlds of telnet
-
michelem
Hello folks! I switched to Dragonfly Mail Agent. I noticed that emails from cron bounce because cron sends them to the username (e.g. "john"), without adding any domain. I suppose I could manually list aliases to workaround that problem. How are you handling this?
-
bsdbandit01_
Good morning
-
Hecate
morning
-
cybercrypto
morning
-
voy4g3r2
has anyone experienced nfsv4 mounts (zfs based) not being seen on linux systems? and receiving a mount.nfs4: Protocol not supported message, this is occuring on debian bookworm
-
skered
voy4g3r2: Firewall?'
-
skered
I know I had something mounting zfs nfs at somepoint.
-
HER
is it possible to mount a geli/zfs partition into a /some/dir ? I have 2 freebsd installs, 1 in each disk. I want to boot into live cd and mount each disk on different directories (/mnt/disk1 /mnt/disk2) and then copy data from one to other
-
meator
Hey. How can I trace syscalls on FreeBSD?
-
V_PauAmma_V
truss(1) or ktrace(1).
-
meator
Ok, thanks!
-
V_PauAmma_V
HER, "zfs mount -o mountpoint=/mnt/disk1 /dev/whatever"
-
rwp
I think the problem will be that both installs will have used "zroot" for the array name and therefore at least one of them must be renamed. I think.
-
rwp
If they have different names then one can be mounted at an altroot using -R. Probably needing -f too. Example: zpool import -R /mnt -f zdata
-
HER
V_PauAmma_V: thanks!
-
rwp
I think the pool UUID will need to be used instead of the name since the pools will both be named "zroot".
-
HER
rwp: right
-
angry_vincent
i've set failover between ethernet card and wifi as described in handbook and also with some minor changes as can be found by cy@ answer on
forums.freebsd.org/threads/help-eth…ifi-failover-link-aggregation.92949
-
VimDiesel
Title: Help! Ethernet/WIFI Failover Link Aggregation | The FreeBSD Forums
-
angry_vincent
it works
-
angry_vincent
however my dmesg polluted with endlessly with: wlan0: link state changed to DOWN
-
angry_vincent
wlan0: link state changed to UP
-
angry_vincent
is this expected or something not ok with config?
-
V_PauAmma_V
Depending on which WLAN interface you have, you may need to set the ethernet's MAC address (to the same as the wlan's), not the reverse. That's the handbook current recommendation and what I did when I had an Ethernet at home. ISTR the symptoms for me of doing the opposite were failure to attach to the AP, which is similar to what you describe and may be caused by the same. If that doesn't stop the
-
V_PauAmma_V
flood of wlan0 bounces, the next question is: do you have the same problem with separate (unaggregated) wlan and ethernet? If you do, it's likely you need to move your AP or add another.
-
angry_vincent
i have to try
-
angry_vincent
and yes i have ethernet mac set, not wifi's card
-
V_PauAmma_V
*nod*
-
rwp
Just a clarifying question. The wlan0 logging of state isn't incorrect but just the logging of it up and down is annoying? And it's all working but you would like to suppress the logging of wlan state? Is that the same message that would be received normally using wifi too? (I don't know as I am not using wifi. That's why I am asking.)
-
angry_vincent
i will try using only wifi and see.
-
rwp
Sadly I am not using FreeBSD on a laptop at the moment. I need to set one up and get experience with the native WiFi on 14. On the linux side doing link failover I have only ever been successful setting up OpenVPN which runs over whichever link is active. That technique works well there. But it's not turnkey and one must set it up.
-
angry_vincent
from what i can tell it is still use 11g mode. but it is enough for me.
-
reliablesignals
Hey folks. Does anyone here have experience with "NIST SP 800-171 Rev. 2"?
-
polyex
any upside to having rc daemons log to their own file or is it always better for stuff to log directly to syslog?
-
rwp
Have you posted this question to the freebsd-questions mailing list? I am behind reading it. But it's probably time to get a new audience and that list will have a broader base of readers and more experience than here.
-
rwp
reliablesignals, Have you completed your Cyber Awareness training? :-)
public.cyber.mil/training/cyber-awareness-challenge
-
polyex
can syslogd be configured to send logs with tcp?
-
polyex
doesn't look like it
-
unixman_home
polyex, not to my knowledge. As far as I can determine FreeBSD's syslogd can only use UDP. You will probably need an alternate, such as syslog-ng, to use TCP.
-
polyex
if i'm logging to localhost udp is plenty reliable?
-
unixman_home
Unless you have a horrid network, UDP should be fine for log packets.
-
polyex
but if it's localhost:514 why would the network even matter?
-
unixman_home
Oh, I missed the localhost question while I was talking about UDP. :D Yeah, should not matter at all.
-
rwp
When the network is under stress (think switches and routers overloaded with max traffic) then routers will prioritize TCP connections over UDP connections (generally) and that means some UDP connections get discarded when the capacity overflows. Due to queuing quirks UDP packets might be forwarded out of order. And due to retries UDP packets might arrive out of order.
-
rwp
But on localhost on the loopback device? If the internal loopback network is in such distress that it drops a UDP packet then you will know the machine is in distress by how slow it is running.
-
polyex
i wonder if that happens on localhost too. like if the local box is saturated with localhost tcp traffic, does localhost udp traffic start getting dropped?
-
polyex
nice
-
rwp
It would. But I really can't imagine a case where UDP on the loopback device is so saturated.
-
polyex
ty
-
polyex
ya
-
rwp
Once in the work lab where we had an Extreme Networks Black Diamond switch/router (a Barney box, it's big and purple like Barney) which was big heavy iron at the time. I was working on a distributed networking using UDP in a program to collect data and control ops across our compute farm of 3k+ machines.
-
rwp
I found that if I cranked it up I could completely overwhelm the box, as one might expect with a compute farm, and then stop everything and over the next 2 minutes (magic number) UDP packets would drain out of the router and other places.
-
rwp
Two minutes is the max lifetime of an Internet packet so any packet older than 2 minutes is discarded by design to prevent complete breakdown of the network in the case of overwhelming and endless data.
-
polyex
max lifetime is any protocol like udp, tcp ...
-
polyex
?
-
rwp
Max lifetime of an Internet Protocol (IP) packet. IP is the base under which UDP and TCP are the two most well known types. But there are other types too.
-
polyex
3rd most popular after udp and tcp?
-
rwp
Hmm... Don't know. IPSEC protocol 50?
-
rwp
Oh, ICMP most certainly!
-
polyex
nice ty
-
crest
in ancient theory a router is supposed to decrement the TTL once per hop *and* per second
-
crest
if every implemented the second half the max. range for an IP packet would be limited by the max. 8 bit ttl counter times the speed of light
-
crest
*everyone
-
rwp
I might be remembering the 2 minutes wrong but I remember that value strongly. But looking at RFC 791 it says 255 seconds (4.25 minutes). So... Maybe I am misremembering that somewhat.
-
rwp
Regardless routers and switches can't hold onto a packet forever and must discard it at some point.
-
voy4g3r2
then it becomes another interesting layer when 802.11 comes into the next layers up
-
» voy4g3r2 decided to play around with acces points and how to manage a 2ghz and 5ghz wireless network.. that was not a smart rabbithoel
-
voy4g3r2
crest: hap ax3 recommendation was awesome by the way.. picked up some cap ax access points.. now waiting for a switch to slowly replace my non-managed switches in network
-
polyex
what's hap ax3?
-
voy4g3r2
it is a mikrotik router
-
polyex
ah. with terrible config UI or?
-
crest
polyex: a mikrotik wifi "accesspoint" with quad-core 64bit arm cpu and a gig of ram that doesn't break the bank
-
crest
polyex: yes winbox is terrible, but the cli is quite decent and these days it's winbox that's lacking behind the cli
-
rwp
Oh! Searching I see references listing different systems using different TTL and Hop Limits and people were using it to identify the remote system OS. So likely at the time I was doing the experiments 2 minutes was implemented by the Barney box. Likely that or something similar.
-
voy4g3r2
crest: i even got CAPsMAn to work.. under wifiwave2, not perfect setup but central management of access points is nice :)
-
crest
yes it is and it's a requirement for 802.11r
-
crest
(to allow the APs to help clients roam faster)
-
voy4g3r2
yeah, the whole "seeing" access points thing, i am trying to figure out how to manage
-
voy4g3r2
make 2.4ghz not as "loud" and jumping to 5ghz but not staturating the airwaves 20/40/80 setups
-
rwp
Every time I see microtik my brain pronounces it "my kra tik" rather than micro-tick as I am sure they intended.
-
voy4g3r2
i have not touched network stuff like this in decades.. so in typical fashion.. just diving into the deep end and see what happens
-
crest
iirc 802.11r provides a clients essentially the bssids and channels of accesspoints worth trying instead of having to search for them
-
voy4g3r2
i want to just have 1 SSID and still have not gotten it to work.. right now i have a <base> and <base>-5G
-
voy4g3r2
rwp: same
-
crest
bssid != ssid
-
crest
think of the bssid as the mac address of each access point's radio
-
voy4g3r2
i am trying to see if i can link "configurations" to radios on each device
-
crest
each access point announcing a ssid does so under its bssid for the radio it's announcing it under
-
voy4g3r2
so if someone would try to add an AP to the network.. they will just be out in lala land
-
voy4g3r2
so i heard of bssid, enought to know i am clueless on how to actually getting it to work
-
crest
you can do that e.g. to have one AP on the lower half and one AP in the upper half of the 5GHz band
-
rwp
Ah! MSL Maximum Segment Lifetime in RFC 793 says "MSL Maximum Segment Lifetime, the time a TCP segment can exist in the internetwork system. Arbitrarily defined to be 2 minutes." It's specifically a TCP parameter.
-
rwp
It's required to ensure that TCP sequence numbers are not duplicated within that time interval. As that would cause problems. Packets older than that are discarded ensuring that sequence numbers from older than that can be reused.
-
voy4g3r2
-
voy4g3r2
just breaking up the frequency ranges.. set it up for 2.4ghz the 5ghz i am still figuring out how
-
crest
i have three ssids per accesspoint: just the name, with a -2.4GHz suffix and a -5GHz suffix
-
crest
for each radio (2.4GHz and 5GHz) of each AP the frequency specific configuration is the master configuration
-
crest
and the other ssid(s) are defined by slave configurations (their terminology in the config language)
-
voy4g3r2
so anyone can connect to any and it does its things
-
crest
if the client is too dumb i to reliably pick the right frequency band the extra ssid's help
-
voy4g3r2
yeah, that seems to a common theme in these talks i am listening to
-
voy4g3r2
assume everyone/everything is dumb and remove as many variables as you can
-
crest
but if you want your laptop to fall back gracefully to 2.4GHz when you're sitting in your backyard you have to allow it to pick the band
-
crest
unless you covered everything with outdoor APs :-P
-
polyex
so i got opentelemetry collector configured to receive syslogs on localhost:514 udp. so i add a line to /etc/syslog.conf, *.* @localhost to make it send messages to the collector and service syslogd restart, but then syslogd logs: sendto: No such file or directory. what i'm doing wrong pls?
-
voy4g3r2
not there
-
crest
polyex: are you trying to bind two services (syslogd and the collector) to port 514/udp on the loopback?
-
polyex
crest well i want the collector to start its syslog listener then syslog to send messages to it. and ya all on localhost
-
voy4g3r2
crest: not there yet.. i did find that the old wifi stuf just flooded the whole property.. but i do like the fallback things.. connect to the <base> and it _should_ switch
-
crest
polyex: what's the output from sysrc syslogd_flags?
-
crest
did you give it -ss to put it into secure more mode (aka not bind to udp)
-
polyex
crest -s
-
polyex
i even tried changing the ports to 5140 to get above 1024 but still not working
-
polyex
logger "test" shows up in /var/log/messages, but syslogd doesn't send it to the collector running on localhost
-
polyex
no wait
-
polyex
i had -ss somehow
-
polyex
ty!
-
polyex
only works when i move collector to listen for syslog on 5140, not 5`4
-
polyex
514 makes service collector start fail saying port is already bound to
-
crest
polyex: does the collector start as root and drops privs or is it like so much of that stuff written in go and lacks a portable api to drop privs because you can't implement one on linux (because of linux braindamage aka EWONTFIX)
-
polyex
dunno prolly the later tbh
-
polyex
know how to check?
-
crest
yes
-
polyex
how?
-
crest
even if it can't drop privs you can use FreeBSD's TrustedBSD MAC framework to allow specific groups or users to bind low ports (<1024)
-
crest
see mac_portacl
-
polyex
ya, done that. i just didn't think that was the prob because i don't get any error logs that it tried to bind to port but failed
-
polyex
if syslogd is stopped, looks like collector can start and bind to 514
-
polyex
so i guess by making syslogd flags -s instead of -ss, it binds to 514 even if it's not configured to listen or anything?
-
polyex
ya, default /etc/syslog.conf, -s flag, start syslogd, netstat -na | grep 514 shows it wtf!?
-
crest
polyex: try sockstat -l46 -p 514
-
V_PauAmma_V
polyex, I think that's because it doesn't know, at the time it can bind to UDP port 514, whether it will have to *send* to syslogd on another host. Hence, it always opens it, unless asked not to (insecureish mode) by -N.
-
crest
polyex: the double -s flag doesn't come from /etc/syslog.conf. the syslogd rc.d passes it to the syslogd process as argument when configured to do so in rc.conf
-
polyex
ya i know
-
polyex
V_PauAmma_V where is that -N documented?
-
crest
which syslog collector are you using?
-
polyex
syslogd in base, and opentelemetry collector
-
crest
how did you install it?
-
crest
pkg install something?
-
polyex
nah had to figure it out manually
-
polyex
not officially supported
-
crest
does the collector stay running or does it die quickly?
-
crest
does it accept messages sent via nc -u 127.0.0.1 514?
-
polyex
dies right away. in the collector log it says can't bind to port
-
crest
as which user are you attempting to start the collector?
-
polyex
otelcol
-
polyex
but we already solved it, its' because syslogd auto binds to 514
-
crest
because on any *nix by default only root can bind to ports below 1024
-
polyex
so i need to fix that
-
crest
fixing the syslogd is as easy as sysrc syslogd_flags="-ss" && service syslogd restart
-
polyex
-Ns did it
-
polyex
where is -N documented tho?
-
crest
man syslogd
-
crest
look for -N and -s
-
crest
oh right -ss does even more
-
crest
it configured syslogd not use network sockets at all and prevents it from forwarding messages over network as well
-
crest
-Ns should prevent it from binding the listening socket but allow it to still forward messages using an unbound socket (that gets implicitly bound to a some high port)
-
crest
unless you syslog collector requires something archaic like putting faith in the source port and expecting senders to send from port 514 it should work
-
crest
you could try this: sysctl net.inet.ip.portrange.reservedhigh=513
-
crest
iirc this is the sysctl to reduce the highest reserved port number (the default value should be 1023)
-
polyex
ok just tested. -N makes it so syslogd won't send logs to the collector on port 5410
-
crest
by reducing it to one below the udp port of syslog (514/udp) any process is allowed bind to port 514-1023 (first come, first serve)
-
polyex
i guess -N disables all udp binding, not just the default
-
crest
in that case try -ss
-
crest
i't been a while since i had to tinker with this
-
crest
or you could just bind them to different addresses
-
polyex
seems weird to have syslogd need to bind to 514 for no reason, in order to bind and send out on some other port
-
crest
e.g. syslogd listens on 127.1:514 and [::1]:514 and the collector on 127.2 and [::2]:514
-
polyex
"nice"
-
polyex
i don't need syslogd listening at all, only sending
-
crest
polyex: what makes you assume syslog binds port 514?
-
crest
unless you see it bound by syslogd in sockstat -l46p514 it's not binding that port
-
polyex
sockstat -l46 -p 514 shows it
-
crest
your service user is instead not permitted to bind port 514 by default because it's a so called low port in the range 0 to 1023 (inclusive)
-
polyex
nah i have that disabled
-
polyex
this is not that
-
crest
if you still suspect syslogd kill it and test if that allows your collector to start
-
crest
(just remember to start it again)
-
polyex
did
-
crest
did that fix it?
-
HER
hi!, i have a fresh 14.0 install. installed drm-kmod however when i try to kldload i915kms it hangs. what could be wrong ? 14.0 with i915kms has been used in the machine before, so i know it works
-
crest
HER: you knows it used to work. you could be doing everything wrong if it's a regression
-
crest
do you still have the config files that used to work?
-
crest
can you still log in via ssh?
-
crest
can you be more precise than "it hangs"? what hangs? are their any "signs of life" from the hanging system?
-
crest
does the monitor stay lit? can you ping it?
-
HER
crest: i have the config files, i tried to re-use them, but then it hangs during boot on "Loading kernel modules:" IIRC
-
HER
i have phisical access to the machine
-
crest
do you have access to a second maching on the same network?
-
HER
crest: if i kldload manually it displays:
-
HER
iic0: <I2C generic I/O> on iicbus0
-
crest
often times drm/xorg fucks up the video is unusable, but the system is otherwise running
-
HER
iic1: <I2C generic I/O> on iicbus1
-
HER
and then hangs
-
crest
so you can debug it via ssh (or serial)
-
HER
i have access yes
-
HER
what should i check ? dmesg ?
-
crest
dmesg or /var/log/messages
-
crest
it's also a good idea to reboot and try kldload in tmux/screen over ssh
-
HER
ok
-
crest
maybe it prints something use that gets lost on the failing video console
-
crest
how long ago did you last had success using i915drm on the same hardware?
-
crest
did you check freshports.org for changes to the relevant port?
-
crest
did you already try both drm-510 and drm-515?
-
rwp
HER, Is this i915kms in base? Or in ports? If it is in base then everything should be consistent of course. If it is in ports then there are cases when ports is out of sync with base.
-
crest
which freebsd version are you running? 13.x? 14.x? something different? stable? current? still on 12.x?
-
rwp
Though that seems like it should not happen with in the .0 release cycle. It's a problem I have now in a 13.3 point in time.
-
rwp
HER said "a fresh 14.0 install".
-
crest
sorry i missed that
-
crest
did it work on 14.0 before? 13.3? 13.2? 12.4? even older?
-
HER
it worked on 14.0
-
HER
i think i had 515
-
polyex
crest so basically, the only option is to use syslogd_flags -s, and port other than 514. the reason is -ss and -N make syslogd not bind to any ports to send, but taking them away makes syslogd autobind to 514 and fight with collector for that port. so only option is port other than 514
-
HER
crest: it was working 2 days ago :) im upgrading the hdd, so reinstalled everything. i am pretty sure i used drm-515. and always install from 'pkg'.
-
polyex
really don't know why it's not possible to disable the syslogd autobind to 514
-
HER
crest: kldload remote from screen hangs and disconnects =p
-
crest
that makes it a lot harder/annoying to debug
-
HER
rwp: the i915kms is from 'pkg', same as older install
-
crest
HER: did you run 14.0 before as well?
-
HER
yep
-
rwp
Then I suspect that the port is somehow out of sync with base.
-
HER
ahh
-
HER
maybe i used 'latest' in pkg settings
-
HER
i will try that
-
HER
instead of quarterly
-
crest
rwp: normally i would suspect that as well, but there is only the 14.0 release in the 14.x major release branch
-
crest
so the kernel modules *should* be perfectly compatible
-
rwp
crest, Right. I don't see how a .0 could get out of sync. But yet it seems like it must have.
-
rwp
I mean, right now there is only .0 for both base and ports and that's all there is.
-
crest
can you run pkg query '%q %n-%v' | grep -i kmod
-
polyex
crest so basically, the only option is to use syslogd_flags -s, and port other than 514. the reason is -ss and -N make syslogd not bind to any ports to send, but taking them away makes syslogd autobind to 514 and fight with collector for that port. so only option is port other than 514
-
HER
-
VimDiesel
Title: magnet_web paste from Someone at 217.168.150.38...
-
HER
changed /etc/pkg/FreeBSD.conf from quarterly to latest
-
crest
HER: thx. looks correct. there no old freebsd packages hidden among the installed packages
-
HER
and running pkg upgrade -f
-
HER
right
-
crest
you could try to install the older drm version
-
HER
510 ?
-
crest
yes
-
HER
ok
-
crest
or try to load the firmware kernel module for your gpu first?
-
HER
what you mean ? its intel processor only
-
HER
bah, same thing with 'latest' in pkg
-
HER
i think you meant the intel module ?
-
HER
removed 515, installing 510
-
HER
kldload worked with 150
-
HER
510
-
HER
but x doesnt start =p
-
HER
crest: how can i load the firmware kernel for the gpu first ?
-
HER
hmm
-
HER
check the firmware, install gpu-firmware-X then load it
-
HER
i will try taht
-
Soni
can freebsd shrink a filesystem?
-
voy4g3r2
doing a ports install is a kitchen sink wow
-
rwp
Soni, Normally no. But even on Linux systems it is best not to attempt shrinking. I once had a machine spin 12 days 24x7 shrinking a file system. Now I just create a new one the right size and copy the data over. It's consistently able to conclude that way.
-
concussious
rwp: +1.
-
Soni
rwp: we recently shrunk a filesystem from 2TB down to 150GB, on linux
-
Soni
can freebsd do something similar?
-
mjp
filesystem stuff on Linux works well, especially when using LVM from the start
-
mjp
Last i checked its not possible to shrink on FreeBSD
-
rwp
I would have said so too. But I did a search and turned up this interesting recipe:
askubuntu.com/questions/1231355/how…shrink-a-zfs-volume-on-ubuntu-18-04
-
VimDiesel
Title: How can I shrink a zfs volume on ubuntu 18.04? - Ask Ubuntu
-
rwp
I assume this is ZFS we are talking about? Not UFS?
-
Soni
okay let us boot up the VM 1 sec
-
rwp
I still think the most reliable path is to create a new file system of the desired smaller size and then copy the data onto it. Do a backup test by doing a full backup and then restore on to the new smaller size.
-
Soni
rwp: we have nothing that can read UFS
-
rwp
I wonder if that askubuntu.com/questions/1231355 is using a new feature because I don't recall that one could remove a stripe in previous days. But if you can then yes that is one way to do it. I would want to test it out thoroughly first before increasing the size and making the problem worse.
-
Soni
we mean sure we can come up with space for where to shove the smaller filesystem
-
rwp
Soni, A FreeBSD system? So, is it a UFS file system?
-
Soni
but we need to figure out how to do this with qemu properly
-
rwp
Am I to assume this system is using UFS? And that it can't be booted up onto the network for the data to be copied off? It's an offline system?
-
mjp
that Ubuntu ZFS guide is not "shrinking" but rather backup -> destroy pool -> re-create pool -> restore
-
mjp
that can be done on any filesystem/os
-
Soni
presumably we can throw -device virtio-blk,drive=ext -blockdev driver=raw,node-name=ext,file=/dev/sdc at the VM?
-
HER
rwp: crest: just for info, so i reinstalled 14.0 and now kldload i915kms works. So i have no idea why it didnt in the other install
-
rwp
mjp, I don't think so. It started with a non-striped array. It added striped disks of the new smaller size. Then removed the original larger striped disks leaving things back to a non-striped array of smaller size.
-
rwp
HER, Glad to hear things worked out for you! Regardless of whatever glitch occurred. That was an odd error.
-
rwp
Soni, Here is a reference I have saved in case I need it:
gist.github.com/ctsrc/9a72bc9a0229496aab5e4d3745af0bb9
-
VimDiesel
Title: Install FreeBSD 14.0 on Hetzner ยท GitHub
-
mjp
dont think what exactly?
-
rwp
I don't think it is a backup restore procedure.
-
rwp
In the LVM world it would be like adding a PV to a VG, then doing a pvmove to pour the data from the old PVs to the new PVs, then removing the original PVs. As the person said, all live while the system is running. (Which I still think is pretty cool.)
-
rwp
Soni, If it were me I would back up the data onto another machine using rsync and then resize and then restore with rsync. The system temporarily holding the data does not need to be a FreeBSD system. Which I say since it seems having another one is a problem.
-
rwp
And if I were doing that I would take the opportunity to create the new file system as a ZFS file system, because, ZFS FTW! :-)
-
Soni
the hardest part of this whole issue is figuring out how to use qemu
-
rwp
I am still not understanding why it would be needed?
-
rwp
For the Hetzner recipe pasted it's because there is no bootable FreeBSD available so one must make due booting a Debian rescue system and then going from there. But your FreeBSD VM boots already so none of that would be needed as far as I can see.
-
voy4g3r2
from experience and heartache, shrinking no bueno.. default to rwp actions