LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   proc/kcore crashing my linux system (https://www.linuxquestions.org/questions/linux-software-2/proc-kcore-crashing-my-linux-system-355928/)

AZDAVE 08-22-2005 04:31 PM

proc/kcore crashing my linux system
 
I was having a serious problem with my mandriva 10.2 system. I was performing a tar -cvjpPf /dev/st0 / command to back up my entire system. It would get to the proc/kcore and the system would hang and not reboot. I removed my cron job to do the backup and the system is back to stable once again. Problem is I don't have a full backup of my system. I am running kernel version 2.6.11-6mdksmp . Can anybody out there tell me how I can get a full backup of my system? ANy thoughts and suggestions ? Thanks....

Matir 08-22-2005 05:08 PM

Yeah, don't back up /proc, and, if you have it, /sys. Also, if you use udev or devfs, don't back up /dev either. :)

/proc is a pseudo-filesystem which contains no real data. /sys likewise. /proc/kcore is a copy of all your system memory (kernel core).

Try:
Code:

tar -cvjpPf /dev/st0 / --exclude /sys --exclude /proc --exclude /dev

AZDAVE 08-23-2005 09:58 AM

Thanks.. I was going to use the --exclude option but I wanted to ask the question why the system crashes when it gets to that directory. if I omit these directories, how will I be able to do a full system restore without the --excluded directories? just recently upgraded from 9.1 to 10.2 Mandriva and I never had this problem with 9.1. I had to depend on the full system backups in the past and I am worried that I need to again in due time. ANy other thoughts on disaster recovery?

Matir 08-23-2005 12:45 PM

There are no real files in /proc or /sys. These are virtual files to provide access to things. They are created by the kernel as needed. The same goes for /dev on systems with udev or devfs.


All times are GMT -5. The time now is 10:39 PM.