Coder Social home page Coder Social logo

Comments (15)

yuezh avatar yuezh commented on June 12, 2024

@phstudy. The log you attached shows resource disk was mount correctly. If the resource disk is large, it will take some time to mount it.

from walinuxagent.

phstudy avatar phstudy commented on June 12, 2024

@yuezh Is it normal to take 5 minutes+ to mount the resource disk? you can see the log console.TXT.

from walinuxagent.

thomas1206 avatar thomas1206 commented on June 12, 2024

5 minutes+ seems too long. Normally it wouldn't take that long. Does it always happen for your VM? Azure storage has some throttling configuration for each subscription. So if you've too many storage IOs (like formatting resource disk) in a short time, you might hit it.

from walinuxagent.

szarkos avatar szarkos commented on June 12, 2024

I'm assuming the waagent.txt is from your serial boot log, gauging from some of the missing characters and timestamps are a bit off. Can you provide the full log from /var/log/waagent.log?

The first log from console.txt suggests that you resolved the issue by manually restarting the agent service. When this mount issue occurs again can you confirm that waagent is running, and if not can you query journald to ask why and paste the output here?

from walinuxagent.

phstudy avatar phstudy commented on June 12, 2024

@thomas1206 This VM is created for testing this issue only, because I found it happened in two of my VMs. The only thing I do before testing is sudo yum update.

@szarkos Manually restarting waagent does not always work. I have attached the full log.
20160127_console.txt
20160127_waagent.txt

from walinuxagent.

LiliDeng avatar LiliDeng commented on June 12, 2024

@phstudy Hi, could you repro this issue stably? Would you mind telling me the steps for repro?
1 Setup VM against gallery image (CentOS7.1), which size? which location? Is it under ASM (classic) mode?
2 After machine can be accessed, do yum update
3 then check /dev/sdb1 is mounted? reboot many times to double check?
Thanks!

from walinuxagent.

phstudy avatar phstudy commented on June 12, 2024

@LiliDeng Yes, I can repro it stably. The steps were in 20160127_console.txt.

The VM settings:

  • Deploy Tool: Azure quickstart template
  • Mode: ARM
  • Size: Standard_A1
  • Location: Southeast Asia

Azure quickstart template settings:

VM spec:
vm

from walinuxagent.

LiliDeng avatar LiliDeng commented on June 12, 2024

@phstudy thanks, I will try to repro from my side based on your provide info.

from walinuxagent.

lizzha avatar lizzha commented on June 12, 2024

@phstudy we're able to repro this issue, created a CentOS 7.1 VM, do "yum update", and then reboot.
In waagent.log the disk is mounted:
2016/01/27 09:37:15 Resource disk (/dev/sdb1) is mounted at /mnt/resource with fstype ext4

Also found following logs in /var/log/messages
Jan 27 09:37:15 lilicentos71 kernel: sdb: sdb1
Jan 27 09:37:15 lilicentos71 kernel: SGI XFS with ACLs, security attributes, no debug enabled
Jan 27 09:37:15 lilicentos71 kernel: EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
Jan 27 09:37:15 lilicentos71 systemd: Unmounting /mnt/resource...
Jan 27 09:37:15 lilicentos71 systemd: Requested transaction contradicts existing jobs: Resource deadlock avoided
Jan 27 09:37:16 lilicentos71 systemd: Unmounted /mnt/resource.

We could see that the resource disk was mounted at first, but then unmounted by systemd. We need to look into why systemd did that.

from walinuxagent.

lizzha avatar lizzha commented on June 12, 2024

@phstudy Found some discussion of the issue, seems it's issue in systemd-219, and has been resovled in github.
https://bugs.freedesktop.org/show_bug.cgi?id=89383
https://bugs.gentoo.org/show_bug.cgi?id=541402
https://forums.gentoo.org/viewtopic-t-998456-highlight-.html

For now, as a workaround, probably you could try to revert the systemd to an older version.

from walinuxagent.

lizzha avatar lizzha commented on June 12, 2024

Also, we will file a bug to Redhat Bugzilla for them to adopt the fix.

from walinuxagent.

phstudy avatar phstudy commented on June 12, 2024

@lizzha I will try old version systemd, thanks for your information 😄

from walinuxagent.

phstudy avatar phstudy commented on June 12, 2024

@lizzha I found there is no easy to downgrade systemd...

from walinuxagent.

ahmetb avatar ahmetb commented on June 12, 2024

@lizzha is this ok to close now?

from walinuxagent.

lizzha avatar lizzha commented on June 12, 2024

As it's not a waagent issue, close it.

from walinuxagent.

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.