Comments (15)
@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.
@yuezh Is it normal to take 5 minutes+ to mount the resource disk? you can see the log console.TXT
.
from walinuxagent.
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.
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.
@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.
@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.
@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:
from walinuxagent.
@phstudy thanks, I will try to repro from my side based on your provide info.
from walinuxagent.
@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.
@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.
Also, we will file a bug to Redhat Bugzilla for them to adopt the fix.
from walinuxagent.
@lizzha I will try old version systemd, thanks for your information 😄
from walinuxagent.
@lizzha I found there is no easy to downgrade systemd...
from walinuxagent.
@lizzha is this ok to close now?
from walinuxagent.
As it's not a waagent issue, close it.
from walinuxagent.
Related Issues (20)
- [BUG] DNS issue where deprovisioning sets the hostname to localhost.localdomain HOT 1
- Running collect-logs HOT 2
- Log collection: Memory limit HOT 1
- [BUG] CPU credits drain on B1ls after update to 2.10.0.3 HOT 16
- Issue with extensions when Lib.Dir is modifiend in /etc/waagent.conf HOT 6
- How to disable Azure Portal to automatically install OmsAgentForLinux on my VM? HOT 2
- [BUG] the agent go offline randomly. ERROR ExtHandler ExtHandler Error fetching the goal state in waagent.log HOT 1
- [BUG] WALinuxAgent not updating to latest on Ubuntu HOT 3
- [BUG] VMAccess does not work for FreeBSD HOT 1
- [BUG] Ubuntu versions >= 18.04 checking for dhclient lease files
- [BUG] Flatcar Linux 3602.2.1 Boot Errors HOT 2
- [BUG] udev path mappings for data disks broken in Rocky Linux 9.1 image HOT 2
- [BUG] OpenBSD Deployment Failed HOT 1
- [BUG] Ubuntu22: MonitorHostname does not update iDNS
- [BUG] Ubuntu 2204 & Azure Linux v2: v2.9.1.1 fails to assign IP address for IB interface HOT 1
- [RHEL8] chrony service fails to start at boot on Azure VMs if udev has not finished creating /dev/ptp_hyperv symbolic link HOT 3
- [BUG] AlmaLinux 8 support HOT 7
- whitelist extensions and prevent them from being removed HOT 1
- waagent deplets all available inodes HOT 2
- [BUG] Missing disk operation metrics HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from walinuxagent.