cancel
Showing results for 
Search instead for 
Did you mean: 

System disk crash

man_chung818
Occasional Visitor

System disk crash

Hi all,

I am using Tru64 Unix 4.0g.

The system disk was crashed. Luckly, I did a system backup before using vdump command. Is there anyone know how to restore the system disk from tape in bootloader (e.g. >>> )
Or any other method for recovery?

Thank you!

regards,
Man
8 REPLIES
Vladimir Fabecic
Honored Contributor

Re: System disk crash

Hello Man
Since it is 4.0, it would be easier.
General procedure:
1. First boot from instalation CD and choose unix shell
>>> boot (boot DKA400)
2. Check if disk and tape devices are presented. If so, label the disk using disklabel. Example:
# disklabel -rw /dev/rrz0c rz28
3. Edit disk partitions using
# disklabel -e /dev/rrz0c
or use graphics utility from instalation CD
4. Create file system (by the way did you have UFS or advfs for root?)
# newfs /dev/rz0a (for UFS)
5. Mount "disk root" somewhere"
# mount /dev/rz0c /mnt
6. Restore data
# cd /mnt
# restore -x -f /dev/nrmt0h

After that you can create and restore other file systems or you can boot in single user mode (>>> boot -flag 0 DKA0), mount root and do the rest.
Please, supply more details if you need additional help.
In vino veritas, in VMS cluster
AwadheshPandey
Honored Contributor

Re: System disk crash

this link will help you to restore ur root disk in digital unix 4.0
http://the-welters.com/professional/dunix-quickref/disk-recovery.html

cheers,

Awadhesh
It's kind of fun to do the impossible
Archunan Muthiah
Honored Contributor

Re: System disk crash

Man,

This is another way to restore...
1. boot the Operating System CD
2. go to the shell prompt
3. cd /var/dev
3. ./MAKEDEV tzxx (where xx is the tape-drive device number; creates device
special files)
4. ./MAKEDEV rzxx (where xx is the actually system disk where / and /usr are
located)
5. mkfdmn /dev/rzxxa root_domain (recreate advfs root domain)
6. A message appears who ask you if you really want to create the
file-domain. type yes
7. mkfset root_domain root (creates fileset)
8. mount -r root_domain#root /mnt (mounts fileset)
9. cd /mnt
10. vrestore xvf /dev/nrmtxh . (restores the first fileset on tape in /mnt)
11. cd /
12. umount /mnt
13. mkfdmn /dev/rzxxg usr_domain (recreate advfs usr domain)
14. A message appears who ask you if you really want to create the
file-domain. type yes
15. mkfset usr_domain usr (creates usr fileset)
16. mount usr_domain#usr /mnt (mounts fileset)
17. cd /mnt
18. vrestore xvf /dev/nrmtxh . (restores the first fileset on tape in /mnt)
19. mt -f /dev/rmtxh rew (tape rewind)
20. cd /
21. umount /mnt
22. now you have restored / and /usr and you can reboot the alpha
23. when the machine is in multiuser you can restore other files with
networker

Archunan
God is Artist, we are all just brushes
man_chung818
Occasional Visitor

Re: System disk crash

Thanks for all reply. I will try yours suggestion now.
Shardha
Valued Contributor

Re: System disk crash

Dear Man Chung

Another shortcut.

To restore ( / and /usr and /var).

/ file system

- boot from CD cd
-
Provide the installation options, and partition the disk.
Let the installation procedure to create / swap /usr /var file systems.
Press control C when it starts coping subsets

Restore / file system.

- mount root_domain#root /mnt
-/dev/MKDEVICE tzX
# cd /mnt
#vrestore -i
-add /
-verbose
-extract
-umount /mnt

Restore /usr file system
- cd /etc/fdmns
- mkdir usr_domain
- cd usr_domain
- ln -s /dev/re0g
- mount usr_domain#root /mnt
# cd /mnt
# mt fst 1
#vrestore -i
-add /
-verbose
-extract
-umount /mnt


Restore /var file system
- cd /etc/fdmns
- mkdir var_domain
- cd var_domain
- ln -s /dev/re0g
- mount var_domain#root /mnt
# cd /mnt
# mt fst 2
#vrestore -i
-add /
-verbose
-extract
-umount /mnt
Now halt the system and boot normally.
Shardha
Valued Contributor

Re: System disk crash

Dear Man,

i found some mistakes the procedure send, please ignore and use following procedure to restore the system disk. I did it many time and this is the simple and short procedure.

Shardha

To restore (/ and /usr and /var).
/ file system
- boot cd
Provide the installation options, and partition the disk.
Let the installation procedure to create / swap /usr /var file systems.
Press control C when it starts coping subsets
Restore / file system
- cd /etc/fdmns
- mkdir root_domain
- cd root_domain
- ln -s /dev/rz0a
- mount root_domain#root /mnt
-/dev/MKDEVICE tz5x
# cd /mnt
#vrestore -i
-add /
-verbose
-extract
-umount /mnt

Restore /usr file system
- cd /etc/fdmns
- mkdir usr_domain
- cd usr_domain
- ln -s /dev/rz0g
- mount usr_domain#usr /mnt
# cd /mnt
# mt fst 1
#vrestore -i
-add /
-verbose
-extract
-umount /mnt

Restore /var file system
- cd /etc/fdmns
- mkdir var_domain
- cd var_domain
- ln -s /dev/re0h
- mount var_domain#var /mnt
# cd /mnt
# mt fst 2
#vrestore -i
-add /
-verbose
-extract
-umount /mnt
Now halt the system and boot normally.
Shardha
Valued Contributor

Re: System disk crash

Dear Man,

i found some mistakes the procedure send, please ignore and use following procedure to restore the system disk. I did it many time and this is the simple and short procedure.

Shardha

To restore (/ and /usr and /var).
/ file system
- boot cd
Provide the installation options, and partition the disk.
Let the installation procedure to create / swap /usr /var file systems.
Press control C when it starts coping subsets
Restore / file system
- cd /etc/fdmns
- mkdir root_domain
- cd root_domain
- ln -s /dev/rz0a
- mount root_domain#root /mnt
-/dev/MKDEVICE tz5x
# cd /mnt
#vrestore -i
-add /
-verbose
-extract
-umount /mnt

Restore /usr file system
- cd /etc/fdmns
- mkdir usr_domain
- cd usr_domain
- ln -s /dev/rz0g
- mount usr_domain#usr /mnt
# cd /mnt
# mt fst 1
#vrestore -i
-add /
-verbose
-extract
-umount /mnt

Restore /var file system
- cd /etc/fdmns
- mkdir var_domain
- cd var_domain
- ln -s /dev/rz0h
- mount var_domain#var /mnt
# cd /mnt
# mt fst 2
#vrestore -i
-add /
-verbose
-extract
-umount /mnt
Now halt the system and boot normally.
Matthew Warren
Occasional Visitor

Re: System disk crash

Going through these procedures, I am getting an error when retoring the /usr usr_domain filesset that /var is full?

How can that be?

I am due to go invetigate the problem. the only thing I can think is,

the system has been used for restore tests before.

the system that is being restored has put new files in /var and removed some others from /var.

the system being restored too has old files in var that are not ebing deleted by the new restore?

..only trouble with this is that a mkfdm is dome for root_domain and usr_domain and existing files deleted as a consequence?


...non-Tru64 chap trying a DR test for True64..

Thanks,

Matt.