AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  mksysb file to a bootable tape

    Posted Wed April 25, 2007 11:02 AM

    Originally posted by: SystemAdmin


    Is anyone can help me about procedure to copy a mksysb file to a bootable tape ?
    Thanks ...


  • 2.  Re: mksysb file to a bootable tape

    Posted Mon April 30, 2007 06:00 PM

    Originally posted by: SystemAdmin


    Hi friends,

    i have an great procedure for you.

    1. insert tape into tape drive rmt#

    2. Determinate block size and set extended file marks to YES
    1. OLD_BS=$(lsattr El rmt# -a block_size F value)
    2. chdev -l rmt# -a extfm=yes
    3. tctl f /dev/rmt# rewind
    4. chdev l rmt# -a block_size=512
    5. tctl f /dev/rmt# rewind

    3.Create BosBoot-Image on tape
    1. bosboot d /dev/rmt#.1 a

    4.Create mkinsttape block on tape (list of min. BOS files)
    1. mkinsttape /dev/rmt#.1

    5.Create mksysb marker on tape
    1. echo Dummy tape TOC | dd of=/dev/rmt#.1 bs=512 conv=sync

    6.Change block size to OLD_BS
    1. chdev l rmt# -a block_size=${OLD_BS}
    2. tctl f /dev/rmt# rewind
    3. tctl f /dev/rmt#.1 fsf 3

    7.Write mksysb file to tape
    1. dd if=/dir/mksysb.file of=/dev/rmt#.1 ibs=512 obs=${OLD_BS}

    Now, you have an mksysb tape for recovery or cloning.

    Regards
    WoKi


  • 3.  Re: mksysb file to a bootable tape

    Posted Tue May 01, 2007 10:10 AM

    Originally posted by: SystemAdmin


    SMITTY MKSYSB

    SELECT dev/rmt*

    ok


  • 4.  Re: mksysb file to a bootable tape

    Posted Mon April 30, 2007 06:09 PM

    Originally posted by: SystemAdmin


    Hi friends,

    i have an great procedure for you.

    1. insert tape into tape drive rmt#

    2. Determinate block size and set extended file marks to YES
    1. OLD_BS=$(lsattr El rmt# -a block_size -F value)
    2. chdev -l rmt# -a extfm=yes
    3. tctl -f /dev/rmt# rewind
    4. chdev -l rmt# -a block_size=512
    5. tctl -f /dev/rmt# rewind

    3.Create BosBoot-Image on tape
    1. bosboot -d /dev/rmt#.1 -a

    4.Create mkinsttape block on tape (list of min. BOS files)
    1. mkinsttape /dev/rmt#.1

    5.Create mksysb marker on tape
    1. echo "Dummy tape TOC" | dd of=/dev/rmt#.1 bs=512 conv=sync

    6.Change block size to OLD_BS
    1. chdev -l rmt# -a block_size=${OLD_BS}
    2. tctl -f /dev/rmt# rewind
    3. tctl -f /dev/rmt#.1 fsf 3

    7.Write mksysb file to tape
    1. dd if=/dir/mksysb.file of=/dev/rmt#.1 ibs=512 obs=${OLD_BS}

    Now, you have an mksysb tape for recovery or cloning.

    Regards
    WoKi

    Sorry - Now, correctly format


  • 5.  Re: mksysb file to a bootable tape

    Posted Wed February 01, 2012 08:30 AM

    Originally posted by: Tibor_B


    Hi,

    (let me revive this old thread...)

    I like the procedure mentioned here, but have two questions:

    I want to convert sysbackup file to tape on different server. Does it matter? And would be different AIX versions a problem?

    Especially in relation to the step "Create BosBoot-Image on tape" - it seems to me that it builds that image from local system...

    Second question: how can I verify correctnes of such newly created tape? I know there is option "Verify the Readability of a Backup (Tape only)" in smith but does it check just readability or it guarantees that the tape is OK from all aspects?

    Thanks

    Tibor