system() call causes core dump

2009-10-31 Thread Peter Steele
I have an application running a number of threads. I've had recent instances where the code below is causing a core dump to occur: char fstatCmd[200]; char *fstatOut = /tmp/fstat.out; sprintf(fstatCmd, fstat | grep -v USER | wc -l %s, fstatOut); rc = system(fstatCmd); The call is simply

Re: system() call causes core dump

2009-10-31 Thread Kris Kennaway
Peter Steele wrote: I have an application running a number of threads. I've had recent instances where the code below is causing a core dump to occur: char fstatCmd[200]; char *fstatOut = /tmp/fstat.out; sprintf(fstatCmd, fstat | grep -v USER | wc -l %s, fstatOut); rc = system(fstatCmd

RE: system() call causes core dump

2009-10-31 Thread Peter Steele
In UNIX it is not safe to perform arbitrary actions after forking a multi-threaded process. You're basically expected to call exec soon after the fork, although you can do certain other work if you are very careful. The reason for this is that after the fork, only one thread will be running in

Re: clone-dump-restore

2009-10-15 Thread Jerry McAllister
On Wed, Oct 14, 2009 at 09:29:42PM -0400, PJ wrote: I believe that my problems arise out of subliminal refuse syndrome: the brain refuses to comprehend dump and restore TOs and FROMs. In other words, I'm beginning to see that dump -0af TO ( - or device/file) FROM (device or directory/file

how to prepare disk for dump/restore

2009-10-15 Thread PJ
? Sysinstall requires already being booted... ??? Or do I do it manually as per Polytropon's recipe of fdisk, bsdlabel, newfs mount, dump/restore and use/play? ;-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Re: how to prepare disk for dump/restore

2009-10-15 Thread Polytropon
process. Sysinstall requires already being booted... ??? No. You can execute it even on a running system. Or do I do it manually as per Polytropon's recipe of fdisk, bsdlabel, newfs mount, dump/restore and use/play? ;-) This method is quite usable when you completely understood what

Re: how to prepare disk for dump/restore

2009-10-15 Thread Tobias Rehbein
Am Thu, Oct 15, 2009 at 09:17:43PM +0200 schrieb Polytropon: On Thu, 15 Oct 2009 14:59:51 -0400, PJ af.gour...@videotron.ca wrote: You can use sysinstall from the Fixit CD, too. That's the way I'm mostly doing this kind of thing: Preparing the disk with the sysinstall tool, then dropping to

Re: how to prepare disk for dump/restore

2009-10-15 Thread Polytropon
On Thu, 15 Oct 2009 21:31:20 +0200, Tobias Rehbein tobias.rehb...@web.de wrote: If all you want to do is to prepare the disks you can leave sysinstall alone and use sade(8). Very good advice! Sadly, it makes me feel that all my knowledge is very outdated because sade didn't come into my mind

Re: how to prepare disk for dump/restore

2009-10-15 Thread PJ
with the sysinstall tool, then dropping to CLI for the restoring process. Sysinstall requires already being booted... ??? No. You can execute it even on a running system. That's what I meant. :-) Or do I do it manually as per Polytropon's recipe of fdisk, bsdlabel, newfs mount, dump

Re: how to prepare disk for dump/restore

2009-10-15 Thread PJ
Tobias Rehbein wrote: Am Thu, Oct 15, 2009 at 09:17:43PM +0200 schrieb Polytropon: On Thu, 15 Oct 2009 14:59:51 -0400, PJ af.gour...@videotron.ca wrote: You can use sysinstall from the Fixit CD, too. That's the way I'm mostly doing this kind of thing: Preparing the disk with the

clone-dump-restore

2009-10-14 Thread PJ
with all the proggies configurations the way I want them, I tried (notice - tried) to clone the system. Here's the setup: FBSD 7.2 on ad4 and same on ad12. First, running on ad4, I tried to dump restore each partition directly: ad12s1a to da0s1a (usb sata disk). No go. I had set it up originally

Re: clone-dump-restore

2009-10-14 Thread Polytropon
, running on ad4, I tried to dump restore each partition directly: ad12s1a to da0s1a (usb sata disk). No go. It would be good to see the command that you issued to do so, including the currend working directory. I had set it up originally with livefs, minimal; then redid it all with fdisk

Re: clone-dump-restore

2009-10-14 Thread PJ
I believe that my problems arise out of subliminal refuse syndrome: the brain refuses to comprehend dump and restore TOs and FROMs. In other words, I'm beginning to see that dump -0af TO ( - or device/file) FROM (device or directory/file) and restore -rf (TO curr.dir FROM device or file

Re: clone-dump-restore

2009-10-14 Thread Polytropon
On Wed, 14 Oct 2009 21:29:42 -0400, PJ af.gour...@videotron.ca wrote: I believe that my problems arise out of subliminal refuse syndrome: the brain refuses to comprehend dump and restore TOs and FROMs. In other words, I'm beginning to see that dump -0af TO ( - or device/file) FROM (device

STOP state in top + segmentation fault and core dump?

2009-10-08 Thread Pierre-Luc Drouin
Hi, When I run many heavily multi-threaded (1000+ threads/process) and memory intensive (1800 MB+/process) processes on FreeBSD 8.0 amd64, some of them get in STOP state in top and then seg fault and core dump. Are stop states in top caused by seg faults or it is the OS that stops

Re: Apache20 port on FreeBSD 7.2 does a core dump

2009-10-04 Thread Aflatoon Aflatooni
a dump in the php.core file and not apache.core. How do I inspect the core file to find out which module caused it? Thanks Have you any special php5 modules loaded. I had a problem with I want to recall three or more extensions that would cause apache2X to dump core

Apache20 port on FreeBSD 7.2 does a core dump

2009-10-03 Thread Aflatoon Aflatooni
Hi, I am getting a lot of core dumps and Apache20 freezing. I have installed the porting using the following make: make WITHOUT_MODULES=ssl status speling imap auth_dbm auth_digest dav dav_fs cern_meta cgi include install any suggestions as to how I might find out what is causing the problem

Re: Apache20 port on FreeBSD 7.2 does a core dump

2009-10-03 Thread Lowell Gilbert
Aflatoon Aflatooni aaflato...@yahoo.com writes: I am getting a lot of core dumps and Apache20 freezing. I have installed the porting using the following make: make WITHOUT_MODULES=ssl status speling imap auth_dbm auth_digest dav dav_fs cern_meta cgi include install any suggestions as to

Re: Apache20 port on FreeBSD 7.2 does a core dump

2009-10-03 Thread Aflatoon Aflatooni
dumps. This is a production box and it would be hard to have debugger turned on. I don't know if it would be helpful, but PHP is also really slow on this machine. I know that PHP would cause a dump in the php.core file and not apache.core. How do I inspect the core file to find out which module

Re: Apache20 port on FreeBSD 7.2 does a core dump

2009-10-03 Thread jhell
still getting the core dumps. This is a production box and it would be hard to have debugger turned on. I don't know if it would be helpful, but PHP is also really slow on this machine. I know that PHP would cause a dump in the php.core file and not apache.core. How do I inspect the core file

Re: Apache20 port on FreeBSD 7.2 does a core dump

2009-10-03 Thread Aflatoon Aflatooni
removed them because I don't need them and I am still getting the core dumps. This is a production box and it would be hard to have debugger turned on. I don't know if it would be helpful, but PHP is also really slow on this machine. I know that PHP would cause a dump in the php.core file

Re: Re: Dump/Restore?

2009-09-14 Thread utisoft
On 14 Sep 2009 02:50, Chris Maness ch...@chrismaness.com wrote: On Sun, Sep 13, 2009 at 6:15 PM, Chris Maness ch...@chrismaness.com wrote: I level 0 dump of my server. I lost a file that I need back. Is it possible to use restore like tar and explode it into a directory instead

Re: Dump/Restore?

2009-09-14 Thread Chris Maness
utis...@googlemail.com wrote: On 14 Sep 2009 02:50, Chris Maness ch...@chrismaness.com wrote: On Sun, Sep 13, 2009 at 6:15 PM, Chris Maness ch...@chrismaness.com wrote: I level 0 dump of my server. I lost a file that I need back. Is it possible to use restore like tar and explode

Re: Dump/Restore?

2009-09-14 Thread Richard Mahlerwein
--- On Sun, 9/13/09, Chris Maness ch...@chrismaness.com wrote: From: Chris Maness ch...@chrismaness.com Subject: Re: Dump/Restore? To: freebsd-questions@freebsd.org Date: Sunday, September 13, 2009, 9:50 PM On Sun, Sep 13, 2009 at 6:15 PM, Chris Maness ch...@chrismaness.com wrote: I level

Re: Dump/Restore?

2009-09-14 Thread Chris Rees
2009/9/14 Chris Maness ch...@chrismaness.com: utis...@googlemail.com wrote: On 14 Sep 2009 02:50, Chris Maness ch...@chrismaness.com wrote: On Sun, Sep 13, 2009 at 6:15 PM, Chris Maness ch...@chrismaness.com wrote: I level 0 dump of my server.  I lost a file that I need back

Re: Dump/Restore?

2009-09-14 Thread Jerry McAllister
On Sun, Sep 13, 2009 at 06:15:55PM -0700, Chris Maness wrote: I level 0 dump of my server. I lost a file that I need back. Is it possible to use restore like tar and explode it into a directory instead of a pristine partition/mount? Or even better, is it possible to just extract a single

Re: Dump/Restore?

2009-09-14 Thread Jerry McAllister
On Sun, Sep 13, 2009 at 06:50:05PM -0700, Chris Maness wrote: On Sun, Sep 13, 2009 at 6:15 PM, Chris Maness ch...@chrismaness.com wrote: I level 0 dump of my server.  I lost a file that I need back.  Is it possible to use restore like tar and explode it into a directory instead

Re: Dump/Restore?

2009-09-14 Thread Polytropon
On Mon, 14 Sep 2009 05:45:01 -0700 (PDT), Richard Mahlerwein mahle...@yahoo.com wrote: In the restore : prompt you can add filename to add it to the restore list.  Works with folders, too. Excuse me, just a little terminology note:

Re: Dump/Restore?

2009-09-14 Thread Richard Mahlerwein
--- On Mon, 9/14/09, Polytropon free...@edvax.de wrote: From: Polytropon free...@edvax.de Subject: Re: Dump/Restore? To: mahle...@yahoo.com Cc: freebsd-questions@freebsd.org, Chris Maness ch...@chrismaness.com Date: Monday, September 14, 2009, 4:37 PM On Mon, 14 Sep 2009 05:45:01 -0700 (PDT

Re: Re: Dump/Restore?

2009-09-14 Thread utisoft
On 14 Sep 2009 22:38, Richard Mahlerwein mahle...@yahoo.com wrote: --- On Mon, 9/14/09, Polytropon free...@edvax.de wrote: From: Polytropon free...@edvax.de Subject: Re: Dump/Restore? To: mahle...@yahoo.com Cc: freebsd-questions@freebsd.org, Chris Maness ch...@chrismaness.com

Re: Dump/Restore?

2009-09-14 Thread Polytropon
On Mon, 14 Sep 2009 22:02:49 +, utis...@googlemail.com wrote: Yeah, unfortunately I still think of 'folders', and am continually wrong-footed by the term 'directory' in a graphical environment, even after years of GNU and FreeBSD use. Just imagine if the Xerox Alto and its first

Re: Re: Dump/Restore?

2009-09-14 Thread utisoft
On 14 Sep 2009 23:14, Polytropon free...@edvax.de wrote: On Mon, 14 Sep 2009 22:02:49 +, utis...@googlemail.com wrote: Yeah, unfortunately I still think of 'folders', and am continually wrong-footed by the term 'directory' in a graphical environment, even after years of GNU and

Dump/Restore?

2009-09-13 Thread Chris Maness
I level 0 dump of my server. I lost a file that I need back. Is it possible to use restore like tar and explode it into a directory instead of a pristine partition/mount? Or even better, is it possible to just extract a single file without exploding the whole tape dump? Sorry if the question

Re: Dump/Restore?

2009-09-13 Thread Chris Maness
On Sun, Sep 13, 2009 at 6:15 PM, Chris Maness ch...@chrismaness.com wrote: I level 0 dump of my server.  I lost a file that I need back.  Is it possible to use restore like tar and explode it into a directory instead of a pristine partition/mount?  Or even better, is it possible to just

Crash dump freebsd 7.2

2009-08-22 Thread Zetinja Tresor
I have several jails running on my freebesd machine and lately it started to crash when it gets a bit loaded. I followed the freebsd kernel debugging manual, and got some output, but I have no idea what to do with it. The only thing I think I understand of it that the bit that matters are just the

Re: fsck and dump freeze freebsd. any ideas?

2009-07-29 Thread DA Forsyth
out of the startup check for now. I 'think' I was installing a port during the last crash, but it has been a while. I performed a fsck and a dump (to /dev/null) confirming that both do crash the freebsd 7.2 and 6.2 (which I booted off of a separate drive). A tar to /dev/null did run

fsck and dump freeze freebsd. any ideas?

2009-07-29 Thread Edward Sanford Sutton, III
it would let me create and have since deleted the file; maybe that was what the reference was to. After fixing some errors, the fsck still causes a freeze and at what seems to be about the same point. The filesystem was unmounted for the dump and fsck has been attempted both mounted

fsck and dump freeze freebsd. any ideas?

2009-07-28 Thread Edward Sanford Sutton, III
. I performed a fsck and a dump (to /dev/null) confirming that both do crash the freebsd 7.2 and 6.2 (which I booted off of a separate drive). A tar to /dev/null did run successfully, but I recall reading that that is not a recommended way to backup/move a filesystem. The /usr partition where

Re: fsck and dump freeze freebsd. any ideas?

2009-07-28 Thread Polytropon
On Tue, 28 Jul 2009 14:07:13 -0700, Edward Sanford Sutton, III mirror...@cox.net wrote: As a final question, is there any safe way to crash freebsd (or pull system power) without a risk of filesystem corruption? An easy way is to go into single user mode and umount all the partitions, then

Re: fsck and dump freeze freebsd. any ideas?

2009-07-28 Thread Adam Vande More
On Tue, Jul 28, 2009 at 4:16 PM, Polytropon free...@edvax.de wrote: On Tue, 28 Jul 2009 14:07:13 -0700, Edward Sanford Sutton, III mirror...@cox.net wrote: As a final question, is there any safe way to crash freebsd (or pull system power) without a risk of filesystem corruption? An

Re: 8.0 and GPT_PART and core-dump

2009-07-17 Thread Paul B. Mahol
On 7/16/09, Patrick Lamaiziere patf...@davenulle.org wrote: Hello, With 8.0, FreeBSD see my disk with several parts instead slices. That works fine but the kernel is not able to core dump to my swap (ad4p3a) and I can't break into the debuger (laptop with an usb keyboard). For first one

Re: 8.0 and GPT_PART and core-dump

2009-07-17 Thread Patrick Lamaiziere
Le Fri, 17 Jul 2009 09:30:25 +0200, Paul B. Mahol one...@gmail.com a écrit : With 8.0, FreeBSD see my disk with several parts instead slices. That works fine but the kernel is not able to core dump to my swap (ad4p3a) and I can't break into the debuger (laptop with an usb keyboard

Re: 8.0 and GPT_PART and core-dump

2009-07-17 Thread Ivan Voras
Patrick Lamaiziere wrote: Le Fri, 17 Jul 2009 09:30:25 +0200, Paul B. Mahol one...@gmail.com a écrit : With 8.0, FreeBSD see my disk with several parts instead slices. That works fine but the kernel is not able to core dump to my swap (ad4p3a) and I can't break into the debuger (laptop

Re: 8.0 and GPT_PART and core-dump

2009-07-17 Thread Patrick Lamaiziere
Le Fri, 17 Jul 2009 12:27:32 +0200, Ivan Voras ivo...@freebsd.org a écrit : When the kernel attempts a dump on the device, do you perhaps see a message like partition type unsupported?. Yes at boot-time : GEOM_PART: Partition 'ad4p3' not suitable for kernel dumps (wrong type?) One thing

8.0 and GPT_PART and core-dump

2009-07-16 Thread Patrick Lamaiziere
Hello, With 8.0, FreeBSD see my disk with several parts instead slices. That works fine but the kernel is not able to core dump to my swap (ad4p3a) and I can't break into the debuger (laptop with an usb keyboard). So I would like to revert to slices like with FreeBSD 7.2? Thanks, regards. baby

Re: dump hangs on 7.1

2009-07-12 Thread Mel Flynn
cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 /sbin/dump -0uanL -f - / | ssh dump_ima...@xxx.net dd of=/var/ftp/dump_images/mx1-root-test dump has completed only once. Several other dumps have all gotten under way, target file is created and increases until the hang. CTRL-C gets back

Re: dump hangs on 7.1

2009-07-12 Thread Len Conrad
: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 /sbin/dump -0uanL -f - / | ssh dump_ima...@xxx.net dd of=/var/ftp/dump_images/mx1-root-test dump has completed only once. Several other dumps have all gotten under way, target file is created and increases until the hang. CTRL-C gets back

Re: dump hangs on 7.1

2009-07-12 Thread Mel Flynn
: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 /sbin/dump -0uanL -f - / | ssh dump_ima...@xxx.net dd of=/var/ftp/dump_images/mx1-root-test dump has completed only once. Several other dumps have all gotten under way

Re: dump hangs on 7.1

2009-07-12 Thread Len Conrad
/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 /sbin/dump -0uanL -f - / | ssh dump_ima...@xxx.net dd of=/var/ftp/dump_images/mx1-root-test dump has completed only once. Several other

Re: dump hangs on 7.1

2009-07-12 Thread Mel Flynn
= 3405537280 (3247 MB) ACPI APIC Table: DELL PE_SC3 FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 /sbin/dump -0uanL -f - / | ssh dump_ima...@xxx.net dd of=/var/ftp

Re: dump hangs on 7.1

2009-07-11 Thread Len Conrad
cpu3 (AP): APIC ID: 3 /sbin/dump -0uanL -f - / | ssh dump_ima...@xxx.net dd of=/var/ftp/dump_images/mx1-root-test dump has completed only once. Several other dumps have all gotten under way, target file is created and increases until the hang. CTRL-C gets back to shell,eg: DUMP: Date

dump hangs on 7.1

2009-07-10 Thread Len Conrad
/dump -0uanL -f - / | ssh dump_ima...@xxx.net dd of=/var/ftp/dump_images/mx1-root-test dump has completed only once. Several other dumps have all gotten under way, target file is created and increases until the hang. CTRL-C gets back to shell,eg: DUMP: Date of this level 0 dump: Fri Jul 10 10

Transferring dump files ASCII or BINARY

2009-07-02 Thread Grant Peel
Hi all, I am attempting to restore a root filesystem I donwloaded this morning. I downloaded it in binary mode, and when I try to restore -rf /usbstick/root.dump I am getting: Tape is not a dump tape Should dumps be transfered in BINARY or ASCII mode? Any other insights welcome. Also

Re: Transferring dump files ASCII or BINARY

2009-07-02 Thread Wojciech Puchar
I downloaded it in binary mode, and when I try t that's right. restore -rf /usbstick/root.dump I am getting: Tape is not a dump tape Should dumps be transfered in BINARY or ASCII mode? binary. Any other insights welcome. there is other problem somewhere else. Also, should I remove

restoring a dump file across the network

2009-06-30 Thread Dave
Hello, I've got a dumpfile taken of one machine and placed on another. Now i want to push it to a third, i was wondering if this were doable? Machine 3 does not have dump/restore on it can't get it, so needs to have it sent over an encrypted ssh connection. Suggestions welcome. Thanks

Re: restoring a dump file across the network

2009-06-30 Thread Tim Judd
was wondering if this were doable? Machine 3 does not have dump/restore on it can't get it, so needs to have it sent over an encrypted ssh connection. Suggestions welcome. Thanks. Dave. ___ freebsd-questions@freebsd.org mailing list http

Re: restoring a dump file across the network

2009-06-30 Thread Don Read
On Tue, 30 Jun 2009 17:15:26 -0400 Dave said: Hello, I've got a dumpfile taken of one machine and placed on another. Now i want to push it to a third, i was wondering if this were doable? Machine 3 does not have dump/restore on it can't get it, so needs to have it sent over

Re: restoring a dump file across the network

2009-06-30 Thread Doug Poland
On Tue, Jun 30, 2009 at 03:40:07PM -0600, Tim Judd wrote: On 6/30/09, Dave dave.meh...@gmail.com wrote: Hello, I've got a dumpfile taken of one machine and placed on another. Now i want to push it to a third, i was wondering if this were doable? Machine 3 does not have dump/restore

Re: dump through ssh problem

2009-05-27 Thread Matiss
Allright, false alarm.. should've just tried to enter the password and not look at the messages, lol cheers, Matt Quoting Matiss : Hey there, Here's a command that I use dump -0aunL -f - / | gzip -2 | ssh -p 182 m...@192.168.0.1 dd of=/home/matt/usb_hdd/mail.err.lv/dump.root.l0.gz problem

dump through ssh problem

2009-05-27 Thread Matiss
Hey there, Here's a command that I use dump -0aunL -f - / | gzip -2 | ssh -p 182 m...@192.168.0.1 dd of=/home/matt/usb_hdd/mail.err.lv/dump.root.l0.gz problem is, when ssh asks for password, it is fed a piped output from previous commands, not allowing me to enter a password for connection. What

Re: dump through ssh problem

2009-05-27 Thread Chris Rees
2009/5/27 Matiss m...@inbox.lv: Allright, false alarm.. should've just tried to enter the password and not look at the messages, lol cheers, Matt  Quoting Matiss : Hey there,  Here's a command that I use  dump -0aunL -f - / | gzip -2 | ssh -p 182 m...@192.168.0.1 dd of=/home/matt/usb_hdd

RE: Dump snapshot issue...

2009-05-07 Thread Marc Coyles
Is /home really a separate file system on your system? Or is it just a directory in another filesystem? df -h output: Filesystem SizeUsed Avail Capacity Mounted on /dev/da0s1a3.9G351M3.2G10%/ devfs 1.0K1.0K 0B 100%/dev /dev/da0s1g 98G

RE: Dump snapshot issue...

2009-05-06 Thread Marc Coyles
One thing you should try is to remove the dump_snapshot files, because they are supposed to be unlinked when the dump starts anyway, so they shouldn't be sticking around. Also, look for file flags on the directories, or ACLs, etc. And consider the permissions you're running dump

Re: Dump snapshot issue...

2009-05-06 Thread Jerry McAllister
On Wed, May 06, 2009 at 10:01:36AM +0100, Marc Coyles wrote: One thing you should try is to remove the dump_snapshot files, because they are supposed to be unlinked when the dump starts anyway, so they shouldn't be sticking around. Also, look for file flags on the directories

Dump snapshot issue...

2009-05-05 Thread Marc Coyles
I've got a script that dumps various filesystems to tape for me, but I've always had an issue whenever I've used the -L option... see below: /usr/bin/mt rewind /sbin/dump 0aLuf /dev/sa0 / dump: Cannot create //.snap/dump_snapshot: No such file or directory /sbin/dump 0aLuf /dev/sa0 /home

Re: Dump snapshot issue...

2009-05-05 Thread Andrew Wright
On Tue, 5 May 2009, Marc Coyles wrote: I've got a script that dumps various filesystems to tape for me, but I've always had an issue whenever I've used the -L option... see below: /usr/bin/mt rewind /sbin/dump 0aLuf /dev/sa0 / dump: Cannot create //.snap/dump_snapshot: No such file

RE: Dump snapshot issue...

2009-05-05 Thread Marc Coyles
You probably have not created the .snap directory in the root of the filesystem. Like I said... The .snap folders exist at all points, are set to root:operator, with perms 770... The dump_snapshot files seem to be present, albeit 0 bytes, root:operator, perms 400... Marc

Re: Dump snapshot issue...

2009-05-05 Thread Lowell Gilbert
Marc Coyles mcoy...@horbury.wakefield.sch.uk writes: I've got a script that dumps various filesystems to tape for me, but I've always had an issue whenever I've used the -L option... see below: /usr/bin/mt rewind /sbin/dump 0aLuf /dev/sa0 / dump: Cannot create //.snap/dump_snapshot

Dump | Restore

2009-04-20 Thread Daniels Vanags
Unable to successfully dump | restore over ssh. Source machine FreeBSD 6.2, disk /dev/mirror/gm0s1a, target machine FreeBSD 6.2, target disk /dev/ad1s1a mounted on /mnt. Run dump -0aLf - / | ssh ip_address ''cd /mnt/ cat | restore - rf -'', dump/restore goes without any errors

Re: Dump | Restore

2009-04-20 Thread Wojciech Puchar
target machine FreeBSD 6.2, target disk /dev/ad1s1a mounted on /mnt. Run dump -0aLf - / | ssh ip_address ''cd /mnt/ cat | restore - rf -'', dump/restore goes without any errors. 1 total nonsense: cat|restore instead of restore 2 probably nonsense: use rsh not ssh unless you really need

Re: Dump | Restore

2009-04-20 Thread Odhiambo ワシントン州
On Mon, Apr 20, 2009 at 1:31 PM, Daniels Vanags daniels.van...@smpbank.lvwrote: Unable to successfully dump | restore over ssh. Source machine FreeBSD 6.2, disk /dev/mirror/gm0s1a, target machine FreeBSD 6.2, target disk /dev/ad1s1a mounted on /mnt. Run dump -0aLf - / | ssh ip_address

Re: Dump | Restore

2009-04-20 Thread cpghost
(at layer 2) wireless LAN connection could still hijack the password, log into the backup host, and delete or corrupt the (encrypted) dump files. Perhaps it's better to use ssh anyway, even for encrypted and signed dump files. Creating and transfering a couple of key files to the clients and backup host

Re: Dump | Restore

2009-04-20 Thread Mel Flynn
... And even then, anyone sniffing that poorly encrypted (at layer 2) wireless LAN connection could still hijack the password, log into the backup host, and delete or corrupt the (encrypted) dump files. Perhaps it's better to use ssh anyway, even for encrypted and signed dump files. Creating

Re: Dump | Restore

2009-04-20 Thread Tim Judd
Greetings, On Mon, Apr 20, 2009 at 4:31 AM, Daniels Vanags daniels.van...@smpbank.lvwrote: Unable to successfully dump | restore over ssh. Source machine FreeBSD 6.2, disk /dev/mirror/gm0s1a, target machine FreeBSD 6.2, target disk /dev/ad1s1a mounted on /mnt. Run dump -0aLf

Re: Dump | Restore

2009-04-20 Thread Michael Powell
Tim Judd wrote: [snip] Long story short, BTX is what brings the PC BIOS/CMOS code execution from 16-bit real mode, to 32-bit protected mode. I've had repeated problems with name-brand PCs that result in a BTX halted. Whiteboxes/custom builds tend to work the best (and IMHO, last the

Dump/Restore

2009-04-09 Thread Daniels Vanags
Please Help! After dump-restore /dev, /proc, /usr/compat/linux/proc - is empty, system fealure to boot. Please guide me, how to dump/restore devfs. df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/mirror/gm0s1a 52G 37G 11G78

Re: Dump/Restore

2009-04-09 Thread Olivier Nicole
Please Help! After dump-restore /dev, /proc, /usr/compat/linux/proc - is empty, system fealure to boot. Please guide me, how to dump/restore devfs. I am not sure about /usr/compat/linux/proc but /dev and /proc are created on the fly by the system: Lines are added into /dev for each new device

Re: Dump/Restore

2009-04-09 Thread Jonathan Chen
On Thu, Apr 09, 2009 at 10:50:49AM +0300, Daniels Vanags wrote: Please Help! After dump-restore /dev, /proc, /usr/compat/linux/proc - is empty, system fealure to boot. Please guide me, how to dump/restore devfs. These are pseudo file systems, and are dynamically managed by the system. You

Re: Dump/Restore

2009-04-09 Thread Chris Rees
2009/4/9 Daniels Vanags daniels.van...@smpbank.lv: This is a source comp output, after dump/restore /dev is empty. I run freesbie on target machine. -Original Message- From: Chris Rees [mailto:utis...@googlemail.com] Sent: Thursday, April 09, 2009 11:56 AM To: Daniels Vanags

Re: Dump/Restore

2009-04-09 Thread Wojciech Puchar
Please Help! After dump-restore /dev, /proc, /usr/compat/linux/proc - is empty, system fealure to boot. Please guide me, how to dump/restore it always should be - before mounted as pseudo-fs devfs. df -h Filesystem SizeUsed Avail Capacity Mounted on /dev

Re: Dump/Restore

2009-04-09 Thread Chris Rees
2009/4/9 Daniels Vanags daniels.van...@smpbank.lv: Please Help! After dump-restore /dev, /proc, /usr/compat/linux/proc - is empty, system fealure to boot. Please guide me, how to dump/restore devfs. df -h Filesystem                     Size    Used   Avail Capacity  Mounted on /dev

Re: Dump/Restore

2009-04-09 Thread Jerry McAllister
On Thu, Apr 09, 2009 at 10:50:49AM +0300, Daniels Vanags wrote: Please Help! After dump-restore /dev, /proc, /usr/compat/linux/proc - is empty, system fealure to boot. Please guide me, how to dump/restore devfs. You only dump(8) file systems. /dev /procfs /dev/mirror/..., etc

kernal dump on zfs file system panic?!? panic: ffs_blkfree freeing free block

2009-04-02 Thread John H. Nyhuis
About every 5-10 minutes, my freshly installed freeBSD 7.1 stable box hangs and begains a kernal dump. I get the following error message: dev = twed0s1d, block = 1, fs = /archive panic: ffs_blkfree freeing free block cpuid = 1 Uptime = 11m23s Physical memory: 1011 MB Dumping 67 MB: 52 36 20 4

Re: kernal dump on zfs file system panic?!? panic: ffs_blkfree freeing free block

2009-04-02 Thread Wojciech Puchar
dev = twed0s1d, block = 1, fs = /archive panic: ffs_blkfree freeing free block looks like ffs related panic, not ZFS. something is completely wrong here. cpuid = 1 Uptime = 11m23s Physical memory: 1011 MB Dumping 67 MB: 52 36 20 4 Dump complete /archive has no files in it as it is an empty

Re:problem with date, dump or restore

2009-02-06 Thread Terry
Hi list, with freebsd 7.0, after a probably successful dump : #dump -0Lauf ./ad0s1f.dump /dev/ad0s1f DUMP: Date of this level 0 dump: Thu Feb 5 07:18:58 2009 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/ad0s1f (/usr) to ./ad0s1f.dump DUMP: mapping (Pass I

problem with date, dump or restore

2009-02-05 Thread Ivan Dimitrov
Hi list, with freebsd 7.0, after a probably successful dump : #dump -0Lauf ./ad0s1f.dump /dev/ad0s1f DUMP: Date of this level 0 dump: Thu Feb 5 07:18:58 2009 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/ad0s1f (/usr) to ./ad0s1f.dump DUMP: mapping (Pass I

dump/restore problem

2009-02-04 Thread Ivan Dimitrov
Hi list when I started a migration to new HDD, according few how-tos, I got the following warning: # dump -0Lauf - /dev/ad0s1f | restore -rf - DUMP: Date of this level 0 dump: Wed Feb 4 22:02:42 2009 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/ad0s1f (/usr

Re: dump/restore problem

2009-02-04 Thread A. Wright
Ivan; when I started a migration to new HDD, according few how-tos, I got the following warning: # dump -0Lauf - /dev/ad0s1f | restore -rf - When debugging dump/restore problems, it is always best to dump to a file, and then restore from the file -- this allows you to see which of dump

Re: dump(8) using snapshot + recommended cache

2009-02-01 Thread Wojciech Puchar
I regularly use dump(8) with snapshots to back up my server. While this seems to have been working perfectly well so far, upon (re)reading the man page for dump(8), I have noticed a somewhat scary pair of lines in the paragraph describing the option for -C cachesize (emphasis with stars mine

dump(8) using snapshot + recommended cache

2009-02-01 Thread Andrew Hamilton-Wright
Hi All; I regularly use dump(8) with snapshots to back up my server. While this seems to have been working perfectly well so far, upon (re)reading the man page for dump(8), I have noticed a somewhat scary pair of lines in the paragraph describing the option for -C cachesize (emphasis

Re: dump(8) using snapshot + recommended cache

2009-02-01 Thread Andrew Hamilton-Wright
I regularly use dump(8) with snapshots to back up my server. While this seems to have been working perfectly well so far, Sorry to follow-up my own post; I just realized I hadn't mentioned any version info. The docs I am reading are the ones associated with 7.1-RELEASE; I haven't checked

Re: dump(8) using snapshot + recommended cache

2009-02-01 Thread RW
On Sun, 1 Feb 2009 08:59:02 -0400 (AST) Andrew Hamilton-Wright andre...@ieee.org wrote: Hi All; I regularly use dump(8) with snapshots to back up my server. While this seems to have been working perfectly well so far, upon (re)reading the man page for dump(8), I have noticed a somewhat

Re: dump(8) using snapshot + recommended cache

2009-02-01 Thread Andrew Hamilton-Wright
On Sun, 1 Feb 2009, RW wrote: ***It is recommended that you always use this option when dumping a snapshot.*** When you dump a snapshot there are, by definition, no changes between passes. So it's saying that in that case there in no reason not to cache. Ah, that makes

Re: Advice for dump/restore over SSH

2009-01-21 Thread FreeBSD
Odhiambo Washington a écrit : On Tue, Jan 20, 2009 at 2:03 AM, Roland Smith rsm...@xs4all.nl mailto:rsm...@xs4all.nl wrote: On Mon, Jan 19, 2009 at 05:43:56PM -0500, Freebsd wrote: Sounds pretty interesting to me but i couldn't test right now. As nc is in /usr/bin how

Re: DUMP: read error: Bad address

2009-01-20 Thread Lowell Gilbert
to. Today I was doing a test move of all the data, using dump | restore like this: # dump -0aL -f - /var | ( cd /mnt/var restore -rf - ) I got about a dozen messages like this: DUMP: read error from /dev/ad8s1d: Bad address: [block 10992192]: count=5120 What is causing this message

Re: DUMP: read error: Bad address

2009-01-20 Thread Chris Jones
Lowell Gilbert wrote: Chris Jones ch...@cjones.org writes: # dump -0aL -f - /var | ( cd /mnt/var restore -rf - ) I got about a dozen messages like this: DUMP: read error from /dev/ad8s1d: Bad address: [block 10992192]: count=5120 It could be a serious problem

Advice for dump/restore over SSH

2009-01-19 Thread FreeBSD
on this PC (Dell Vostro 220 Slim). It seems to be a problem with the disk controler (can't mount the / partition). So, I decided to install a minimal FreeBSD 7.1 on the PC to be cloned. I'm trying to dump/restore the /usr partition but I got warnings with the files already being present

Re: Advice for dump/restore over SSH

2009-01-19 Thread Roland Smith
? Try something like: destination machine, booted e.g. from CD newfs /dev/foo mount /dev/foo /mntroot cd /mntroot nc -l 65000| restore -rvf - source machine dump -0 -a -C 8 -L -u -f - / | nc dest 65000 Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text

Re: Advice for dump/restore over SSH

2009-01-19 Thread Chuck Robey
not just use netcat [nc(1)] if both machines are on your local network? Try something like: destination machine, booted e.g. from CD newfs /dev/foo mount /dev/foo /mntroot cd /mntroot nc -l 65000| restore -rvf - source machine dump -0 -a -C 8 -L -u -f - / | nc dest 65000 Roland Your

Re: Advice for dump/restore over SSH

2009-01-19 Thread Clifton Royston
. The problem is that FreeSBIE is not working on this PC (Dell Vostro 220 Slim). It seems to be a problem with the disk controler (can't mount the / partition). So, I decided to install a minimal FreeBSD 7.1 on the PC to be cloned. I'm trying to dump/restore the /usr partition but I got warnings

<    1   2   3   4   5   6   7   8   9   10   >