ZFS how to mount an existing pool #8488
Replies: 4 comments
-
Talos rootfs is read-only, you can't create a directory there. You can mount under |
Beta Was this translation helpful? Give feedback.
-
okay I used another ubuntu machine to change things like this
Now it works:
I think for production use talos would need some kind of zfs api to interact with all the zfs magic. The normal mount stuff does not apply here.... |
Beta Was this translation helpful? Give feedback.
-
or would you advice to use some root pod with zfs utils to do these changes? |
Beta Was this translation helpful? Give feedback.
-
yes, use a privileged container for these operations |
Beta Was this translation helpful? Give feedback.
-
Has anyboy tried to use an existing zfs volume using talos?
I get errors like this 10.0.30.83: cannot mount '/tank': failed to create mountpoint: Read-only file system
zfs tends to mount volumes at top level which is readonly in talos
I also tried to mount it using the machinedisk config https://www.talos.dev/v1.6/reference/configuration/#machinedisk
which resulted in talos failing to boot completely.
What is the right way to deal with existing zfs disks? In my case these are usb attached drives where it also does not make sense to access them using a device name like /dev/sdx. It is also possible to mount them via some uuid or something like that?
Beta Was this translation helpful? Give feedback.
All reactions