summary restoring

From: Doggy \(tru64\) (tru64dog@yahoo.com)
Date: Thu Jul 18 2002 - 20:14:43 EDT


Original Question:

Does anybody have a document on how to restore / /usr
from booting from the cdrom. This is for a advfs file
system that is not mirrored. Thanks in advance.

=============================================
I would like to take all the following and I posted
the responses below:
alan@ nabeth.cxo.cpqcorp.net
Wilson, Paul L
Schoepflin, Keith
David Stacks
Gabor.Zelenak@ hungarocontrol.hu
Hill, NM (Nick)
Wilson, Paul L

==============================================
RESTORE
Tru64 Version 5:
Boot the system using a Tru64 Operating System install
CD.
Exit out of the install to a Unix shell.
View current devices - hwmgr -view
devices
Create device file - dn_setup
-install_tape
Set date - date
-u mmddhhmmyy
Change to domain directory - cd
/etc/fdmns
Make directories for domains - mkdir root
usr root-mnt usr-mnt var-mnt
Link domains - cd root
                                                ln -s
/dev/disk/dskna (where n is the disk
number)
                                                cd
../usr
                                                ln -s
/dev/disk/dskng (where n is the disk
number)
Mount the root filesystem - mount
root#root /etc/fdmns/root-mnt
Restore root filesystem - vrestore -x
-f /dev/ntape/tape0_d1 -D /etc/fdmns/root-mnt
Mount /usr,/var filesystems - mount
usr#usr /etc/fdmns/usr-mnt
                                                 
mount usr#var /etc/fdmns/var-mnt
Restore /usr,/var filesystems - vrestore -x
-f /dev/ntape/tape0_d1 -D /etc/fdmns/usr-mnt
                                                 
vrestore -x -f /dev/ntape/tape0_d1 -D
/etc/fdmns/var-mnt
Halt the system - fasthalt

the simplest version is:
        0. boot from CD
                0a. check and/or set device files
                0b. make disklabel
                (eg.: disklabel -rR -t AdvFs /dev/rrz${SCSI_ID}
<source label file> #
if exists)
                0c. make domains
                (eg.: mkfdmn /dev/rz${SCSI_ID} root_domain and quite
the same for
usr_domain...)
                0d. mount one of the new domain to /mnt
        1. restore file sets
                1a. issue the following command
                vrestore -x -f [/dev/<backup media>] ||
<backup_image located in
somewhere else> # the last one is quite often
                used in RIS environment...
                1b. umount previous domain and mount the next one,
finally do the
same as you did with the
                previous one (jump to 0d.), if no more file sets
avaible, turn next
step (#2)..
        2. umount all domains, restart the system.

Have you check the system management documentation to
see
        if it has recommendations? If you don't have printed
        documentation, PDF and HTML copies are on the
Documentation
        CDROM. Generally, for your simple case, I think it
goes
        something like:

        1. Boot the installation CDROM to the standalone
system.
            Assuming the V5 system I booted yesterday is
represent-
            ative of modern versions, boot to the menu that
allows
            you chose the type of installation and select
"exit".

        2. Label the disk that will be the target of the
root
            file system. Use the option "-t advfs" to write
the
            AdvFS boot blocks. Season the partition table to
            taste...

        3. Create a domain for the root file system, create
a file
            set, mount it and restore from backup. Through
this
            point, I believe the installation has created all
the
            special files needed.

        4. Create a domain and fileset for /usr. Mount and
restore.

        5. Unmount both and reboot

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:46 EDT