I'm currently testing out using ctld to export some ZFS volumes to Windows clients.
It appears fairly straight forward to export the volume via ctld and partition/format the disk on Windows. Just using my Windows 10 machine as a test I initialised a 1TB disk using GPT and created a single NTFS partition.
I was hoping that changing the volmode from dev to full would allow me to see the partitions in FreeBSD. I may not need to ever do this but it's reassuring to know that I could possibly mount the data r/o in FreeBSD in a pinch to pull data off. (Another option would be to connect the target to another Windows system on the assumption that it would correctly identify and mount the partitions created in the original Windows machine)
However, I don't seem to be able to find a way to access the NTFS partition in FreeBSD. Using
Does anyone know if it's possible for me to get access to the file systems on this volume via FreeBSD?
The fdisk output below seems to find a partition that has been created but I can't see any way of getting FreeBSD to access the contained GPT partition.
It also seems to show a size that is twice the actual partition size (ZFS/ctladm/Windows all show the volume as 1TB)
Block sizes are the default of 8k on the ZFS volume and 512b in ctld if that's of any relevance.
I did originally plan to reduce the volume block size but ZFS complained about using anything less that 8k so I left it as default.
It appears fairly straight forward to export the volume via ctld and partition/format the disk on Windows. Just using my Windows 10 machine as a test I initialised a 1TB disk using GPT and created a single NTFS partition.
I was hoping that changing the volmode from dev to full would allow me to see the partitions in FreeBSD. I may not need to ever do this but it's reassuring to know that I could possibly mount the data r/o in FreeBSD in a pinch to pull data off. (Another option would be to connect the target to another Windows system on the assumption that it would correctly identify and mount the partitions created in the original Windows machine)
However, I don't seem to be able to find a way to access the NTFS partition in FreeBSD. Using
gpart
on /dev/zvol/nas/iscsi/test tells me that there is 'no such geom'. Using fdisk appears to pull some information from the disk (included below), but no partitions or other devices are exposed via /dev that I can see could be used to access the data in an emergency.Does anyone know if it's possible for me to get access to the file systems on this volume via FreeBSD?
The fdisk output below seems to find a partition that has been created but I can't see any way of getting FreeBSD to access the contained GPT partition.
It also seems to show a size that is twice the actual partition size (ZFS/ctladm/Windows all show the volume as 1TB)
Block sizes are the default of 8k on the ZFS volume and 512b in ctld if that's of any relevance.
I did originally plan to reduce the volume block size but ZFS complained about using anything less that 8k so I left it as default.
Code:
******* Working on device /dev/zvol/nas/iscsi/test *******
parameters extracted from in-core disklabel are:
cylinders=133674 heads=255 sectors/track=63 (16065 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=133674 heads=255 sectors/track=63 (16065 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 238 (0xee),(EFI GPT)
start 1, size 4294967295 (2097151 Meg), flag 0
beg: cyl 0/ head 0/ sector 2;
end: cyl 553/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>