-
burie
mount_smbfs has issues with connecting to smb verions > 1. How can I use samba from ports to be able to mount smb server of higher versions?
-
burie
and also mount on boot
-
markmcb
not sure if i'm imagining it, but virtio-9p file transfers in bhyve seem much faster in 14.2
-
l00py
im trying to add a new zpool using an external drive. i plug drive in then try to destroy its factory partition table with gpart destroy /dev/da0 but it says invalid argument "da0"?
-
l00py
but in camcontrol devlist /dev/da0 shows up
-
l00py
zpool create mydisk da0 works though
-
jauntyd
l00py: what does it show when you enter "gpart show da0"
-
l00py
it didn't show up
-
jauntyd
what does gpart say, specifically
-
l00py
no such geom: da0
-
jauntyd
ah, if you no longer need the data on the drive i would dd it then "gpart create -s GPT da0"
-
l00py
and then add it to the new zpool with zpool create mydisk da0?
-
jauntyd
exactamundo!
-
l00py
so since i already created the zpool do i need to destroy it then dd it?
-
jauntyd
yes
-
l00py
ok and by dd do you mean dd if=/dev/zero of=/dev/da0 bs=1M or?
-
jauntyd
there you go
-
l00py
how long will that take for 2TB?
-
jauntyd
i would say let it run for 5-15 mins
-
voy4g3r2
why would you do a dd on a new zpool? i have never done this
-
jauntyd
no, we would destroy the new zpool first because it wasn't partitioned correctly
-
jauntyd
ZFS acts wonky if you give it your entire drive
-
l00py
really?
-
jauntyd
for example, i had a zpool report bogus numbers about space
-
l00py
we should be able to just throw raw hw at zfs. it's the future
-
jauntyd
:)
-
l00py
there's no better fs on the planet
-
jauntyd
i like it myself as well
-
jauntyd
and then you add FreeBSD stability... :))
-
l00py
btrsbois stay losing
-
jauntyd
lol
-
jauntyd
i haven't used btrfs in years but :x
-
jauntyd
for me anyways
-
l00py
after the dd and gpart create, i don't need any gpart add ... or newfs stuff because it's going to zfs and not ufs right?
-
jauntyd
l00py: after gpart create is when you should create the partition table with add
-
jauntyd
that will depend on if you're going to boot, etc
-
l00py
not going to boot to it, just an external zfs pool is all
-
jauntyd
one sec, let me find you a link
-
l00py
gpart add -l mydisk -a 1M da0?
-
jauntyd
that's pretty much what I would do
-
jauntyd
you got this mannnn
-
jauntyd
:D
-
jauntyd
how long have you been using FreeBSD l00py?
-
l00py
like a yar? came from mac
-
l00py
you?
-
jauntyd
this time around....4 years or so
-
l00py
thoughts?
-
jauntyd
very happy, especially with ports
-
jauntyd
in fact, i might not shutup now that you asked me that ;)
-
l00py
spill it
-
jauntyd
get you a server that can build ports
-
l00py
btw i can skip geli init if i don't care to encrypt the data right?
-
jauntyd
or a machine or w/e
-
jauntyd
yes
-
l00py
ty
-
jauntyd
35k+ ports available mang
-
l00py
biggest gripe with freebsd tho?
-
jauntyd
hmm
-
jauntyd
the one thing everyone says...wifi
-
jauntyd
but we're working on it
-
jauntyd
or they or whatev
-
l00py
ya true
-
l00py
top notch wifi support would lay the groundwork for their laptop initiative too
-
jauntyd
yep
-
l00py
btw you're saying to add the /dev/da0p# partition to the zpool create, not the raw da0 disk?
-
jauntyd
yes
-
jauntyd
whichever partition is the largest
-
jauntyd
p1 maybe?
-
jauntyd
idk how you set it up
-
l00py
zero drive, create gpt partition table with 1 big user partition, create zpool with partition. then start using or?
-
jauntyd
yes
-
jauntyd
should mount in "/"
-
jauntyd
under the name you gave it ofc
-
l00py
i never did external zfs before only ufs on external and zfs on root internal so this is my first time then ill finally know how to put zfs everywhere!
-
jauntyd
woohoo!
-
jauntyd
may i offer some advice about zfs on externals?
-
l00py
pls do
-
jauntyd
export the pool before d/cing or let it shutdown completely
-
jauntyd
it being the computer
-
l00py
so we don't just umount it like an external ufs, but we work at zfs level for unmounting?
-
jauntyd
correct. "zfs umount <mydisk>"
-
Quantafac
Hi there, I was hoping someone here could help me figure this out. I setup a new samba share (4.19.8_1) on a new FreeBSD jail. When I access the file share via Windows and Linux, it works normally. However when I access from Mac, I can navigate into folders, but when I try to go back up in the directory finder disconnects from the server entirely and I have to reconnect. Has anyone seen anything like this before?
-
l00py
what's the diff between zfs unmount mydisk and zpool export mydisk?
-
jauntyd
got me there
-
l00py
if nothing else zfs mount works at partition level and zpool export the pool level
-
l00py
i'd deal with whole disk at a time here so i'd say zpool export. then unplug. then plug back in and ... import or ?
-
jauntyd
"zpool import <mydisk>"
-
l00py
so plug in, then zpool import mydisk, then read/write files like normal?
-
jauntyd
yes
-
l00py
tyvm
-
jauntyd
:)
-
jauntyd
hope you enjoy FreeBSD
-
jauntyd
and ZFS!
-
l00py
ty you too. you got any servers?
-
l00py
or just desktops or
-
jauntyd
just one for building ports
-
jauntyd
desktop, laptop
-
l00py
service jails look cool
-
l00py
a small enough "jail" would just be a capability context right?
-
l00py
purely a security and entitlements container
-
rwp
Yes. That's pretty much all that it is at that point. Very light weight.
-
l00py
entitlements meaning no resources are given to jail context by default, it all has to be explicit. like x cpu time, y set of file paths in the host
-
rwp
I don't know how to explicitly make those limitations. I have not needed that myself. And therefore I have no idea about it. But I am sure that others will.
-
l00py
jauntyd when i add the partition, what -t (type) do you use? freebsd-zfs?
-
jauntyd
yes
-
l00py
do you use the same label as the name of the pool or?
-
l00py
like mydisk
-
jauntyd
the label will show in /dev/bylabel
-
jauntyd
that's not right one sec
-
jauntyd
it shows somewhere....ugh
-
jauntyd
but no, i don't use labels
-
jauntyd
but it's a good idea
-
l00py
k
-
jauntyd
it would show in "/dev/label/labelname"
-
l00py
and when, as a user, i went to run truncate -s 50G /mydisk/vm.img it said permission denied. rather than use sudo i should sudo chown -R l00py:operator /mydisk right?
-
jauntyd
yep, it defaults to root:wheel permissions
-
rwp
gpt labels show up in /dev/gpt/*
-
jauntyd
oh sorry!
-
rwp
They are separate from the old glabel type labels. gpt labels are now prefered over glabel labels.
-
jauntyd
gotcha, ty
-
l00py
ok i ran truncate -s 50G /mydisk/vm.img and it worked, but ls -la shows it's the full 50G in size? shouldn't it be a few kb since nothing's been written to it yet by the vm?
-
jauntyd
no, that's right
-
l00py
how?
-
jauntyd
i think there's an option in truncate to not preallocate
-
jauntyd
one sec, ill look
-
rwp
ls -l will show the allocation size not the actual size. Use du to see the actual size.
-
jauntyd
l00py: listen to rwp, you're beyond me now ;D
-
l00py
wow
-
l00py
zfs list shows it too i think?
-
l00py
it says 432K used
-
l00py
tyvm
-
l00py
what's the device line for the sparse flat file for bhyve to store the vm in? like do i use virtio-blk or ahci-hd, stuff like that?
-
l00py
is usbconfig the right way to turn an external attached usb drive off safely after i zpool export it?
-
l00py
it's nvme inside external usb enclosure
-
l00py
is usbconfig the right way to turn an external attached usb drive off safely after i zpool export it? it's nvme inside external usb enclosure
-
l00py
any mikrotik users?
-
drijen
l00py: a very long time ago, whats up
-
l00py
drijen ty. so i have a very simple setup. a mikrotik wifi AP that's also the router. public side is router runs dhcp client to get ip from isp. lan side, i added 168.x.x.x/24 and 10.x.x.x/24. i want to make those networks separate so no traffic goes between them, only between each lan and the wan. best idea?
-
drijen
physical seperation or logical?
-
drijen
logical is just a vlan for each
-
l00py
logical is fine
-
drijen
yeah just stick each to a vlan
-
l00py
how do i set up a vlan for each?
-
drijen
ive very long forgotten
-
drijen
im sorry
-
drijen
i will point out that the situation you describe is basically router on a stick, for which you can find details here:
help.mikrotik.com/docs/spaces/ROS/pages/88014957/VLAN l00py
-
drijen
if networking is unfamiliar to you,i believe ROS is reference in the CCNA chapter 4 or so
-
drijen
for the peanut gallery; i have a synology that i wish to make a backup from to a BSD server; better to just mount the shares and rsync, or use synology's built in hyper backup (assuming folks here have synologys)
-
l00py
is usbconfig the right way to turn an external attached usb drive off safely after i zpool export it? it's nvme inside external usb enclosure
-
polarian
hmmm I am starting to feel I want to redo my zfs setup and replace zvol with volumes with a disk file on :/
-
polarian
bhyve setup*
-
polarian
I was thinking "I will prove zvol's are useful" and then thought now actually I just made my life difficult :P
-
mzar
did your life became really difficult after that change ?
-
polarian
I haven't changed
-
polarian
but zvols are meant to be considerably slower
-
polarian
(I haven't benchmarked it)
-
mzar
no disaster
-
polarian
meh I dont think it is a big deal, I just thought it would be simpler than tons of disk files
-
polarian
and seeing other peoples setup I have concluded it really isn't much more difficult...
-
Macer
hm. trying out ghostbsd and the usb drive is saying cannot receive new filesystem stream incompatible embedded data stream feature with encrypted receive
-
Macer
almost makes it sound like their img has a broken zfs?
-
Macer
freebsd seems to work fine. guess i'll try that out
-
Macer
and see what the gnome experience is like with it
-
vkarlsen
I don't know. I recently tried to boot a GhostBSD live image and it never fully booted. I didn't investigate, because I had some other live images on hand which got the job done. Might try on other hardware when I find the time
-
vkarlsen
I don't remember exactly where it got stuck
-
Macer
hm
-
Macer
i just installed gnome and set up proc and enabled dbus and gdm in rc.conf
-
Macer
but gdm doesn't start
-
Macer
...
-
Macer
xorg isn't a dep of gnome?
-
Macer
what in the world?
-
dstolfa
isn't gnome wayland only these days?
-
Macer
not sure tbh. maybe i'll re-install and see about reading up on how to configure wayland
-
Macer
but yeah. getting a functional ui in fbsd... sure wish the installer had an option to do this heh
-
Macer
i'm going to re-install and give it one more college try but in the meantime work on making a debian usb drive
-
Macer
if my monitors turn back on. 😕
-
rwp
Macer, If you are trying to create a USB booting portable desktop system then give
nomadbsd.org/index.html a try.
-
Macer
no i was trying to install it as a desktop using either mate or gnome. but i honestly gave up. 🙂 i'll just keep fbsd on my isilon where it belongs
-
Macer
after a couple of hours of re-installing and trying to just set up wayland + gnome... and not having it start... it just wasn't worth the hassle anymore.
-
rwp
I happen to think that the nomadbsd desktop they set up is a very pretty one. I don't use a Desktop Environment but instead use a simple window manager for myself.
-
rwp
For other people I usually set up Xfce which I find much nicer than Mate or GNOME.
-
rwp
Mate (GNOME2) is okay. I just really do *not* like GNOME 3.
-
rwp
I also did not think GNOME 3 was possible without systemd too as the two projects have become inseparably entangled, I thought.
-
dstolfa
rwp: a lot of linux distributions without systemd work around the issue with elogind
-
dstolfa
so it's possible, although not the preferred way
-
rwp
I am pretty sure that Devuan gave up on trying to make GNOME 3 work without systemd even though they have elogind there. It's just an endless time sink I am sure trying to keep up with it.
-
rwp
But anyway this is FreeBSD and I usually run a tiling window manager myself. I have run fvwm traditionally. I usually set up Xfce for others.
-
dstolfa
rwp: both gentoo and guix have gnome working without systemd. it's certainly possible
-
dstolfa
i don't know if freebsd still has gnome working, however
-
rwp
But then I saw the nomadbsd default desktop and I realize I need to understand how it is set up. It really presents very nicely.
-
rwp
-
dstolfa
looks like xfce
-
rwp
It might be a customization of Xfce.
-
rwp
I'm really not the target audience of it. I am one of those people who if they have to remove their fingers from the home row of the keyboard and reach for the arrow keys or goodness forbid the mouse then I feel that something about the UI has failed me.
-
drijen
rwp: from the keybindings page: Print Open XFCE 4 screenshooter.
-
drijen
its a slicked up xfce
-
drijen
dang, looking through those screenshots i might try that as a replacement for ubuntu on my laptop
-
rwp
"its a slicked up xfce" Sounds good to me!
-
» jauntyd pats his enlightenment
-
rwp
Since it is designed as a portable USB desktop that means you can try it out. Take it out for a test drive. See if you like it.
-
l00py
im trying to start another bhyve vm but i get unable to setup memory error. i have 64gb ram and HALF is being used by zfs arc (looking at sudo top) any solutions?
-
rwp
Without doing a local install. Then install it if you decide you like it. Pretty nice!
-
rwp
l00py, "i have 64gb ram and HALF is being used by zfs arc" and what is wrong with that? Sounds like it is working correctly to me. What good is unused memory?
-
rwp
If the system needs memory for something then it will reduce the arc and use it for those other things.
-
l00py
but i just explained how that didn't happen
-
l00py
i tried to start a bhyve vm with 4gb ram and i failed
-
rwp
You said "i get unable to setup memory error" but what does that have to do with the arc memory/
-
rwp
Start with the bhyve question first.
-
rwp
(Not that I can help with bhyve as I am not proficient there.)
-
l00py
it means zfs didn't give ram back to system for bhyve to get enough to start the vm
-
rwp
I don't think that is enough information to make that conclusion.
-
l00py
ok well whatever the pedantry is, arc is taking half my ram and bhyve isn't getting enough
-
rwp
It would probably be interesting and useful to post the output of "zfs-stats -A".
-
imm_
l00py: What is your vfs.zfs.arc.min set to?
-
l00py
is that a sysctl?
-
l00py
rwp there is no zfs-stats bin
-
l00py
imm_ it's set to 0
-
imm_
l00py: zfs-stats is in zfs-stats port.
-
l00py
-
l00py
rwp ^
-
imm_
I don't think it's a problem with ZFS, but bhyve
-
imm_
l00py: Do you use bhyveload?
-
imm_
l00py: Or grub-bhyve or similar.
-
l00py
imm_ to start the vm?
-
l00py
i just use 'bhyve'
-
l00py
looks like i can define a zfs_arc_max somehow
-
l00py
-
l00py
what's a reasonable arc max to set if i have 2x1TB in a mirror on system with 64gb ram
-
l00py
2x nvme drives fwiw
-
foxxx0
I'm running a 4x7tb raidz1 with 16gb arc limit and 8gb to spare for system+services
-
foxxx0
(24gb total memory)
-
l00py
run fine?
-
foxxx0
yup, no issues here. although I don't have that many clients
-
foxxx0
and this nvme array is so stupidly fast, that I don't really need more caching :D
-
foxxx0
just a bit of metadata and random smaller regularly accessed files is plenty for my needs, everything else can just go to fetch from nvme
-
foxxx0
so it all depends on your usecase, if you're planning on running a bunch of additional services that all want their own share of memory, then you'd better limit it accordingly
-
l00py
do you set vfs.zfs.arc.max in /boot/loader.conf or?
-
drijen
l00py: get out of my server :p (also running 2 x 2tb m.2 and 64GB
-
drijen
)
-
markmcb
trying to figure out what speed a pci device is operating at. with pciconf i see "link x4(x8)". does that mean x4 actual, x8 capable?
-
l00py
drijen lol nice
-
l00py
setting vfs.zfs.arc.max worked. i have tons of free ram again
-
l00py
trying out 8GB max and if it feels sluggish i'll up it to 16
-
burie
I have a system I don't want to build packages for I just want to install bianry package and the system has no internet. How can I manually install a manually downloaded binary package?
-
luke_jobless_sb
burie: from the official package repository?
-
luke_jobless_sb
burie: in broad, you can download any source code, build and install without any repository
-
luke_jobless_sb
burie: and you can install without those early two step if you cross compile in other machine and bring the build to your isolated machine
-
ek
-
imm_
l00py: Does bhyve work now when ZFS is low?
-
ek
Download whatever you need, place them on the system, and use "pkg install" to install them.
-
l00py
imm_ yep!
-
l00py
and i'm gonna upgrade my system to 128gb from 64 so it's only a temporary fix to set vfs.zfs.arc.max so low
-
l00py
i'll raise it to 16gb when my new ram is in
-
burie
ek: so pkg install will work on downloaded pkg files yes
-
burie
-
burie
It looks like its intended behavior...
-
burie
how much space does it take to do buildkernel buildworld? It's filling up my 38G disk in my vm
-
ek
burie: Yes, pkg install will work on downloaded .pkg files. That's exactly what they were intended for.
-
ek
burie: Size of build source for kernel and world varies depending on options. They can get pretty large, though.
-
ek
burie: pkg.freebsd.org doesn't allow index listing. You need to know the package name specifically (which seems a little silly, but I'm sure there's a reason.)
-
mzar
burie: obj size is 15G (7.4G when compressed)