Giter Club home page Giter Club logo

Comments (10)

olljanat avatar olljanat commented on August 11, 2024 2

Mounting a nfs volume is something a lot of users struggled with in Rancheros, including myself.
Finally i found a solution that I would like to share.

WAIT until the network is up during the initiation phase.

Thanks this was useful tip. I guess that we can include some wait network logic to volume-nfs container https://github.com/burmilla/os-services/blob/v1.9.0/images/20-volumenetshare/Dockerfile

from os.

olljanat avatar olljanat commented on August 11, 2024 2

Will nfs-common be included in default BurmillaOS console?

Good question. Based on https://packages.debian.org/buster/nfs-common it looks to be quite small and there is already couple of persons who need it so maybe it would be easiest include lt as part of next update.

from os.

poxin13 avatar poxin13 commented on August 11, 2024

I installed nfs-common on the console and seemed to work after that. Was able to mount manually and via mounts in cloud config.

from os.

olljanat avatar olljanat commented on August 11, 2024

Hmm. We should not require install to console. Will reopen and investigate this later.

from os.

olljanat avatar olljanat commented on August 11, 2024

Looks that we need also update documentation. Purpose of volume-nfs service (and volume-cifs) is provide NFS/CIFS support for containers with https://github.com/ContainX/docker-volume-netshare

Mounts to console needs nfs-common / cifs-utils to be installed to console.

from os.

msn62 avatar msn62 commented on August 11, 2024

Mounting a nfs volume is something a lot of users struggled with in Rancheros, including myself.
Finally i found a solution that I would like to share.

WAIT until the network is up during the initiation phase.

This can be accomplished in two ways by editing the file: /var/lib/rancher/conf/cloud-config.d

rancher:
#do a dummy call to a datasource to initiate the network
cloud_init:
datasources:
- url:http://somefile
#or wait until dhcp lease is done
network:
interfaces:
eth1:
dhcp_timeout: 0
dhcp: true
#enable nfs service in systemdocker
service_include:
volume-nfs: true

Both options, initiating the network by a dummy call or wait until a dhcp address is assigned (dhcp_timeout: 0) worked in my case.

Hope this helps somebody. Iam quite a Linux noob btw.

from os.

alesnav avatar alesnav commented on August 11, 2024

After upgrading from RancherOS console version to BurmillaOS console version (that was my fault when I did the upgrade...) I cannot longer use NFS mount on nodes.

I see this comment at the beggining, but I don't know how to install nfs-common package, can you explain that?

I installed nfs-common on the console and seemed to work after that. Was able to mount manually and via mounts in cloud config.

Thanks!!

EDIT: Ok, it's so simple... It's enough to perform an apt-get update && apt-get install nfs-common. Will nfs-common be included in default BurmillaOS console?

from os.

alesnav avatar alesnav commented on August 11, 2024

It requires some other dependencies and I saw a 26,2 MB installation space in total, so it is not as small as it looks like, but I vote for its addition anyway.

from os.

priceaj avatar priceaj commented on August 11, 2024

I've just had the same issue, migrated from RancherOS yesterday (as the existing RancherOS docker version didn't support Ubuntu Jammy images as per https://docs.linuxserver.io/faq#jammy ). The upgrade was seamless btw so thanks for that!!

NFS mounts seemed to work fine until I reset the default console via

sudo ros console switch default

as per everyone else the way I had previously gotten NFS to work on RancherOS was as follows in my config:

mounts:
- - nasbox.local:/Folder
  - /NAS
  - nfs4
  - ""

services_include:
    volume-nfs: true

Worked around as above by Installing nfs-common via

EDIT: Ok, it's so simple... It's enough to perform an apt-get update && apt-get install nfs-common. Will nfs-common be included in default BurmillaOS console?

I assume that this will need to be done every-time the console is reset (i.e. every upgrade)?

from os.

olljanat avatar olljanat commented on August 11, 2024

I assume that this will need to be done every-time the console is reset (i.e. every upgrade)?

Yes if you do console reset as part of upgrade. However it does not happen automatically (like discussed #150 ) so you can choose just updating packages with apt-get update+upgrade like on any Debian based distro.

Or automate that package installation https://burmillaos.org/docs/configuration/advanced/running-commands/ and use reset option.

from os.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.