SUMMARY: change of system disk

From: Hermann Hofer (H.Hofer@wige.com)
Date: Thu May 27 2004 - 09:19:11 EDT


Thanks will go to:

Lanier, John <john.lanier@hp.com>
Graham Allan <allan@physics.umn.edu>
Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu>

who gave suggestions or send me script's (John).

All suggested if disk are still alive to copy data direct from old to new
disk's.
This was not done because we want to know if we can restore from the tape's
we created.

I added some step's (use of nrmt0h, set fstype on swap partition, set date
and time after
restore - was 18.04.1904).

I have done:

go to single user for backup:

>>>boot -fl s
# /sbin/bcheckrc
# cd /
# dump -0f /dev/nrmt0h /
# cd /usr
# dump -0f /dev/nrmt0h /usr
# cd /home
# dump -0f /dev/rmt0h /home
# sync; sync
# halt

change old -> new third-party disk's

restore:

-> insert OS-CD

>>>show dev
>>>boot DKA400

# cd /dev
# ./MAKEDEV rz0 rz1 tz5

# cd /
# disklabel -rw -t ufs rz0 rz0
# disklabel -e rz0 (to change partition sizes if needed)
# disklabel -s /dev/rrz0b swap
# disklabel -rw rz1 rz1
# newfs /dev/rrz0a /dev/rrz0a
# fsck /dev/rrz0a
# newfs /dev/rrz0g /dev/rrz0g
# fsck /dev/rrz0g
# newfs /dev/rrz1c /dev/rrz1c
# fsck /dev/rrz1c

-> insert / tape

# mt -f /dev/rmt0h rew
# mount /dev/rz0a /mnt
# cd /mnt
# restore -Yrf /dev/rmt0h
# cd /
# umount /mnt
# mount /dev/rz0g /mnt
# cd /mnt
# mt -f /dev/nrmt0h fsf 1
# restore -Yrf /dev/rmt0h
# cd /
# umount /mnt
# mount /dev/rz1c /mnt
# cd /mnt
# mt -f /dev/nrmt0h fsf 2
# restore -Yrf /dev/rmt0h
# cd /
# umount /mnt
# sync; sync
# shutdown -h now

>>>boot -fl s
# swapon -a
# /sbin/bcheckrc

check if everything look's ok (especially date and time!!) and reboot to
multiuser

# sync; sync
# shutdown -r now

Gruss
 Hermann

> Hello,

> I was asked if I can help change disk's in an Alphaserver 800 because the
> existing disk make some noise and and they fear the disk's will get bad
> soon. Unfortunatelly there is no Tru64 admin there.
> I looked a litte bit around and will proceed with the following step's,
> please can you take a look and tell me if I am right or do something
> wrong.
> The system is installed with 2x 9GB disk's which will get replaced by 1x
> 9GB
> and 1x 18GB third-party drives.

> The system is an Alphaserver 800 with Tru64 4.0F - no patches installed
> (as
> sys_check states), I have recorded all disklabel's + fstab + mount's + df
> usage + swap + device's and saved a full sys_check output. Here are some
> info's:

> df -k:

> Filesystem 1024-blocks Used Available Capacity Mounted on
> /dev/rz0a 1003788 68654 834755 8% /
> /proc 0 0 0 100% /proc
> /dev/rz0g 6732080 408782 5650090 7% /usr
> /dev/rz1c 8619292 6406818 1350544 83% /home

> swapon -s:

> Swap partition /dev/rz0b (default swap):
> Allocated space: 128620 pages (1004MB)
> In-use space: 3282 pages ( 2%)
> Free space: 125338 pages ( 97%)

> scu info:

> CAM Equipment Device Table (EDT) Information:

> Device: RZ2DD-LS Bus: 0, Target: 0, Lun: 0, Type: Direct Access
> Device: RZ2DD-LS Bus: 0, Target: 1, Lun: 0, Type: Direct Access
> Device: RRD47 Bus: 0, Target: 4, Lun: 0, Type: Read-Only Direct
> Access
> Device: TLZ10 Bus: 0, Target: 5, Lun: 0, Type: Sequential Access



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:59 EDT