Sponsored Content
Operating Systems AIX Need help with mksysb backup on a DVD Post 302493239 by rbatte1 on Wednesday 2nd of February 2011 08:01:07 AM
Old 02-02-2011
I fear that is correct saikiran_1984. I hit this myself a year ago when I was given a 9115-505 (p505) to set up for a client. It had a DVD-ROM (Read-Only) and so I refused until a DVD-RAM was installed. They are a few hundred pounds sterling, probably less than 1,000 US dollars.

The process I write the DVD with is a little convoluted, but I have a filesystem outside of rootvg that I create a file using the normal mksysb:-
Code:
mksysb -e /mksysbfs/mksysb.file

I then use the next command to actually write the removable media:-
Code:
mkdvd -d /dev/cd0 -m /mksysbfs/mksysb.file

Before actually running the mksysb to disk file, I also do the following:-
Code:
mkszfile                       #- recreate lv/fs information for rootvg
rm /disaster/*.pvlist 2>/dev/null

lspv|while read pv serial vg status
do
        echo "$pv \c" >>/disaster/$vg.pvlist
        echo "$pv $vg                               \r\c"
        echo "$pv $vg" >> $log
        sleep 1
done

for vg in `lsvg|sort|grep -v rootvg`
do
        echo "\nSaving $vg structure"
        lsvg -l $vg > /disaster/$vg.lsvg-l
        echo "restvg -q -f /disaster/$vg.structure `cat /disaster/$vg.pvlist`" >>/disaster/restvg_commands
        echo "^\./" > /etc/exclude.$vg               # Ignore all the files
        savevg -ef /disaster/$vg.structure $vg
        if [ $? -ne 0 ]
        then
                echo "Failed to save $vg structure\n\nExiting"
                exit 2
        fi
done

Now, /disaster is a very small filesystem in rootvg, just 1PP and it holds these files so after a mksysb restore, I can run the commands in restvg_commands and it will build all the other volume groups, logical volumes, filesystems and mount them.

As a word of warning, this only really works if you have an identical machine to restore to (same hdisk numbers and sizes) but at least the structure information is there for you to work with too. I am working on a version that removes any mirrors in case you have a live machine with simple disks and a restore server with RAID or some other form of hardware protection.


Of course, if rootvg is what is corrupt and you are restoring over the original machine, you should be able to import the volume groups with importvg and they should recover with the original data.


I hope that this is useful. Testing something like this is very important. have you got DR hardware organised? There are many companies that will lend you hardware when you need it for an annual fee of about 10% of the base cost. It releives you of hardware headaches from having a second server at a second site and making sure no-one decides to use it for something else!

Let me know if you want a few names to get started with.




Robin
Liverpool/Blackburn
UK
 

10 More Discussions You Might Find Interesting

1. AIX

mksysb backup

How I can to obtain a full Backup of a AIX server with the command "mksysb"?? what is the correct form? Thanks (1 Reply)
Discussion started by: granador
1 Replies

2. AIX

mksysb backup testing

Hi All i have a number of IBM servers with different models, and i want to do a backup for the rootvg using mksysb and that backup will be stored on a 4mm DDS tape. i have only one machine (p550) which i can use it for testing purposes, so the quesion is that can i test my mksysb backups on... (6 Replies)
Discussion started by: TheEngineer
6 Replies

3. AIX

mksysb backup

hi guys, i just want to take my server's mksysb backup through dvd-rom.but am having the doubt that, while am taking the mksysb backup in image it shows 8GB. So can i confirm that it takes 2 dvds and after writing in 1st cd it will ask for 2nd cd?????? please help me out. (1 Reply)
Discussion started by: rrlog
1 Replies

4. AIX

How to restore from mksysb backup

system is not booting ... i want to restore from mksysb backup. (2 Replies)
Discussion started by: AIXlearner
2 Replies

5. AIX

Need to take MKSYSB backup

Hi, Can any one suggest me how to take the mksysb backup in CD (VCD/DVD). I have tried like #mkcd -d /dev/cd0, but its not working. (3 Replies)
Discussion started by: oprakash
3 Replies

6. AIX

mksysb backup

hi we are having one rootvg in that we created one lv named mksysb_backuplv and normally script will run accordingly to take the backup in the cron,here i just want to know if any rootfilesystem was correpted like /usr or /tmp ,then how could i restore the particular filesystme from the... (1 Reply)
Discussion started by: senmak
1 Replies

7. AIX

MKSYSB backup

Hi, Currently we are taking mksysb backup through smitty mksysb command and directing the backup to happen on a tape.We have inbuilt tape drives in the AIX servers. Can we take the mksysb backup through 3rd party software tool (Symantec netbackup of IBm TSM). If yes what is the procedure and... (4 Replies)
Discussion started by: dwiravi
4 Replies

8. AIX

No response when inserting mksysb backup DVD #3

Hello AIXians, I have a corrupted file systems in my AIX server (6.1), which are /var, /home & /opt. I tried many times to fix them using fsck but it gives me: 'Fatal I/O error'. So I decided to restore them from bootable mksysb DVD (4 DVDs) after booting from these DVDs. Every thing was... (0 Replies)
Discussion started by: Mohannad
0 Replies

9. AIX

Using mkdvd to create bootable mksysb on dvd reports success but nothing on dvd?

Hello, Running AIX 7.1 7100-00-03-1115, trying to make a mksysb image to a dvd drive using mkdvd. My final command looks like this.. mkdvd -e -V rootvg -R -C /usr1/AIXADMIN/mkcd/cd_fs -I /usr1/AIXADMIN/mkcd/cd_images -M /usr1/AIXADMIN/mkcd/mksysbimage -d /dev/cd0 -Y When i run this... (3 Replies)
Discussion started by: c3rb3rus
3 Replies

10. AIX

Can I use mkdvd to create bootable DVD from mksysb on tape

Hi, Is it possible to use mkdvd to create a bootable DVD using a mksysb on tape as the source image? On the system concerned, we don't have enough free space to create the mksysb to file first, so would like to use the existing tape mksysb backup. The DVD disk/s will then be used to boot a... (4 Replies)
Discussion started by: alanp36
4 Replies
echo(3XCURSES)						  X/Open Curses Library Functions					    echo(3XCURSES)

NAME
echo, noecho - enable/disable terminal echo SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib -R /usr/xpg4/lib -lcurses [ library... ] c89 [ flag... ] file... -lcurses [ library... ] #include <curses.h> int echo(void); int noecho(void); DESCRIPTION
The echo() function enables Echo mode for the current screen. The noecho() function disables Echo mode for the current screen. Initially, curses software echo mode is enabled and hardware echo mode of the tty driver is disabled. The echo() and noecho() functions control soft- ware echo only. Hardware echo must remain disabled for the duration of the application, else the behavior is undefined. RETURN VALUES
Upon successful completion, these functions return OK. Otherwise, they return ERR. ERRORS
No errors are defined. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
getch(3XCURSES), getstr(3XCURSES), initscr(3XCURSES), libcurses(3XCURSES), scanw(3XCURSES), attributes(5), standards(5) SunOS 5.11 5 Jun 2002 echo(3XCURSES)
All times are GMT -4. The time now is 03:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy