Re: Access FFS partition on GPT on ZVOL

2022-09-07 Thread Matthias Petermann
Hello Michael, Am 07.09.2022 um 16:37 schrieb Michael van Elst: m...@petermann-it.de (Matthias Petermann) writes: saturn$ doas dmsetup create net-export --table "34 2147483581 linear /dev/zvol/rdsk/tank/backup/vhost/vol/net-export 0" create and load called Please try: --table "0 2147483581

Re: Access FFS partition on GPT on ZVOL

2022-09-07 Thread Staffan Thomén
Michael van Elst wrote: m...@petermann-it.de (Matthias Petermann) writes: saturn$ doas dmsetup create net-export --table "34 2147483581 linear /dev/zvol/rdsk/tank/backup/vhost/vol/net-export 0" create and load called Please try: --table "0 2147483581 linear

Re: Access FFS partition on GPT on ZVOL

2022-09-07 Thread Staffan Thomén
Being a curious person, and because this might let me avoid the zvol patch (and I now have a spare system to test these things on), I tried it too: surtr# uname -a NetBSD surtr 9.3 NetBSD 9.3 (GENERIC) #0: Thu Aug 4 15:30:37 UTC 2022

Re: Access FFS partition on GPT on ZVOL

2022-09-07 Thread Michael van Elst
m...@petermann-it.de (Matthias Petermann) writes: >saturn$ doas dmsetup create net-export --table "34 2147483581 linear >/dev/zvol/rdsk/tank/backup/vhost/vol/net-export 0" >create and load called Please try: --table "0 2147483581 linear /dev/zvol/dsk/tank/backup/vhost/vol/net-export 34" left

Re: Access FFS partition on GPT on ZVOL

2022-09-07 Thread Matthias Petermann
Hello Michael, Am 03.09.2022 um 17:59 schrieb Michael van Elst: m...@petermann-it.de (Matthias Petermann) writes: saturn$ doas dkctl /dev/zvol/rdsk/tank/backup/vhost/vol/net-export=20 addwedge myexport 34 2147483581 ffs dkctl: /dev/zvol/rdsk/tank/backup/vhost/vol/net-export: addwedge:=20

Re: Access FFS partition on GPT on ZVOL

2022-09-03 Thread Michael van Elst
m...@petermann-it.de (Matthias Petermann) writes: >saturn$ doas dkctl /dev/zvol/rdsk/tank/backup/vhost/vol/net-export=20 >addwedge myexport 34 2147483581 ffs >dkctl: /dev/zvol/rdsk/tank/backup/vhost/vol/net-export: addwedge:=20 >Inappropriate ioctl for device A zvol is no disk and doesn't

Re: Access FFS partition on GPT on ZVOL

2022-09-03 Thread Staffan Thomén
Matthias Petermann wrote: Am I doing something fundamentally wrong here? Or does this require a kernel newer than 9.3? In order to do this (something I needed as well, but with NTFS for backing up an iscsi-exported photos zvol) you need to patch zfs so that ccd can use zvols as components;

Access FFS partition on GPT on ZVOL

2022-09-03 Thread Matthias Petermann
Hello all, here is a ZVOL that is used by a VM as backing storage. Consequently, this is provided with a GPT in which, among other things, an FFS partition is defined. I want to access this partition from the host side (i.e. from outside the VM). The listing of the GPT works already : ```