This message was deleted.
# longhorn-storage
a
This message was deleted.
a
Now the RXW volume have some limitations at v1.4.4 https://longhorn.io/docs/1.4.4/volumes-and-nodes/trim-filesystem/#known-issues--limitations You might need to jump into the shared manager pod of the volume to trim the file system.
b
Thank you for your reply.I don't think It is useful. Because the harvester mount a PVC with Block. It's not a file system. I have a try to trim a PVC with file system. It's success. But I can't trim a PVC with Block. Now I want to trim a PVC with Block. How can I trim this volume with some method?
a
Since Harvester gets the raw device from Longhorn and installs the OS on it or attaches it to the VM, I think the only way to trim the filesystem is that jumping into the VM then trim the fs or stop the VM and then detach the volume and attaches it to another node or VM, mount and trim the fs.
b
Thanks!Do you mean to use instance manager to mount the volume to a host? Next. You can trim /dev/longhorn/<volume-name> file?
a
You could just attach the volume to a node directly, and mount the volume on the node and then trim the filesystem.
b
Many thanks! I will have a try and response you.
👍 1
Hello James! I had a try to mount a attached volume on a node. But I got some errors.As follows:
I think the volume had been formatted. So you couldn't mount this volume to a node.
a
Could you show the information by the command
blkid /dev/longhorn/pvc-dd9bac58-e501-49ad-ae4c-dacffebf0847
? Is this volume used as a VM root device?
b
Yes. This volume is VM's root device!
@aloof-hair-13897 I used the command blkid. As follows:
a
It should show the disk and its partitions after you attached the volume to the node. You should mount the partition.
b
You say this:
a
yes, it should be /dev/sdb1
b
Thanks! I have a try.
Sadly!It has the same error. As follows: