Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2011 00:14:45 +0300
From:      Toomas Aas <toomas.aas@raad.tartu.ee>
To:        questions@freebsd.org
Subject:   Crash when copying large files
Message-ID:  <20110913001445.15346yix2qz78j4s@webmail.raad.tartu.ee>

next in thread | raw e-mail | index | archive | help
Hello!

I'm trying to move a filesystem to a new larger RAID volume. The old  
filesystem was using gjournal, and I have also created the new  
filesystem with gjournal. The FS in question holds the DocumentRoot of  
our web server, and in its depths, a couple of fairly large (several  
gigabytes) files are lurking.

I've mounted the new FS under /mnt and use tar to transfer the files:

cd /mnt
tar -c -v -f - -C /docroot . | tar xf -

It seems that these large files cause a problem. Sometimes when the  
process reaches one of these files, the machine reboots. It doesn't  
create a crashdump in /var/crash, which may be because the system has  
less swap (2 GB) than RAM (8 GB). Fortunately the machine comes back  
up OK, except that the target FS (/mnt) is corrupt and needs to be  
fsck'd. I've tried to re-run the process three times now, and caused  
the machine to crash as it reaches one or another large file. Any  
ideas what I should do to avoid the crash?

The OS version is 7.3 (amd64).

-- 
Toomas Aas




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110913001445.15346yix2qz78j4s>