Bug 19848 - dumpon(8) needs to be updated [patch included]
Summary: dumpon(8) needs to be updated [patch included]
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: ben
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-07-11 11:00 UTC by ue
Modified: 2000-07-14 19:10 UTC (History)
0 users

See Also:


Attachments
file.diff (1.13 KB, patch)
2000-07-11 11:00 UTC, ue
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ue 2000-07-11 11:00:02 UTC
The bugs section of dumpon(8) states:

     Dumpon currently allows only devices with minor number 1 to be used as
     dump devices.

This is obviously no longer true. Various messages on the mailing lists
show that people have been dumping to /dev/da0s1b (minor 0x20001) with
good effect. 

The bugs section does not mention that setting DUMPDEV in rc.conf causes
dumpon to be called during the transition from single-user to multi-user.
This means that it's close to impossible to capture dumps caused by
problem during boot. There was a discussion on -current about this
problem in March 2000 (see revision 1.12 of this file). The problem
has not been resolved yet (AFAIK), so bugs should warn about it.

Additionally, a part of the notes section should be changed.

Old version:
One of the system swap devices is usually chosen as the dump device, as
swap devices are the most likely to have the required space at dump time.

New version:
One of the system swap devices should be used as the dump device.  Devices
used for regular filesystems will probably lack sufficent space to store the    
dump.

[And that's the polite version - I was tempted to write to something
to the effect of "using anything but a swap device is suicidal"]

Fix: The patch implements the changes outlined above. The changes should be
MFCed to RELENG_4 before 4.1-RELEASE.
How-To-Repeat: 
man 8 dumpon 
dumpon /dev/any-swap-device
put DUMPEV=above-device in rc.conf
panic the system, reboot 
=> core is saved in /var/crash
Comment 1 ben freebsd_committer freebsd_triage 2000-07-13 13:16:05 UTC
Responsible Changed
From-To: freebsd-doc->ben

I'll commit this tonight.
Comment 2 ben freebsd_committer freebsd_triage 2000-07-14 18:59:41 UTC
State Changed
From-To: open->closed

Committed in -current and 4-stable, thanks!