-
Onepamopa
Hey guys... got a fbsd VM in a boot loop ending with:
bsd.to/XnGp
-
VimDiesel
Title: dpaste/XnGp (Plain Text)
-
Onepamopa
Any ideas on how to restore to a working state ?
-
parv
Is that all you get? With verbose booting?
-
Onepamopa
I get a lot, it's just that's the last part
-
Onepamopa
with verbose & safe mode enabled
-
Onepamopa
any ideas on how to force-check / repair the disk?
-
parv
What had happened before the boot: sudden power loss, dying disk, other?
-
Onepamopa
most likely - yes, I wasn't at home at the time
-
Onepamopa
(most likely power loss)
-
parv
You could boot from a installation image & choose "live disk" (or whatever "live X" is called). Then poke the disk from there
-
Onepamopa
hm
-
parv
What is the file system on the disk?
-
parv
I wonder if boot partition was damaged ...
-
Onepamopa
from what I remember its ufs
-
Onepamopa
tried running fsck -y /dev/vtbd0p2 ... spammed a lot but after reboot - same thing
-
Onepamopa
as for the boot partition... it boots, reaches some stage and reboots
-
Onepamopa
no help.. ran fsck a few times.. marks the fs as clean but still in a reboot loop
-
rwp
The bothersome thing is that it says device not found. That looks more like a hardware problem to me. Maybe check the cables?
-
Onepamopa
the first (virtual) sata drive is not occupied as is the 3rd and 4th
-
Onepamopa
the 2nd is (scsi2)
-
Onepamopa
the cables work fine, it's a virtual disk on a hdd - the hdd works fine :) there are other vms running off it atm
-
Onepamopa
and theres a ton of stuff in lost+found
-
Remilia
is that virtualbox
-
Onepamopa
no, pve
-
machaddr
Someone knows how to remove pulseaudio without removing its dependencies using pkg? I would like to use OSS on FreeBSD
-
aristotle
freebsd-update now creates boot environments by default? (`CreateBootEnv yes` is commented out in its .conf on my install but it created boot envs for me anyway)
-
aristotle
can I just `zfs destroy` a BE to get rid of it or is there more of a procedure to that?
-
rennj
beadm list;beadm destroy why not
freebsd.org/cgi/man.cgi?beadm
-
VimDiesel
Title: beadm
-
rennj
-
VimDiesel
Title: HOWTO: FreeBSD ZFS Madness | The FreeBSD Forums
-
Remilia
rennj: do you perhaps mean bectl
-
grahamperrin
Remilia: it's much the same
-
Remilia
grahamperrin: sure, but beadm is not available by default
-
meena
grahamperrin: thanks for the review, pushed an update to my report
-
debdrup
grahamperrin: the only difference appears to be the language they're written in
-
grahamperrin
Difference between what and what?
-
debdrup
Sorry, I should've made it clear what I was talking about; beadm is Bourne shell, bectl is C (well, it's a C library with a tiny front-end binary, so that things other than the binary can use it)
-
grahamperrin
There are slight differences, the first one that comes to mind is option -T
-
debdrup
Huh, that's neat.
-
debdrup
One other advantage is that bectl has a more complete manual page. :3
-
rwp
The default creation of boot environments made fixing a mistake I made last week super easy. FreeBSD ROCKS! :-)
-
rwp
As I learned things boot environments was originally a recreation of the Solaris feature created for FreeBSD as beadm which is still maintained in ports.
-
rwp
But being such an excellent feature it was rewritten in C and moved into core as bectl.
-
rwp
Fortunately you can read about beadm in old docs and map to using bectl exactly.
-
rwp
So much original documentation writes about beadm. But now bectl is in core and upgrades with it.
-
rwp
And also when I want to know how some particular part of it is implemented then the shell script beadm is available for reading very easily. Super cool.
-
grahamperrin
meena (and all): sorry for not reviewing sooner. Thanks for the notes
-
meena
rwp: I need to do BEs with UFSβ¦
-
rwp
meena, Do BEs work with UFS? I thought it needed ZFS features in order to support it.
-
rwp
I would imagine that with UFS one would need to boot something live like the freebsd-installer and then use it for recovery.
-
meena
-
VimDiesel
Title: UFS Boot Environments | The FreeBSD Forums
-
grahamperrin
-
VimDiesel
Title: UFS Boot Environments | ππππππππ
-
rwp
From the original developer vermaden! I am definitely bookmarking that reference! Looks like a user space management of DIY snapshots on UFS.
-
nacelle
"We've got it all on UFS"
-
rwp
I am going to need to work through some examples of that technique in order to grok it. Looks like a useful technique.
-
rwp
However it needs to be a strategy intentionally deployed explicitly. It's not set up by default, as it is with ZFS.
-
meena
rwp: yeah, it looks like lots of work
-
meena
main reason i want to attempt it is so i can upgrade a few VMs with PkgBase
-
meena
I really wish the VM images we offer would come with a choice of ZFS vs UFS, because i would certainly always pick ZFS
-
rwp
I assumed that the problem was cloud hosting on affordable sized systems.
-
kevans
meena: soon, hopefully, maybe
-
meena
kevans: can I help?
-
kevans
meena: you can keep an eye on
reviews.freebsd.org/D34426, but I'm not sure what else
-
VimDiesel
Title: Login
-
kevans
.oO(login?)
-
meena
kevans: poudriere image has that, but i suppose we don't use poudriere for creating images
-
kevans
nah, release/ scripts
-
» meena logs in to subscribe
-
meena
kevans: but even so, the default images are pretty crappy starting off point
-
meena
kevans: why is sendmail enabled, but no SSH??????
-
meena
(i have heard the argument, and I still think it's crap)
-
kevans
I am not the one you need to convince :-p
-
meena
kevans: who is?
-
kevans
*waves hands* the community *waves hands*
-
kevans
Propose change -> get community acceptance -> convince re@ to accept it -> score
-
kevans
the missing step between #2 and #3 is, naturally, 'make the change'
-
kevans
or that could be part of #1
-
meena
sendmail takes about half an hour to start on a vm, because of DNS/hostname crap
-
meena
CURRENT on my VM boots in 13 seconds, and would probably boot a little quicker if i bootet NODEBUGβ¦
-
meena
well, I'd have to install nodebug for thatβ¦
-
parv
Is there no option to fire off "sendmail" in the background & let do its thing without blocking rest of the booting|"rc"-ing?
-
parv
As for enabling ssh in VM, where do I sign the petition?
-
meena
parv: i'll probably start a petition next month
-
meena
it'll probably be in phabricator, if phabricator hasn't been replaced with something more sensible
-
parv
meena, Aye. Will ask you thenπ€ unless I see that elsewhere
-
meena
parv: I have a lot on my plate with the whole cloud-init thing, but it's exactly that work that is pointing to lots of deficiencies wrt cloud environments
-
mason
meena: Maybe seed /etc/hosts with what sendmail wants...? Or change the boot order so it starts after BIND or whatever's gating it?
-
meena
mason: some of that implies that i can modify the image before first boot, and if I could easily do that, I wouldn't be complaining about it
-
rwp
First, I am biased, but... Postfix by design will run without DNS and therefore will start immediately and run locally until networking becomes available.
-
meena
rwp: i a allergic to mail
-
meena
so that's a different issue there
-
koobs
morning
-
crb
what's the difference between a relent/13.0.0 branch and a stable/13 branch?
-
yuripv
former gets only fixes for security advisories/erratas, latter will become next 13.x release so it gets backports from main
-
crb
yuripv, awesome so if I git checkout stable/13 and do a git log will it only show me the commits along the stable/13 branch?
-
yuripv
that's how git works, yes :)
-
yuripv
you don't really need to checkout it, just do a `git log stable/13` if that is what you need
-
crb
yuripv, awesome, thank you now if I git bisect does it only consider commits along that branch?
-
yuripv
yes, but as someone's (yours?! if i'm not mistaken) experience shown, it will sometimes land in some vendor commit? :)
-
crb
yuripv, yup it was mine, but I think kevans pointed that out and kindly showed me the switch to prevent that
-
CCFL_Man
has anyone used usb disk enclosures with zfs?
-
arielmt
yes, and usb flash drives as well. they're enough like internal spinning rust to be managed the same
-
arielmt
geli-encrypted zfs, too
-
koobs
-
VimDiesel
Title: FreeBSD Help on Twitter: "@probonopd @NealsJoe @FreeBSD_RE FreeBSD Development Lifecycle Version 2. Would appreciate a review, and if you're happy with it, I'll start on a Wiki page. Will be creating ports and docs versions too
t.co/gGRjWRwSYV" / Twitter
-
crb
koobs: oh, cool, thank you
-
koobs
pleasure
-
CCFL_Man
arielmt: will plugging them into a different port screw things up?
-
CCFL_Man
reason i ask is because it's hard to find a sas disk shelf that is cheap and supports sata
-
yuripv
sas2 shelves should be really cheap now (used ones)
-
arielmt
not by my experience, but the order in which you plug in usb drives definitely will if you rely on /dev/da* device names. also, my experience is limited to single-disk pools.
-
Erhard
zfs usually doesn't care if the drive device name changes. I thought it reads the info from the disks themselves to determine the structure of the array
-
Erhard
What do you need in a "shelf?" You looking for easy hot removal isertion?
-
Erhard
Or just a way to hook up a bunch of disks? Because you can just get an IT mode HBA and wire them up like normal drives.
-
yuripv
you still need a case to put those drive in, and shelf (or chassis with proper drive bays) is easier
-
Erhard
Of course, but their are plenty of cases that hold 8+ drives.
-
Erhard
You only need the fancy hotswap bays if you want hotswap
-
CCFL_Man
Erhard: i just need it as a disk array without hot plugging
-
CCFL_Man
yuripv: that accept sata drives?
-
rtprio
i had a 4 disk enclosure that was esata; worked alright for zfs until it lost power one day
-
parv
rtprio, Was the enclosure rendered useless due to power loss?
-
rtprio
parv: the zpool was-- i had to restore from backups.
-
parv
rtprio, Ah, ok.
-
CCFL_Man
oh damn
-
CCFL_Man
is that a common thing?
-
rtprio
CCFL_Man: if you lose more than two drives on raidz, yes
-
CCFL_Man
and if you just do jbod?
-
parv
Obviously, need to use RAID-Z3π
-
rtprio
it only had 4 drives!
-
rtprio
CCFL_Man: yeah, jbod might have handled it better.
-
rtprio
it only happened once in 3 or so years, then i finally got a chassis with 8 drives in it