Creating bootable Solaris CD for NetBackup bare metal restores

From: Ben Rockwood (benr_at_cuddletech.com)
Date: 03/30/04

  • Next message: Gerard Henry: "[SUMMARY]: rdesktop: how to print on unix network printer?"
    Date: Tue, 30 Mar 2004 03:59:33 -0800
    To: sunmanagers@sunmanagers.org
    
    

    Hello.

    I'm trying to improve my DR methods and decided that it would be nice to
    have a bootable Solaris CD that I could use as a NetBackup client in the
    event that I needed to do a full bare metal restore. I can't get the
    money for the Bare Metal Restore NetBackup extension, and I don't like
    the jumpstart/netboot options.

    To create the CD I modified the methods mentioned in John Howard's
    "Building a Bootable Jumpstart Installtion CD-ROM" Sun Blueprint
    article. He covered Solaris 2.6, which involved modifying slice 0 of
    the CD, I'm using Solaris8 which involves modifying slice 1. My method
    is basically this:

    1) Mount the CD and record the partition sizes via prtvtoc
    2) Use dd to copy off the s0, s2, s3, s4, and s5 partitions using a 512 bs.
    3) Copy off s1 to an alternate location. (I'm using tar)
    4) Install the NetBackup client (3.2GA for compatability) into the s1
    copy, making sure to symlink out files that need to be rw, such as the
    bp.conf, etc, etc.
    5) Use mkisofs to create the image of s1:
    mkisofs -R -d -L -l -o /path/to/s1.img /path/to/s1
    6) Check the size of the image in 512 blocks and then check that number
    against the size of the partition.
    7) Use dd to write zeros into a file that is the size of the diff
    between the partition size and the iso (#5) size
    8) Cat the iso and the pad together (iso first naturally) to get the
    full slice
    9) Double check the size of s1 to ensure it is exactly the size of the
    partition
    10) Cat each partition together from 0 to 5 into a completed ISO
    11) Burn that ISO and attempt to boot.

    So far 2 attempts at this have failed. I think I got the slice 1 size
    wrong the first time, so I refined my procedure into the above.
    However, while it seems like this should work I'm getting errors when I
    try to boot it. It doesn't even find the kernel.

    For reference, I'm using the Solaris8 Install Disk, not Software 1, as
    it looked like a better canidate.

    Has anyone done this sort of thing before? Any points that can be
    passed my way would be extremely helpful.
    Furthermore, if anyone has used a bootable CD for restores before and
    found that it wasn't all it's cracked up
    to be, feel free to save me the trouble of getting this CD running.

    benr.
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Gerard Henry: "[SUMMARY]: rdesktop: how to print on unix network printer?"

    Relevant Pages

    • Solaris x86 FAQ 1/2
      ... Where can I obtain Solaris 2/x86 maintenance updates? ... What information should I have before an install? ... a 60GB disk shows up as only 28GB. ... Can I create a partition for Solaris within my extended partition? ...
      (comp.unix.solaris)
    • Re: Dual Boot of Solaris 10u7/Vista
      ... First 250 GB partition will be left unallocated for Solaris and second ... 250 GB partition will be NTFS format. ... windows MBR so you would have to get grub back somehow. ... Backup is accomplished in normal Windows mode, but restore requires boot ...
      (comp.unix.solaris)
    • Re: Solaris for laptops ...
      ... I created a 10GB Primary Partition on that unused space for Solaris ... >> Solaris 10 Installation CD and follow thru the installation process. ... > You really should stop playing around with multi-boot setups. ...
      (comp.unix.solaris)
    • Re: Solaris 9 Question for AIX Admins
      ... Solaris 9 Question for AIX Admins ... I am new to Solaris and don't go to training for two weeks. ... Listing of logical volumes located on the local disk: ... PARTITION MENU: ...
      (AIX-L)
    • Re: Partitioning disks using Linux FDISK
      ... There can only be one Solaris partition on a disk. ... I guess I was unaware of linux 'fdisk' properly dealing with SPARC ... slices instead of x86 slices. ...
      (comp.unix.solaris)