00:56:49 vortexx: sorry little bit ago you stated to zpool import the zvol, this does not work on zvol's it appears. 00:59:21 jaredj: I have tried mdconfig -a on the zvol but I can't seem to figure out how to get it to work, afaik this mounts it as a memdisk, however I get "mdconfig: /dev/zvol/zpool-storage/dns is not a regular file" so I am clueless on what to do 01:12:52 polarian: not sure what you are trying to do, but zvol is already a block device, you shouldn't need mdconfig 01:13:42 except for setting proper 'volmode', most likely 01:15:16 actually no, reading zfsprops(7) default is already "full", giving you fully functional block device. 04:38:25 yuripv: the zvol has a partition table; polarian needs to grok that, obtain block devices for the partitions, and mount them 09:49:44 jaredj: still that doesn't need mdconfig, as above; if it was used as a "disk" by bhyve, it probably has 'volmode' set to 'dev' and need it set to 'full' and then check `gpart show` output (e.g. https://dpaste.org/6b5bz) 12:49:27 yuripv: gpart: No such geom: /dev/zvol/zpool-storage/dns. 12:49:37 you cant interact with the block device 12:49:53 specify it as zvol/zpool-storage/dns 12:49:59 oh 12:50:01 polarian: sure you can 12:50:18 yuripv: did that, same error 12:50:22 gpart: No such geom: zvol/zpool-storage/dns. 12:50:31 but first, what is volmode for that zvol? 12:50:45 zfs get volmode zpool-storage/dns 12:54:15 yuripv: dev 12:56:19 that's the problem, set it to 'full' 12:56:42 if you are NOT using it as raw device at the moment, that is 12:57:10 yuripv: oh right 12:57:24 is this mentioned in the man pages 12:57:39 the volmode? zfsprops(7) 12:57:42 volmode 12:57:48 I have searched, nothing is found 12:58:08 would like the reference material not just spoon feeding (no offence) :) 12:59:14 oh sorry I was in zfs(8) not zfsprops, thanks :) 12:59:42 yeah, properties were moved to separate man page from zfs(8) 13:02:40 ok that fixes it \o/ 13:09:14 thanks yuripv 13:12:36 yw 13:14:02 hmmm, bsdlabel/disklabel is deprecated (use gpart) but I can't see any reference to it in the man page... gpart show -p zvol/zpool-storage/dns shows zvol/zpool-storage/dnss4 (which is disklabeled) but "geom doesn't exist" 13:15:15 I am new to zfs if it isn't obvious :P 13:15:31 that's not about zfs already 13:15:39 I know the other stuff was 13:15:43 zfs part is over :D 13:15:44 this is me not knowing gpart very well :P 13:16:00 I rarely need to use it so its one of those forgetable things :P 13:16:27 what are you trying to do with those partitions? mount? 13:20:03 oh wait I dont need them partitions they contain the data, the first partition contains the kernel iirc 13:21:57 hmm mounting the partition doesn't work "file not found" 13:23:03 oh wait its zfs... you set it to online iirc 13:23:15 wait no... 13:25:28 I should just re-read the handbook and man page again sorry for the noise 13:29:52 yuripv, thanks for correcting my incorrect advice 13:31:24 (its zfs-import) :P 13:31:33 zpool* 13:36:18 yuripv: is it even possible to mount a zvol... zfs won't touch it because "operation not applicable to datasets of this type" 13:36:32 and I can't find any documentation on mounting zvols so I am wondering if its even possible... 13:41:46 zvol is block device not file system 13:45:12 tsoome_: exactly 13:45:17 but it contains a filesystem... 13:45:28 a filesystem I need to inspect 13:48:23 tl;dr it contains an OpenBSD installation being used by bhyve, but /bsd can't be found 13:48:41 polarian: zpool(8) deals with the block devices underpinning filesystems, zfs(8) only deals with the filesystems on top, iiuic 13:49:15 no matter what, I can't boot from the zvol despite it being a fresh OpenBSD install... I have been trying for months 13:49:21 and then putting it off for another month... 13:49:55 https://www.truenas.com/community/threads/accessing-partitions-within-a-zvol.37127/ 13:50:05 zfs set volmode=geom ? 13:50:08 others who followed my steps say its fully working, they can boot just fine... I can't for the life of me get it working, so I am trying to inspect the filesystem on the zvol to see if there is any noticable reason 13:50:17 jaredj: geom == full, its in full mode right now 13:50:23 aw. 13:51:07 zfsprops(7): "The value geom is just an alias for full and is kept for compatibility." 13:53:13 so i see after rtfming 13:54:29 so do you see it in geom disk list? 13:54:59 no 13:57:51 ooo, geom -t, didn't know about that one 14:00:54 I have mounted FFS2 partitions using the UFS driver on FreeBSD before... but I can't find any way to mount the FF2 partition(s) from a zvol to the host 14:01:07 that is what I am trying to figure out... and I feel like I am being really stupid and missing something obvious 14:01:35 well - the problem is the FFS2 is inside a partition on the zvol, right? 14:01:46 so you can't just mount the zvol 14:02:13 you need per-partition block devices to show up somehow 14:08:14 "...Setting [volmode] to dev hides its partitions." wat 14:09:02 jaredj: indeed... 14:09:18 but gpart does show, (as suggested by yuripv) 14:11:15 gpart knows there are partitions? but then you do not get devices under /dev/zvol for them? 14:11:40 jaredj: exactly :) 14:11:48 well actually technically I do 14:11:57 but the partitions under /dev/zvol can't be mounted with mount 14:12:08 and the filesystem isn't zfs 14:13:57 what does file -s say about those partition devices 14:16:05 /dev/zvol/zpool-storage/dns: DOS/MBR boot sector; partition 4 : ID=0xa6, active, start-CHS (0x0,1,2), end-CHS (0x3ff,254,63), startsector 64, 41942976 sectors 14:16:35 so the block device is exposed as a filesystem 14:18:54 uh, but you don't have /dev/zvol/zpool-storage/dnsp1 for example? 14:19:54 https://forums.freebsd.org/threads/how-to-use-gpart-on-devices-created-on-zfs-with-volmode-dev.86789/#post-584688 14:22:12 have you tried switching back and forth between volmode=dev and volmode=full? 14:23:04 jaredj: no 14:23:24 there is slices there is no partition labels 14:23:29 so I have dns and dnss4 14:23:45 oo, what's file -s say about dnss4? 14:23:46 s4 will contain disk label for the entire of the OpenBSD filesystem 14:23:58 /dev/zvol/zpool-storage/dnss4: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "OpenBSD", sectors/cluster 2, Media descriptor 0xf8, sectors/track 0, hidden sectors 16, serial number 0, label: " UNIX LABEL", FAT (1Y bit by 14:24:00 descriptor); NTFS, physical drive 0x290000, sectors 2330693407946571776, $MFT start cluster 5067957283254845772, $MFTMirror start cluster 5254012139394572371, clusters/RecordSegment -1341669376, serial number 0e7bfcbcd08ec031, checksum 0x1d8be1f 14:24:19 uhrrr, right, that two-level thingy 14:25:16 i just installed openbsd on an old laptop recently and ... i don't like bsd disk labels 14:25:46 :) 14:25:55 bsdlabel won't read it though (plus its deprecated) 14:25:58 right so you need /dev/zvol/zpool-storage/dnss4a to somehow exist 14:26:50 "Use gpart(8) instead (with the BSD partitioning scheme)," ok 14:29:40 i lost track - does gpart list say anything more detailed than s4? 18:53:07 jaredj: no 18:57:06 Does anybody use syncthing? How do you deal with high cpu usage? 19:13:01 40k files, 2500 dirs, 120G, and cpu is not really doing anything when there's no file sync happening... haven't found cpu to be a problem ever though s2r 19:25:32 polarian: as far as i've read, having geom deal with a bsd disklabel inside an MBR partition table is utterly usual and indeed an example of the sort of generality for which geom was built 19:26:31 it's just that all the examples are with disks not zvols. 19:26:42 can you gpart show /dev/zvol/zpool-storage/dnss4 ? 19:47:23 s2r: i use syncthing, i've not noticed much cpu 19:47:41 but i only have it check every hour or so 20:25:00 After upgrading to 13.3-RELEASE-p5, it seems sslh keeps crashing thereby preventing me from ssh'ing to the server. I've been using sslh for years and have not face such an issue. The logs don't seem to have anything in it. Where would I find a core dump of sslh, if there was one? 20:27:45 does it happen every time? 20:28:16 i would run sshd -Dddd and then connect wish ssh 20:28:49 it doesn't happen with every ssh connection. 20:32:13 Last time I restarted it was on the 22nd of August. I've had several SSH sessions since then. I was able to SSH in earlier today before 1700 UTC. I went to ssh in again around 2030 UTC and I was not able to connect to sslh. sshd is up and running just fine. 20:41:25 s2r: I do not use synthing (yet... it is the prefered way to backup android phones), however I have not heard anyone I know who uses it complain about high CPU use... you sure there isn't another issue happening? 20:43:36 jaredj: the issue I am having is for my entire time on *nix systems I am used to dump filesystems (FFS2, UFS and ext4) having such an advanced filesystem causes a lot of confusion... for example you need to ensure the zpool is attached, then the partitions (which aren't really partitions as they are virtual not physical) can be mounted but not with mount but with zfs-mount... its just a whole new 20:43:38 can of worms... 20:44:05 I do like the compression and the checksumming... but its very advanced 21:04:55 sslh? 21:05:14 sslh? i thought that was a typo 21:21:48 rtprio: yes SSLH, not SSH :-) Not a typo. SSLH multiplexes incoming connections, a simpler HA-Proxy of sorts. 22:54:05 mns, Looking at sslh it will run as user nobody in / and therefore will not her permission to write a core file there. Modify the /usr/local/etc/rc.d/sslh file so that it runs in a directory that it can write to and see if it dumps core to that now writable directory. 22:54:25 *will not have permissions 22:55:08 Does sslh also crash when it the other protocols it is multiplexing are used to pass through it? 22:57:50 rtprio, The problem sslh solves is when I take my laptop to the local hospital here to visit a friend and then try to use the laptop on their network they have a very restrictive firewall that blocks everything except for HTTP/HTTPS port 80/443 and nothing else is allowed through blocking my ability to ssh anywhere. But port 443 is open. 22:58:47 I always keep a server with sshd running on port 443 that I can connect into for this reason. Then I can ssh out of this restrictive system. But then that server can't run a web server which also requires port 443. Enter sslh which will sit on port 443 multiplexing the connections to the web server and to sshd as required to make sharing of that port possible. 23:04:18 I also notice that the binary pkg port of sslh has a zero sized sslh.8 man page for it. Error in the port. 23:46:02 polarian: and the snapshots! ... i guess you can have those on dump filesystems, hm 23:46:18 I dont get the attraction to sshl 23:46:40 a VPN would give more flexibility 23:46:57 you will have to obfuscate and mask the packets to prevent being dropped from deep packet inspection 23:47:10 jaredj: yes snapshots are cool too (makes backups easier) 23:47:22 snapshot and then use send/recv to distribute it to many other pools 23:48:55 yeah. i was just trying to play around with snapshots, clones, nullfs, and -o union to make a filesystem with a read-only base and a read-write overlay. it didn't work though