Dumping to a remote host by makedumpfile.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Wed, Jan 10, 2007 at 10:16:02PM +0900, Ken'ichi Ohmichi wrote:
> 
> Hi.
> 
> 2007/01/10 09:59:49 +0530, Vivek Goyal <vgoyal at in.ibm.com> wrote:
> >Still don't understand why do I need -R? I think it comes from that fact
> >that mkdumpfile needs a way to recognize whether input file is vmcore
> >or its that intermediate file generated by mkdumpfile.
> 
> Do you think that makedumpfile should create dumpfile from STDIN without
> any option like the following?
> 
> # makedumpfile dumpfile < dumpfile.tmp
> 
> I want to add the option of representing "create dumpfile from STDIN" clearly.
> I think the following commandline.
> 
> * makedumpfile outputs a dump data of "flattening format (intermediate)" to STDOUT.
>   # makedumpfile [-O | --to-stdout] /proc/vmcore
> 
> * makedumpfile creates a normal dumpfile from STDIN of "flattening format".
>   # makedumpfile [-I | --from-stdin] dumpfile
> 

If you want to create an explicit option for taking input from stdin, then
'-' might be a good choice. tar utility already uses it.

So you should be able to use following.

# makedumpfile -O -cd31 -x vmlinux /proc/vmcore | ssh user at remote "makedumpfile - dumpfile"

or 

cat dumpfile.tmp > makedumpfile - dumpfile

or

makedumpfile - dumpfile < dumpfile.tmp

Thanks
Vivek


[Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Linux Media]     [Linux Resources]

Powered by Linux