| Summary: | kdump - switch_root not necessary? (at least in some situations) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Ondrej Valousek <ondrejv> |
| Component: | kexec-tools | Assignee: | Cong Wang <amwang> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Qian Cai <qcai> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.6 | CC: | cward, czhang, nhorman, qcai, rkhan, ruyang |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-26 13:00:01 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Ondrej Valousek
2011-05-09 07:04:32 UTC
I believe this one needs OtherQA, since we don't have diskless envriments for testing. No problem. But in general, I do not understand why we need switch_root (even in the disk based situations) because you can dump the core even without it - saving yourselves a lot of hassle. Strange, I tested for RHEL-5.7 and RHEL-6.2 with diskless nfsroot, all saving vmcore successfully, also did not see the switch root occur BTW, For create the test machine, I just: 1) install RHEL on kvm guest as VM-a create nfs-initrd for nfs client copy kernel/nfs-initrd to kvm host 2) mount the VM-a image as /dev/loopX nfs export the mount point 3) lunch kvm guest VM-b with VM-a's kernel and nfs-initrd 4) in VM-b add nfs target in kdump.conf start /etc/init.d/kdump crash The problem only arises if you want to store the vmcore on the network (for example a nfs server) - you need something like this in your kdump.conf: net dorado.prague.s3group.com:/exports/ext1/tmp then inird_kdump.img is trying to do switch_root BEFORE actually capturing the core. This is wrong. We should not do switch_root at all. Note that it is obviously a bug because RHEL-6 does not have this problem. (In reply to comment #7) > The problem only arises if you want to store the vmcore on the network (for > example a nfs server) - you need something like this in your kdump.conf: > > net dorado.prague.s3group.com:/exports/ext1/tmp Yes, mine is similar to yours except I use IP address instead of hostname Could you post the console log? > > then inird_kdump.img is trying to do switch_root BEFORE actually capturing the > core. This is wrong. We should not do switch_root at all. > > Note that it is obviously a bug because RHEL-6 does not have this problem. I have updated kexec-tools and I can not replicate the problem, either. Looks like it was fixed in the mean time. You can close the call, sorry for the noise. Ondrej (In reply to comment #9) > I have updated kexec-tools and I can not replicate the problem, either. > Looks like it was fixed in the mean time. > You can close the call, sorry for the noise. No problem, glad to hear that. Thanks for testing, closing it now. |