i'm having a little trouble with an AIX 5.2 script that i have written and i was wondering if anyone could please offer me some advice on how to append a savevg backup to a mksysb tape, or more importantly where i'm going wrong? i've been trying to get this to work for about a month with no joy now.
here's a cut down version of my script:
the problem that i am having is that if i run this script i get the following error from the restore commands:
restore: 0511-160 Cannot read the backup media
/dev/rmt0.1: There is an input or output error
with the tape rewound, if i run a restore -Tvqf /dev/rmt0 it lists the files in DEV_VG. this made me think that the tape was rewinding before running the savevg command for some reason.
if i change the backups to use the rmt0 device and manually do all my rewinding and fast forwarding with tctl i get the same errors as the restore command gives me.
if i run a /usr/bin/mksysb -ipX /dev/rmt0 then a restore -Tvqf /dev/rmt0 it lists the files in the rootvg. if i then run a tctl -f /dev/rmt0.1 fsf 1 i then receive the following error:
restore: 0511-262 Read an unexpected end of file.
from what i've read a mksysb should put the files on the 3rd segment of the backup, is this correct? my mksysb doesn't seem to follow the documented standard.
thanks in advance.
james.
edit: sorry for the double post. must have been caused by a timeout while editing my OP.
Last edited by boredazfcuk; 06-19-2008 at 08:45 AM..
There is an AIX subforum here - post AIX issues there next time please.
Some years back I had to get some special files under /dev back, which did not come back from the restore of the mksysb automatically. Here is what I did. The text and comments are in german, but I am too lazy to translate it now You will see by the commands, what I did; hope it helps
i would have posted this in the aix forum but i'm a unix noob. thought it would have been more appropriate to post in here as i thought i was going to be referred to the man pages lol
i did manage to find the solution for myself and it definately wasn't an a dim operator error!
apparently there is a bug with my version of (AIX 5.2.003) and this issue was fixed in 5.2.004.
basically if the block_size of the tape device is set to 512 the mksysb rewinds itself after each writing phase and overwrites what it just saved. this meant that only the final phase of the backup was effectively being saved.
changing the block size of the tape device to 1024 solved my problem. i now have bootable backup tapes with a savevg appended.
I am trying to restore files from savevg.
I used to smit restore and gave the file location.
Savevg is taken to a mount point from San storage and not tape back up.
Can I restore just a directory from savevg?
---------- Post updated at 09:43 PM ---------- Previous update was at 09:42 PM... (1 Reply)
Hi All,
I need to take the backup of non-rootvg using savevg utility. I would like to know, if I can take the backup without shutting down the application & database. Is it possible to take the savevg backup safely when users are working on the system ?
Regards. (1 Reply)
Hi All,
I need to plan a downtime and need know how much time is required to take mksysb & rootvg on LTO4. Following are vg informations...
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 64 128 2 open/syncd N/A
hd8... (1 Reply)
Other then creating a exclude 'all' file. Is there a way to just create a nim savevg resource that contains just the minimum info to restore a vg. The vg's dirs and files are being backed up. -pete (0 Replies)
Hello,
I use commands savevg & mksysb to do backups on an AIX server.
Frequently, I have a return code 3.
I would know why, but after searches, I did'nt find.
If somebody know ... Tell me.
Thanks.
emetra (2 Replies)
In the several backups we do, we do a "smitty savevg" on about 15 different servers at the same time. Typing all the options on the savg screen is kind of long.
Is it possible to invoke the "smitty savevg" backups as command line (aix 4.2) but using all the options we always enter ?
It would... (1 Reply)
Every 3 months we have to do backups (smitth mksysb/lsmksysb + tar) on at least 30 workstations. We have to carry around 2 external tape drives to connect to them. It is a pain to do because it takes at least 3 days to do (evening/night shift) and users sometimes complain that there desk is not put... (1 Reply)
--------------------------------------------------------------------------------
Hello, help me please.
I am trying to create a mksysb bakup using nim. I am geting this error, how to correct it ? :
Command : failed stdout: yes stderr: no... (9 Replies)
hi,
i'm having a little trouble with an AIX 5.2 script that i have written and i was wondering if anyone could please offer me some advice on how to append a savevg backup to a mksysb tape, or more importantly where i'm going wrong? i've been trying to get this to work on and off for about a... (1 Reply)