Commit Graph

52 Commits

Author SHA1 Message Date
Dave Young
24eaa7da8f port raw dump from rhel6 [v7]
Resolves: bz805783

kdumpctl: save_raw if found vmcore
mkdumprd: checking available size of raw disk
dracut module: do the dumping

Note, add a dir /kdumpscripts for monitor_dd_progress and future
kdump scripts
[v1->v2]: monitor_dd_process become a script instead of a function
          add missed utils
          use pipe with dc
[v2->v3]: Don: fix dd_progress_file typo
          Vivek: move [ -f $conf_file ] earlier
                 don't split keyfile= and [ -f keyfile ]
                 move default core_collector earlier
                 move non-makedumpfile warnings to mkdumprd
                 make check available size a common function
          Amerigo: use less pipe for grep then awk print
                   use shell (( )) instead of dc
          use cut instead of awk
          no need install dc and awk
          make DD_BLKSIZE a variable
          don't add 0755 file in git, chmod in module-setup.sh
[v3->v4]: vivek: kdumpctl multi raw target handling
          monitor_dd_progress- fix wrong size calculation:
          the tail -1 of dd pregress file is in bytes instead of blocks
          only print the whole dd src file size for non-filtered case
          check [ -b raw target device ] before dump
[v4->v5]: vivek: move check [ -b $1 ] before monitor_dd_progress
          remove multi target function
[v5->v6]: vivek: only warning for raw dump of non-makedumpfile core_collector
[v6->v7]: kdumpctl should return 0 when there's no raw target

Signed-off-by: Dave Young <dyoung@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
2012-05-02 10:06:51 +08:00
Dave Young
ba0aa24316 Add ssh dump support
Add ssh dump support

changes including below items:
1. sshkey option
2. sshkey propagate
3. fix a bug of  _server ip calculation for dump target string
4. change the prefix of kdump hook from 93 to 01 to avoid dhclient and
   other cleanups happening before us
5. enable network with dracut cmdline rd.neednet=1 when there's network
   target config

[v1 - v2]:
Only check_ssh_target when there's ssh dump target in kdump config file

[v2 -> v3]
style fixes: trailing spaces and space before tab indent
remove set -x
simply check_ssh_target
use awk to get sshkey option value
change pivot hook order to 0000

Signed-off-by: Dave Young <dyoung@redhat.com>
2012-02-22 14:12:57 +08:00
Cong Wang
f51fd99344 Really upload the dracut module this time 2012-01-25 17:21:43 +08:00
Cong Wang
c461ec7057 Fix various bugs for nfs dump 2012-01-25 16:58:35 +08:00
Cong Wang
2630148dc7 Handle rootfs correctly 2012-01-25 12:18:51 +08:00
Cong Wang
a0f1142b60 Fix add_dracut_arg in mkdumprd 2012-01-10 22:34:47 +08:00
Cong Wang
113404857a Update kdump dracut module with the latest dracut kdump branch 2012-01-10 13:28:27 +08:00
Cong Wang
2d16a847d4 Use an array to hold arguments to avoid quote problems 2011-12-16 18:06:45 +08:00
wangcong
005c06fa9f Update kdump dracut module to use the latest dracut feature 2011-12-16 14:21:02 +08:00
Amerigo Wang
c5ebc6337d mkdumprd: move module inclusion code to module-setup.sh 2011-08-01 17:19:24 +08:00
Amerigo Wang
108f6ac2cc mkdumprd: use shutdown module of dracut to handle reboot/shutdown/halt. 2011-07-28 22:50:43 +08:00
Amerigo Wang
52dbdacb5f wait for loginit 2011-07-27 20:37:49 +08:00
Amerigo Wang
75b0166343 mkdumprd: don't use consolehelper 2011-07-27 19:45:59 +08:00
Amerigo Wang
1345d1582d mkdumprd: support core_collector and extran_bins 2011-07-25 18:02:37 +08:00
Amerigo Wang
c5f74a28e8 Bypass -d option. 2011-07-21 21:04:09 +08:00
Amerigo Wang
57ae098fd0 Update initramfs code. 2011-07-21 18:51:33 +08:00
Neil Horman
fe18fead61 Resolves: bz 710744 2011-06-06 15:43:54 -04:00
Neil Horman
678b7b882f Fix misuse of basename in mkdumprd
Resolves bz: 683769
2011-03-28 11:08:50 -04:00
Neil Horman
2fb552037c remove emitdms call and code as its no longer needed 2011-03-10 11:04:43 -05:00
Neil Horman
771517d3a8 Resolves: bz 645734 2010-10-22 06:56:33 -04:00
Neil Horman
be84f84fee Resolves: bz 635893 2010-09-22 06:58:35 -04:00
Lubomir Rintel
dc002368a1 Pull EL6 kdump fixes into Rawhide Resolves: 597588 2010-06-13 19:20:48 +00:00
Neil Horman
68d2a8081e Resolves: bz 572569 2010-03-11 16:06:06 +00:00
Neil Horman
66d844ee90 Resolves: bz 566135 2010-02-17 16:49:26 +00:00
Neil Horman
5a44a04f67 Resolves: bz519767 2009-12-01 17:56:44 +00:00
Neil Horman
0376606424 Resolves: bz 505701 2009-06-15 16:58:42 +00:00
Neil Horman
64c7c7b164 Resolves: bz 494416 2009-04-07 13:57:21 +00:00
Neil Horman
94baf10fb4 Resoves: bz 493707 2009-04-03 20:06:29 +00:00
Neil Horman
352a954156 Resolves: bz 469001 2008-10-29 13:37:34 +00:00
Neil Horman
ced35688d2 Resolves: bz 455998 2008-08-27 11:26:34 +00:00
Neil Horman
b4a96a8bbc Resolves: bz 443878) 2008-07-14 14:52:37 +00:00
Neil Horman
51a3406429 Resolves: bz 443878 2008-06-11 10:51:51 +00:00
Neil Horman
558bea7d40 Mass Update of RHEL5 patches 2008-06-05 15:18:53 +00:00
Neil Horman
f178fa14a0 Resolves: bz 443878 2008-04-24 17:09:32 +00:00
Neil Horman
dbc5e5bd2e Bunches of bugfixes from RHEL5 + bz 428684 2008-02-22 12:40:20 +00:00
Neil Horman
79df4118e8 Resolves: bz 433350 2008-02-19 20:01:55 +00:00
Neil Horman
4a8369b55e Resolves: bz 252170 2007-08-22 15:14:11 +00:00
Neil Horman
9611e10df6 Resolves: bz 250341 2007-08-01 17:44:53 +00:00
Neil Horman
7c84ec10fe Resolves: bz248797 2007-07-19 12:33:57 +00:00
Neil Horman
d60d8254be Resolves: bz222911 2007-06-19 11:05:47 +00:00
Neil Horman
42b55e6012 Resolves: bz215056 2007-03-15 17:36:03 +00:00
Neil Horman
88c0ba0f32 Updating kdump.init and mkdumprd to equiv. of -163.el5 2007-01-25 20:13:28 +00:00
Neil Horman
d3c4b95f8a Updating fc7 with all RHEL5 work 2006-12-15 21:05:01 +00:00
Neil Horman
a5a9abd60f updating mkdumprd to use ifup/down in busybox and to use chkconfig properly 2006-09-28 16:16:04 +00:00
Neil Horman
27e9206ed0 final updates for busybox conversion 2006-09-23 01:49:08 +00:00
Neil Horman
31a04fb720 further updates to mkdumprd for scp dumping with busybox 2006-09-22 19:09:02 +00:00
Neil Horman
f9718a1ad6 checking in initial changes to convert kdump to use busybox rather than
nash
2006-09-18 17:59:46 +00:00
Neil Horman
ae7dce0148 updating mkdumprd 2006-08-31 13:23:33 +00:00
Neil Horman
91d1880e3e fixing kcp.c typo and making scp work in mkdumprd 2006-08-30 20:34:16 +00:00
Neil Horman
3060ffe3d7 updating kexec-tools with new kcp utiltiy 2006-08-24 11:55:28 +00:00