7.8beta2 adds new package ROSE-storage

Feature request: mirroring of the user database to a secondary server on another router, to be used as fallback in case the primary one crashes, is rebooting, etc.

@rameex43
make raid1 with tcp-nvme drives

@Babujnik
Thanks we will try to fix this.

@sirbryan
Simple partitioning will be available in upcoming versions. We will check what we can do about LVM or ZFS.

@issme
RDMA is different beast, currently its not planned.

If MikroTik is seriously considering porting a ZFS derivative to RoS one clearly have no idea regarding the complexity in terms of kernel extensions, user space management procs and admin tools. All licensing issues must also be coordinated and approved by mr. Ellison before even considering starting the implementation process.

In terms of complexity, ZFS is orders of magnitude more difficult to implement than BFD.

Take my advice, if you’re really looking to implement some sort of volume management or advanced file systems, pick something that already exists in the linux sphere. And since this is obviously not MikroTik’s primary area of expertise, please do your homework before making any promises.

Soft-RDMA for eg RoCE/iWARP is pretty straightforward to enable in the linux kernel but for higher throughput (+10Gb) hardware support has to be implemented in the NIC driver. https://docs.nvidia.com/networking/display/RDMAAwareProgrammingv17/Comparison+of+RDMA+Technologies

With latest kernels, btrfs is strong enought to be used by production solution (i used it for my own Nas, raid1c3 for metadata, raid5 for data). I think it could be easiest to implement and more compatible to different CPU arch (and it eat less ram than ZFS).
it could be a good candidate for ROSE

OpenZFS for Linux is already done, is CDDL, and long outside the purview of Oracle.

I imagine a very limited subset of the under-the-hood knobs and settings would be exposed. Realistically, the “simpler” bits, such as disk pool, volume, and dataset creation, compression (on or off), and sizes/quotas for each would be sufficient.


BFD is being rewritten from scratch. OpenZFS is ready to go; it just needs to be compiled for the target architectures.


As mentioned, it already exists in Linux land. And the beta period is the perfect time to do homework, like containers between 7.1rc3 to 7.6.

OpenZFS is neither part of the Linux kernel nor in any standard distribution, it’s an add-on package that can be downloaded from https://openzfs.org/ and may be compiled for a number of platforms.

Some background on ZFS, ZoL, OpenZFS…

OpenZFS is still under development, why not to ask MT lead technical manager if they are willing to take full responsibility for any potential bugs during commercial use. Using OpenZFS for full production has some obstacles that shouldn’t be underestimated. Those companies that do offer commercial operations are specialized in storage solutions and have full time employees doing nothing else but focusing on that, which definitely is not Mikrotiks area of expertise. But hey, it’s just data…

Regarding licensing, ask the MT legal team if they are comfortable to bring in OpenZFS.

Thank you for replaying the last few years of my ZFS research and experience back to me. I have deployed a number of TrueNAS servers since 2015, and ran OpenZFS on my Macs for a time.

He asked for ideas. I gave him some. I don’t expect all of them to flesh out. If MikroTik determines it’s worth the risk and effort to include any of them, then great.

Good for you but using OpenZFS or similar for commercial purposes in a volume-based standard product line like routers is something completely different.

I really hope for their own sake they don’t try to enter the storage solutions market. In my opinion, it would be a complete disaster unless they start a separate company that doesn’t affect the rest of the business. But as I said, forget about ZFS for regular MT routers.

I’d think the immediate need is so @Normis doesn’t need a Synology NAS at his house, than an data center solution…

But some Mikrotik wrapper around LVM does sound more reasonable than ZFS. I do think “snapshots” would be a useful feature, I’m indifferent on file system selection.

must have been issue from QNAP side, as iscsi disk shared from linux host works without problems on CHR:

Flags: B - BLOCK-DEVICE; M, F - FORMATTING
Columns: SLOT, MODEL, SERIAL, INTERFACE, SIZE, FREE, FS, RAID-MASTER, ISCSI-STATE

SLOT MODEL SERIAL INTERFACE SIZE FREE FS RAID-MASTER ISCSI-STATE

0 BM iscsi VIRTUAL-DISK beaf11 network 1 073 741 824 1 020 669 952 ext4 none connected

qnap errors in dmesg:

[181487.835516] not support iscsit tcp zmc
[181487.859098] iSCSI/lab: Unsupported SCSI Opcode 0xa3, sending CHECK_CONDITION.
[181487.992417] iSCSI/lab: Unsupported SCSI Opcode 0x85, sending CHECK_CONDITION.
[181488.001055] TARGET_CORE[iSCSI]: Expected Transfer Length: 2048 does not match SCSI CDB Length: 0 for SAM Opcode: 0x12
[181488.012043] ITT: 0x0000002a read_data_left is zero!

Interesing, as there seems to be issue while trying to run containers from iscsi/nfs disks:

 
 [user@lab] /container> add remote-image=pihole/pihole:latest interface=test envlist=pihole_envs root-dir=iscsi/pihole
[user@lab] /container> pr
 0 name="961c061d-628b-4b29-9cc5-1b25152952f8" tag="pihole/pihole:latest" os="" arch="" interface=test envlist="pihole_envs" root-dir=iscsi/pihole mounts="" dns="" status=extracting 
[user@lab] /container> pr
 0 name="961c061d-628b-4b29-9cc5-1b25152952f8" tag="pihole/pihole:latest" os="linux" arch="amd64" interface=test envlist="pihole_envs" root-dir=iscsi/pihole mounts="" dns="" status=error 
 
 10:03:49 container,info,debug importing remote image: pihole/pihole, tag: latest
 10:03:49 system,info item added by noyes
 10:03:51 container,info,debug getting layer sha256:8740c948ffd4c816ea7ca963f99ca52f4788baa23f228da9581a9ea2edd3fcd7
 10:03:59 container,info,debug layer sha256:8740c948ffd4c816ea7ca963f99ca52f4788baa23f228da9581a9ea2edd3fcd7 downloaded
 10:04:07 container,info,debug was unable to import, container 961c061d-628b-4b29-9cc5-1b25152952f8

Is there a way to reduce the size of ROSE package (or split client and server parts ?) ?
3.6MB is too much big for mikrotik devices with 16 MB SPI flash storage. These small devices could have an external iscsi or NFS storage to put containers .

thanks

MikroTik is already working on a RouterOS Custom Builder that let’s you build an installable image containing only the features you want and need installed.
LOLNO.
But it would’ve been nice if they did.

The entire infrastructure is in place to do that, but apparently the have chosen not to do that anymore.
I think there is only one thing missing in the package management system: a menu that presents a list of available packages for the architecture, and allows you to select and install some of them.
(instead of having to download and unzip a .zip file, then upload some files out of that to the router)
It should be really easy to add that…

Zerotrust cloudflare tunnel in an options package would allow safe and secure access to servers and then for arm users, one could further use zerotier to stream crap, look ma no hands and no stinking containers.

Are RouterOS paths technically prefixed with a “/”, or not in scripting? Seem inconsistent in what’s suppose to be “right”. While tangental to ROSE, having some canonical path format would be nice.

Generally I’ve assumed RouterOS does NOT prefix paths with a.slash / – but V7 keeps becoming more a hodgepodge of what’s accepted for file paths in commands – both in CLI/winbox and externally via protocols. e.g. container file= is one that won’t accept something with a starting slash, while others cmd attributes elsewhere seem indifferent or require a starting slash – without the [:pick] before, container can’t be added using $path.

:global path "/nfs1/images/disk1"
# ...
/container add file=[:pick "$(path)/$(containername).tar" 1 999] ...

What is seen as “root” directory in user context of RouterOS is actually a subdirectory inside the Linux filesystem. “files” shows that subdirectory as if it is the root directory.
Maybe it would be nice when everything acted as if there was an implicit “chroot” to that directory.
It could even be more secure when that actually was the case…

LOL, 100% agree there should be some “implicit chroot” – but left wondering, since Docker been around a while, how many people even know “chroot” :wink:.

For a long while the “disk1/mydir/myfile.txt” was pretty universal. I’m sure contiainer threw a wrench in the scheme – still the image path to add and RouterOS-side of mount paths differ in their “slash support”. Now ROSE wants the “/” because other protocols expects it. Anyway it’s a bit confusing on what’s “right” for the path, and ROSE add even more cases to the mix.

What is the target’s full iqn that we should use when connecting to an exported iSCSI volume from a third-party device? I’d like to try booting an Intel NUC here in my lab.

would be awesome if you could include S3-compatible client (linux s3cmd maybe?) for auto backup with versioning and recovery