Re: How to restore a raw device ?
[EMAIL PROTECTED] wrote: Hi, big question: What dump do you use to backup that raw device? linux-dump? and this device is used by infomix as a raw data-device without an ext2 filesystem on it? yes? Yes, I'm using linux dump. I tried to mke2fs on the filesystem /dev/sda13 before I build the informix raw file on it, therefore I still can use dumpe2fs on that partition after the informix raw file build. You won't be able to restore something meaningfull from this dumps at all. Linux dump is designed only for dumping ext2 filesystems. What you are trying is plainly asking for trouble at restore-time. To get a valid backup of your database backing up the raw device you will have to shut down the database-server-process before saving the data. (If you don't do that you will miss lots of data stored in the internal buffers of the process.) Yap, in this case I will always bring down the informix database process before I run amdump. And then you need to take a raw image of the partition with a tool like dd. Neither any version of dump nor tar will give you a correct backup of this data. A much safer way will be to let informix make a database-export/ dump to another disk and then backup this dump. I'll consider ur suggestion. Paul Bijnens paul.bijnens@x wrote: I'm not an Informix user, but DUMP is meant for Unix-filesystems IIRC, not Informix databases. Are you sure the backups contain useful data? Did DUMP never complain? Is the size of the backupimage of the device what you would expect (uncompressed - compressed)? I'm not sure whether the backups contain useful data or not. That's the reason why I need to restore back and verify. DUMP never complain(with the condition that AMANDA user belongs to group disk and informix as the supplementary group). The way to backup a raw device with amanda is using a GNUTAR-wrapper script that does a dd instead of gnutar when given the device... (I assume, you could just as wel use DUMP wrapper script and rename your dump program and replace it with this script.) May I know where can I find GNUTAR-wrapper and what should I change in my amanda.conf in order to use the script. I prefer not to rename linux dump command to other name. Any other solutions ? Thank Christoph Paul __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
Re: How to restore a raw device ?
* Jon LaBadie [EMAIL PROTECTED] (Tue, Nov 26, 2002 at 11:22:10PM -0500) On Tue, Nov 26, 2002 at 06:44:14PM -0800, kh teoh wrote: Hi, I'm using amanda-2.4.3 running on Redhat 7.1(2.4.9). I managed to backup a raw device(/dev/sda13) using DUMP but how do I restore it ? That raw device is not mounted to any directory, it is reserved for Informix use. Did you try amrestore? Perhaps the syntax: amrestore tapedev hostname /dev/sda13 will be enough. I've not had a need to try it. May I politely suggest that it's a very good idea to occasionally restore some data from your backups just to know what you need to do when you'e accidentally wiped an entiore disk,a nd you have 500 screaming users at your door demanding their files back right now ? Currently listening to: Tales of Brave Ulysses Gerhard, @jasongeo.com == The Acoustic Motorbiker == -- __O Some say the end is near. =`\, Some say we'll see armageddon soon (=)/(=) I certainly hope we will I could use a vacation
Re: How to restore a raw device ?
Hi, big question: What dump do you use to backup that raw device? linux-dump? and this device is used by infomix as a raw data-device without an ext2 filesystem on it? yes? You won't be able to restore something meaningfull from this dumps at all. Linux dump is designed only for dumping ext2 filesystems. What you are trying is plainly asking for trouble at restore-time. To get a valid backup of your database backing up the raw device you will have to shut down the database-server-process before saving the data. (If you don't do that you will miss lots of data stored in the internal buffers of the process.) And then you need to take a raw image of the partition with a tool like dd. Neither any version of dump nor tar will give you a correct backup of this data. A much safer way will be to let informix make a database-export/ dump to another disk and then backup this dump. Christoph kh teoh schrieb: Hi, I'm using amanda-2.4.3 running on Redhat 7.1(2.4.9). I managed to backup a raw device(/dev/sda13) using DUMP but how do I restore it ? That raw device is not mounted to any directory, it is reserved for Informix use. Thank you __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
Re: How to restore a raw device ?
On Tue, Nov 26, 2002 at 06:44:14PM -0800, kh teoh wrote: I'm using amanda-2.4.3 running on Redhat 7.1(2.4.9). I managed to backup a raw device(/dev/sda13) using DUMP but how do I restore it ? That raw device is not mounted to any directory, it is reserved for Informix use. I'm not an Informix user, but DUMP is meant for Unix-filesystems IIRC, not Informix databases. Are you sure the backups contain useful data? Did DUMP never complain? Is the size of the backupimage of the device what you would expect (uncompressed - compressed)? The way to backup a raw device with amanda is using a GNUTAR-wrapper script that does a dd instead of gnutar when given the device... (I assume, you could just as wel use DUMP wrapper script and rename your dump program and replace it with this script.) -- Paul Bijnens, Xplanation Tel +32 16 40.51.40 Interleuvenlaan 15 H, B-3001 Leuven, BELGIUM Fax +32 16 40.49.61 http://www.xplanation.com/ email: [EMAIL PROTECTED] *** * I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, F6, * * quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, * * stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, * * PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, * * kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ...* * ... Are you sure? ... YES ... Phew ... I'm out * ***
Re: How to restore a raw device ?
On Wed, Nov 27, 2002 at 09:44:46AM +0100, Gerhard den Hollander wrote: * Jon LaBadie [EMAIL PROTECTED] (Tue, Nov 26, 2002 at 11:22:10PM -0500) On Tue, Nov 26, 2002 at 06:44:14PM -0800, kh teoh wrote: Hi, I'm using amanda-2.4.3 running on Redhat 7.1(2.4.9). I managed to backup a raw device(/dev/sda13) using DUMP but how do I restore it ? That raw device is not mounted to any directory, it is reserved for Informix use. Did you try amrestore? Perhaps the syntax: amrestore tapedev hostname /dev/sda13 will be enough. I've not had a need to try it. May I politely suggest that it's a very good idea to occasionally restore some data from your backups just to know what you need to do when you'e accidentally wiped an entiore disk,a nd you have 500 screaming users at your door demanding their files back right now ? The OP said this was a raw database partition. It contains no user files. That is what I've not had a need to try because I have no raw database partitions. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
Re: How to restore a raw device ?
* Jon LaBadie [EMAIL PROTECTED] (Wed, Nov 27, 2002 at 07:36:05AM -0500) I'm using amanda-2.4.3 running on Redhat 7.1(2.4.9). I managed to backup a raw device(/dev/sda13) using DUMP but how do I restore it ? That raw device is not mounted to any directory, it is reserved for Informix use. Did you try amrestore? Perhaps the syntax: amrestore tapedev hostname /dev/sda13 will be enough. I've not had a need to try it. May I politely suggest that it's a very good idea to occasionally restore some data from your backups just to know what you need to do when you'e accidentally wiped an entiore disk,a nd you have 500 screaming users at your door demanding their files back right now ? The OP said this was a raw database partition. It contains no user files. That is what I've not had a need to try because I have no raw database partitions. OK, I understand what you're saying. Currently listening to: Anthrax - Skeletons In The Closet Gerhard, @jasongeo.com == The Acoustic Motorbiker == -- __O Standing above the crowd, he had a voice so strong and loud =`\, we'll miss him (=)/(=) Ranting and pointing his finger, At everything but his heart we'll miss him
How to restore a raw device ?
Hi, I'm using amanda-2.4.3 running on Redhat 7.1(2.4.9). I managed to backup a raw device(/dev/sda13) using DUMP but how do I restore it ? That raw device is not mounted to any directory, it is reserved for Informix use. Thank you __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
RE: How to restore a raw device ?
it's must see how u defind ur disklist... if u defind disklist like loaclhost /dev/sda13 always-full-tar than when u restore, amrestore -p TAPE-DEVICE localhost /dev/sda13 |tar -xvf - hope it will helpful If I wrote worng, please anyone update ittks.. -Original Message- From: kh teoh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 10:44 AM To: [EMAIL PROTECTED] Subject: How to restore a raw device ? Hi, I'm using amanda-2.4.3 running on Redhat 7.1(2.4.9). I managed to backup a raw device(/dev/sda13) using DUMP but how do I restore it ? That raw device is not mounted to any directory, it is reserved for Informix use. Thank you __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
Re: How to restore a raw device ?
On Tue, Nov 26, 2002 at 06:44:14PM -0800, kh teoh wrote: Hi, I'm using amanda-2.4.3 running on Redhat 7.1(2.4.9). I managed to backup a raw device(/dev/sda13) using DUMP but how do I restore it ? That raw device is not mounted to any directory, it is reserved for Informix use. Did you try amrestore? Perhaps the syntax: amrestore tapedev hostname /dev/sda13 will be enough. I've not had a need to try it. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road(609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)