I have some special question to ZFS in combination with unraid.
I have some 10TB disk in unraid array. Now I want to buy some 12 TB disk and want to use 10 TB in original array and 2 TB as zfs pool:
I have the following idea:
zero out the disk with preclear
creating a 10TB partition /dev/sdx1 with same sector-count like the other disks and format it with xfs
creating a 2 TB partition /dev/sdx2 and format it with zfs
adding disk to array
create a zfs pool with the smaller partitions.
adding on ssd to the array a a cache disk
using a second ssd as cache disk for the zfs-pool
I this a possible way to go ahead?
What is happening when I am adding a disk (preformated) tom the array and the whole disk size is not same?
Please give me some ideas.
Thanks - my use case is to exports the *.img file via iSCSI to a proxmox-host VM.
For emergency reasons I want to mount the img-File if my proxmox-vm is broken.
I did it via the playground-docker image - installing kpartx and use it as a privileged docker container - mounting the /mnt/user/iSCSI directory with the iSCSI-Image Files.
#kpartx -a -v volume1-iscsi.img
#mount /dev/mapper/loop3p1 /mnt/disks/p1
#mount /dev/mapper/loop3p2 /mnt/disks/p2
mounted the partitions into local unraid server.
I know, that I can only mount read-only because of consistency.
Thanks for your help.
--- snipp
OK - It has been worked it is very easy to mount the partitions locally
I have some less specific question about the file-format of the img-files which has been created by iscsi-gui.
It seems to be a raw format, so I should able to mount them with kpartx.
But I don't know which linux type is below unraid, so I am not able to port kpartx to unraid.
Can somebody give me a hint, how to do this?
Greetings and thanks