-
Guest14
I have a ipv6 tunnel isolated on a zone, but when I create the iptun the max possible mtu value is 1480 while the forwarding etherstub is 1500, which makes tls handshakes timeout. The workaround I found was to manually set the mtu to 1480 on the VMs connected to this tunnel, but would it be possible to update the max value on the tunnel link
-
Guest14
itself?
-
bahamat
-
bahamat
That's worked reliably for me for over 10 years.
-
Guest14
thanks!
-
bahamat
If you need to explicitly set the MTU (I never needed to) then you'd use `dladm set-linkprop` after `dladm create-iptun` and/or `ipadm set-ifprop` after `ipadm create-if`.
-
bahamat
See the dladm and ipadm man pages for the exact syntax.
-
Guest14
will take a look
-
bahamat
But again, I never needed to, and the MTU on my running system is 1480.
-
bahamat
For both dladm and ipadm
-
bahamat
So you should be fine just using my script.
-
bahamat
Is Hurricane Electric your tunnel broker?
-
Guest14
it is
-
bahamat
OK, yeah, this will work perfectly for you.
-
bahamat
I've used it with HE for forever, and I have production systems using it today.
-
bahamat
-
bahamat
and go through the regular install.
-
Guest14
the issue is that the VMs nics default to 1500, and it basically leads to tls handshake timeout. I had to manually set the mtu to 1480 inside the VMs themselves
-
Guest14
yeah I'll take a look at that thanks again
-
bahamat
You want to enable ipv6-addrconf, which needs no configuration
-
bahamat
I hate web clients.
-
tozhu
hello all, just a simple question, can a VM had the storage space (dataset) from two pool? current the VM storage space comes from zones/<vm_uuid>, is it possible to add one dataset from other pool to a VM? eg: a VM’s storage can be: zones/<vm_uuid> nvme/<vm_uuid> (nvme pool means the disk is nvme disk only), want to do this because want to run use NVMe SSD as the database log, any advice to do that? best wishes
-
_jesse
tozhu, I think there is add_filesystems in vmadm for extra lofs mounts
-
_jesse
not sure if there is one for delegated datasets
-
_jesse
(you can add delegated datasets manually with zonecfg)
-
_jesse
no idea if there is a performance penalty for a lofs compared to delegated dataset
-
tozhu
_jesse: by that way, will it be lost when GZ reboot?
-
_jesse
no
-
_jesse
you just can't manage it with vmadm
-
_jesse
I used to have a zone with 2-3 separate pools attached
-
_jesse
the big gotcha is, when you delete the zone, it will destroy all delegated datasets
-
_jesse
see vmadm how you can make undeletable dataset, it may be a good idea to do that manually to the added datasets
-
_jesse
(basically, you'll need to un-delegate the extra datasets before destroying the zone if you don't want to lose the datasets)
-
_jesse
nowadays I've moved to using lofs mounts instead of delegation, it's easier all around
-
_jesse
(my extra pools are backup/archive pools, so performance is not really an issue for me. But accidentally deleting a dataset with a zone would be ;))
-
bahamat
_jesse: Did you know that SmartOS now supports sharing volumes between zones? Similar to docker's volumes-from feature.
-
_jesse
bahamat, I did not
-
bahamat
-
bahamat
that will create a zone with a volume, then other zones you set the source to the full path just like you normally would.
-
_jesse
where is that volume created? in /zones/<vol_owner>/root?
-
bahamat
It'll be /zones/:zone_uuid/volumes/:vol_uuid, and also mounted at the specified mountpoint within the zone.
-
bahamat
So in my template, it's /vol1, but you can put it anywhere
-
_jesse
that /zones/:zone_uuid/volumes/ was the part I was wondering
-
bahamat
And the "owning" zone doesn't need to even be running
-
bahamat
I like that better than just having random filesystems from the gz
-
_jesse
yeah, placement of the data on GZ has been a headache
-
bahamat
It is also on a separate zfs dataset, but now that I think about it, I've never tried reprovisioning a volume owner zone, so that might not work.
-
bahamat
Not that you really need to at all.
-
_jesse
I assume the volumes are mounted on GZ and lofs mounted to the volume zone and other zones?
-
_jesse
ah, it even says that in the manifest, 'lofs'
-
bahamat
Yeah. The volume is created under the zone root, but it's not delegated to the zone.
-
bahamat
And IIRC, you can do add_filesystems with the source set to `create-volume` and it'll create a new volume in any existing zone.
-
_jesse
...that would have been my next question=)
-
bahamat
It was always intended that we'd add this as another volume type in Triton, but that work got backlogged and we haven't picked it up again yet.
-
_jesse
I would have done the volume on zone level, though
-
_jesse
so instead of /zones/:zone_uuid/volumes/:vol_uuid it data would have been in /zones/:vol_uuid/root
-
_jesse
with no way of starting the zone
-
_jesse
(would have made zone roots also mountable to other zones for buildah-style build-zone-in-a-zone workflows
-
bahamat
Well the feature was already implemented for docker instances, so I just extended it to work with native zones as well.
-
_jesse
ah
-
_jesse
how dare you not re-invent the wheel!
-
_jesse
still no fast mv between zfs datasets, I assume
-
_jesse
will be fun migrating tens of terabytes of data from random dataset in GZ to volumes...
-
bahamat
If they're already in zfs datasets you can just rename them.
-
_jesse
true
-
_jesse
but my todo-list has some 'split this and that datasets to more logical pieces' entries already
-
_jesse
would be nice to have zfs mv dataset1/dir dataset2/
-
_jesse
it's just some reference shuffling in the metadata, afaik=)
-
bahamat
Well, technically yes, but it's not as straightforward as that makes it sound.
-
_jesse
well, there's accounting here and there and edgecases when quota overflow etc=)
-
danmcd
New SmartOS release!
-
danmcd