Need help with mksysb backup on a DVD


 
Thread Tools Search this Thread
Operating Systems AIX Need help with mksysb backup on a DVD
# 1  
Old 02-01-2011
Need help with mksysb backup on a DVD

i have an AIX server and planning to upgrade the operating system, before that i want to take a system backup which can be used in case of upgrade failure. i dont have NIM server t hold the mksysb backups. so i have the only option of taking the backup on DVD. i have the following optical drive configured on the server.
Please let me know, if i can use this for backing up the mksysb and will restoration work with this DVD. how to check, if the backup will work fine.

cd0 Available 05-08-00 IDE DVD-ROM Drive

Any help is very much appreciated

# 2  
Old 02-01-2011
Need help with mksysb backup on a DVD

Hi

I haven't done this, but I believe you can do mksysb backup to DVD.
Also I would suggest you to take backup on the IBM DVD and not on other company DVD's

Thanks
# 3  
Old 02-01-2011
Thanks samsungsamsung

My doubt is wether DVD-ROM drive allows me to write the mksysb image on to the DVD or is it only for reading the content already present on the DVD.

In one of the AIX Documents, it says for backup on a DVD, we need 7201 DVD-RAM Drive, but what i have is a DVD-ROM drive, so will it allow me to write on the DVD inserted in the DVD-ROM Drive.
# 4  
Old 02-01-2011
Hi,

you can use mkdvd.

Another option (and probably the fastest) if your rootvg is mirrored or you have spare disks in your box: split the mirror, create an alt_disk_install (this is like a clone of your system). If your upgrade fails, all you have to do is boot from this clone (directly or via sms) and everything is as it was before. We do this before any major installation / upgrade - even when its just a ML/TL update - and we had been glad to have done it much more than once Smilie

Regards
zxmaus
# 5  
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
# 6  
Old 02-02-2011
nksysb help

Running a mksysb out to a file is file. You can even do it to a NFS mounted FS. But the alt_disk_install is your best and most recommend method. Other options exist but the mksysb to a file that can be copied to even your PC and then burned to a CD / DVD can be done. I used the CD method before for DR and it worked fine. I would do it cold I.E. only the OS running to be sure it is clean.
But the alt_disk_install is the recommended method for upgrade's. it is simple to do and it the safest.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question