Hello,
I have a main pool (see signature), which is used for media storage & backups (e.g. big files, mainly sequential R&W applications).
Additionally, I have a pair of intel optane nvmes (each 110G), which I want to use for multiple purposes:
- mirror for VMs
- persitent l2arc for metadata for my main pool, to reduce access times for small files (e.g. thumbnails)
- optional: mirror for ZIL
To achieve this, my plan was to create multiple partitions:
1) zfs swap, size 2G (for each nvme)
2) mirrored partition (between both nvmes) for storing VMs, size 70G mirrored
3) l2arc for metadata only, size 30G striped (for each nvme, in total 60G)
4) rest for ZIL (if configured)
This is how I started:
I tried to create a vm on this pool via gui, but I got some weird error messages (sorry, I didn't copy them. I will provide them tomorrow). Do you see any error which I made during creation of those partitions above?
My next question: How can I add the striped l2arc (for metadata only) to my existing pool? Due to partitions, I cannot use the gui for this. GUI only allows to declare complete drives for each purpose (VM pool, l2arc, zil, ...)
So far, I was not successfull to achieve my approach, so maybe you can help me on this on please?
I have a main pool (see signature), which is used for media storage & backups (e.g. big files, mainly sequential R&W applications).
Additionally, I have a pair of intel optane nvmes (each 110G), which I want to use for multiple purposes:
- mirror for VMs
- persitent l2arc for metadata for my main pool, to reduce access times for small files (e.g. thumbnails)
- optional: mirror for ZIL
To achieve this, my plan was to create multiple partitions:
1) zfs swap, size 2G (for each nvme)
2) mirrored partition (between both nvmes) for storing VMs, size 70G mirrored
3) l2arc for metadata only, size 30G striped (for each nvme, in total 60G)
4) rest for ZIL (if configured)
This is how I started:
Code:
gpart destroy -F /dev/nvd0 gpart create -s gpt /dev/nvd0 gpart add -t freebsd-swap -s 2G /dev/nvd0 #swap -> nvd0p1 added gpart add -t freebsd-zfs -s 70G /dev/nvd0 #VM -> nvd0p2 added gpart add -t freebsd-zfs -s 30G /dev/nvd0 #L2ARC -> nvd0p3 added gpart add -t freebsd-zfs /dev/nvd0 # rest for SLOG -> nvd0p4 added # same for nvd1 zpool create -R /mnt optane_vm mirror gptid/XXX gptid/YYY # for VM partition zpool export optane_vm #necessary to import optane_vm via gui
I tried to create a vm on this pool via gui, but I got some weird error messages (sorry, I didn't copy them. I will provide them tomorrow). Do you see any error which I made during creation of those partitions above?
My next question: How can I add the striped l2arc (for metadata only) to my existing pool? Due to partitions, I cannot use the gui for this. GUI only allows to declare complete drives for each purpose (VM pool, l2arc, zil, ...)
So far, I was not successfull to achieve my approach, so maybe you can help me on this on please?