Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144924 Details for
Bug 221641
kdump needs to initially check on whether available size is greater than $memtotal
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
This patch is based on -158.el5 and, can fix this problem.
kexec-tools-1.101-check-available-size.patch (text/plain), 3.25 KB, created by
Akira Imamura
on 2007-01-05 19:52:50 UTC
(
hide
)
Description:
This patch is based on -158.el5 and, can fix this problem.
Filename:
MIME Type:
Creator:
Akira Imamura
Created:
2007-01-05 19:52:50 UTC
Size:
3.25 KB
patch
obsolete
>Index: mkdumprd >=================================================================== >RCS file: /cvs/dist/rpms/kexec-tools/RHEL-5/mkdumprd,v >retrieving revision 1.48 >diff -p -u -r1.48 mkdumprd >--- mkdumprd 4 Jan 2007 22:07:21 -0000 1.48 >+++ mkdumprd 5 Jan 2007 17:59:24 -0000 >@@ -1462,7 +1462,12 @@ if [ -n "$KDUMP_CONFIG_FILE" ]; then > #test raw partition > kdump_chk "dd if=$location count=1 of=/dev/null > /dev/null 2>&1" \ > "Bad raw partition $location" >- #TODO check for available size is greater than $memtotal >+ #check for available size is greater than $memtotal >+ available_size=$(fdisk -s $location) >+ if [ $available_size -lt $memtotal ]; then >+ echo "Warning: There is not space enough to save a vmcore." >+ echo " The size of $location should be much greater than $memtotal bytes." >+ fi > > #setup raw case > emit "echo Saving to partition $location" >@@ -1529,6 +1534,7 @@ if [ -n "$KDUMP_CONFIG_FILE" ]; then > "Bad NFS mount $location" > mkdir -p $tmnt/$SAVE_PATH > tdir=`mktemp -dqp $tmnt/$SAVE_PATH` >+ available_size=$(df $tdir | tail -1 | tr -s ' ' ':' | cut -d: -f4) > > rc=$? && rm -rf $tdir > umount $tmnt >@@ -1546,7 +1552,11 @@ if [ -n "$KDUMP_CONFIG_FILE" ]; then > CORE_COLLECTOR="cp" > fi > >- #TODO check for available size is greater than $memtotal >+ #check for available size is greater than $memtotal >+ if [ $available_size -lt $memtotal ]; then >+ echo "Warning: There is not space enough to save a vmcore." >+ echo " The size of $location should be much greater than $memtotal bytes." >+ fi > > #setup nfs case > mkdir -p $MNTIMAGE/mnt >@@ -1609,12 +1619,18 @@ if [ -n "$KDUMP_CONFIG_FILE" ]; then > kdump_chk "mount -t $type $location /mnt" "Bad mount point $location" > mkdir -p /mnt/$SAVE_PATH > tdir=`mktemp -dqp /mnt/$SAVE_PATH` >+ available_size=$(df $tdir | tail -1 | tr -s ' ' ':' | cut -d: -f4) > rc=$? && rm -rf $tdir && umount /mnt > if [ $rc != "0" ]; then > echo "Cannot create directory in $location: $SAVE_PATH" > exit 1 > fi >- #TODO check for available size is greater than $memtotal >+ #check for available size is greater than $memtotal >+ if [ $available_size -lt $memtotal ]; then >+ echo "Warning: There is not space enough to save a vmcore." >+ echo " The size of $location should be much greater than $memtotal bytes." >+ fi >+ > > #setup filesystem case > mkdir -p $MNTIMAGE/mnt
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221641
: 144924 |
144931